@qonto/embed-sdk 0.50.0 → 0.51.1

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 (726) hide show
  1. package/dist/cards/cards.d.ts.map +1 -1
  2. package/dist/common/analytics/amplitude-manager.d.ts +33 -0
  3. package/dist/common/analytics/amplitude-manager.d.ts.map +1 -0
  4. package/dist/common/analytics/analytics-tracker.d.ts +32 -0
  5. package/dist/common/analytics/analytics-tracker.d.ts.map +1 -0
  6. package/dist/common/analytics/analytics.constants.d.ts +23 -0
  7. package/dist/common/analytics/analytics.constants.d.ts.map +1 -0
  8. package/dist/common/analytics/index.d.ts +4 -0
  9. package/dist/common/analytics/index.d.ts.map +1 -0
  10. package/dist/common/initialize/initialize.d.ts.map +1 -1
  11. package/dist/common/initialize/initialize.validate.d.ts.map +1 -1
  12. package/dist/index.server.d.ts +5 -0
  13. package/dist/index.server.d.ts.map +1 -0
  14. package/dist/index.umd.js +21 -22
  15. package/dist/mocks/handlers.d.ts +3 -3
  16. package/dist/mocks/handlers.d.ts.map +1 -1
  17. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/helpers.js +1 -0
  18. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +1 -0
  19. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client-factory.js +1 -0
  20. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +1 -0
  21. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/config/joined-config.js +1 -0
  22. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/config.js +1 -0
  23. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/constants.js +1 -0
  24. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/cookie-migration/index.js +1 -0
  25. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/default-tracking.js +1 -0
  26. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/det-notification.js +1 -0
  27. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/index.js +1 -0
  28. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/lib-prefix.js +1 -0
  29. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/context.js +1 -0
  30. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/file-download-tracking.js +1 -0
  31. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/form-interaction-tracking.js +1 -0
  32. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/network-connectivity-checker.js +1 -0
  33. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/storage/local-storage.js +1 -0
  34. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/storage/session-storage.js +1 -0
  35. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/send-beacon.js +1 -0
  36. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +1 -0
  37. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/types.js +1 -0
  38. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/utils/snippet-helper.js +1 -0
  39. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/version.js +1 -0
  40. package/dist/node_modules/.pnpm/@amplitude_analytics-connector@1.6.4/node_modules/@amplitude/analytics-connector/dist/analytics-connector.esm.js +1 -0
  41. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/analytics-connector.js +1 -0
  42. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/campaign/campaign-parser.js +1 -0
  43. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/config.js +1 -0
  44. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js +1 -0
  45. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js +1 -0
  46. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-client.js +1 -0
  47. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-storage.js +1 -0
  48. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/uncaught-sdk-errors.js +1 -0
  49. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js +1 -0
  50. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js +1 -0
  51. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/language.js +1 -0
  52. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js +1 -0
  53. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/network-observer.js +1 -0
  54. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/network-request-event.js +1 -0
  55. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js +1 -0
  56. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js +1 -0
  57. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/identity.js +1 -0
  58. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/query-params.js +1 -0
  59. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config-localstorage.js +1 -0
  60. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js +1 -0
  61. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js +1 -0
  62. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/session.js +1 -0
  63. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js +1 -0
  64. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +1 -0
  65. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/helpers.js +1 -0
  66. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/memory.js +1 -0
  67. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js +1 -0
  68. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js +1 -0
  69. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/transports/fetch.js +1 -0
  70. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js +1 -0
  71. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js +1 -0
  72. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js +1 -0
  73. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js +1 -0
  74. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js +1 -0
  75. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js +1 -0
  76. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js +1 -0
  77. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js +1 -0
  78. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js +1 -0
  79. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js +1 -0
  80. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js +1 -0
  81. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js +1 -0
  82. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/json-query.js +1 -0
  83. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +1 -0
  84. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js +1 -0
  85. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js +1 -0
  86. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/sampling.js +1 -0
  87. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js +1 -0
  88. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js +1 -0
  89. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js +1 -0
  90. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js +1 -0
  91. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-action-click.js +1 -0
  92. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-change.js +1 -0
  93. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-click.js +1 -0
  94. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-dead-click.js +1 -0
  95. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-rage-click.js +1 -0
  96. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +1 -0
  97. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +1 -0
  98. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +1 -0
  99. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +1 -0
  100. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +1 -0
  101. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/hierarchy.js +1 -0
  102. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/messenger.js +1 -0
  103. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +1 -0
  104. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/actions.js +1 -0
  105. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/matchEventToFilter.js +1 -0
  106. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/triggers.js +1 -0
  107. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +1 -0
  108. package/dist/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/constants.js +1 -0
  109. package/dist/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +1 -0
  110. package/dist/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/track-network-event.js +1 -0
  111. package/dist/node_modules/.pnpm/@amplitude_plugin-page-url-enrichment-browser@0.5.8/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js +1 -0
  112. package/dist/node_modules/.pnpm/@amplitude_plugin-page-view-tracking-browser@2.6.5/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js +1 -0
  113. package/dist/node_modules/.pnpm/@amplitude_plugin-page-view-tracking-browser@2.6.5/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/utils.js +1 -0
  114. package/dist/node_modules/.pnpm/@amplitude_plugin-web-vitals-browser@1.1.2/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/constants.js +1 -0
  115. package/dist/node_modules/.pnpm/@amplitude_plugin-web-vitals-browser@1.1.2/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/web-vitals-plugin.js +1 -0
  116. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +1 -1
  117. package/dist/node_modules/.pnpm/web-vitals@5.0.1/node_modules/web-vitals/dist/web-vitals.js +1 -0
  118. package/dist/node_modules/.pnpm/zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js +1 -0
  119. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.d.ts +2 -2
  120. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.d.ts.map +1 -1
  121. package/dist/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts +46 -0
  122. package/dist/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts.map +1 -0
  123. package/dist/sepa-transfers/bulk-transfers/client/bulk-transfers.client.test.d.ts +2 -0
  124. package/dist/sepa-transfers/bulk-transfers/client/bulk-transfers.client.test.d.ts.map +1 -0
  125. package/dist/sepa-transfers/bulk-transfers/index.d.ts +26 -0
  126. package/dist/sepa-transfers/bulk-transfers/index.d.ts.map +1 -0
  127. package/dist/sepa-transfers/bulk-transfers/server/bulk-transfers.server.d.ts +133 -0
  128. package/dist/sepa-transfers/bulk-transfers/server/bulk-transfers.server.d.ts.map +1 -0
  129. package/dist/sepa-transfers/bulk-transfers/server/bulk-transfers.server.test.d.ts +2 -0
  130. package/dist/sepa-transfers/bulk-transfers/server/bulk-transfers.server.test.d.ts.map +1 -0
  131. package/dist/sepa-transfers/bulk-transfers/server.d.ts +30 -0
  132. package/dist/sepa-transfers/bulk-transfers/server.d.ts.map +1 -0
  133. package/dist/sepa-transfers/bulk-transfers/{bulk-transfers.api.d.ts → shared/bulk-transfers.api.d.ts} +3 -2
  134. package/dist/sepa-transfers/bulk-transfers/shared/bulk-transfers.api.d.ts.map +1 -0
  135. package/dist/sepa-transfers/bulk-transfers/shared/bulk-transfers.serializer.d.ts.map +1 -0
  136. package/dist/sepa-transfers/bulk-transfers/shared/bulk-transfers.shared.test.d.ts +2 -0
  137. package/dist/sepa-transfers/bulk-transfers/shared/bulk-transfers.shared.test.d.ts.map +1 -0
  138. package/dist/sepa-transfers/bulk-transfers/{bulk-transfers.types.d.ts → shared/bulk-transfers.types.d.ts} +21 -2
  139. package/dist/sepa-transfers/bulk-transfers/shared/bulk-transfers.types.d.ts.map +1 -0
  140. package/dist/sepa-transfers/bulk-transfers/shared/bulk-transfers.validate.d.ts.map +1 -0
  141. package/dist/sepa-transfers/client/sepa-transfers.client.d.ts +85 -0
  142. package/dist/sepa-transfers/client/sepa-transfers.client.d.ts.map +1 -0
  143. package/dist/sepa-transfers/client/sepa-transfers.client.test.d.ts +2 -0
  144. package/dist/sepa-transfers/client/sepa-transfers.client.test.d.ts.map +1 -0
  145. package/dist/sepa-transfers/index.d.ts +24 -18
  146. package/dist/sepa-transfers/index.d.ts.map +1 -1
  147. package/dist/sepa-transfers/index.server.d.ts +44 -0
  148. package/dist/sepa-transfers/index.server.d.ts.map +1 -0
  149. package/dist/sepa-transfers/sepa-transfers.d.ts +1 -1
  150. package/dist/sepa-transfers/sepa-transfers.d.ts.map +1 -1
  151. package/dist/sepa-transfers/server/sepa-transfers.server.d.ts +161 -0
  152. package/dist/sepa-transfers/server/sepa-transfers.server.d.ts.map +1 -0
  153. package/dist/sepa-transfers/server/sepa-transfers.server.test.d.ts +2 -0
  154. package/dist/sepa-transfers/server/sepa-transfers.server.test.d.ts.map +1 -0
  155. package/dist/sepa-transfers/{sepa-transfers.api.d.ts → shared/sepa-transfers.api.d.ts} +3 -2
  156. package/dist/sepa-transfers/shared/sepa-transfers.api.d.ts.map +1 -0
  157. package/dist/sepa-transfers/{sepa-transfers.serializer.d.ts → shared/sepa-transfers.serializer.d.ts} +1 -1
  158. package/dist/sepa-transfers/shared/sepa-transfers.serializer.d.ts.map +1 -0
  159. package/dist/sepa-transfers/shared/sepa-transfers.shared.test.d.ts +2 -0
  160. package/dist/sepa-transfers/shared/sepa-transfers.shared.test.d.ts.map +1 -0
  161. package/dist/sepa-transfers/{sepa-transfers.types.d.ts → shared/sepa-transfers.types.d.ts} +19 -0
  162. package/dist/sepa-transfers/shared/sepa-transfers.types.d.ts.map +1 -0
  163. package/dist/sepa-transfers/{sepa-transfers.utils.d.ts → shared/sepa-transfers.utils.d.ts} +3 -3
  164. package/dist/sepa-transfers/shared/sepa-transfers.utils.d.ts.map +1 -0
  165. package/dist/sepa-transfers/{sepa-transfers.validate.d.ts → shared/sepa-transfers.validate.d.ts} +1 -1
  166. package/dist/sepa-transfers/shared/sepa-transfers.validate.d.ts.map +1 -0
  167. package/dist/server/auth-links/auth-links.api.d.ts +20 -0
  168. package/dist/server/auth-links/auth-links.api.d.ts.map +1 -0
  169. package/dist/server/auth-links/auth-links.d.ts +46 -0
  170. package/dist/server/auth-links/auth-links.d.ts.map +1 -0
  171. package/dist/server/auth-links/auth-links.public-api.d.ts +6 -0
  172. package/dist/server/auth-links/auth-links.public-api.d.ts.map +1 -0
  173. package/dist/server/auth-links/auth-links.test.d.ts +2 -0
  174. package/dist/server/auth-links/auth-links.test.d.ts.map +1 -0
  175. package/dist/server/auth-links/auth-links.types.d.ts +68 -0
  176. package/dist/server/auth-links/auth-links.types.d.ts.map +1 -0
  177. package/dist/server/auth-links/auth-links.validate.d.ts +6 -0
  178. package/dist/server/auth-links/auth-links.validate.d.ts.map +1 -0
  179. package/dist/server/auth-links/auth-links.validate.test.d.ts +2 -0
  180. package/dist/server/auth-links/auth-links.validate.test.d.ts.map +1 -0
  181. package/dist/server/auth-links/index.d.ts +25 -0
  182. package/dist/server/auth-links/index.d.ts.map +1 -0
  183. package/dist/server/beneficiaries/beneficiaries.api.d.ts +56 -0
  184. package/dist/server/beneficiaries/beneficiaries.api.d.ts.map +1 -0
  185. package/dist/server/beneficiaries/beneficiaries.d.ts +131 -0
  186. package/dist/server/beneficiaries/beneficiaries.d.ts.map +1 -0
  187. package/dist/server/beneficiaries/beneficiaries.public-api.d.ts +10 -0
  188. package/dist/server/beneficiaries/beneficiaries.public-api.d.ts.map +1 -0
  189. package/dist/server/beneficiaries/beneficiaries.serializer.d.ts +4 -0
  190. package/dist/server/beneficiaries/beneficiaries.serializer.d.ts.map +1 -0
  191. package/dist/server/beneficiaries/beneficiaries.test.d.ts +2 -0
  192. package/dist/server/beneficiaries/beneficiaries.test.d.ts.map +1 -0
  193. package/dist/server/beneficiaries/beneficiaries.types.d.ts +65 -0
  194. package/dist/server/beneficiaries/beneficiaries.types.d.ts.map +1 -0
  195. package/dist/server/beneficiaries/beneficiaries.validate.d.ts +6 -0
  196. package/dist/server/beneficiaries/beneficiaries.validate.d.ts.map +1 -0
  197. package/dist/server/beneficiaries/index.d.ts +22 -0
  198. package/dist/server/beneficiaries/index.d.ts.map +1 -0
  199. package/dist/server/cards/cards.api.d.ts +35 -0
  200. package/dist/server/cards/cards.api.d.ts.map +1 -0
  201. package/dist/server/cards/cards.d.ts +205 -0
  202. package/dist/server/cards/cards.d.ts.map +1 -0
  203. package/dist/server/cards/cards.helper.d.ts +17 -0
  204. package/dist/server/cards/cards.helper.d.ts.map +1 -0
  205. package/dist/server/cards/cards.public-api.d.ts +10 -0
  206. package/dist/server/cards/cards.public-api.d.ts.map +1 -0
  207. package/dist/server/cards/cards.serializer.d.ts +72 -0
  208. package/dist/server/cards/cards.serializer.d.ts.map +1 -0
  209. package/dist/server/cards/cards.test.d.ts +2 -0
  210. package/dist/server/cards/cards.test.d.ts.map +1 -0
  211. package/dist/server/cards/cards.types.d.ts +294 -0
  212. package/dist/server/cards/cards.types.d.ts.map +1 -0
  213. package/dist/server/cards/cards.validate.d.ts +16 -0
  214. package/dist/server/cards/cards.validate.d.ts.map +1 -0
  215. package/dist/server/cards/cards.validate.test.d.ts +2 -0
  216. package/dist/server/cards/cards.validate.test.d.ts.map +1 -0
  217. package/dist/server/cards/index.d.ts +23 -0
  218. package/dist/server/cards/index.d.ts.map +1 -0
  219. package/dist/server/common/analytics/amplitude-manager.d.ts +33 -0
  220. package/dist/server/common/analytics/amplitude-manager.d.ts.map +1 -0
  221. package/dist/server/common/analytics/analytics-tracker.d.ts +32 -0
  222. package/dist/server/common/analytics/analytics-tracker.d.ts.map +1 -0
  223. package/dist/server/common/analytics/analytics.constants.d.ts +23 -0
  224. package/dist/server/common/analytics/analytics.constants.d.ts.map +1 -0
  225. package/dist/server/common/analytics/index.d.ts +4 -0
  226. package/dist/server/common/analytics/index.d.ts.map +1 -0
  227. package/dist/server/common/api-pagination/api-pagination.d.ts +14 -0
  228. package/dist/server/common/api-pagination/api-pagination.d.ts.map +1 -0
  229. package/dist/server/common/api-pagination/api-pagination.test.d.ts +2 -0
  230. package/dist/server/common/api-pagination/api-pagination.test.d.ts.map +1 -0
  231. package/dist/server/common/api-pagination/api-pagination.types.d.ts +31 -0
  232. package/dist/server/common/api-pagination/api-pagination.types.d.ts.map +1 -0
  233. package/dist/server/common/auth/auth.d.ts +38 -0
  234. package/dist/server/common/auth/auth.d.ts.map +1 -0
  235. package/dist/server/common/auth/auth.test.d.ts +2 -0
  236. package/dist/server/common/auth/auth.test.d.ts.map +1 -0
  237. package/dist/server/common/auth/auth.validate.d.ts +2 -0
  238. package/dist/server/common/auth/auth.validate.d.ts.map +1 -0
  239. package/dist/server/common/auth/index.d.ts +3 -0
  240. package/dist/server/common/auth/index.d.ts.map +1 -0
  241. package/dist/server/common/codec/codec.d.ts +3 -0
  242. package/dist/server/common/codec/codec.d.ts.map +1 -0
  243. package/dist/server/common/codec/index.d.ts +2 -0
  244. package/dist/server/common/codec/index.d.ts.map +1 -0
  245. package/dist/server/common/common.public-api.d.ts +9 -0
  246. package/dist/server/common/common.public-api.d.ts.map +1 -0
  247. package/dist/server/common/common.test.d.ts +2 -0
  248. package/dist/server/common/common.test.d.ts.map +1 -0
  249. package/dist/server/common/common.types.d.ts +9 -0
  250. package/dist/server/common/common.types.d.ts.map +1 -0
  251. package/dist/server/common/common.utils.d.ts +12 -0
  252. package/dist/server/common/common.utils.d.ts.map +1 -0
  253. package/dist/server/common/constants.d.ts +201 -0
  254. package/dist/server/common/constants.d.ts.map +1 -0
  255. package/dist/server/common/environment/environment-manager.d.ts +58 -0
  256. package/dist/server/common/environment/environment-manager.d.ts.map +1 -0
  257. package/dist/server/common/environment/environment-manager.test.d.ts +2 -0
  258. package/dist/server/common/environment/environment-manager.test.d.ts.map +1 -0
  259. package/dist/server/common/index.d.ts +3 -0
  260. package/dist/server/common/index.d.ts.map +1 -0
  261. package/dist/server/common/initialize/index.d.ts +2 -0
  262. package/dist/server/common/initialize/index.d.ts.map +1 -0
  263. package/dist/server/common/initialize/initialize.d.ts +73 -0
  264. package/dist/server/common/initialize/initialize.d.ts.map +1 -0
  265. package/dist/server/common/initialize/initialize.test.d.ts +2 -0
  266. package/dist/server/common/initialize/initialize.test.d.ts.map +1 -0
  267. package/dist/server/common/initialize/initialize.types.d.ts +39 -0
  268. package/dist/server/common/initialize/initialize.types.d.ts.map +1 -0
  269. package/dist/server/common/initialize/initialize.validate.d.ts +9 -0
  270. package/dist/server/common/initialize/initialize.validate.d.ts.map +1 -0
  271. package/dist/server/common/locale/index.d.ts +2 -0
  272. package/dist/server/common/locale/index.d.ts.map +1 -0
  273. package/dist/server/common/locale/locale-manager.d.ts +13 -0
  274. package/dist/server/common/locale/locale-manager.d.ts.map +1 -0
  275. package/dist/server/common/locale/locale-manager.test.d.ts +2 -0
  276. package/dist/server/common/locale/locale-manager.test.d.ts.map +1 -0
  277. package/dist/server/common/locale/locale.types.d.ts +8 -0
  278. package/dist/server/common/locale/locale.types.d.ts.map +1 -0
  279. package/dist/server/common/locale/locale.validate.d.ts +3 -0
  280. package/dist/server/common/locale/locale.validate.d.ts.map +1 -0
  281. package/dist/server/common/logger/index.d.ts +2 -0
  282. package/dist/server/common/logger/index.d.ts.map +1 -0
  283. package/dist/server/common/logger/logger.d.ts +8 -0
  284. package/dist/server/common/logger/logger.d.ts.map +1 -0
  285. package/dist/server/common/logger/logger.test.d.ts +2 -0
  286. package/dist/server/common/logger/logger.test.d.ts.map +1 -0
  287. package/dist/server/common/network/network.d.ts +31 -0
  288. package/dist/server/common/network/network.d.ts.map +1 -0
  289. package/dist/server/common/network/network.test.d.ts +2 -0
  290. package/dist/server/common/network/network.test.d.ts.map +1 -0
  291. package/dist/server/common/network/network.types.d.ts +5 -0
  292. package/dist/server/common/network/network.types.d.ts.map +1 -0
  293. package/dist/server/common/operation-settings/operation-settings.d.ts +48 -0
  294. package/dist/server/common/operation-settings/operation-settings.d.ts.map +1 -0
  295. package/dist/server/common/operation-settings/operation-settings.types.d.ts +3 -0
  296. package/dist/server/common/operation-settings/operation-settings.types.d.ts.map +1 -0
  297. package/dist/server/common/runtime/runtime.validation.d.ts +3 -0
  298. package/dist/server/common/runtime/runtime.validation.d.ts.map +1 -0
  299. package/dist/server/common/runtime/runtime.validation.test.d.ts +2 -0
  300. package/dist/server/common/runtime/runtime.validation.test.d.ts.map +1 -0
  301. package/dist/server/common/sentry/index.d.ts +2 -0
  302. package/dist/server/common/sentry/index.d.ts.map +1 -0
  303. package/dist/server/common/sentry/sentry-manager.d.ts +36 -0
  304. package/dist/server/common/sentry/sentry-manager.d.ts.map +1 -0
  305. package/dist/server/customization/customization.constants.d.ts +2 -0
  306. package/dist/server/customization/customization.constants.d.ts.map +1 -0
  307. package/dist/server/customization/customization.d.ts +18 -0
  308. package/dist/server/customization/customization.d.ts.map +1 -0
  309. package/dist/server/customization/customization.test.d.ts +2 -0
  310. package/dist/server/customization/customization.test.d.ts.map +1 -0
  311. package/dist/server/customization/index.d.ts +2 -0
  312. package/dist/server/customization/index.d.ts.map +1 -0
  313. package/dist/server/errors/AuthenticationError.d.ts +11 -0
  314. package/dist/server/errors/AuthenticationError.d.ts.map +1 -0
  315. package/dist/server/errors/EmbedApiError.d.ts +16 -0
  316. package/dist/server/errors/EmbedApiError.d.ts.map +1 -0
  317. package/dist/server/errors/EmbedOperationError.d.ts +11 -0
  318. package/dist/server/errors/EmbedOperationError.d.ts.map +1 -0
  319. package/dist/server/errors/EmbedUIElementError.d.ts +11 -0
  320. package/dist/server/errors/EmbedUIElementError.d.ts.map +1 -0
  321. package/dist/server/errors/InvalidParametersError.d.ts +14 -0
  322. package/dist/server/errors/InvalidParametersError.d.ts.map +1 -0
  323. package/dist/server/errors/InvalidRuntimeError.d.ts +18 -0
  324. package/dist/server/errors/InvalidRuntimeError.d.ts.map +1 -0
  325. package/dist/server/errors/QontoEmbedSdkError.d.ts +8 -0
  326. package/dist/server/errors/QontoEmbedSdkError.d.ts.map +1 -0
  327. package/dist/server/iframe/embed-iframe.d.ts +23 -0
  328. package/dist/server/iframe/embed-iframe.d.ts.map +1 -0
  329. package/dist/server/iframe/iframe-manager.d.ts +17 -0
  330. package/dist/server/iframe/iframe-manager.d.ts.map +1 -0
  331. package/dist/server/iframe/iframe-manager.test.d.ts +2 -0
  332. package/dist/server/iframe/iframe-manager.test.d.ts.map +1 -0
  333. package/dist/server/iframe/iframe-message-builder.d.ts +8 -0
  334. package/dist/server/iframe/iframe-message-builder.d.ts.map +1 -0
  335. package/dist/server/iframe/iframe.test.d.ts +2 -0
  336. package/dist/server/iframe/iframe.test.d.ts.map +1 -0
  337. package/dist/server/iframe/iframe.types.d.ts +11 -0
  338. package/dist/server/iframe/iframe.types.d.ts.map +1 -0
  339. package/dist/server/index.d.ts +13 -0
  340. package/dist/server/index.d.ts.map +1 -0
  341. package/dist/server/index.server.d.ts +5 -0
  342. package/dist/server/index.server.d.ts.map +1 -0
  343. package/dist/server/index.server.umd.js +1 -0
  344. package/dist/server/mocks/handlers.d.ts +95 -0
  345. package/dist/server/mocks/handlers.d.ts.map +1 -0
  346. package/dist/server/mocks/node.d.ts +2 -0
  347. package/dist/server/mocks/node.d.ts.map +1 -0
  348. package/dist/server/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/native.js +1 -0
  349. package/dist/server/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.js +1 -0
  350. package/dist/server/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.js +1 -0
  351. package/dist/server/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js +1 -0
  352. package/dist/server/organizations/index.d.ts +13 -0
  353. package/dist/server/organizations/index.d.ts.map +1 -0
  354. package/dist/server/organizations/organizations.api.d.ts +23 -0
  355. package/dist/server/organizations/organizations.api.d.ts.map +1 -0
  356. package/dist/server/organizations/organizations.d.ts +29 -0
  357. package/dist/server/organizations/organizations.d.ts.map +1 -0
  358. package/dist/server/organizations/organizations.public-api.d.ts +5 -0
  359. package/dist/server/organizations/organizations.public-api.d.ts.map +1 -0
  360. package/dist/server/organizations/organizations.serializer.d.ts +4 -0
  361. package/dist/server/organizations/organizations.serializer.d.ts.map +1 -0
  362. package/dist/server/organizations/organizations.test.d.ts +2 -0
  363. package/dist/server/organizations/organizations.test.d.ts.map +1 -0
  364. package/dist/server/organizations/organizations.types.d.ts +106 -0
  365. package/dist/server/organizations/organizations.types.d.ts.map +1 -0
  366. package/dist/server/payment-links/index.d.ts +13 -0
  367. package/dist/server/payment-links/index.d.ts.map +1 -0
  368. package/dist/server/payment-links/payment-links.d.ts +58 -0
  369. package/dist/server/payment-links/payment-links.d.ts.map +1 -0
  370. package/dist/server/payment-links/payment-links.public-api.d.ts +5 -0
  371. package/dist/server/payment-links/payment-links.public-api.d.ts.map +1 -0
  372. package/dist/server/payment-links/payment-links.test.d.ts +2 -0
  373. package/dist/server/payment-links/payment-links.test.d.ts.map +1 -0
  374. package/dist/server/payment-links/payment-links.types.d.ts +29 -0
  375. package/dist/server/payment-links/payment-links.types.d.ts.map +1 -0
  376. package/dist/server/payment-links/validation/currency.validation.d.ts +2 -0
  377. package/dist/server/payment-links/validation/currency.validation.d.ts.map +1 -0
  378. package/dist/server/payment-links/validation/payment-links.validate.d.ts +8 -0
  379. package/dist/server/payment-links/validation/payment-links.validate.d.ts.map +1 -0
  380. package/dist/server/payment-links/validation/unit.validation.d.ts +2 -0
  381. package/dist/server/payment-links/validation/unit.validation.d.ts.map +1 -0
  382. package/dist/server/public-api.test.d.ts +2 -0
  383. package/dist/server/public-api.test.d.ts.map +1 -0
  384. package/dist/server/sca/sca.api.d.ts +16 -0
  385. package/dist/server/sca/sca.api.d.ts.map +1 -0
  386. package/dist/server/sca/sca.constants.d.ts +6 -0
  387. package/dist/server/sca/sca.constants.d.ts.map +1 -0
  388. package/dist/server/sca/sca.d.ts +4 -0
  389. package/dist/server/sca/sca.d.ts.map +1 -0
  390. package/dist/server/sca/sca.serializer.d.ts +10 -0
  391. package/dist/server/sca/sca.serializer.d.ts.map +1 -0
  392. package/dist/server/sca/sca.test.d.ts +2 -0
  393. package/dist/server/sca/sca.test.d.ts.map +1 -0
  394. package/dist/server/sca/sca.types.d.ts +39 -0
  395. package/dist/server/sca/sca.types.d.ts.map +1 -0
  396. package/dist/server/sepa-transfers/bulk-transfers/bulk-transfers.d.ts +67 -0
  397. package/dist/server/sepa-transfers/bulk-transfers/bulk-transfers.d.ts.map +1 -0
  398. package/dist/server/sepa-transfers/bulk-transfers/bulk-transfers.utils.d.ts +21 -0
  399. package/dist/server/sepa-transfers/bulk-transfers/bulk-transfers.utils.d.ts.map +1 -0
  400. package/dist/server/sepa-transfers/bulk-transfers/bulk-transfers.utils.test.d.ts +2 -0
  401. package/dist/server/sepa-transfers/bulk-transfers/bulk-transfers.utils.test.d.ts.map +1 -0
  402. package/dist/server/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts +46 -0
  403. package/dist/server/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts.map +1 -0
  404. package/dist/server/sepa-transfers/bulk-transfers/client/bulk-transfers.client.test.d.ts +2 -0
  405. package/dist/server/sepa-transfers/bulk-transfers/client/bulk-transfers.client.test.d.ts.map +1 -0
  406. package/dist/server/sepa-transfers/bulk-transfers/index.d.ts +26 -0
  407. package/dist/server/sepa-transfers/bulk-transfers/index.d.ts.map +1 -0
  408. package/dist/server/sepa-transfers/bulk-transfers/server/bulk-transfers.server.d.ts +133 -0
  409. package/dist/server/sepa-transfers/bulk-transfers/server/bulk-transfers.server.d.ts.map +1 -0
  410. package/dist/server/sepa-transfers/bulk-transfers/server/bulk-transfers.server.test.d.ts +2 -0
  411. package/dist/server/sepa-transfers/bulk-transfers/server/bulk-transfers.server.test.d.ts.map +1 -0
  412. package/dist/server/sepa-transfers/bulk-transfers/server.d.ts +30 -0
  413. package/dist/server/sepa-transfers/bulk-transfers/server.d.ts.map +1 -0
  414. package/dist/server/sepa-transfers/bulk-transfers/shared/bulk-transfers.api.d.ts +45 -0
  415. package/dist/server/sepa-transfers/bulk-transfers/shared/bulk-transfers.api.d.ts.map +1 -0
  416. package/dist/server/sepa-transfers/bulk-transfers/shared/bulk-transfers.serializer.d.ts +5 -0
  417. package/dist/server/sepa-transfers/bulk-transfers/shared/bulk-transfers.serializer.d.ts.map +1 -0
  418. package/dist/server/sepa-transfers/bulk-transfers/shared/bulk-transfers.shared.test.d.ts +2 -0
  419. package/dist/server/sepa-transfers/bulk-transfers/shared/bulk-transfers.shared.test.d.ts.map +1 -0
  420. package/dist/server/sepa-transfers/bulk-transfers/shared/bulk-transfers.types.d.ts +270 -0
  421. package/dist/server/sepa-transfers/bulk-transfers/shared/bulk-transfers.types.d.ts.map +1 -0
  422. package/dist/server/sepa-transfers/bulk-transfers/shared/bulk-transfers.validate.d.ts +4 -0
  423. package/dist/server/sepa-transfers/bulk-transfers/shared/bulk-transfers.validate.d.ts.map +1 -0
  424. package/dist/server/sepa-transfers/client/sepa-transfers.client.d.ts +85 -0
  425. package/dist/server/sepa-transfers/client/sepa-transfers.client.d.ts.map +1 -0
  426. package/dist/server/sepa-transfers/client/sepa-transfers.client.test.d.ts +2 -0
  427. package/dist/server/sepa-transfers/client/sepa-transfers.client.test.d.ts.map +1 -0
  428. package/dist/server/sepa-transfers/index.d.ts +43 -0
  429. package/dist/server/sepa-transfers/index.d.ts.map +1 -0
  430. package/dist/server/sepa-transfers/index.server.d.ts +44 -0
  431. package/dist/server/sepa-transfers/index.server.d.ts.map +1 -0
  432. package/dist/server/sepa-transfers/sepa-transfers.d.ts +170 -0
  433. package/dist/server/sepa-transfers/sepa-transfers.d.ts.map +1 -0
  434. package/dist/server/sepa-transfers/sepa-transfers.public-api.d.ts +20 -0
  435. package/dist/server/sepa-transfers/sepa-transfers.public-api.d.ts.map +1 -0
  436. package/dist/server/sepa-transfers/sepa-transfers.utils.test.d.ts +2 -0
  437. package/dist/server/sepa-transfers/sepa-transfers.utils.test.d.ts.map +1 -0
  438. package/dist/server/sepa-transfers/server/sepa-transfers.server.d.ts +161 -0
  439. package/dist/server/sepa-transfers/server/sepa-transfers.server.d.ts.map +1 -0
  440. package/dist/server/sepa-transfers/server/sepa-transfers.server.test.d.ts +2 -0
  441. package/dist/server/sepa-transfers/server/sepa-transfers.server.test.d.ts.map +1 -0
  442. package/dist/server/sepa-transfers/shared/sepa-transfers.api.d.ts +101 -0
  443. package/dist/server/sepa-transfers/shared/sepa-transfers.api.d.ts.map +1 -0
  444. package/dist/server/sepa-transfers/shared/sepa-transfers.serializer.d.ts +7 -0
  445. package/dist/server/sepa-transfers/shared/sepa-transfers.serializer.d.ts.map +1 -0
  446. package/dist/server/sepa-transfers/shared/sepa-transfers.shared.test.d.ts +2 -0
  447. package/dist/server/sepa-transfers/shared/sepa-transfers.shared.test.d.ts.map +1 -0
  448. package/dist/server/sepa-transfers/shared/sepa-transfers.types.d.ts +272 -0
  449. package/dist/server/sepa-transfers/shared/sepa-transfers.types.d.ts.map +1 -0
  450. package/dist/server/sepa-transfers/shared/sepa-transfers.utils.d.ts +26 -0
  451. package/dist/server/sepa-transfers/shared/sepa-transfers.utils.d.ts.map +1 -0
  452. package/dist/server/sepa-transfers/shared/sepa-transfers.validate.d.ts +7 -0
  453. package/dist/server/sepa-transfers/shared/sepa-transfers.validate.d.ts.map +1 -0
  454. package/dist/server/setup-test.d.ts +2 -0
  455. package/dist/server/setup-test.d.ts.map +1 -0
  456. package/dist/server/src/auth-links/auth-links.api.js +1 -0
  457. package/dist/server/src/auth-links/auth-links.js +1 -0
  458. package/dist/server/src/auth-links/auth-links.public-api.js +1 -0
  459. package/dist/server/src/auth-links/auth-links.validate.js +1 -0
  460. package/dist/server/src/auth-links/index.js +1 -0
  461. package/dist/server/src/beneficiaries/beneficiaries.api.js +1 -0
  462. package/dist/server/src/beneficiaries/beneficiaries.js +1 -0
  463. package/dist/server/src/beneficiaries/beneficiaries.serializer.js +1 -0
  464. package/dist/server/src/beneficiaries/beneficiaries.validate.js +1 -0
  465. package/dist/server/src/common/api-pagination/api-pagination.js +1 -0
  466. package/dist/server/src/common/auth/auth.js +1 -0
  467. package/dist/server/src/common/auth/auth.validate.js +1 -0
  468. package/dist/server/src/common/codec/codec.js +1 -0
  469. package/dist/server/src/common/common.utils.js +1 -0
  470. package/dist/server/src/common/constants.js +1 -0
  471. package/dist/server/src/common/environment/environment-manager.js +1 -0
  472. package/dist/server/src/common/locale/locale-manager.js +1 -0
  473. package/dist/server/src/common/network/network.js +1 -0
  474. package/dist/server/src/common/operation-settings/operation-settings.js +1 -0
  475. package/dist/server/src/common/runtime/runtime.validation.js +1 -0
  476. package/dist/server/src/errors/AuthenticationError.js +1 -0
  477. package/dist/server/src/errors/EmbedApiError.js +1 -0
  478. package/dist/server/src/errors/EmbedOperationError.js +1 -0
  479. package/dist/server/src/errors/InvalidParametersError.js +1 -0
  480. package/dist/server/src/errors/QontoEmbedSdkError.js +1 -0
  481. package/dist/server/src/index.server.js +1 -0
  482. package/dist/server/src/sepa-transfers/bulk-transfers/server/bulk-transfers.server.js +1 -0
  483. package/dist/server/src/sepa-transfers/bulk-transfers/server.js +1 -0
  484. package/dist/server/src/sepa-transfers/bulk-transfers/shared/bulk-transfers.api.js +1 -0
  485. package/dist/server/src/sepa-transfers/bulk-transfers/shared/bulk-transfers.validate.js +1 -0
  486. package/dist/server/src/sepa-transfers/index.server.js +1 -0
  487. package/dist/server/src/sepa-transfers/server/sepa-transfers.server.js +1 -0
  488. package/dist/server/src/sepa-transfers/shared/sepa-transfers.api.js +1 -0
  489. package/dist/server/src/sepa-transfers/shared/sepa-transfers.utils.js +1 -0
  490. package/dist/server/src/sepa-transfers/shared/sepa-transfers.validate.js +1 -0
  491. package/dist/server/src/validation/input-param-validation.js +1 -0
  492. package/dist/server/src/validation/operation-settings-validation.js +1 -0
  493. package/dist/server/transactions/index.d.ts +47 -0
  494. package/dist/server/transactions/index.d.ts.map +1 -0
  495. package/dist/server/transactions/transactions.api.d.ts +23 -0
  496. package/dist/server/transactions/transactions.api.d.ts.map +1 -0
  497. package/dist/server/transactions/transactions.d.ts +56 -0
  498. package/dist/server/transactions/transactions.d.ts.map +1 -0
  499. package/dist/server/transactions/transactions.public-api.d.ts +8 -0
  500. package/dist/server/transactions/transactions.public-api.d.ts.map +1 -0
  501. package/dist/server/transactions/transactions.serializer.d.ts +11 -0
  502. package/dist/server/transactions/transactions.serializer.d.ts.map +1 -0
  503. package/dist/server/transactions/transactions.test.d.ts +2 -0
  504. package/dist/server/transactions/transactions.test.d.ts.map +1 -0
  505. package/dist/server/transactions/transactions.types.d.ts +249 -0
  506. package/dist/server/transactions/transactions.types.d.ts.map +1 -0
  507. package/dist/server/transactions/transactions.validation.d.ts +3 -0
  508. package/dist/server/transactions/transactions.validation.d.ts.map +1 -0
  509. package/dist/server/types/index.d.ts +3 -0
  510. package/dist/server/types/index.d.ts.map +1 -0
  511. package/dist/server/types/types.public-api.d.ts +11 -0
  512. package/dist/server/types/types.public-api.d.ts.map +1 -0
  513. package/dist/server/ui/customizable-components/amount-field/qonto-amount-field.d.ts +46 -0
  514. package/dist/server/ui/customizable-components/amount-field/qonto-amount-field.d.ts.map +1 -0
  515. package/dist/server/ui/customizable-components/amount-field/qonto-amount-field.styles.d.ts +2 -0
  516. package/dist/server/ui/customizable-components/amount-field/qonto-amount-field.styles.d.ts.map +1 -0
  517. package/dist/server/ui/customizable-components/amount-field/qonto-amount-field.utils.d.ts +32 -0
  518. package/dist/server/ui/customizable-components/amount-field/qonto-amount-field.utils.d.ts.map +1 -0
  519. package/dist/server/ui/customizable-components/badge-status/qonto-badge-status.d.ts +18 -0
  520. package/dist/server/ui/customizable-components/badge-status/qonto-badge-status.d.ts.map +1 -0
  521. package/dist/server/ui/customizable-components/badge-status/qonto-badge-status.styles.d.ts +2 -0
  522. package/dist/server/ui/customizable-components/badge-status/qonto-badge-status.styles.d.ts.map +1 -0
  523. package/dist/server/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.d.ts +14 -0
  524. package/dist/server/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.d.ts.map +1 -0
  525. package/dist/server/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.d.ts +2 -0
  526. package/dist/server/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.d.ts.map +1 -0
  527. package/dist/server/ui/customizable-components/button/qonto-button.d.ts +11 -0
  528. package/dist/server/ui/customizable-components/button/qonto-button.d.ts.map +1 -0
  529. package/dist/server/ui/customizable-components/button/qonto-button.styles.d.ts +2 -0
  530. package/dist/server/ui/customizable-components/button/qonto-button.styles.d.ts.map +1 -0
  531. package/dist/server/ui/customizable-components/customizable-components.constants.d.ts +2 -0
  532. package/dist/server/ui/customizable-components/customizable-components.constants.d.ts.map +1 -0
  533. package/dist/server/ui/customizable-components/icons/icon-checkmark-rounded-filled.d.ts +2 -0
  534. package/dist/server/ui/customizable-components/icons/icon-checkmark-rounded-filled.d.ts.map +1 -0
  535. package/dist/server/ui/customizable-components/icons/icon-clock-filled.d.ts +2 -0
  536. package/dist/server/ui/customizable-components/icons/icon-clock-filled.d.ts.map +1 -0
  537. package/dist/server/ui/customizable-components/icons/icon-declined.d.ts +2 -0
  538. package/dist/server/ui/customizable-components/icons/icon-declined.d.ts.map +1 -0
  539. package/dist/server/ui/customizable-components/icons/icon-error-filled.d.ts +2 -0
  540. package/dist/server/ui/customizable-components/icons/icon-error-filled.d.ts.map +1 -0
  541. package/dist/server/ui/customizable-components/icons/icon-in-progress.d.ts +2 -0
  542. package/dist/server/ui/customizable-components/icons/icon-in-progress.d.ts.map +1 -0
  543. package/dist/server/ui/customizable-components/icons/icon-warning.d.ts +2 -0
  544. package/dist/server/ui/customizable-components/icons/icon-warning.d.ts.map +1 -0
  545. package/dist/server/ui/customizable-components/lottie-player/index.d.ts +3 -0
  546. package/dist/server/ui/customizable-components/lottie-player/index.d.ts.map +1 -0
  547. package/dist/server/ui/customizable-components/lottie-player/qonto-lottie-player.d.ts +17 -0
  548. package/dist/server/ui/customizable-components/lottie-player/qonto-lottie-player.d.ts.map +1 -0
  549. package/dist/server/ui/customizable-components/lottie-player/qonto-lottie-player.styles.d.ts +2 -0
  550. package/dist/server/ui/customizable-components/lottie-player/qonto-lottie-player.styles.d.ts.map +1 -0
  551. package/dist/server/ui/customizable-components/lottie-player/qonto-lottie-player.types.d.ts +6 -0
  552. package/dist/server/ui/customizable-components/lottie-player/qonto-lottie-player.types.d.ts.map +1 -0
  553. package/dist/server/ui/customizable-components/select-field/index.d.ts +3 -0
  554. package/dist/server/ui/customizable-components/select-field/index.d.ts.map +1 -0
  555. package/dist/server/ui/customizable-components/select-field/qonto-option.d.ts +48 -0
  556. package/dist/server/ui/customizable-components/select-field/qonto-option.d.ts.map +1 -0
  557. package/dist/server/ui/customizable-components/select-field/qonto-select-field.d.ts +111 -0
  558. package/dist/server/ui/customizable-components/select-field/qonto-select-field.d.ts.map +1 -0
  559. package/dist/server/ui/customizable-components/select-field/qonto-select-field.styles.d.ts +2 -0
  560. package/dist/server/ui/customizable-components/select-field/qonto-select-field.styles.d.ts.map +1 -0
  561. package/dist/server/ui/customizable-components/skeleton-loader/qonto-skeleton-loader-line.d.ts +11 -0
  562. package/dist/server/ui/customizable-components/skeleton-loader/qonto-skeleton-loader-line.d.ts.map +1 -0
  563. package/dist/server/ui/customizable-components/skeleton-loader/qonto-skeleton-loader-line.styles.d.ts +2 -0
  564. package/dist/server/ui/customizable-components/skeleton-loader/qonto-skeleton-loader-line.styles.d.ts.map +1 -0
  565. package/dist/server/ui/customizable-components/text/qonto-text-body.d.ts +8 -0
  566. package/dist/server/ui/customizable-components/text/qonto-text-body.d.ts.map +1 -0
  567. package/dist/server/ui/customizable-components/text/qonto-text-body.styles.d.ts +2 -0
  568. package/dist/server/ui/customizable-components/text/qonto-text-body.styles.d.ts.map +1 -0
  569. package/dist/server/ui/customizable-components/text/qonto-text-heading.d.ts +8 -0
  570. package/dist/server/ui/customizable-components/text/qonto-text-heading.d.ts.map +1 -0
  571. package/dist/server/ui/customizable-components/text/qonto-text-heading.styles.d.ts +2 -0
  572. package/dist/server/ui/customizable-components/text/qonto-text-heading.styles.d.ts.map +1 -0
  573. package/dist/server/ui/customizable-components/text-field/index.d.ts +2 -0
  574. package/dist/server/ui/customizable-components/text-field/index.d.ts.map +1 -0
  575. package/dist/server/ui/customizable-components/text-field/qonto-text-field.d.ts +31 -0
  576. package/dist/server/ui/customizable-components/text-field/qonto-text-field.d.ts.map +1 -0
  577. package/dist/server/ui/customizable-components/text-field/qonto-text-field.styles.d.ts +2 -0
  578. package/dist/server/ui/customizable-components/text-field/qonto-text-field.styles.d.ts.map +1 -0
  579. package/dist/server/ui/customizable-components/utils/format-date.d.ts +61 -0
  580. package/dist/server/ui/customizable-components/utils/format-date.d.ts.map +1 -0
  581. package/dist/server/ui/customizable-components/utils/format-money.d.ts +39 -0
  582. package/dist/server/ui/customizable-components/utils/format-money.d.ts.map +1 -0
  583. package/dist/server/ui/customizable-components/utils/locales.d.ts +76 -0
  584. package/dist/server/ui/customizable-components/utils/locales.d.ts.map +1 -0
  585. package/dist/server/ui/customizable-components/utils/storybook-define-custom-props-from-css.d.ts +14 -0
  586. package/dist/server/ui/customizable-components/utils/storybook-define-custom-props-from-css.d.ts.map +1 -0
  587. package/dist/server/ui/index.d.ts +16 -0
  588. package/dist/server/ui/index.d.ts.map +1 -0
  589. package/dist/server/ui/ui-elements/localize/configure-localization.d.ts +6 -0
  590. package/dist/server/ui/ui-elements/localize/configure-localization.d.ts.map +1 -0
  591. package/dist/server/ui/ui-elements/localize/generated/locale-codes.d.ts +14 -0
  592. package/dist/server/ui/ui-elements/localize/generated/locale-codes.d.ts.map +1 -0
  593. package/dist/server/ui/ui-elements/localize/generated/locales/de.d.ts +52 -0
  594. package/dist/server/ui/ui-elements/localize/generated/locales/de.d.ts.map +1 -0
  595. package/dist/server/ui/ui-elements/localize/generated/locales/es.d.ts +52 -0
  596. package/dist/server/ui/ui-elements/localize/generated/locales/es.d.ts.map +1 -0
  597. package/dist/server/ui/ui-elements/localize/generated/locales/fr.d.ts +52 -0
  598. package/dist/server/ui/ui-elements/localize/generated/locales/fr.d.ts.map +1 -0
  599. package/dist/server/ui/ui-elements/localize/generated/locales/it.d.ts +52 -0
  600. package/dist/server/ui/ui-elements/localize/generated/locales/it.d.ts.map +1 -0
  601. package/dist/server/ui/ui-elements/localize/generated/locales/nl.d.ts +52 -0
  602. package/dist/server/ui/ui-elements/localize/generated/locales/nl.d.ts.map +1 -0
  603. package/dist/server/ui/ui-elements/localize/generated/locales/pt.d.ts +52 -0
  604. package/dist/server/ui/ui-elements/localize/generated/locales/pt.d.ts.map +1 -0
  605. package/dist/server/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.d.ts +31 -0
  606. package/dist/server/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.d.ts.map +1 -0
  607. package/dist/server/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.styles.d.ts +2 -0
  608. package/dist/server/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.styles.d.ts.map +1 -0
  609. package/dist/server/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.utils.d.ts +3 -0
  610. package/dist/server/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.utils.d.ts.map +1 -0
  611. package/dist/server/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts +13 -0
  612. package/dist/server/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts.map +1 -0
  613. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.d.ts +21 -0
  614. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.d.ts.map +1 -0
  615. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.d.ts +2 -0
  616. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.d.ts.map +1 -0
  617. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.d.ts +4 -0
  618. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.d.ts.map +1 -0
  619. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.d.ts +20 -0
  620. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.d.ts.map +1 -0
  621. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts +41 -0
  622. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts.map +1 -0
  623. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.d.ts +2 -0
  624. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.d.ts.map +1 -0
  625. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.d.ts +11 -0
  626. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.d.ts.map +1 -0
  627. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.d.ts +2 -0
  628. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.d.ts.map +1 -0
  629. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.d.ts +12 -0
  630. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.d.ts.map +1 -0
  631. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.d.ts +2 -0
  632. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.d.ts.map +1 -0
  633. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts +25 -0
  634. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts.map +1 -0
  635. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.d.ts +2 -0
  636. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.d.ts.map +1 -0
  637. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.utils.d.ts +2 -0
  638. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.utils.d.ts.map +1 -0
  639. package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts +53 -0
  640. package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts.map +1 -0
  641. package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts +41 -0
  642. package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts.map +1 -0
  643. package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.d.ts +2 -0
  644. package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.d.ts.map +1 -0
  645. package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.d.ts +7 -0
  646. package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.d.ts.map +1 -0
  647. package/dist/server/ui/ui-elements/transfer-list/create-transfer-list-element.d.ts +13 -0
  648. package/dist/server/ui/ui-elements/transfer-list/create-transfer-list-element.d.ts.map +1 -0
  649. package/dist/server/ui/ui-elements/transfer-list/transfer-list.d.ts +21 -0
  650. package/dist/server/ui/ui-elements/transfer-list/transfer-list.d.ts.map +1 -0
  651. package/dist/server/ui/ui-elements/transfer-list/transfer-list.events.d.ts +8 -0
  652. package/dist/server/ui/ui-elements/transfer-list/transfer-list.events.d.ts.map +1 -0
  653. package/dist/server/ui/ui-elements/transfer-list/transfer-list.styles.d.ts +2 -0
  654. package/dist/server/ui/ui-elements/transfer-list/transfer-list.styles.d.ts.map +1 -0
  655. package/dist/server/ui/ui-elements/transfer-list/transfer-list.utils.d.ts +7 -0
  656. package/dist/server/ui/ui-elements/transfer-list/transfer-list.utils.d.ts.map +1 -0
  657. package/dist/server/ui/ui-elements.constants.d.ts +5 -0
  658. package/dist/server/ui/ui-elements.constants.d.ts.map +1 -0
  659. package/dist/server/ui/ui-elements.d.ts +18 -0
  660. package/dist/server/ui/ui-elements.d.ts.map +1 -0
  661. package/dist/server/ui/ui-elements.public-api.d.ts +4 -0
  662. package/dist/server/ui/ui-elements.public-api.d.ts.map +1 -0
  663. package/dist/server/ui/ui-elements.types.d.ts +75 -0
  664. package/dist/server/ui/ui-elements.types.d.ts.map +1 -0
  665. package/dist/server/ui/ui-elements.validation.d.ts +5 -0
  666. package/dist/server/ui/ui-elements.validation.d.ts.map +1 -0
  667. package/dist/server/validation/index.d.ts +2 -0
  668. package/dist/server/validation/index.d.ts.map +1 -0
  669. package/dist/server/validation/input-param-validation.d.ts +43 -0
  670. package/dist/server/validation/input-param-validation.d.ts.map +1 -0
  671. package/dist/server/validation/operation-settings-validation.d.ts +275 -0
  672. package/dist/server/validation/operation-settings-validation.d.ts.map +1 -0
  673. package/dist/src/cards/cards.js +1 -1
  674. package/dist/src/common/analytics/amplitude-manager.js +1 -0
  675. package/dist/src/common/analytics/analytics-tracker.js +1 -0
  676. package/dist/src/common/analytics/analytics.constants.js +1 -0
  677. package/dist/src/common/initialize/initialize.js +1 -1
  678. package/dist/src/common/initialize/initialize.validate.js +1 -1
  679. package/dist/src/sepa-transfers/bulk-transfers/client/bulk-transfers.client.js +1 -0
  680. package/dist/src/sepa-transfers/bulk-transfers/index.js +1 -0
  681. package/dist/src/sepa-transfers/bulk-transfers/shared/bulk-transfers.api.js +1 -0
  682. package/dist/src/sepa-transfers/bulk-transfers/shared/bulk-transfers.serializer.js +1 -0
  683. package/dist/src/sepa-transfers/bulk-transfers/shared/bulk-transfers.validate.js +1 -0
  684. package/dist/src/sepa-transfers/client/sepa-transfers.client.js +1 -0
  685. package/dist/src/sepa-transfers/index.js +1 -1
  686. package/dist/src/sepa-transfers/sepa-transfers.js +1 -1
  687. package/dist/src/sepa-transfers/shared/sepa-transfers.api.js +1 -0
  688. package/dist/src/sepa-transfers/shared/sepa-transfers.serializer.js +1 -0
  689. package/dist/src/sepa-transfers/shared/sepa-transfers.utils.js +1 -0
  690. package/dist/src/sepa-transfers/shared/sepa-transfers.validate.js +1 -0
  691. package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.js +7 -7
  692. package/dist/src/validation/operation-settings-validation.js +1 -1
  693. package/dist/types/types.public-api.d.ts +2 -2
  694. package/dist/types/types.public-api.d.ts.map +1 -1
  695. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts +1 -1
  696. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts.map +1 -1
  697. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts +1 -1
  698. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts.map +1 -1
  699. package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts.map +1 -1
  700. package/dist/validation/operation-settings-validation.d.ts +152 -0
  701. package/dist/validation/operation-settings-validation.d.ts.map +1 -1
  702. package/package.json +18 -8
  703. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.api.d.ts.map +0 -1
  704. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.serializer.d.ts.map +0 -1
  705. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.test.d.ts +0 -2
  706. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.test.d.ts.map +0 -1
  707. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.types.d.ts.map +0 -1
  708. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.validate.d.ts.map +0 -1
  709. package/dist/sepa-transfers/sepa-transfers.api.d.ts.map +0 -1
  710. package/dist/sepa-transfers/sepa-transfers.serializer.d.ts.map +0 -1
  711. package/dist/sepa-transfers/sepa-transfers.test.d.ts +0 -2
  712. package/dist/sepa-transfers/sepa-transfers.test.d.ts.map +0 -1
  713. package/dist/sepa-transfers/sepa-transfers.types.d.ts.map +0 -1
  714. package/dist/sepa-transfers/sepa-transfers.utils.d.ts.map +0 -1
  715. package/dist/sepa-transfers/sepa-transfers.validate.d.ts.map +0 -1
  716. package/dist/src/sepa-transfers/bulk-transfers/bulk-transfers.api.js +0 -1
  717. package/dist/src/sepa-transfers/bulk-transfers/bulk-transfers.js +0 -1
  718. package/dist/src/sepa-transfers/bulk-transfers/bulk-transfers.validate.js +0 -1
  719. package/dist/src/sepa-transfers/sepa-transfers.api.js +0 -1
  720. package/dist/src/sepa-transfers/sepa-transfers.public-api.js +0 -1
  721. package/dist/src/sepa-transfers/sepa-transfers.utils.js +0 -1
  722. package/dist/src/sepa-transfers/sepa-transfers.validate.js +0 -1
  723. /package/dist/sepa-transfers/bulk-transfers/{bulk-transfers.serializer.d.ts → shared/bulk-transfers.serializer.d.ts} +0 -0
  724. /package/dist/sepa-transfers/bulk-transfers/{bulk-transfers.validate.d.ts → shared/bulk-transfers.validate.d.ts} +0 -0
  725. /package/dist/{src/sepa-transfers/bulk-transfers → server/src/sepa-transfers/bulk-transfers/shared}/bulk-transfers.serializer.js +0 -0
  726. /package/dist/{src/sepa-transfers → server/src/sepa-transfers/shared}/sepa-transfers.serializer.js +0 -0
package/dist/index.umd.js CHANGED
@@ -1,21 +1,20 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).QontoEmbed={})}(this,(function(exports){"use strict";class AuthManager{constructor(){this.accessToken=null,this.stagingToken=null}static getInstance(){return AuthManager.instance||(AuthManager.instance=new AuthManager),AuthManager.instance}setAccessToken(e){this.accessToken=e}getAccessToken(){return this.accessToken}hasAccessToken(){return null!==this.accessToken&&""!==this.accessToken}clearAccessToken(){this.accessToken=null}setStagingToken(e){this.stagingToken=e}getStagingToken(){return this.stagingToken}hasStagingToken(){return null!==this.stagingToken&&""!==this.stagingToken}clearStagingToken(){this.stagingToken=null}}const authManager=AuthManager.getInstance();class QontoEmbedSdkError extends Error{constructor(){super(),this.stack=""}toString(){return`${this.name}: ${this.message}`}}class AuthenticationError extends QontoEmbedSdkError{constructor(){super(),this.name="AuthenticationError",this.message="Authentication failed due to missing or invalid authentication method. Provide either a proxyRequestFunction (recommended) or accessToken, either as parameters or by calling the initialize function first."}}function validatePresenceOfAuthToken(){if(!authManager.hasAccessToken())throw new AuthenticationError;return authManager.getAccessToken()}class InvalidParametersError extends QontoEmbedSdkError{constructor(e){super(),this.name="InvalidParametersError",this.invalidParameters=Array.isArray(e)?e:[e],this.message=`Invalid parameters were passed to the function:\n${this.invalidParameters.map((e=>e)).join("\n")}`}}const IFRAME_EVENTS={READY:"qonto.ready"},ACTIONS={CARD_SEE:"card.see",CARD_SEE_DETAILS:"card.see-details",CARD_ORDER:"card.order",CARD_UNLOCK:"card.unlock",CARD_SHOW_PIN:"card.show.pin",CARD_SET_PIN:"card.set.pin",TRANSFER_SINGLE_CREATE:"transfer.single.create",TRANSFER_BULK_CREATE:"transfer.bulk.create",BENEFICIARIES_TRUST:"beneficiary.trust"},ENVIRONMENTS={PRODUCTION:"production",STAGING:"staging",LOCAL:"local"},BRANCHES={MASTER:"master",SANDBOX:"sandbox",QA:"qa"},ACTIVITY_TAGS={ATM:"atm",FALLBACK:"fallback",FEES:"fees",FINANCE:"finance",FOOD_AND_GROCERY:"food_and_grocery",GAS_STATION:"gas_station",HARDWARE_AND_EQUIPMENT:"hardware_and_equipment",HOTEL_AND_LODGING:"hotel_and_lodging",INSURANCE:"insurance",IT_AND_ELECTRONICS:"it_and_electronics",LEGAL_AND_ACCOUNTING:"legal_and_accounting",LOGISTICS:"logistics",MANUFACTURING:"manufacturing",MARKETING:"marketing",OFFICE_RENTAL:"office_rental",OFFICE_SUPPLY:"office_supply",ONLINE_SERVICE:"online_service",OTHER_EXPENSE:"other_expense",OTHER_INCOME:"other_income",OTHER_SERVICE:"other_service",PENDING:"pending",REFUND:"refund",RESTAURANT_AND_BAR:"restaurant_and_bar",SALES:"sales",SALARY:"salary",SUBSCRIPTION:"subscription",TAX:"tax",TRANSPORT:"transport",TREASURY_AND_INTERCO:"treasury_and_interco",UTILITY:"utility",VOUCHER:"voucher"},BENEFICIARY_STATUSES={PENDING:"pending",VALIDATED:"validated",DECLINED:"declined"},LOCALES$1={EN:"en",FR:"fr",DE:"de",ES:"es",IT:"it",PT:"pt"},TRANSFER_DECLINE_REASONS={BENEFICIARY_BIC_INVALID:"beneficiary_bic_invalid",BENEFICIARY_IBAN_INVALID:"beneficiary_iban_invalid",BENEFICIARY_STATUS:"beneficiary_status",BENEFICIARY_NETWORK_RULES_ERROR:"beneficiary_network_rules_error",ORGANISATION_COMPLIANCE_REASONS:"organisation_compliance_reasons",DEBIT_ACCOUNT_INSUFFICIENT_FUNDS:"debit_account_insufficient_funds",QONTO_PROCESSING_FAILED:"qonto_processing_failed"},TRANSFER_STATUSES={PENDING:"pending",PROCESSING:"processing",CANCELED:"canceled",DECLINED:"declined",SETTLED:"settled",FAILED:"failed",COMPLETED:"completed"},TRANSACTION_STATUSES={PENDING:"pending",DECLINED:"declined",COMPLETED:"completed"},MFA_METHODS={PASSKEY:"passkey",SMS_OTP:"sms-otp",PAIRED_DEVICE:"paired-device",MOCK:"mock"},AMOUNT_REQUIRING_ATTACHMENTS=3e4,VOP_CHECK_RESULTS={MATCH_RESULT_MATCH:"MATCH_RESULT_MATCH",MATCH_RESULT_NO_MATCH:"MATCH_RESULT_NO_MATCH",MATCH_RESULT_CLOSE_MATCH:"MATCH_RESULT_CLOSE_MATCH",MATCH_RESULT_NOT_POSSIBLE:"MATCH_RESULT_NOT_POSSIBLE",MATCH_RESULT_UNSPECIFIED:"MATCH_RESULT_UNSPECIFIED"},VOP_DECISIONS={ACCEPT:"ACCEPT",REJECT:"REJECT"},AUTH_LINK_ACTIONS={CARD_DISPLAY:"display_card",PAYMENT_LINK_CREATE:"create_payment_link",SEPA_TRANSFER_CREATE:"create_sepa_transfer"},HTTP_CODES={PRECONDITION_REQUIRED:428};var constants$1=Object.freeze({__proto__:null,ACTIONS:ACTIONS,ACTIVITY_TAGS:ACTIVITY_TAGS,AMOUNT_REQUIRING_ATTACHMENTS:AMOUNT_REQUIRING_ATTACHMENTS,AUTH_LINK_ACTIONS:AUTH_LINK_ACTIONS,BENEFICIARY_STATUSES:BENEFICIARY_STATUSES,BRANCHES:BRANCHES,ENVIRONMENTS:ENVIRONMENTS,HTTP_CODES:HTTP_CODES,IFRAME_EVENTS:IFRAME_EVENTS,LOCALES:LOCALES$1,MFA_METHODS:MFA_METHODS,TRANSACTION_STATUSES:TRANSACTION_STATUSES,TRANSFER_DECLINE_REASONS:TRANSFER_DECLINE_REASONS,TRANSFER_STATUSES:TRANSFER_STATUSES,VOP_CHECK_RESULTS:VOP_CHECK_RESULTS,VOP_DECISIONS:VOP_DECISIONS});class OperationSettingsManager{constructor(){this.mfaPreference=MFA_METHODS.PASSKEY,this.debugMode=!1}static getInstance(){return OperationSettingsManager.instance||(OperationSettingsManager.instance=new OperationSettingsManager),OperationSettingsManager.instance}setSettings(e){e.uiParentElementId&&(this.uiParentElementId=e.uiParentElementId),e.mfaPreference&&(this.mfaPreference=e.mfaPreference),e.debugMode&&(this.debugMode=e.debugMode),e.proxyRequestFunction&&(this.proxyRequestFunction=e.proxyRequestFunction),e.proxyEndpointDescriptor&&(this.proxyEndpointDescriptor=e.proxyEndpointDescriptor)}getUIParentElementId(){return this.uiParentElementId}getMFAPreference(){return this.mfaPreference}getDebugMode(){return this.debugMode}getProxyRequestFunction(){return this.proxyRequestFunction}getProxyEndpointDescriptor(){return this.proxyEndpointDescriptor}clearSettings(){this.uiParentElementId=void 0,this.mfaPreference=MFA_METHODS.PASSKEY,this.debugMode=!1,this.proxyRequestFunction=void 0}getSettings(){return{uiParentElementId:this.uiParentElementId,mfaPreference:this.mfaPreference,debugMode:this.debugMode,proxyRequestFunction:this.proxyRequestFunction}}}const operationSettingsManager=OperationSettingsManager.getInstance(),EMBED_BASE_URL_PROD="https://embed.qonto.com",EMBED_BASE_URL_STAGING="https://embed-js{branch}.staging.qonto.co",EMBED_BASE_URL_LOCAL="https://embed.dev.qonto.co",urlsPerEnvironment={[ENVIRONMENTS.PRODUCTION]:{EMBED_BASE_URL:EMBED_BASE_URL_PROD,EMBED_URL:`${EMBED_BASE_URL_PROD}/connect`,THIRD_PARTY_API_URL:"https://thirdparty.qonto.com"},[ENVIRONMENTS.STAGING]:{EMBED_BASE_URL:EMBED_BASE_URL_STAGING,EMBED_URL:`${EMBED_BASE_URL_STAGING}/connect`,THIRD_PARTY_API_URL:"https://thirdparty{branch}.staging.qonto.co"},[ENVIRONMENTS.LOCAL]:{EMBED_BASE_URL:EMBED_BASE_URL_LOCAL,EMBED_URL:`${EMBED_BASE_URL_LOCAL}/connect`,THIRD_PARTY_API_URL:"https://thirdparty{branch}.staging.qonto.co"}};class EnvironmentManager{constructor(){let e,t;this.environment=ENVIRONMENTS.PRODUCTION,this.branch=BRANCHES.SANDBOX,"undefined"!=typeof process&&process.env&&(e=process.env.QONTO_EMBED_ENVIRONMENT,t=process.env.QONTO_EMBED_BRANCH),this.environment=Object.values(ENVIRONMENTS).includes(e)?e:ENVIRONMENTS.PRODUCTION,this.branch=Object.values(BRANCHES).includes(t)?t:BRANCHES.SANDBOX}static getInstance(){return EnvironmentManager.instance||(EnvironmentManager.instance=new EnvironmentManager),EnvironmentManager.instance}setEnvironment(e){this.environment=e}getEnvironment(){return this.environment}isProductionEnvironment(){return this.environment===ENVIRONMENTS.PRODUCTION}setBranch(e){this.branch=e}getBranch(){return this.branch}clear(){this.environment=ENVIRONMENTS.PRODUCTION,this.branch=BRANCHES.MASTER}getEnvironmentUrls(){if(this.environment===ENVIRONMENTS.PRODUCTION)return urlsPerEnvironment.production;{const e=urlsPerEnvironment[this.environment];return Object.entries(e).reduce(((e,[t,r])=>({...e,[t]:r.replace("{branch}",`-${this.branch}`)})),{})}}}const environmentManager=EnvironmentManager.getInstance(),defaultOperationSettingsValidationConfiguration={requiresUI:!1};function validateOperationSettingsParams(e,{requiresUI:t}=defaultOperationSettingsValidationConfiguration){const r=e?.uiParentElementId||operationSettingsManager.getUIParentElementId();if(t){if(!r)throw new InvalidParametersError("operationSettings parameter must have a uiParentElementId for the called function.\nYou can pass it either to the initialize function or in a per function basis.");if(!["string","function"].includes(typeof r))throw new InvalidParametersError("operationSettings.uiParentElementId must be a string or a function returning an HTMLElement")}const a=e?.mfaPreference||operationSettingsManager.getMFAPreference();if(a){const e=getMfaValuesAvailableInCurrentEnvironment(Object.values(MFA_METHODS));if(!e.includes(a))throw new InvalidParametersError(`operationSettings.mfaPreference must be one of ${e.join(", ")}`);if(environmentManager.isProductionEnvironment()&&a===MFA_METHODS.MOCK)throw new InvalidParametersError("operationSettings.mfaPreference cannot be set to mock in production environment.")}const n=e?.debugMode||operationSettingsManager.getDebugMode();if(void 0!==n&&"boolean"!=typeof n)throw new InvalidParametersError("operationSettings.debugMode must be a boolean.");const i=e?.proxyRequestFunction||operationSettingsManager.getProxyRequestFunction();if(i&&"function"!=typeof i)throw new InvalidParametersError("operationSettings.proxyRequestFunction must be a function.");const o=e?.proxyEndpointDescriptor||operationSettingsManager.getProxyEndpointDescriptor();if(o&&!o.path)throw new InvalidParametersError("operationSettings.proxyEndpointDescriptor must have at least a string-formatted path property.");return{...e,uiParentElementId:r,mfaPreference:a,debugMode:n,proxyRequestFunction:i,proxyEndpointDescriptor:o}}function getMfaValuesAvailableInCurrentEnvironment(e){return environmentManager.isProductionEnvironment()?e.filter((e=>e!==MFA_METHODS.MOCK)):e}const SUPPORTED_LOCALES=Object.values(LOCALES$1);function validateLocale(e){if(!isLocaleSupported(e))throw new InvalidParametersError(`Unsupported locale: ${e}. The locale must be one of: ${SUPPORTED_LOCALES.join(", ")}.`);return e}function isLocaleSupported(e){return SUPPORTED_LOCALES.includes(e)}function validateInitializeParams(e){if(!e?.accessToken&&!e?.operationSettings?.proxyRequestFunction)throw new InvalidParametersError("Either operationSettings.proxyRequestFunction or access token is required when calling initialize()");return e?.operationSettings&&validateOperationSettingsParams(e.operationSettings),validateEnvironmentParams(e),e.locale&&validateLocale(e.locale),e}function validateEnvironmentParams(e){if(e.environment){if(!["production","staging","local"].includes(e.environment))throw new InvalidParametersError('If provided, environment must be either "production" or "staging"\nYou can "import constants from @qonto/embed-sdk/common" and then use "constants.environment.PRODUCTION" or "constants.environment.STAGING"');if(e.branch&&!["master","sandbox","qa"].includes(e.branch))throw new InvalidParametersError('If provided, branch must be either "master", "sandbox" or "qa"\nYou can "import constants from @qonto/embed-sdk/common" and then use "constants.branch.MASTER" or "constants.environment.SANDBOX" and so on')}return e}class LocaleManager{constructor(){this.currentLocale="en"}static getInstance(){return LocaleManager.instance||(LocaleManager.instance=new LocaleManager),LocaleManager.instance}setLocale(e){this.currentLocale=e}getLocale(){return this.currentLocale}setDefaultLocale(){this.currentLocale="en"}}const localeManager=LocaleManager.getInstance(),DEBUG_BUILD$3="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,SDK_VERSION="8.55.0",GLOBAL_OBJ=globalThis;function getGlobalSingleton(e,t,r){const a=r||GLOBAL_OBJ,n=a.__SENTRY__=a.__SENTRY__||{},i=n[SDK_VERSION]=n[SDK_VERSION]||{};return i[e]||(i[e]=t())}const DEBUG_BUILD$2="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,PREFIX="Sentry Logger ",CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],originalConsoleMethods={};function consoleSandbox(e){if(!("console"in GLOBAL_OBJ))return e();const t=GLOBAL_OBJ.console,r={},a=Object.keys(originalConsoleMethods);a.forEach((e=>{const a=originalConsoleMethods[e];r[e]=t[e],t[e]=a}));try{return e()}finally{a.forEach((e=>{t[e]=r[e]}))}}function makeLogger(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return DEBUG_BUILD$2?CONSOLE_LEVELS.forEach((r=>{t[r]=(...t)=>{e&&consoleSandbox((()=>{GLOBAL_OBJ.console[r](`${PREFIX}[${r}]:`,...t)}))}})):CONSOLE_LEVELS.forEach((e=>{t[e]=()=>{}})),t}const logger=getGlobalSingleton("logger",makeLogger),STACKTRACE_FRAME_LIMIT=50,UNKNOWN_FUNCTION="?",WEBPACK_ERROR_REGEXP=/\(error: (.*)\)/,STRIP_FRAME_REGEXP=/captureMessage|captureException/;function createStackParser(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,r=0,a=0)=>{const n=[],i=e.split("\n");for(let e=r;e<i.length;e++){const r=i[e];if(r.length>1024)continue;const o=WEBPACK_ERROR_REGEXP.test(r)?r.replace(WEBPACK_ERROR_REGEXP,"$1"):r;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){n.push(t);break}}if(n.length>=STACKTRACE_FRAME_LIMIT+a)break}}return stripSentryFramesAndReverse(n.slice(a))}}function stackParserFromStackParserOptions(e){return Array.isArray(e)?createStackParser(...e):e}function stripSentryFramesAndReverse(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(getLastStackFrame(t).function||"")&&t.pop(),t.reverse(),STRIP_FRAME_REGEXP.test(getLastStackFrame(t).function||"")&&(t.pop(),STRIP_FRAME_REGEXP.test(getLastStackFrame(t).function||"")&&t.pop()),t.slice(0,STACKTRACE_FRAME_LIMIT).map((e=>({...e,filename:e.filename||getLastStackFrame(t).filename,function:e.function||UNKNOWN_FUNCTION})))}function getLastStackFrame(e){return e[e.length-1]||{}}const defaultFunctionName="<anonymous>";function getFunctionName(e){try{return e&&"function"==typeof e&&e.name||defaultFunctionName}catch(e){return defaultFunctionName}}function getFramesFromEvent(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}const handlers={},instrumented={};function addHandler(e,t){handlers[e]=handlers[e]||[],handlers[e].push(t)}function maybeInstrument(e,t){if(!instrumented[e]){instrumented[e]=!0;try{t()}catch(t){DEBUG_BUILD$2&&logger.error(`Error while instrumenting ${e}`,t)}}}function triggerHandlers(e,t){const r=e&&handlers[e];if(r)for(const a of r)try{a(t)}catch(t){DEBUG_BUILD$2&&logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${getFunctionName(a)}\nError:`,t)}}let _oldOnErrorHandler=null;function addGlobalErrorInstrumentationHandler(e){const t="error";addHandler(t,e),maybeInstrument(t,instrumentError)}function instrumentError(){_oldOnErrorHandler=GLOBAL_OBJ.onerror,GLOBAL_OBJ.onerror=function(e,t,r,a,n){return triggerHandlers("error",{column:a,error:n,line:r,msg:e,url:t}),!!_oldOnErrorHandler&&_oldOnErrorHandler.apply(this,arguments)},GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let _oldOnUnhandledRejectionHandler=null;function addGlobalUnhandledRejectionInstrumentationHandler(e){const t="unhandledrejection";addHandler(t,e),maybeInstrument(t,instrumentUnhandledRejection)}function instrumentUnhandledRejection(){_oldOnUnhandledRejectionHandler=GLOBAL_OBJ.onunhandledrejection,GLOBAL_OBJ.onunhandledrejection=function(e){return triggerHandlers("unhandledrejection",e),!_oldOnUnhandledRejectionHandler||_oldOnUnhandledRejectionHandler.apply(this,arguments)},GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function getMainCarrier(){return getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function getSentryCarrier(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||SDK_VERSION,t[SDK_VERSION]=t[SDK_VERSION]||{}}const objectToString=Object.prototype.toString;function isError(e){switch(objectToString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return isInstanceOf(e,Error)}}function isBuiltin(e,t){return objectToString.call(e)===`[object ${t}]`}function isErrorEvent$1(e){return isBuiltin(e,"ErrorEvent")}function isDOMError(e){return isBuiltin(e,"DOMError")}function isDOMException(e){return isBuiltin(e,"DOMException")}function isString(e){return isBuiltin(e,"String")}function isParameterizedString(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function isPrimitive(e){return null===e||isParameterizedString(e)||"object"!=typeof e&&"function"!=typeof e}function isPlainObject(e){return isBuiltin(e,"Object")}function isEvent(e){return"undefined"!=typeof Event&&isInstanceOf(e,Event)}function isElement(e){return"undefined"!=typeof Element&&isInstanceOf(e,Element)}function isRegExp(e){return isBuiltin(e,"RegExp")}function isThenable(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function isSyntheticEvent(e){return isPlainObject(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function isInstanceOf(e,t){try{return e instanceof t}catch(e){return!1}}function isVueViewModel(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const WINDOW$4=GLOBAL_OBJ,DEFAULT_MAX_STRING_LENGTH=80;function htmlTreeAsString(e,t={}){if(!e)return"<unknown>";try{let r=e;const a=5,n=[];let i=0,o=0;const s=" > ",l=s.length;let c;const h=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||DEFAULT_MAX_STRING_LENGTH;for(;r&&i++<a&&(c=_htmlElementAsString(r,h),!("html"===c||i>1&&o+n.length*l+c.length>=d));)n.push(c),o+=c.length,r=r.parentNode;return n.reverse().join(s)}catch(e){return"<unknown>"}}function _htmlElementAsString(e,t){const r=e,a=[];if(!r||!r.tagName)return"";if(WINDOW$4.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}a.push(r.tagName.toLowerCase());const n=t&&t.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(n&&n.length)n.forEach((e=>{a.push(`[${e[0]}="${e[1]}"]`)}));else{r.id&&a.push(`#${r.id}`);const e=r.className;if(e&&isString(e)){const t=e.split(/\s+/);for(const e of t)a.push(`.${e}`)}}const i=["aria-label","type","name","title","alt"];for(const e of i){const t=r.getAttribute(e);t&&a.push(`[${e}="${t}"]`)}return a.join("")}function getLocationHref(){try{return WINDOW$4.document.location.href}catch(e){return""}}function getComponentName(e){if(!WINDOW$4.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function truncate(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function safeJoin(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t<e.length;t++){const a=e[t];try{isVueViewModel(a)?r.push("[VueViewModel]"):r.push(String(a))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function isMatchingPattern(e,t,r=!1){return!!isString(e)&&(isRegExp(t)?t.test(e):!!isString(t)&&(r?e===t:e.includes(t)))}function stringMatchesSomePattern(e,t=[],r=!1){return t.some((t=>isMatchingPattern(e,t,r)))}function fill(e,t,r){if(!(t in e))return;const a=e[t],n=r(a);"function"==typeof n&&markFunctionWrapped(n,a);try{e[t]=n}catch(r){DEBUG_BUILD$2&&logger.log(`Failed to replace method "${t}" in object`,e)}}function addNonEnumerableProperty(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){DEBUG_BUILD$2&&logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function markFunctionWrapped(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,addNonEnumerableProperty(e,"__sentry_original__",t)}catch(e){}}function getOriginalFunction(e){return e.__sentry_original__}function convertToPlainObject(e){if(isError(e))return{message:e.message,name:e.name,stack:e.stack,...getOwnProperties(e)};if(isEvent(e)){const t={type:e.type,target:serializeEventTarget(e.target),currentTarget:serializeEventTarget(e.currentTarget),...getOwnProperties(e)};return"undefined"!=typeof CustomEvent&&isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}return e}function serializeEventTarget(e){try{return isElement(e)?htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function getOwnProperties(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function extractExceptionKeysForMessage(e,t=40){const r=Object.keys(convertToPlainObject(e));r.sort();const a=r[0];if(!a)return"[object has no keys]";if(a.length>=t)return truncate(a,t);for(let e=r.length;e>0;e--){const a=r.slice(0,e).join(", ");if(!(a.length>t))return e===r.length?a:truncate(a,t)}return""}function dropUndefinedKeys(e){return _dropUndefinedKeys(e,new Map)}function _dropUndefinedKeys(e,t){if(isPojo(e)){const r=t.get(e);if(void 0!==r)return r;const a={};t.set(e,a);for(const r of Object.getOwnPropertyNames(e))void 0!==e[r]&&(a[r]=_dropUndefinedKeys(e[r],t));return a}if(Array.isArray(e)){const r=t.get(e);if(void 0!==r)return r;const a=[];return t.set(e,a),e.forEach((e=>{a.push(_dropUndefinedKeys(e,t))})),a}return e}function isPojo(e){if(!isPlainObject(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}const ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return Date.now()/ONE_SECOND_IN_MS}function createUnixTimestampInSecondsFunc(){const{performance:e}=GLOBAL_OBJ;if(!e||!e.now)return dateTimestampInSeconds;const t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/ONE_SECOND_IN_MS}const timestampInSeconds=createUnixTimestampInSecondsFunc();function uuid4(){const e=GLOBAL_OBJ,t=e.crypto||e.msCrypto;let r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function getFirstException(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function getEventDescription(e){const{message:t,event_id:r}=e;if(t)return t;const a=getFirstException(e);return a?a.type&&a.value?`${a.type}: ${a.value}`:a.type||a.value||r||"<unknown>":r||"<unknown>"}function addExceptionTypeValue(e,t,r){const a=e.exception=e.exception||{},n=a.values=a.values||[],i=n[0]=n[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function addExceptionMechanism(e,t){const r=getFirstException(e);if(!r)return;const a=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...a,...t},t&&"data"in t){const e={...a&&a.data,...t.data};r.mechanism.data=e}}function checkOrSetAlreadyCaught(e){if(isAlreadyCaptured(e))return!0;try{addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch(e){}return!1}function isAlreadyCaptured(e){try{return e.__sentry_captured__}catch(e){}}var States;function resolvedSyncPromise(e){return new SyncPromise((t=>{t(e)}))}function rejectedSyncPromise(e){return new SyncPromise(((t,r)=>{r(e)}))}(()=>{const{performance:e}=GLOBAL_OBJ;if(!e||!e.now)return;const t=36e5,r=e.now(),a=Date.now(),n=e.timeOrigin?Math.abs(e.timeOrigin+r-a):t,i=n<t,o=e.timing&&e.timing.navigationStart,s="number"==typeof o?Math.abs(o+r-a):t;(i||s<t)&&(n<=s&&e.timeOrigin)})(),function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(States||(States={}));class SyncPromise{constructor(e){SyncPromise.prototype.__init.call(this),SyncPromise.prototype.__init2.call(this),SyncPromise.prototype.__init3.call(this),SyncPromise.prototype.__init4.call(this),this._state=States.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new SyncPromise(((r,a)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){a(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){a(e)}else a(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new SyncPromise(((t,r)=>{let a,n;return this.then((t=>{n=!1,a=t,e&&e()}),(t=>{n=!0,a=t,e&&e()})).then((()=>{n?r(a):t(a)}))}))}__init(){this._resolve=e=>{this._setResult(States.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(States.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===States.PENDING&&(isThenable(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===States.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===States.RESOLVED&&e[1](this._value),this._state===States.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function makeSession(e){const t=timestampInSeconds(),r={sid:uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>sessionToJSON(r)};return e&&updateSession(r,e),r}function updateSession(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||timestampInSeconds(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:uuid4()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function closeSession(e,t){let r={};"ok"===e.status&&(r={status:"exited"}),updateSession(e,r)}function sessionToJSON(e){return dropUndefinedKeys({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function generateTraceId(){return uuid4()}function generateSpanId(){return uuid4().substring(16)}function merge(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const a={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(a[e]=merge(a[e],t[e],r-1));return a}const SCOPE_SPAN_FIELD="_sentrySpan";function _setSpanForScope(e,t){t?addNonEnumerableProperty(e,SCOPE_SPAN_FIELD,t):delete e[SCOPE_SPAN_FIELD]}function _getSpanForScope(e){return e[SCOPE_SPAN_FIELD]}const DEFAULT_MAX_BREADCRUMBS=100;class ScopeClass{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:generateTraceId(),spanId:generateSpanId()}}clone(){const e=new ScopeClass;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,_setSpanForScope(e,_getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[r,a]=t instanceof Scope?[t.getScopeData(),t.getRequestSession()]:isPlainObject(t)?[e,e.requestSession]:[],{tags:n,extra:i,user:o,contexts:s,level:l,fingerprint:c=[],propagationContext:h}=r||{};return this._tags={...this._tags,...n},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),c.length&&(this._fingerprint=c),h&&(this._propagationContext=h),a&&(this._requestSession=a),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,_setSpanForScope(this,void 0),this._attachments=[],this.setPropagationContext({traceId:generateTraceId()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:DEFAULT_MAX_BREADCRUMBS;if(r<=0)return this;const a={timestamp:dateTimestampInSeconds(),...e};return this._breadcrumbs.push(a),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=merge(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:generateSpanId(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t&&t.event_id?t.event_id:uuid4();if(!this._client)return logger.warn("No client configured on scope - will not capture exception!"),r;const a=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:a,...t,event_id:r},this),r}captureMessage(e,t,r){const a=r&&r.event_id?r.event_id:uuid4();if(!this._client)return logger.warn("No client configured on scope - will not capture message!"),a;const n=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:n,...r,event_id:a},this),a}captureEvent(e,t){const r=t&&t.event_id?t.event_id:uuid4();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(logger.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Scope=ScopeClass;function getDefaultCurrentScope(){return getGlobalSingleton("defaultCurrentScope",(()=>new Scope))}function getDefaultIsolationScope(){return getGlobalSingleton("defaultIsolationScope",(()=>new Scope))}class AsyncContextStack{constructor(e,t){let r,a;r=e||new Scope,a=t||new Scope,this._stack=[{scope:r}],this._isolationScope=a}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(e){throw this._popScope(),e}return isThenable(r)?r.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function getAsyncContextStack(){const e=getSentryCarrier(getMainCarrier());return e.stack=e.stack||new AsyncContextStack(getDefaultCurrentScope(),getDefaultIsolationScope())}function withScope$1(e){return getAsyncContextStack().withScope(e)}function withSetScope(e,t){const r=getAsyncContextStack();return r.withScope((()=>(r.getStackTop().scope=e,t(e))))}function withIsolationScope(e){return getAsyncContextStack().withScope((()=>e(getAsyncContextStack().getIsolationScope())))}function getStackAsyncContextStrategy(){return{withIsolationScope:withIsolationScope,withScope:withScope$1,withSetScope:withSetScope,withSetIsolationScope:(e,t)=>withIsolationScope(t),getCurrentScope:()=>getAsyncContextStack().getScope(),getIsolationScope:()=>getAsyncContextStack().getIsolationScope()}}function getAsyncContextStrategy(e){const t=getSentryCarrier(e);return t.acs?t.acs:getStackAsyncContextStrategy()}function getCurrentScope(){return getAsyncContextStrategy(getMainCarrier()).getCurrentScope()}function getIsolationScope(){return getAsyncContextStrategy(getMainCarrier()).getIsolationScope()}function getGlobalScope(){return getGlobalSingleton("globalScope",(()=>new Scope))}function withScope(...e){const t=getAsyncContextStrategy(getMainCarrier());if(2===e.length){const[r,a]=e;return r?t.withSetScope(r,a):t.withScope(a)}return t.withScope(e[0])}function getClient(){return getCurrentScope().getClient()}function getTraceContextFromScope(e){const t=e.getPropagationContext(),{traceId:r,spanId:a,parentSpanId:n}=t;return dropUndefinedKeys({trace_id:r,span_id:a,parent_span_id:n})}const METRICS_SPAN_FIELD="_sentryMetrics";function getMetricSummaryJsonForSpan(e){const t=e[METRICS_SPAN_FIELD];if(!t)return;const r={};for(const[,[e,a]]of t){(r[e]||(r[e]=[])).push(dropUndefinedKeys(a))}return r}const SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source",SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",SPAN_STATUS_UNSET=0,SPAN_STATUS_OK=1,SENTRY_BAGGAGE_KEY_PREFIX="sentry-",SENTRY_BAGGAGE_KEY_PREFIX_REGEX=/^sentry-/;function baggageHeaderToDynamicSamplingContext(e){const t=parseBaggageHeader(e);if(!t)return;const r=Object.entries(t).reduce(((e,[t,r])=>{if(t.match(SENTRY_BAGGAGE_KEY_PREFIX_REGEX)){e[t.slice(SENTRY_BAGGAGE_KEY_PREFIX.length)]=r}return e}),{});return Object.keys(r).length>0?r:void 0}function parseBaggageHeader(e){if(e&&(isString(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const r=baggageHeaderToObject(t);return Object.entries(r).forEach((([t,r])=>{e[t]=r})),e}),{}):baggageHeaderToObject(e)}function baggageHeaderToObject(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,r])=>(t&&r&&(e[t]=r),e)),{})}const TRACE_FLAG_SAMPLED=1;let hasShownSpanDropWarning=!1;function spanToTraceContext(e){const{spanId:t,traceId:r,isRemote:a}=e.spanContext();return dropUndefinedKeys({parent_span_id:a?t:spanToJSON(e).parent_span_id,span_id:a?generateSpanId():t,trace_id:r})}function spanTimeInputToSeconds(e){return"number"==typeof e?ensureTimestampInSeconds(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ensureTimestampInSeconds(e.getTime()):timestampInSeconds()}function ensureTimestampInSeconds(e){return e>9999999999?e/1e3:e}function spanToJSON(e){if(spanIsSentrySpan(e))return e.getSpanJSON();try{const{spanId:t,traceId:r}=e.spanContext();if(spanIsOpenTelemetrySdkTraceBaseSpan(e)){const{attributes:a,startTime:n,name:i,endTime:o,parentSpanId:s,status:l}=e;return dropUndefinedKeys({span_id:t,trace_id:r,data:a,description:i,parent_span_id:s,start_timestamp:spanTimeInputToSeconds(n),timestamp:spanTimeInputToSeconds(o)||void 0,status:getStatusMessage(l),op:a[SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:a[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:getMetricSummaryJsonForSpan(e)})}return{span_id:t,trace_id:r}}catch(e){return{}}}function spanIsOpenTelemetrySdkTraceBaseSpan(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function spanIsSentrySpan(e){return"function"==typeof e.getSpanJSON}function spanIsSampled(e){const{traceFlags:t}=e.spanContext();return t===TRACE_FLAG_SAMPLED}function getStatusMessage(e){if(e&&e.code!==SPAN_STATUS_UNSET)return e.code===SPAN_STATUS_OK?"ok":e.message||"unknown_error"}const ROOT_SPAN_FIELD="_sentryRootSpan";function getRootSpan(e){return e[ROOT_SPAN_FIELD]||e}function showSpanDropWarning(){hasShownSpanDropWarning||(consoleSandbox((()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")})),hasShownSpanDropWarning=!0)}function hasTracingEnabled(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=getClient(),r=t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const DEFAULT_ENVIRONMENT="production",FROZEN_DSC_FIELD="_frozenDsc";function getDynamicSamplingContextFromClient(e,t){const r=t.getOptions(),{publicKey:a}=t.getDsn()||{},n=dropUndefinedKeys({environment:r.environment||DEFAULT_ENVIRONMENT,release:r.release,public_key:a,trace_id:e});return t.emit("createDsc",n),n}function getDynamicSamplingContextFromScope(e,t){const r=t.getPropagationContext();return r.dsc||getDynamicSamplingContextFromClient(r.traceId,e)}function getDynamicSamplingContextFromSpan(e){const t=getClient();if(!t)return{};const r=getRootSpan(e),a=r[FROZEN_DSC_FIELD];if(a)return a;const n=r.spanContext().traceState,i=n&&n.get("sentry.dsc"),o=i&&baggageHeaderToDynamicSamplingContext(i);if(o)return o;const s=getDynamicSamplingContextFromClient(e.spanContext().traceId,t),l=spanToJSON(r),c=l.data||{},h=c[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];null!=h&&(s.sample_rate=`${h}`);const d=c[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],p=l.description;return"url"!==d&&p&&(s.transaction=p),hasTracingEnabled()&&(s.sampled=String(spanIsSampled(r))),t.emit("createDsc",s,r),s}function parseSampleRate(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;DEBUG_BUILD$3&&logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}const DSN_REGEX=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function isValidProtocol(e){return"http"===e||"https"===e}function dsnToString(e,t=!1){const{host:r,path:a,pass:n,port:i,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&n?`:${n}`:""}@${r}${i?`:${i}`:""}/${a?`${a}/`:a}${o}`}function dsnFromString(e){const t=DSN_REGEX.exec(e);if(!t)return void consoleSandbox((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[r,a,n="",i="",o="",s=""]=t.slice(1);let l="",c=s;const h=c.split("/");if(h.length>1&&(l=h.slice(0,-1).join("/"),c=h.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return dsnFromComponents({host:i,pass:n,path:l,projectId:c,port:o,protocol:r,publicKey:a})}function dsnFromComponents(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function validateDsn(e){if(!DEBUG_BUILD$2)return!0;const{port:t,projectId:r,protocol:a}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(logger.error(`Invalid Sentry Dsn: ${t} missing`),!0)))&&(r.match(/^\d+$/)?isValidProtocol(a)?!t||!isNaN(parseInt(t,10))||(logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(logger.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):(logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}function makeDsn(e){const t="string"==typeof e?dsnFromString(e):dsnFromComponents(e);if(t&&validateDsn(t))return t}function memoBuilder(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++){if(t[e]===r)return!0}return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}function normalize(e,t=100,r=1/0){try{return visit("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function normalizeToSize(e,t=3,r=102400){const a=normalize(e,t);return jsonSize(a)>r?normalizeToSize(e,t-1,r):a}function visit(e,t,r=1/0,a=1/0,n=memoBuilder()){const[i,o]=n;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=stringifyValue(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===l)return s.replace("object ","");if(i(t))return"[Circular ~]";const c=t;if(c&&"function"==typeof c.toJSON)try{return visit("",c.toJSON(),l-1,a,n)}catch(e){}const h=Array.isArray(t)?[]:{};let d=0;const p=convertToPlainObject(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(d>=a){h[e]="[MaxProperties ~]";break}const t=p[e];h[e]=visit(e,t,l-1,a,n),d++}return o(t),h}function stringifyValue(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(isVueViewModel(t))return"[VueViewModel]";if(isSyntheticEvent(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${getFunctionName(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=getConstructorName(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}function getConstructorName(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function utf8Length(e){return~-encodeURI(e).split(/%..|./).length}function jsonSize(e){return utf8Length(JSON.stringify(e))}function createEnvelope(e,t=[]){return[e,t]}function addItemToEnvelope(e,t){const[r,a]=e;return[r,[...a,t]]}function forEachEnvelopeItem(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function encodeUTF8(e){return GLOBAL_OBJ.__SENTRY__&&GLOBAL_OBJ.__SENTRY__.encodePolyfill?GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function serializeEnvelope(e){const[t,r]=e;let a=JSON.stringify(t);function n(e){"string"==typeof a?a="string"==typeof e?a+e:[encodeUTF8(a),e]:a.push("string"==typeof e?encodeUTF8(e):e)}for(const e of r){const[t,r]=e;if(n(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)n(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify(normalize(r))}n(e)}}return"string"==typeof a?a:concatBuffers(a)}function concatBuffers(e){const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);let a=0;for(const t of e)r.set(t,a),a+=t.length;return r}function createAttachmentEnvelopeItem(e){const t="string"==typeof e.data?encodeUTF8(e.data):e.data;return[dropUndefinedKeys({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const ITEM_TYPE_TO_DATA_CATEGORY_MAP={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function envelopeItemTypeToDataCategory(e){return ITEM_TYPE_TO_DATA_CATEGORY_MAP[e]}function getSdkMetadataForEnvelopeHeader(e){if(!e||!e.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function createEventEnvelopeHeaders(e,t,r,a){const n=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&a&&{dsn:dsnToString(a)},...n&&{trace:dropUndefinedKeys({...n})}}}function enhanceEventWithSdkInfo(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]],e):e}function createSessionEnvelope(e,t,r,a){const n=getSdkMetadataForEnvelopeHeader(r);return createEnvelope({sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!a&&t&&{dsn:dsnToString(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}function createEventEnvelope(e,t,r,a){const n=getSdkMetadataForEnvelopeHeader(r),i=e.type&&"replay_event"!==e.type?e.type:"event";enhanceEventWithSdkInfo(e,r&&r.sdk);const o=createEventEnvelopeHeaders(e,n,a,t);delete e.sdkProcessingMetadata;return createEnvelope(o,[[{type:i},e]])}function notifyEventProcessors(e,t,r,a=0){return new SyncPromise(((n,i)=>{const o=e[a];if(null===t||"function"!=typeof o)n(t);else{const s=o({...t},r);DEBUG_BUILD$3&&o.id&&null===s&&logger.log(`Event processor "${o.id}" dropped event`),isThenable(s)?s.then((t=>notifyEventProcessors(e,t,r,a+1).then(n))).then(null,i):notifyEventProcessors(e,s,r,a+1).then(n).then(null,i)}}))}let parsedStackResults,lastKeysCount,cachedFilenameDebugIds;function getFilenameToDebugIdMap(e){const t=GLOBAL_OBJ._sentryDebugIds;if(!t)return{};const r=Object.keys(t);return cachedFilenameDebugIds&&r.length===lastKeysCount||(lastKeysCount=r.length,cachedFilenameDebugIds=r.reduce(((r,a)=>{parsedStackResults||(parsedStackResults={});const n=parsedStackResults[a];if(n)r[n[0]]=n[1];else{const n=e(a);for(let e=n.length-1;e>=0;e--){const i=n[e],o=i&&i.filename,s=t[a];if(o&&s){r[o]=s,parsedStackResults[a]=[o,s];break}}}return r}),{})),cachedFilenameDebugIds}function applyScopeDataToEvent(e,t){const{fingerprint:r,span:a,breadcrumbs:n,sdkProcessingMetadata:i}=t;applyDataToEvent(e,t),a&&applySpanToEvent(e,a),applyFingerprintToEvent(e,r),applyBreadcrumbsToEvent(e,n),applySdkMetadataToEvent(e,i)}function mergeScopeData(e,t){const{extra:r,tags:a,user:n,contexts:i,level:o,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:h,attachments:d,propagationContext:p,transactionName:u,span:m}=t;mergeAndOverwriteScopeData(e,"extra",r),mergeAndOverwriteScopeData(e,"tags",a),mergeAndOverwriteScopeData(e,"user",n),mergeAndOverwriteScopeData(e,"contexts",i),e.sdkProcessingMetadata=merge(e.sdkProcessingMetadata,s,2),o&&(e.level=o),u&&(e.transactionName=u),m&&(e.span=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),h.length&&(e.eventProcessors=[...e.eventProcessors,...h]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function mergeAndOverwriteScopeData(e,t,r){e[t]=merge(e[t],r,1)}function applyDataToEvent(e,t){const{extra:r,tags:a,user:n,contexts:i,level:o,transactionName:s}=t,l=dropUndefinedKeys(r);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=dropUndefinedKeys(a);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const h=dropUndefinedKeys(n);h&&Object.keys(h).length&&(e.user={...h,...e.user});const d=dropUndefinedKeys(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&"transaction"!==e.type&&(e.transaction=s)}function applyBreadcrumbsToEvent(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function applySdkMetadataToEvent(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function applySpanToEvent(e,t){e.contexts={trace:spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};const r=spanToJSON(getRootSpan(t)).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}function applyFingerprintToEvent(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function prepareEvent(e,t,r,a,n,i){const{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||r.event_id||uuid4(),timestamp:t.timestamp||dateTimestampInSeconds()},c=r.integrations||e.integrations.map((e=>e.name));applyClientOptions(l,e),applyIntegrationsMetadata(l,c),n&&n.emit("applyFrameMetadata",t),void 0===t.type&&applyDebugIds(l,e.stackParser);const h=getFinalScope(a,r.captureContext);r.mechanism&&addExceptionMechanism(l,r.mechanism);const d=n?n.getEventProcessors():[],p=getGlobalScope().getScopeData();if(i){mergeScopeData(p,i.getScopeData())}if(h){mergeScopeData(p,h.getScopeData())}const u=[...r.attachments||[],...p.attachments];u.length&&(r.attachments=u),applyScopeDataToEvent(l,p);return notifyEventProcessors([...d,...p.eventProcessors],l,r).then((e=>(e&&applyDebugMeta(e),"number"==typeof o&&o>0?normalizeEvent(e,o,s):e)))}function applyClientOptions(e,t){const{environment:r,release:a,dist:n,maxValueLength:i=250}=t;e.environment=e.environment||r||DEFAULT_ENVIRONMENT,!e.release&&a&&(e.release=a),!e.dist&&n&&(e.dist=n),e.message&&(e.message=truncate(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=truncate(o.value,i));const s=e.request;s&&s.url&&(s.url=truncate(s.url,i))}function applyDebugIds(e,t){const r=getFilenameToDebugIdMap(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{r&&e.filename&&(e.debug_id=r[e.filename])}))}))}catch(e){}}function applyDebugMeta(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})}))}function applyIntegrationsMetadata(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function normalizeEvent(e,t,r){if(!e)return null;const a={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:normalize(e.data,t,r)}})))},...e.user&&{user:normalize(e.user,t,r)},...e.contexts&&{contexts:normalize(e.contexts,t,r)},...e.extra&&{extra:normalize(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=normalize(e.contexts.trace.data,t,r))),e.spans&&(a.spans=e.spans.map((e=>({...e,...e.data&&{data:normalize(e.data,t,r)}})))),e.contexts&&e.contexts.flags&&a.contexts&&(a.contexts.flags=normalize(e.contexts.flags,3,r)),a}function getFinalScope(e,t){if(!t)return e;const r=e?e.clone():new Scope;return r.update(t),r}function parseEventHintOrCaptureContext(e){}function captureException(e,t){return getCurrentScope().captureException(e,parseEventHintOrCaptureContext())}function captureMessage(e,t){const r="string"==typeof t?t:void 0,a="string"!=typeof t?{captureContext:t}:void 0;return getCurrentScope().captureMessage(e,r,a)}function captureEvent(e,t){return getCurrentScope().captureEvent(e,t)}function startSession(e){const t=getClient(),r=getIsolationScope(),a=getCurrentScope(),{release:n,environment:i=DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:o}=GLOBAL_OBJ.navigator||{},s=makeSession({release:n,environment:i,user:a.getUser()||r.getUser(),...o&&{userAgent:o},...e}),l=r.getSession();return l&&"ok"===l.status&&updateSession(l,{status:"exited"}),endSession(),r.setSession(s),a.setSession(s),s}function endSession(){const e=getIsolationScope(),t=getCurrentScope(),r=t.getSession()||e.getSession();r&&closeSession(r),_sendSessionUpdate(),e.setSession(),t.setSession()}function _sendSessionUpdate(){const e=getIsolationScope(),t=getCurrentScope(),r=getClient(),a=t.getSession()||e.getSession();a&&r&&r.captureSession(a)}function captureSession(e=!1){e?endSession():_sendSessionUpdate()}const SENTRY_API_VERSION="7";function getBaseApiEndpoint(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function _getIngestEndpoint(e){return`${getBaseApiEndpoint(e)}${e.projectId}/envelope/`}function _encodedAuth(e,t){const r={sentry_version:SENTRY_API_VERSION};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}function getEnvelopeEndpointWithUrlEncodedAuth(e,t,r){return t||`${_getIngestEndpoint(e)}?${_encodedAuth(e,r)}`}const installedIntegrations=[];function filterDuplicates(e){const t={};return e.forEach((e=>{const{name:r}=e,a=t[r];a&&!a.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.values(t)}function getIntegrationsToSetup(e){const t=e.defaultIntegrations||[],r=e.integrations;let a;if(t.forEach((e=>{e.isDefaultInstance=!0})),Array.isArray(r))a=[...t,...r];else if("function"==typeof r){const e=r(t);a=Array.isArray(e)?e:[e]}else a=t;const n=filterDuplicates(a),i=n.findIndex((e=>"Debug"===e.name));if(i>-1){const[e]=n.splice(i,1);n.push(e)}return n}function setupIntegrations(e,t){const r={};return t.forEach((t=>{t&&setupIntegration(e,t,r)})),r}function afterSetupIntegrations(e,t){for(const r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function setupIntegration(e,t,r){if(r[t.name])DEBUG_BUILD$3&&logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,-1===installedIntegrations.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),installedIntegrations.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,a)=>r(t,a,e)))}if("function"==typeof t.processEvent){const r=t.processEvent.bind(t),a=Object.assign(((t,a)=>r(t,a,e)),{id:t.name});e.addEventProcessor(a)}DEBUG_BUILD$3&&logger.log(`Integration installed: ${t.name}`)}}function defineIntegration(e){return e}function createClientReportEnvelope(e,t,r){return createEnvelope(t?{dsn:t}:{},[[{type:"client_report"},{timestamp:dateTimestampInSeconds(),discarded_events:e}]])}class SentryError extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}const ALREADY_SEEN_ERROR="Not capturing exception because it's already been captured.";class BaseClient{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=makeDsn(e.dsn):DEBUG_BUILD$3&&logger.warn("No DSN provided, client will not send events."),this._dsn){const t=getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}const t=["enableTracing","tracesSampleRate","tracesSampler"].find((t=>t in e&&null==e[t]));t&&consoleSandbox((()=>{console.warn(`[Sentry] Deprecation warning: \`${t}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)}))}captureException(e,t,r){const a=uuid4();if(checkOrSetAlreadyCaught(e))return DEBUG_BUILD$3&&logger.log(ALREADY_SEEN_ERROR),a;const n={event_id:a,...t};return this._process(this.eventFromException(e,n).then((e=>this._captureEvent(e,n,r)))),n.event_id}captureMessage(e,t,r,a){const n={event_id:uuid4(),...r},i=isParameterizedString(e)?e:String(e),o=isPrimitive(e)?this.eventFromMessage(i,t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,a)))),n.event_id}captureEvent(e,t,r){const a=uuid4();if(t&&t.originalException&&checkOrSetAlreadyCaught(t.originalException))return DEBUG_BUILD$3&&logger.log(ALREADY_SEEN_ERROR),a;const n={event_id:a,...t},i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,n,i||r)),n.event_id}captureSession(e){"string"!=typeof e.release?DEBUG_BUILD$3&&logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e))))):resolvedSyncPromise(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];setupIntegration(this,e,this._integrations),t||afterSetupIntegrations(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])r=addItemToEnvelope(r,createAttachmentEnvelopeItem(e));const a=this.sendEnvelope(r);a&&a.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){const a="number"==typeof r?r:1,n=`${e}:${t}`;DEBUG_BUILD$3&&logger.log(`Recording outcome: "${n}"${a>1?` (${a} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+a}}on(e,t){const r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(DEBUG_BUILD$3&&logger.error("Error while sending envelope:",e),e))):(DEBUG_BUILD$3&&logger.error("Transport disabled"),resolvedSyncPromise({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=setupIntegrations(this,e),afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,a=!1;const n=t.exception&&t.exception.values;if(n){a=!0;for(const e of n){const t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&r)&&(updateSession(e,{...r&&{status:"crashed"},errors:e.errors||Number(a||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new SyncPromise((t=>{let r=0;const a=setInterval((()=>{0==this._numProcessing?(clearInterval(a),t(!0)):(r+=1,e&&r>=e&&(clearInterval(a),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r=getCurrentScope(),a=getIsolationScope()){const n=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||a.setLastEventId(e.event_id||t.event_id),prepareEvent(n,e,t,r,this,a).then((e=>{if(null===e)return e;e.contexts={trace:getTraceContextFromScope(r),...e.contexts};const t=getDynamicSamplingContextFromScope(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:t,...e.sdkProcessingMetadata},e}))}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then((e=>e.event_id),(e=>{DEBUG_BUILD$3&&(e instanceof SentryError&&"log"===e.logLevel?logger.log(e.message):logger.warn(e))}))}_processEvent(e,t,r){const a=this.getOptions(),{sampleRate:n}=a,i=isTransactionEvent(e),o=isErrorEvent(e),s=e.type||"error",l=`before send for type \`${s}\``,c=void 0===n?void 0:parseSampleRate(n);if(o&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),rejectedSyncPromise(new SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${n})`,"log"));const h="replay_event"===s?"replay":s,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,d).then((r=>{if(null===r)throw this.recordDroppedEvent("event_processor",h,e),new SentryError("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return r;return _validateBeforeSendResult(processBeforeSend(this,a,r,t),l)})).then((a=>{if(null===a){if(this.recordDroppedEvent("before_send",h,e),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new SentryError(`${l} returned \`null\`, will not send event.`,"log")}const n=r&&r.getSession();if(!i&&n&&this._updateSessionFromEvent(n,a),i){const e=(a.sdkProcessingMetadata&&a.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(a.spans?a.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const o=a.transaction_info;if(i&&o&&a.transaction!==e.transaction){const e="custom";a.transaction_info={...o,source:e}}return this.sendEvent(a,t),a})).then(null,(e=>{if(e instanceof SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[r,a]=e.split(":");return{reason:r,category:a,quantity:t}}))}_flushOutcomes(){DEBUG_BUILD$3&&logger.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(DEBUG_BUILD$3&&logger.log("No outcomes to send"));if(!this._dsn)return void(DEBUG_BUILD$3&&logger.log("No dsn provided, will not send outcomes"));DEBUG_BUILD$3&&logger.log("Sending outcomes:",e);const t=createClientReportEnvelope(e,this._options.tunnel&&dsnToString(this._dsn));this.sendEnvelope(t)}}function _validateBeforeSendResult(e,t){const r=`${t} must return \`null\` or a valid event.`;if(isThenable(e))return e.then((e=>{if(!isPlainObject(e)&&null!==e)throw new SentryError(r);return e}),(e=>{throw new SentryError(`${t} rejected with ${e}`)}));if(!isPlainObject(e)&&null!==e)throw new SentryError(r);return e}function processBeforeSend(e,t,r,a){const{beforeSend:n,beforeSendTransaction:i,beforeSendSpan:o}=t;if(isErrorEvent(r)&&n)return n(r,a);if(isTransactionEvent(r)){if(r.spans&&o){const t=[];for(const a of r.spans){const r=o(a);r?t.push(r):(showSpanDropWarning(),e.recordDroppedEvent("before_send","span"))}r.spans=t}if(i){if(r.spans){const e=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(r,a)}}return r}function isErrorEvent(e){return void 0===e.type}function isTransactionEvent(e){return"transaction"===e.type}function initAndBind(e,t){!0===t.debug&&(DEBUG_BUILD$3?logger.enable():consoleSandbox((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));getCurrentScope().update(t.initialScope);const r=new e(t);return setCurrentClient(r),r.init(),r}function setCurrentClient(e){getCurrentScope().setClient(e)}function makePromiseBuffer(e){const t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(a){if(!(void 0===e||t.length<e))return rejectedSyncPromise(new SentryError("Not adding Promise because buffer limit was reached."));const n=a();return-1===t.indexOf(n)&&t.push(n),n.then((()=>r(n))).then(null,(()=>r(n).then(null,(()=>{})))),n},drain:function(e){return new SyncPromise(((r,a)=>{let n=t.length;if(!n)return r(!0);const i=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{resolvedSyncPromise(e).then((()=>{--n||(clearTimeout(i),r(!0))}),a)}))}))}}}const DEFAULT_RETRY_AFTER=6e4;function parseRetryAfterHeader(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const a=Date.parse(`${e}`);return isNaN(a)?DEFAULT_RETRY_AFTER:a-t}function disabledUntil(e,t){return e[t]||e.all||0}function isRateLimited(e,t,r=Date.now()){return disabledUntil(e,t)>r}function updateRateLimits(e,{statusCode:t,headers:r},a=Date.now()){const n={...e},i=r&&r["x-sentry-rate-limits"],o=r&&r["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,r,,,i]=e.split(":",5),o=parseInt(t,10),s=1e3*(isNaN(o)?60:o);if(r)for(const e of r.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(n[e]=a+s);else n.all=a+s}else o?n.all=a+parseRetryAfterHeader(o,a):429===t&&(n.all=a+6e4);return n}const DEFAULT_TRANSPORT_BUFFER_SIZE=64;function createTransport(e,t,r=makePromiseBuffer(e.bufferSize||DEFAULT_TRANSPORT_BUFFER_SIZE)){let a={};return{send:function(n){const i=[];if(forEachEnvelopeItem(n,((t,r)=>{const n=envelopeItemTypeToDataCategory(r);if(isRateLimited(a,n)){const a=getEventForEnvelopeItem(t,r);e.recordDroppedEvent("ratelimit_backoff",n,a)}else i.push(t)})),0===i.length)return resolvedSyncPromise({});const o=createEnvelope(n[0],i),s=t=>{forEachEnvelopeItem(o,((r,a)=>{const n=getEventForEnvelopeItem(r,a);e.recordDroppedEvent(t,envelopeItemTypeToDataCategory(a),n)}))};return r.add((()=>t({body:serializeEnvelope(o)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&DEBUG_BUILD$3&&logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),a=updateRateLimits(a,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof SentryError)return DEBUG_BUILD$3&&logger.error("Skipped sending event because buffer is full."),s("queue_overflow"),resolvedSyncPromise({});throw e}))},flush:e=>r.drain(e)}}function getEventForEnvelopeItem(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function applySdkMetadata(e,t,r=[t],a="npm"){const n=e._metadata||{};n.sdk||(n.sdk={name:`sentry.javascript.${t}`,packages:r.map((e=>({name:`${a}:@sentry/${e}`,version:SDK_VERSION}))),version:SDK_VERSION}),e._metadata=n}const DEFAULT_BREADCRUMBS=100;function addBreadcrumb(e,t){const r=getClient(),a=getIsolationScope();if(!r)return;const{beforeBreadcrumb:n=null,maxBreadcrumbs:i=DEFAULT_BREADCRUMBS}=r.getOptions();if(i<=0)return;const o={timestamp:dateTimestampInSeconds(),...e},s=n?consoleSandbox((()=>n(o,t))):o;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),a.addBreadcrumb(s,i))}let originalFunctionToString;const INTEGRATION_NAME$6="FunctionToString",SETUP_CLIENTS=new WeakMap,_functionToStringIntegration=()=>({name:INTEGRATION_NAME$6,setupOnce(){originalFunctionToString=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=getOriginalFunction(this),r=SETUP_CLIENTS.has(getClient())&&void 0!==t?t:this;return originalFunctionToString.apply(r,e)}}catch(e){}},setup(e){SETUP_CLIENTS.set(e,!0)}}),functionToStringIntegration=defineIntegration(_functionToStringIntegration),DEFAULT_IGNORE_ERRORS=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],INTEGRATION_NAME$5="InboundFilters",_inboundFiltersIntegration=(e={})=>({name:INTEGRATION_NAME$5,processEvent(t,r,a){const n=a.getOptions();return _shouldDropEvent$1(t,_mergeOptions(e,n))?null:t}}),inboundFiltersIntegration=defineIntegration(_inboundFiltersIntegration);function _mergeOptions(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:DEFAULT_IGNORE_ERRORS],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}function _shouldDropEvent$1(e,t){return t.ignoreInternal&&_isSentryError(e)?(DEBUG_BUILD$3&&logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${getEventDescription(e)}`),!0):_isIgnoredError(e,t.ignoreErrors)?(DEBUG_BUILD$3&&logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${getEventDescription(e)}`),!0):_isUselessError(e)?(DEBUG_BUILD$3&&logger.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${getEventDescription(e)}`),!0):_isIgnoredTransaction(e,t.ignoreTransactions)?(DEBUG_BUILD$3&&logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${getEventDescription(e)}`),!0):_isDeniedUrl(e,t.denyUrls)?(DEBUG_BUILD$3&&logger.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${getEventDescription(e)}.\nUrl: ${_getEventFilterUrl(e)}`),!0):!_isAllowedUrl(e,t.allowUrls)&&(DEBUG_BUILD$3&&logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${getEventDescription(e)}.\nUrl: ${_getEventFilterUrl(e)}`),!0)}function _isIgnoredError(e,t){return!(e.type||!t||!t.length)&&_getPossibleEventMessages(e).some((e=>stringMatchesSomePattern(e,t)))}function _isIgnoredTransaction(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const r=e.transaction;return!!r&&stringMatchesSomePattern(r,t)}function _isDeniedUrl(e,t){if(!t||!t.length)return!1;const r=_getEventFilterUrl(e);return!!r&&stringMatchesSomePattern(r,t)}function _isAllowedUrl(e,t){if(!t||!t.length)return!0;const r=_getEventFilterUrl(e);return!r||stringMatchesSomePattern(r,t)}function _getPossibleEventMessages(e){const t=[];let r;e.message&&t.push(e.message);try{r=e.exception.values[e.exception.values.length-1]}catch(e){}return r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`)),t}function _isSentryError(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}function _getLastValidUrl(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}function _getEventFilterUrl(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?_getLastValidUrl(t):null}catch(t){return DEBUG_BUILD$3&&logger.error(`Cannot extract url for event ${getEventDescription(e)}`),null}}function _isUselessError(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))))}function applyAggregateErrorsToEvent(e,t,r=250,a,n,i,o){if(!(i.exception&&i.exception.values&&o&&isInstanceOf(o.originalException,Error)))return;const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=truncateAggregateExceptions(aggregateExceptionsFromError(e,t,n,o.originalException,a,i.exception.values,s,0),r))}function aggregateExceptionsFromError(e,t,r,a,n,i,o,s){if(i.length>=r+1)return i;let l=[...i];if(isInstanceOf(a[n],Error)){applyExceptionGroupFieldsForParentException(o,s);const i=e(t,a[n]),c=l.length;applyExceptionGroupFieldsForChildException(i,n,c,s),l=aggregateExceptionsFromError(e,t,r,a[n],n,[i,...l],i,c)}return Array.isArray(a.errors)&&a.errors.forEach(((a,i)=>{if(isInstanceOf(a,Error)){applyExceptionGroupFieldsForParentException(o,s);const c=e(t,a),h=l.length;applyExceptionGroupFieldsForChildException(c,`errors[${i}]`,h,s),l=aggregateExceptionsFromError(e,t,r,a,n,[c,...l],c,h)}})),l}function applyExceptionGroupFieldsForParentException(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function applyExceptionGroupFieldsForChildException(e,t,r,a){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:a}}function truncateAggregateExceptions(e,t){return e.map((e=>(e.value&&(e.value=truncate(e.value,t)),e)))}function parseUrl$1(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",a=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:a,relative:t[5]+r+a}}function addConsoleInstrumentationHandler(e){const t="console";addHandler(t,e),maybeInstrument(t,instrumentConsole)}function instrumentConsole(){"console"in GLOBAL_OBJ&&CONSOLE_LEVELS.forEach((function(e){e in GLOBAL_OBJ.console&&fill(GLOBAL_OBJ.console,e,(function(t){return originalConsoleMethods[e]=t,function(...t){triggerHandlers("console",{args:t,level:e});const r=originalConsoleMethods[e];r&&r.apply(GLOBAL_OBJ.console,t)}}))}))}function severityLevelFromString(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const INTEGRATION_NAME$4="Dedupe",_dedupeIntegration=()=>{let e;return{name:INTEGRATION_NAME$4,processEvent(t){if(t.type)return t;try{if(_shouldDropEvent(t,e))return DEBUG_BUILD$3&&logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}},dedupeIntegration=defineIntegration(_dedupeIntegration);function _shouldDropEvent(e,t){return!!t&&(!!_isSameMessageEvent(e,t)||!!_isSameExceptionEvent(e,t))}function _isSameMessageEvent(e,t){const r=e.message,a=t.message;return!(!r&&!a)&&(!(r&&!a||!r&&a)&&(r===a&&(!!_isSameFingerprint(e,t)&&!!_isSameStacktrace(e,t))))}function _isSameExceptionEvent(e,t){const r=_getExceptionFromEvent(t),a=_getExceptionFromEvent(e);return!(!r||!a)&&(r.type===a.type&&r.value===a.value&&(!!_isSameFingerprint(e,t)&&!!_isSameStacktrace(e,t)))}function _isSameStacktrace(e,t){let r=getFramesFromEvent(e),a=getFramesFromEvent(t);if(!r&&!a)return!0;if(r&&!a||!r&&a)return!1;if(a.length!==r.length)return!1;for(let e=0;e<a.length;e++){const t=a[e],n=r[e];if(t.filename!==n.filename||t.lineno!==n.lineno||t.colno!==n.colno||t.function!==n.function)return!1}return!0}function _isSameFingerprint(e,t){let r=e.fingerprint,a=t.fingerprint;if(!r&&!a)return!0;if(r&&!a||!r&&a)return!1;try{return!(r.join("")!==a.join(""))}catch(e){return!1}}function _getExceptionFromEvent(e){return e.exception&&e.exception.values&&e.exception.values[0]}function getBreadcrumbLogLevelFromHttpStatusCode(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const WINDOW$3=GLOBAL_OBJ;function supportsFetch(){if(!("fetch"in WINDOW$3))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function isNativeFunction(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function supportsNativeFetch(){if("string"==typeof EdgeRuntime)return!0;if(!supportsFetch())return!1;if(isNativeFunction(WINDOW$3.fetch))return!0;let e=!1;const t=WINDOW$3.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=isNativeFunction(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){DEBUG_BUILD$2&&logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function addFetchInstrumentationHandler(e,t){const r="fetch";addHandler(r,e),maybeInstrument(r,(()=>instrumentFetch(void 0,t)))}function instrumentFetch(e,t=!1){t&&!supportsNativeFetch()||fill(GLOBAL_OBJ,"fetch",(function(e){return function(...t){const r=new Error,{method:a,url:n}=parseFetchArgs(t),i={args:t,fetchData:{method:a,url:n},startTimestamp:1e3*timestampInSeconds(),virtualError:r};return triggerHandlers("fetch",{...i}),e.apply(GLOBAL_OBJ,t).then((async e=>(triggerHandlers("fetch",{...i,endTimestamp:1e3*timestampInSeconds(),response:e}),e)),(e=>{throw triggerHandlers("fetch",{...i,endTimestamp:1e3*timestampInSeconds(),error:e}),isError(e)&&void 0===e.stack&&(e.stack=r.stack,addNonEnumerableProperty(e,"framesToPop",1)),e}))}}))}function hasProp(e,t){return!!e&&"object"==typeof e&&!!e[t]}function getUrlFromResource(e){return"string"==typeof e?e:e?hasProp(e,"url")?e.url:e.toString?e.toString():"":""}function parseFetchArgs(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:getUrlFromResource(t),method:hasProp(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:getUrlFromResource(t),method:hasProp(t,"method")?String(t.method).toUpperCase():"GET"}}function getSDKSource(){return"npm"}const WINDOW$2=GLOBAL_OBJ;function supportsHistory(){const e=WINDOW$2.chrome,t=e&&e.app&&e.app.runtime,r="history"in WINDOW$2&&!!WINDOW$2.history.pushState&&!!WINDOW$2.history.replaceState;return!t&&r}const WINDOW$1=GLOBAL_OBJ;let ignoreOnError=0;function shouldIgnoreOnError(){return ignoreOnError>0}function ignoreNextOnError(){ignoreOnError++,setTimeout((()=>{ignoreOnError--}))}function wrap(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(getOriginalFunction(e))return e}catch(t){return e}const r=function(...r){try{const a=r.map((e=>wrap(e,t)));return e.apply(this,a)}catch(e){throw ignoreNextOnError(),withScope((a=>{a.addEventProcessor((e=>(t.mechanism&&(addExceptionTypeValue(e,void 0),addExceptionMechanism(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),captureException(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}markFunctionWrapped(r,e),addNonEnumerableProperty(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const DEBUG_BUILD$1="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function exceptionFromError(e,t){const r=parseStackFrames(e,t),a={type:extractType(t),value:extractMessage(t)};return r.length&&(a.stacktrace={frames:r}),void 0===a.type&&""===a.value&&(a.value="Unrecoverable error caught"),a}function eventFromPlainObject(e,t,r,a){const n=getClient(),i=n&&n.getOptions().normalizeDepth,o=getErrorPropertyFromObject(t),s={__serialized__:normalizeToSize(t,i)};if(o)return{exception:{values:[exceptionFromError(e,o)]},extra:s};const l={exception:{values:[{type:isEvent(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:getNonErrorObjectExceptionValue(t,{isUnhandledRejection:a})}]},extra:s};if(r){const t=parseStackFrames(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}function eventFromError(e,t){return{exception:{values:[exceptionFromError(e,t)]}}}function parseStackFrames(e,t){const r=t.stacktrace||t.stack||"",a=getSkipFirstStackStringLines(t),n=getPopFirstTopFrames(t);try{return e(r,a,n)}catch(e){}return[]}const reactMinifiedRegexp=/Minified React error #\d+;/i;function getSkipFirstStackStringLines(e){return e&&reactMinifiedRegexp.test(e.message)?1:0}function getPopFirstTopFrames(e){return"number"==typeof e.framesToPop?e.framesToPop:0}function isWebAssemblyException(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function extractType(e){const t=e&&e.name;if(!t&&isWebAssemblyException(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function extractMessage(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:isWebAssemblyException(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function eventFromException(e,t,r,a){const n=eventFromUnknownInput(e,t,r&&r.syntheticException||void 0,a);return addExceptionMechanism(n),n.level="error",r&&r.event_id&&(n.event_id=r.event_id),resolvedSyncPromise(n)}function eventFromMessage(e,t,r="info",a,n){const i=eventFromString(e,t,a&&a.syntheticException||void 0,n);return i.level=r,a&&a.event_id&&(i.event_id=a.event_id),resolvedSyncPromise(i)}function eventFromUnknownInput(e,t,r,a,n){let i;if(isErrorEvent$1(t)&&t.error){return eventFromError(e,t.error)}if(isDOMError(t)||isDOMException(t)){const n=t;if("stack"in t)i=eventFromError(e,t);else{const t=n.name||(isDOMError(n)?"DOMError":"DOMException"),o=n.message?`${t}: ${n.message}`:t;i=eventFromString(e,o,r,a),addExceptionTypeValue(i,o)}return"code"in n&&(i.tags={...i.tags,"DOMException.code":`${n.code}`}),i}if(isError(t))return eventFromError(e,t);if(isPlainObject(t)||isEvent(t)){return i=eventFromPlainObject(e,t,r,n),addExceptionMechanism(i,{synthetic:!0}),i}return i=eventFromString(e,t,r,a),addExceptionTypeValue(i,`${t}`),addExceptionMechanism(i,{synthetic:!0}),i}function eventFromString(e,t,r,a){const n={};if(a&&r){const a=parseStackFrames(e,r);a.length&&(n.exception={values:[{value:t,stacktrace:{frames:a}}]}),addExceptionMechanism(n,{synthetic:!0})}if(isParameterizedString(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return n.logentry={message:e,params:r},n}return n.message=t,n}function getNonErrorObjectExceptionValue(e,{isUnhandledRejection:t}){const r=extractExceptionKeysForMessage(e),a=t?"promise rejection":"exception";if(isErrorEvent$1(e))return`Event \`ErrorEvent\` captured as ${a} with message \`${e.message}\``;if(isEvent(e)){return`Event \`${getObjectClassName(e)}\` (type=${e.type}) captured as ${a}`}return`Object captured as ${a} with keys: ${r}`}function getObjectClassName(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}function getErrorPropertyFromObject(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}}function createUserFeedbackEnvelope(e,{metadata:t,tunnel:r,dsn:a}){return createEnvelope({event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!a&&{dsn:dsnToString(a)}},[createUserFeedbackEnvelopeItem(e)])}function createUserFeedbackEnvelopeItem(e){return[{type:"user_report"},e]}class BrowserClient extends BaseClient{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};applySdkMetadata(t,"browser",["browser"],WINDOW$1.SENTRY_SDK_SOURCE||getSDKSource()),super(t),t.sendClientReports&&WINDOW$1.document&&WINDOW$1.document.addEventListener("visibilitychange",(()=>{"hidden"===WINDOW$1.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return eventFromException(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return eventFromMessage(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(DEBUG_BUILD$1&&logger.warn("SDK not enabled, will not capture user feedback."));const t=createUserFeedbackEnvelope(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}}const DEBUG_BUILD="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,WINDOW=GLOBAL_OBJ,DEBOUNCE_DURATION=1e3;let debounceTimerID,lastCapturedEventType,lastCapturedEventTargetId,lastHref;function addClickKeypressInstrumentationHandler(e){addHandler("dom",e),maybeInstrument("dom",instrumentDOM)}function instrumentDOM(){if(!WINDOW.document)return;const e=triggerHandlers.bind(null,"dom"),t=makeDOMEventHandler(e,!0);WINDOW.document.addEventListener("click",t,!1),WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const r=WINDOW[t],a=r&&r.prototype;a&&a.hasOwnProperty&&a.hasOwnProperty("addEventListener")&&(fill(a,"addEventListener",(function(t){return function(r,a,n){if("click"===r||"keypress"==r)try{const a=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=a[r]=a[r]||{refCount:0};if(!i.handler){const a=makeDOMEventHandler(e);i.handler=a,t.call(this,r,a,n)}i.refCount++}catch(e){}return t.call(this,r,a,n)}})),fill(a,"removeEventListener",(function(e){return function(t,r,a){if("click"===t||"keypress"==t)try{const r=this.__sentry_instrumentation_handlers__||{},n=r[t];n&&(n.refCount--,n.refCount<=0&&(e.call(this,t,n.handler,a),n.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,a)}})))}))}function isSimilarToLastCapturedEvent(e){if(e.type!==lastCapturedEventType)return!1;try{if(!e.target||e.target._sentryId!==lastCapturedEventTargetId)return!1}catch(e){}return!0}function shouldSkipDOMEvent(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}function makeDOMEventHandler(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const a=getEventTarget(r);if(shouldSkipDOMEvent(r.type,a))return;addNonEnumerableProperty(r,"_sentryCaptured",!0),a&&!a._sentryId&&addNonEnumerableProperty(a,"_sentryId",uuid4());const n="keypress"===r.type?"input":r.type;if(!isSimilarToLastCapturedEvent(r)){e({event:r,name:n,global:t}),lastCapturedEventType=r.type,lastCapturedEventTargetId=a?a._sentryId:void 0}clearTimeout(debounceTimerID),debounceTimerID=WINDOW.setTimeout((()=>{lastCapturedEventTargetId=void 0,lastCapturedEventType=void 0}),DEBOUNCE_DURATION)}}function getEventTarget(e){try{return e.target}catch(e){return null}}function addHistoryInstrumentationHandler(e){const t="history";addHandler(t,e),maybeInstrument(t,instrumentHistory)}function instrumentHistory(){if(!supportsHistory())return;const e=WINDOW.onpopstate;function t(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const e=lastHref,t=String(r);lastHref=t;triggerHandlers("history",{from:e,to:t})}return e.apply(this,t)}}WINDOW.onpopstate=function(...t){const r=WINDOW.location.href,a=lastHref;lastHref=r;if(triggerHandlers("history",{from:a,to:r}),e)try{return e.apply(this,t)}catch(e){}},fill(WINDOW.history,"pushState",t),fill(WINDOW.history,"replaceState",t)}const cachedImplementations={};function getNativeImplementation(e){const t=cachedImplementations[e];if(t)return t;let r=WINDOW[e];if(isNativeFunction(r))return cachedImplementations[e]=r.bind(WINDOW);const a=WINDOW.document;if(a&&"function"==typeof a.createElement)try{const t=a.createElement("iframe");t.hidden=!0,a.head.appendChild(t);const n=t.contentWindow;n&&n[e]&&(r=n[e]),a.head.removeChild(t)}catch(t){DEBUG_BUILD&&logger.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?cachedImplementations[e]=r.bind(WINDOW):r}function clearCachedImplementation(e){cachedImplementations[e]=void 0}const SENTRY_XHR_DATA_KEY="__sentry_xhr_v3__";function addXhrInstrumentationHandler(e){addHandler("xhr",e),maybeInstrument("xhr",instrumentXHR)}function instrumentXHR(){if(!WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){const a=new Error,n=1e3*timestampInSeconds(),i=isString(r[0])?r[0].toUpperCase():void 0,o=parseUrl(r[1]);if(!i||!o)return e.apply(t,r);t[SENTRY_XHR_DATA_KEY]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const s=()=>{const e=t[SENTRY_XHR_DATA_KEY];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}triggerHandlers("xhr",{endTimestamp:1e3*timestampInSeconds(),startTimestamp:n,xhr:t,virtualError:a})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(s(),e.apply(t,r))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[a,n]=r,i=t[SENTRY_XHR_DATA_KEY];return i&&isString(a)&&isString(n)&&(i.request_headers[a.toLowerCase()]=n),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const a=t[SENTRY_XHR_DATA_KEY];if(!a)return e.apply(t,r);void 0!==r[0]&&(a.body=r[0]);return triggerHandlers("xhr",{startTimestamp:1e3*timestampInSeconds(),xhr:t}),e.apply(t,r)}})}function parseUrl(e){if(isString(e))return e;try{return e.toString()}catch(e){}}function makeFetchTransport(e,t=getNativeImplementation("fetch")){let r=0,a=0;return createTransport(e,(function(n){const i=n.body.length;r+=i,a++;const o={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&a<15,...e.fetchOptions};if(!t)return clearCachedImplementation("fetch"),rejectedSyncPromise("No fetch implementation available");try{return t(e.url,o).then((e=>(r-=i,a--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return clearCachedImplementation("fetch"),r-=i,a--,rejectedSyncPromise(e)}}))}const CHROME_PRIORITY=30,GECKO_PRIORITY=50;function createFrame(e,t,r,a){const n={filename:e,function:"<anonymous>"===t?UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(n.lineno=r),void 0!==a&&(n.colno=a),n}const chromeRegexNoFnName=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,chromeRegex=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,chromeEvalRegex=/\((\S*)(?::(\d+))(?::(\d+))\)/,chromeStackParserFn=e=>{const t=chromeRegexNoFnName.exec(e);if(t){const[,e,r,a]=t;return createFrame(e,UNKNOWN_FUNCTION,+r,+a)}const r=chromeRegex.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=chromeEvalRegex.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=extractSafariExtensionDetails(r[1]||UNKNOWN_FUNCTION,r[2]);return createFrame(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},chromeStackLineParser=[CHROME_PRIORITY,chromeStackParserFn],geckoREgex=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,geckoEvalRegex=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gecko=e=>{const t=geckoREgex.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=geckoEvalRegex.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||UNKNOWN_FUNCTION;return[r,e]=extractSafariExtensionDetails(r,e),createFrame(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},geckoStackLineParser=[GECKO_PRIORITY,gecko],defaultStackLineParsers=[chromeStackLineParser,geckoStackLineParser],defaultStackParser=createStackParser(...defaultStackLineParsers),extractSafariExtensionDetails=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),a=-1!==e.indexOf("safari-web-extension");return r||a?[-1!==e.indexOf("@")?e.split("@")[0]:UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},MAX_ALLOWED_STRING_LENGTH=1024,INTEGRATION_NAME$3="Breadcrumbs",_breadcrumbsIntegration=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:INTEGRATION_NAME$3,setup(e){t.console&&addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(e)),t.dom&&addClickKeypressInstrumentationHandler(_getDomBreadcrumbHandler(e,t.dom)),t.xhr&&addXhrInstrumentationHandler(_getXhrBreadcrumbHandler(e)),t.fetch&&addFetchInstrumentationHandler(_getFetchBreadcrumbHandler(e)),t.history&&addHistoryInstrumentationHandler(_getHistoryBreadcrumbHandler(e)),t.sentry&&e.on("beforeSendEvent",_getSentryBreadcrumbHandler(e))}}},breadcrumbsIntegration=defineIntegration(_breadcrumbsIntegration);function _getSentryBreadcrumbHandler(e){return function(t){getClient()===e&&addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:getEventDescription(t)},{event:t})}}function _getDomBreadcrumbHandler(e,t){return function(r){if(getClient()!==e)return;let a,n,i="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>MAX_ALLOWED_STRING_LENGTH&&(DEBUG_BUILD$1&&logger.warn(`\`dom.maxStringLength\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${o} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`),o=MAX_ALLOWED_STRING_LENGTH),"string"==typeof i&&(i=[i]);try{const e=r.event,t=_isEvent(e)?e.target:e;a=htmlTreeAsString(t,{keyAttrs:i,maxStringLength:o}),n=getComponentName(t)}catch(e){a="<unknown>"}if(0===a.length)return;const s={category:`ui.${r.name}`,message:a};n&&(s.data={"ui.component_name":n}),addBreadcrumb(s,{event:r.event,name:r.name,global:r.global})}}function _getConsoleBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:severityLevelFromString(t.level),message:safeJoin(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${safeJoin(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}addBreadcrumb(r,{input:t.args,level:t.level})}}function _getXhrBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;const{startTimestamp:r,endTimestamp:a}=t,n=t.xhr[SENTRY_XHR_DATA_KEY];if(!r||!a||!n)return;const{method:i,url:o,status_code:s,body:l}=n,c={method:i,url:o,status_code:s},h={xhr:t.xhr,input:l,startTimestamp:r,endTimestamp:a};addBreadcrumb({category:"xhr",data:c,type:"http",level:getBreadcrumbLogLevelFromHttpStatusCode(s)},h)}}function _getFetchBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;const{startTimestamp:r,endTimestamp:a}=t;if(a&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){addBreadcrumb({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:r,endTimestamp:a})}else{const e=t.response,n={...t.fetchData,status_code:e&&e.status},i={input:t.args,response:e,startTimestamp:r,endTimestamp:a};addBreadcrumb({category:"fetch",data:n,type:"http",level:getBreadcrumbLogLevelFromHttpStatusCode(n.status_code)},i)}}}function _getHistoryBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;let r=t.from,a=t.to;const n=parseUrl$1(WINDOW$1.location.href);let i=r?parseUrl$1(r):void 0;const o=parseUrl$1(a);i&&i.path||(i=n),n.protocol===o.protocol&&n.host===o.host&&(a=o.relative),n.protocol===i.protocol&&n.host===i.host&&(r=i.relative),addBreadcrumb({category:"navigation",data:{from:r,to:a}})}}function _isEvent(e){return!!e&&!!e.target}const DEFAULT_EVENT_TARGET=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],INTEGRATION_NAME$2="BrowserApiErrors",_browserApiErrorsIntegration=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:INTEGRATION_NAME$2,setupOnce(){t.setTimeout&&fill(WINDOW$1,"setTimeout",_wrapTimeFunction),t.setInterval&&fill(WINDOW$1,"setInterval",_wrapTimeFunction),t.requestAnimationFrame&&fill(WINDOW$1,"requestAnimationFrame",_wrapRAF),t.XMLHttpRequest&&"XMLHttpRequest"in WINDOW$1&&fill(XMLHttpRequest.prototype,"send",_wrapXHR);const e=t.eventTarget;if(e){(Array.isArray(e)?e:DEFAULT_EVENT_TARGET).forEach(_wrapEventTarget)}}}},browserApiErrorsIntegration=defineIntegration(_browserApiErrorsIntegration);function _wrapTimeFunction(e){return function(...t){const r=t[0];return t[0]=wrap(r,{mechanism:{data:{function:getFunctionName(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function _wrapRAF(e){return function(t){return e.apply(this,[wrap(t,{mechanism:{data:{function:"requestAnimationFrame",handler:getFunctionName(e)},handled:!1,type:"instrument"}})])}}function _wrapXHR(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in r&&"function"==typeof r[e]&&fill(r,e,(function(t){const r={mechanism:{data:{function:e,handler:getFunctionName(t)},handled:!1,type:"instrument"}},a=getOriginalFunction(t);return a&&(r.mechanism.data.handler=getFunctionName(a)),wrap(t,r)}))})),e.apply(this,t)}}function _wrapEventTarget(e){const t=WINDOW$1[e],r=t&&t.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(fill(r,"addEventListener",(function(t){return function(r,a,n){try{isEventListenerObject(a)&&(a.handleEvent=wrap(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:getFunctionName(a),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,wrap(a,{mechanism:{data:{function:"addEventListener",handler:getFunctionName(a),target:e},handled:!1,type:"instrument"}}),n])}})),fill(r,"removeEventListener",(function(e){return function(t,r,a){try{const n=r.__sentry_wrapped__;n&&e.call(this,t,n,a)}catch(e){}return e.call(this,t,r,a)}})))}function isEventListenerObject(e){return"function"==typeof e.handleEvent}const browserSessionIntegration=defineIntegration((()=>({name:"BrowserSession",setupOnce(){void 0!==WINDOW$1.document?(startSession({ignoreDuration:!0}),captureSession(),addHistoryInstrumentationHandler((({from:e,to:t})=>{void 0!==e&&e!==t&&(startSession({ignoreDuration:!0}),captureSession())}))):DEBUG_BUILD$1&&logger.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}))),INTEGRATION_NAME$1="GlobalHandlers",_globalHandlersIntegration=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:INTEGRATION_NAME$1,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(_installGlobalOnErrorHandler(e),globalHandlerLog("onerror")),t.onunhandledrejection&&(_installGlobalOnUnhandledRejectionHandler(e),globalHandlerLog("onunhandledrejection"))}}},globalHandlersIntegration=defineIntegration(_globalHandlersIntegration);function _installGlobalOnErrorHandler(e){addGlobalErrorInstrumentationHandler((t=>{const{stackParser:r,attachStacktrace:a}=getOptions();if(getClient()!==e||shouldIgnoreOnError())return;const{msg:n,url:i,line:o,column:s,error:l}=t,c=_enhanceEventWithInitialFrame(eventFromUnknownInput(r,l||n,void 0,a,!1),i,o,s);c.level="error",captureEvent(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}function _installGlobalOnUnhandledRejectionHandler(e){addGlobalUnhandledRejectionInstrumentationHandler((t=>{const{stackParser:r,attachStacktrace:a}=getOptions();if(getClient()!==e||shouldIgnoreOnError())return;const n=_getUnhandledRejectionError(t),i=isPrimitive(n)?_eventFromRejectionWithPrimitive(n):eventFromUnknownInput(r,n,void 0,a,!0);i.level="error",captureEvent(i,{originalException:n,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}function _getUnhandledRejectionError(e){if(isPrimitive(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}function _eventFromRejectionWithPrimitive(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function _enhanceEventWithInitialFrame(e,t,r,a){const n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],c=a,h=r,d=isString(t)&&t.length>0?t:getLocationHref();return 0===l.length&&l.push({colno:c,filename:d,function:UNKNOWN_FUNCTION,in_app:!0,lineno:h}),e}function globalHandlerLog(e){DEBUG_BUILD$1&&logger.log(`Global Handler attached: ${e}`)}function getOptions(){const e=getClient();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const httpContextIntegration=defineIntegration((()=>({name:"HttpContext",preprocessEvent(e){if(!WINDOW$1.navigator&&!WINDOW$1.location&&!WINDOW$1.document)return;const t=e.request&&e.request.url||WINDOW$1.location&&WINDOW$1.location.href,{referrer:r}=WINDOW$1.document||{},{userAgent:a}=WINDOW$1.navigator||{},n={...e.request&&e.request.headers,...r&&{Referer:r},...a&&{"User-Agent":a}},i={...e.request,...t&&{url:t},headers:n};e.request=i}}))),DEFAULT_KEY="cause",DEFAULT_LIMIT=5,INTEGRATION_NAME="LinkedErrors",_linkedErrorsIntegration=(e={})=>{const t=e.limit||DEFAULT_LIMIT,r=e.key||DEFAULT_KEY;return{name:INTEGRATION_NAME,preprocessEvent(e,a,n){const i=n.getOptions();applyAggregateErrorsToEvent(exceptionFromError,i.stackParser,i.maxValueLength,r,t,e,a)}}},linkedErrorsIntegration=defineIntegration(_linkedErrorsIntegration);function getDefaultIntegrations(e){const t=[inboundFiltersIntegration(),functionToStringIntegration(),browserApiErrorsIntegration(),breadcrumbsIntegration(),globalHandlersIntegration(),linkedErrorsIntegration(),dedupeIntegration(),httpContextIntegration()];return!1!==e.autoSessionTracking&&t.push(browserSessionIntegration()),t}function applyDefaultOptions(e={}){const t={defaultIntegrations:getDefaultIntegrations(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:WINDOW$1.SENTRY_RELEASE&&WINDOW$1.SENTRY_RELEASE.id?WINDOW$1.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}function shouldShowBrowserExtensionError(){const e=void 0!==WINDOW$1.window&&WINDOW$1;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],r=t&&t.runtime&&t.runtime.id,a=WINDOW$1.location&&WINDOW$1.location.href||"",n=!!r&&WINDOW$1===WINDOW$1.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>a.startsWith(`${e}//`))),i=void 0!==e.nw;return!!r&&!n&&!i}function init(e={}){const t=applyDefaultOptions(e);if(!t.skipBrowserExtensionCheck&&shouldShowBrowserExtensionError())return void consoleSandbox((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));DEBUG_BUILD$1&&(supportsFetch()||logger.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...t,stackParser:stackParserFromStackParserOptions(t.stackParser||defaultStackParser),integrations:getIntegrationsToSetup(t),transport:t.transport||makeFetchTransport};return initAndBind(BrowserClient,r)}class SentryManager{constructor(){this.isInitialized=!1}static getInstance(){return SentryManager.instance||(SentryManager.instance=new SentryManager),SentryManager.instance}initialize(){if(this.isInitialized)return;const e=environmentManager.getEnvironment()||"production";if(!(e===ENVIRONMENTS.PRODUCTION||e===ENVIRONMENTS.STAGING))return;init({dsn:"https://8e000dda9faf4372bd40163105017f8a@o74188.ingest.us.sentry.io/4510466352742400",environment:e,sampleRate:.1}),this.isInitialized=!0}isEnabled(){return this.isInitialized}captureError(e){this.isInitialized&&captureException(e)}captureMessage(e,t="info"){this.isInitialized&&captureMessage(e,t)}}const sentryManager=SentryManager.getInstance(),SDK_PREFIX="[Qonto Embed SDK]";function isDebugEnabled(){return operationSettingsManager.getDebugMode()}function info(e,t){if(!isDebugEnabled())return;const r=void 0!==t?[SDK_PREFIX,e,t]:[SDK_PREFIX,e];console.log(...r)}function initialize$1(e){const{accessToken:t,stagingToken:r,operationSettings:a,environment:n,branch:i,locale:o}=validateInitializeParams(e);t&&authManager.setAccessToken(t),r&&authManager.setStagingToken(r),o&&localeManager.setLocale(o),a&&operationSettingsManager.setSettings(a),n&&(environmentManager.setEnvironment(n),i&&environmentManager.setBranch(i)),sentryManager.initialize(),info("SDK initialized successfully",{environment:n,locale:o,debugMode:a?.debugMode})}function logout$1(){authManager.clearAccessToken(),authManager.clearStagingToken(),localeManager.setDefaultLocale(),operationSettingsManager.clearSettings()}const common={initialize:initialize$1,logout:logout$1,constants:constants$1},{initialize:initialize,logout:logout,constants:constants}=common;class EmbedOperationError extends QontoEmbedSdkError{constructor(e){super(),this.name="EmbedOperationError",this.message=e}}class EmbedApiError extends QontoEmbedSdkError{constructor({message:e,data:t,code:r}){super(),this.code=500;const a=Array.isArray(e)?e.join("\n"):e;this.name="EmbedApiError",this.message=`The call to the Embed API failed with the following errors:\n${a}`,this.data=t||{},this.code=r||this.code}}function isRunningInBrowser(){return"undefined"!=typeof window&&"undefined"!=typeof document}function isRunningInServer(){return!isRunningInBrowser()}function base64Encode(e){return isRunningInServer()?Buffer.from(e).toString("base64"):btoa(e)}function base64Decode(e){return isRunningInServer()?Buffer.from(e,"base64").toString("utf-8"):atob(e)}function buildRequestHeaders({accessToken:e,stagingToken:t,idempotencyKey:r,mfaPreference:a,scaSessionToken:n}){const i=new Headers;i.append("Authorization",`Bearer ${e}`);const o=t||authManager.getStagingToken();o&&i.append("X-Qonto-Staging-Token",o),r&&i.append("X-Qonto-Idempotency-Key",r);const s=a||operationSettingsManager.getMFAPreference();return s&&i.append("X-Qonto-2fa-Preference",s),n&&i.append("X-Qonto-SCA-Session-Token",n),i.append("Content-Type","application/json"),i.append("Accept-Language",localeManager.getLocale()),i}async function makeNetworkCall({path:e,options:t}){const r=`${environmentManager.getEnvironmentUrls().THIRD_PARTY_API_URL}${e}`,a=await fetch(r,{...t,headers:buildRequestHeaders(t.headers),body:t.body?JSON.stringify(t.body):void 0});if(204===a.status)return;const n=await a.json();if(!a.ok)throw n.errors?new EmbedApiError({code:a.status,message:n.errors.map((e=>`${e.code}: ${e.detail}`))}):new EmbedApiError({code:a.status,message:`${n.code}: ${n.detail}`,data:n});return n}function encodeNetworkCall(e){const t={method:e.options.method,headers:e.options.headers,path:e.path,payload:e.options?.body};return base64Encode(JSON.stringify(t))}function decodeNetworkResponse(e){return JSON.parse(base64Decode(e))}function getUIParentElement(e){let t=null;if(t="function"==typeof e?e():document.getElementById(e),!(t&&t instanceof HTMLElement))throw new EmbedOperationError(`Could not install the UI Element because the parent element with id ${e} was not found.\nPlease make sure to pass a valid parentElementId or ensure the parentElementId function returns a valid element.`);return t}async function callProxyFunction({proxyFunction:e,networkCallDescriptor:t,proxyEndpointDescriptor:r}){if(r){const e={...Object.fromEntries([...buildRequestHeaders(t.options?.headers)??{}])},a=encodeNetworkCall({...t,options:{...t.options,headers:e}}),n=await fetch(r.path,{method:r.method,headers:r.options.headers,body:a}),i=decodeNetworkResponse(await n.text());if(!n.ok)throw new EmbedApiError({code:n.status,data:i,message:`Error from proxy endpoint: ${n.status} ${n.statusText}`});return i}if(e){const r=Object.fromEntries([...buildRequestHeaders(t.options?.headers)??{}]),a=encodeNetworkCall({...t,options:{...t.options,headers:r}});return decodeNetworkResponse(await e(a))}throw new EmbedOperationError("No proxy function or proxy endpoint descriptor provided for proxy call.")}function prepareAuthLinkRequest({accessToken:e,stagingToken:t,action:r,callbackUrl:a}){const n={post_authn_action:r};return a&&(n.callback_url=a),{path:"/v1/embed_auth_links",options:{method:"POST",headers:{accessToken:e,stagingToken:t},body:{embed_auth_link:n}}}}async function requestAuthLink(e){const t=prepareAuthLinkRequest({accessToken:e.accessToken,stagingToken:e.stagingToken,action:e.action,callbackUrl:e.callbackUrl}),{embed_auth_link:r}=await makeNetworkCall(t);return{url:r.url,post_authn_action:r.post_authn_action,callback_url:r.callback_url,expired_at:r.expired_at,used_at:r.used_at}}function prepareGetCardsCall({membershipId:e,accessToken:t,stagingToken:r}){return{path:e?`/v2/cards?holder_ids[]=${e}`:"/v2/cards",options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}async function getCards$1({membershipId:e,accessToken:t,stagingToken:r}){const a=prepareGetCardsCall({membershipId:e,accessToken:t,stagingToken:r}),{cards:n}=await makeNetworkCall(a);return n}function prepareGetCardCall({cardId:e,accessToken:t,stagingToken:r}){return{path:`/v2/cards?ids[]=${e}`,options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}async function getCard$1({cardId:e,accessToken:t,stagingToken:r}){const a=prepareGetCardCall({cardId:e,accessToken:t,stagingToken:r}),{cards:n}=await makeNetworkCall(a);return n[0]}function prepareGetCardIframeUrl({accessToken:e,stagingToken:t}){return prepareAuthLinkRequest({accessToken:e,stagingToken:t,action:AUTH_LINK_ACTIONS.CARD_DISPLAY})}async function getCardIframeURL(e){const t=prepareGetCardIframeUrl(e),{embed_auth_link:r}=await makeNetworkCall(t);return r}var CardStatus;!function(e){e.PENDING="pending",e.ONHOLD="onhold",e.ORDER_CANCELED="order_canceled",e.LIVE="live",e.PAUSED="paused",e.STOLEN="stolen",e.LOST="lost",e.PIN_BLOCKED="pin_blocked",e.DELETED="deleted",e.PRE_EXPIRED="pre_expired",e.EXPIRED="expired",e.DISCARDED="discarded",e.SHIPPED_LOST="shipped_lost",e.ABUSIVE="abusive"}(CardStatus||(CardStatus={}));const CardCategories={TRANSPORT:"transport",RESTAURANT_AND_BAR:"restaurant_and_bar",FOOD_AND_GROCERY:"food_and_grocery",IT_AND_ELECTRONICS:"it_and_electronics",UTILITY:"utility",TAX:"tax",LEGAL_AND_ACCOUNTING:"legal_and_accounting",ATM:"atm",OFFICE_SUPPLY:"office_supply",HARDWARE_AND_EQUIPMENT:"hardware_and_equipment",FINANCE:"finance"};var VirtualCardLevel,PhysicalCardLevel;function validatePresenceOfRequiredParams(e,t){const r=t.filter((t=>t.requiredIfPresent?!e[t.name]&&e[t.requiredIfPresent]:void 0===e[t.name])).map((e=>e.name));if(r.length>0)throw new InvalidParametersError(r.map((e=>`Missing required parameter: ${e}`)))}function validateExpectedStringValues(e){return Object.entries(e).filter((([,e])=>void 0!==e)).filter((([,e])=>"string"!=typeof e)).map((([e])=>`${e} must be a string`))}function validateExpectedBooleanValues(e){return Object.entries(e).filter((([,e])=>void 0!==e&&!1!==e&&!0!==e)).map((([e])=>`${e} must be a boolean`))}function validateExpectedNumericValues(e){return Object.entries(e).filter((([,e])=>void 0!==e)).filter((([,e])=>"number"!=typeof e)).map((([e])=>`${e} must be a number`))}!function(e){e.VIRTUAL="virtual"}(VirtualCardLevel||(VirtualCardLevel={})),function(e){e.METAL="metal",e.PLUS="plus",e.STANDARD="standard"}(PhysicalCardLevel||(PhysicalCardLevel={}));const requiredVirtualCardOrderParams=[{name:"organizationId"},{name:"membershipId"},{name:"bankAccountId"},{name:"monthlyLimit"},{name:"cardLevel"}],requiredPhysicalCardOrderParams=[...requiredVirtualCardOrderParams,{name:"atmDailyLimit",requiredIfPresent:"hasAtmDailyLimit"},{name:"hasAtmDailyLimit",requiredIfPresent:"hasAtmOption"},{name:"atmMonthlyLimit",requiredIfPresent:"hasAtmOption"},{name:"shipToBusiness"},{name:"cardLevel"}];function validateOrderCardParams(e){if(!e)throw new InvalidParametersError("cardSettings parameter is required for the called function");return"virtual"===e.cardLevel?validateOrderVirtualCardParams(e):validateOrderPhysicalCardParams(e)}function validateUnlockCardParams(e){if(!e)throw new InvalidParametersError("cardSettings parameter is required for the called function");if(!e.cardId)throw new InvalidParametersError("cardId is required for the called function");const t=validateExpectedStringValues({cardId:e.cardId});if(t.length>0)throw new InvalidParametersError(t)}function validateOrderVirtualCardParams(e){return validatePresenceOfRequiredParams(e,requiredVirtualCardOrderParams),validateOrderVirtualCardParamsType(e),e}function validateOrderVirtualCardParamsType(e){const{membershipId:t,organizationId:r,bankAccountId:a,hasDailyLimit:n,hasTransactionLimit:i,monthlyLimit:o,dailyLimit:s,transactionLimit:l,activeDays:c,categories:h,cardLevel:d}=e,p=[...validateVirtualCardLevel(d),...validateExpectedStringValues({membershipId:t,organizationId:r,bankAccountId:a}),...validateExpectedBooleanValues({hasDailyLimit:n,hasTransactionLimit:i}),...validateExpectedNumericValues({monthlyLimit:o,dailyLimit:s,transactionLimit:l}),...validateActiveDays(c),...validateCategories(h)];if(p.length>0)throw new InvalidParametersError(p)}function validateOrderPhysicalCardParams(e){validatePresenceOfRequiredParams(e,requiredPhysicalCardOrderParams),validateOrderPhysicalCardParamsType(e)}function validateOrderPhysicalCardParamsType(e){const{membershipId:t,organizationId:r,bankAccountId:a,hasDailyLimit:n,hasTransactionLimit:i,monthlyLimit:o,dailyLimit:s,transactionLimit:l,activeDays:c,categories:h,cardLevel:d,hasNfcOption:p,hasForeignPaymentOption:u,hasOnlinePaymentOption:m,shipToBusiness:f,hasAtmOption:g,hasAtmDailyLimit:y,atmDailyLimit:v,atmMonthlyLimit:b,address:x,cardDesign:E,typeOfPrint:S}=e,k=validatePhysicalCardLevel(d),_=validateTypeOfPrint(S),T=[...k,...validateExpectedStringValues({membershipId:t,organizationId:r,bankAccountId:a}),...validateExpectedBooleanValues({hasDailyLimit:n,hasTransactionLimit:i,hasAtmOption:g,hasNfcOption:p,hasForeignPaymentOption:u,hasOnlinePaymentOption:m,hasAtmDailyLimit:y,shipToBusiness:f}),...validateExpectedNumericValues({monthlyLimit:o,dailyLimit:s,transactionLimit:l,atmDailyLimit:v,atmMonthlyLimit:b}),...validateActiveDays(c),...validateCategories(h),..._,...validateCardDesign(E),...validateAddress(x,f)];if(T.length>0)throw new InvalidParametersError(T)}function validateActiveDays(e){const t=!Array.isArray(e)||!e.every((e=>Number.isInteger(e)&&e>0&&e<8));return void 0!==e&&t?["activeDays must be an array of integers between 1 and 7"]:[]}function validateCategories(e){const t=!Array.isArray(e)||e.some((e=>"string"!=typeof e));return void 0!==e&&t?["categories must be an array of strings"]:[]}function validateCardDesign(e){return["undefined","string"].includes(typeof e)?[]:["cardDesign must be a string"]}function validateTypeOfPrint(e){const t=null!=e&&"string"!=typeof e,r=!["print","embossed",void 0,null].includes(e);return t||r?['typeOfPrint must be one of "print", "embossed" or null']:[]}function validatePhysicalCardLevel(e){return Object.values(PhysicalCardLevel).includes(e)?[]:['cardLevel must be one of "standard", "plus", "metal"']}function validateVirtualCardLevel(e){return"virtual"!==e?['cardLevel must be "virtual"']:[]}function validateAddress(e,t){return t||!e||e.contactName&&e.firstLine&&e.zipCode&&e.city&&e.country?[]:["address must contain at least contactName, firstLine, zipCode, city and country properties"]}function validateDisplayCardParams(e){if(!e)throw new InvalidParametersError("cardSettings parameter is required for the called function");if(!e.cardId)throw new InvalidParametersError("cardId is required for the called function");const t=validateExpectedStringValues({cardId:e.cardId});if(t.length>0)throw new InvalidParametersError(t);let r={};void 0!==e.allowPinReveal&&(r={allowPinReveal:e.allowPinReveal}),void 0!==e.allowBlocking&&(r={...r,allowBlocking:e.allowBlocking});const a=validateExpectedBooleanValues(r);if(a.length>0)throw new InvalidParametersError(a);return e}function validateGetCardParams(e){if(!e)throw new InvalidParametersError("cardSettings parameter is required for the called function");if(!e.cardId)throw new InvalidParametersError("cardId parameter is required for the called function");const t=validateExpectedStringValues({cardId:e.cardId});if(t.length>0)throw new InvalidParametersError(t);return e}const byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,t=0){return(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var native={randomUUID:randomUUID};function v4(e,t,r){if(native.randomUUID&&!e)return native.randomUUID();const a=(e=e||{}).random??e.rng?.()??rng();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=15&a[6]|64,a[8]=63&a[8]|128,unsafeStringify(a)}function buildIframeMessage({actionId:e,actionData:t}){const r=operationSettingsManager.getMFAPreference();return{actionId:e,actionData:{...t,scaPreference:t.scaPreference||r,idempotencyKey:t.idempotencyKey||v4()}}}class EmbedIframe{constructor(e){this.options=e,this.iframe=null,this.parentElement=null,this.messageListeners=new Map,this.defaultTimeout=3e4;const t=new URL(e.iframeUrl);this.targetOrigin=`${t.protocol}//${t.host}`}async initialize(){if(this.iframe)return this;if(this.parentElement=getUIParentElement(this.options.parentElementId),!this.parentElement)throw new EmbedOperationError(`Could not install the authentication UI because the parent element with id ${this.options.parentElementId} was not found.\nPlease make sure to pass a valid parentElementId when calling the method.`);return new Promise(((e,t)=>{this.iframe=document.createElement("iframe"),this.iframe.src=this.options.iframeUrl,this.iframe.style.width="100%",this.iframe.style.height="100%",this.iframe.style.border="none";const r=this.options.timeout||this.defaultTimeout,a=setTimeout((()=>{window.removeEventListener("message",n),t(new EmbedOperationError(`Could not install the authentication UI because the timeout of ${r}ms was reached.\nPlease make sure the application can reach the Internet.`))}),r),n=t=>{t.data.eventId===IFRAME_EVENTS.READY&&(clearTimeout(a),window.removeEventListener("message",n),e(this))};window.addEventListener("message",n),this.parentElement?.appendChild(this.iframe)}))}postMessage(e){if(!this.iframe||!this.iframe.contentWindow)return Promise.reject(new EmbedOperationError("Attempted to perform an Embed operation without having the authentication UI initialized."));const t=buildIframeMessage(e);return new Promise(((e,r)=>{const a=n=>{if(n.data?.actionId===t.actionId){if("error"===n.data.status)return this.removeMessageListener(t.actionId,a),r(new EmbedOperationError(`An error occurred when performing the action ${t.actionId}.\n${JSON.stringify(n.data.payload)}`));this.removeMessageListener(t.actionId,a),e(n.data.payload)}};this.addMessageListener(t.actionId,a),this.iframe?.contentWindow?.postMessage(t,this.targetOrigin)}))}addMessageListener(e,t){this.messageListeners.has(e)||this.messageListeners.set(e,[]);this.messageListeners.get(e).push(t),window.addEventListener("message",t)}removeMessageListener(e,t){const r=this.messageListeners.get(e);if(r){const e=r.indexOf(t);-1!==e&&(r.splice(e,1),window.removeEventListener("message",t))}}destroy(){this.messageListeners.forEach((e=>{e.forEach((e=>{window.removeEventListener("message",e)}))})),this.messageListeners.clear(),this.iframe&&this.parentElement&&(this.parentElement.removeChild(this.iframe),this.iframe=null)}}function buildIframeUrl({accessToken:e,stagingToken:t,locale:r,debugMode:a}){const n=a||!1,i=r||localeManager.getLocale(),o=environmentManager.getEnvironmentUrls().EMBED_URL,s=t?`;staging_token=${encodeURIComponent(t)}`:"";return`${o}?debug=${n}&lang=${encodeURIComponent(i)}#access_token=${encodeURIComponent(e)}${s}`}function createIframe({parentElementId:e,iframeUrl:t}){return new EmbedIframe({parentElementId:e,iframeUrl:t}).initialize()}function serializeOrderCardPayload(e){return"virtual"===e.cardLevel?serializeOrderVirtualCardPayload(e):serializeOrderPhysicalCardPayload(e)}function serializeOrderVirtualCardPayload(e){const t=filterValidCategories(e.categories);return{actionId:ACTIONS.CARD_ORDER,actionData:{idempotencyKey:v4(),body:{card:{payment_monthly_limit:e.monthlyLimit,payment_daily_limit:e.dailyLimit,payment_daily_limit_option:e.hasDailyLimit,payment_transaction_limit:e.transactionLimit,payment_transaction_limit_option:e.hasTransactionLimit,active_days:e.activeDays||[],holder_id:e.membershipId,organization_id:e.organizationId,bank_account_id:e.bankAccountId,categories:t,card_level:e.cardLevel}}}}}function serializeOrderPhysicalCardPayload(e){const t=filterValidCategories(e.categories);return{actionId:ACTIONS.CARD_ORDER,actionData:{idempotencyKey:v4(),body:{card:{payment_monthly_limit:e.monthlyLimit,payment_daily_limit:e.dailyLimit,payment_daily_limit_option:e.hasDailyLimit,payment_transaction_limit:e.transactionLimit,payment_transaction_limit_option:e.hasTransactionLimit,active_days:e.activeDays||[],holder_id:e.membershipId,organization_id:e.organizationId,bank_account_id:e.bankAccountId,categories:t,card_level:e.cardLevel,card_design:e.cardDesign,..."plus"===e.cardLevel&&{type_of_print:e.typeOfPrint},ship_to_business_address:e.shipToBusiness,atm_option:e.hasAtmOption,nfc_option:e.hasNfcOption,foreign_option:e.hasForeignPaymentOption,online_option:e.hasOnlinePaymentOption,atm_daily_limit:e.atmDailyLimit,atm_monthly_limit:e.atmMonthlyLimit,...!e.shipToBusiness&&{address:{contact_name:e.address?.contactName,first_line:e.address?.firstLine,second_line:e.address?.secondLine,third_line:e.address?.thirdLine,zipcode:e.address?.zipCode,city:e.address?.city,country:e.address?.country}}}}}}}function serializeCard(e){return{id:e.id,nickname:e.nickname,embossedName:e.embossed_name,status:e.status,maskPan:e.mask_pan,expMonth:parseInt(e.exp_month,10),expYear:parseInt(e.exp_year,10),lastActivityAt:new Date(e.last_activity_at),lastDigits:e.last_digits,shipToBusiness:e.ship_to_business,atmOption:e.atm_option,atmDailyLimitOption:e.atm_daily_limit_option,nfcOption:e.nfc_option,onlineOption:e.online_option,foreignOption:e.foreign_option,atmMonthlyLimit:e.atm_monthly_limit,atmMonthlySpent:e.atm_monthly_spent,atmDailyLimit:e.atm_daily_limit,atmDailySpent:e.atm_daily_spent,paymentMonthlyLimit:e.payment_monthly_limit,paymentMonthlySpent:e.payment_monthly_spent,paymentDailyLimit:e.payment_daily_limit,paymentDailySpent:e.payment_daily_spent,paymentDailyLimitOption:e.payment_daily_limit_option,paymentTransactionLimit:e.payment_transaction_limit,paymentTransactionLimitOption:e.payment_transaction_limit_option,activeDays:e.active_days,holderId:e.holder_id,bankAccountId:e.bank_account_id,organizationId:e.organization_id,updatedAt:new Date(e.updated_at),createdAt:new Date(e.created_at),shippedAt:new Date(e.shipped_at),cardType:e.card_type,cardLevel:e.card_level,paymentLifespanLimit:e.payment_lifespan_limit,paymentLifespanSpent:e.payment_lifespan_spent,preExpiresAt:new Date(e.pre_expires_at),categories:e.categories,renewed:e.renewed,renewal:e.renewal,...e.parent_card_summary&&{parentCardSummary:{id:e.parent_card_summary.id,lastDigits:e.parent_card_summary.last_digits}},hadOperation:e.had_operation,hadPinOperation:e.had_pin_operation,cardDesign:e.card_design,typeOfPrint:e.type_of_print,upsold:e.upsold,upsell:e.upsell,discardOn:new Date(e.discard_on),reordered:e.reordered}}function filterValidCategories(e){const t=Object.values(CardCategories);return(e||[]).filter((e=>t.includes(e)))}function serializeUnlockCardPayload(e){return{actionId:ACTIONS.CARD_UNLOCK,actionData:{body:{cardId:e.cardSettings.cardId}}}}const CUSTOM_PROP_PREFIX="--qonto-embed";function isSameDomain(e){return!e.href||e.href.startsWith(window.location.origin)}function isStyleRule(e){return"CSSStyleRule"===e.constructor.name}function extractVariablesFromStylesheet(e,t){return[...e].filter(isSameDomain).reduce(((e,r)=>[...r.cssRules].filter(isStyleRule).reduce(((e,r)=>{if("style"in r){const a=[...r.style].map((e=>[e.trim(),r.style.getPropertyValue(e).trim()])).filter((([e])=>e.startsWith(t))).reduce(((e,[r,a])=>({...e,[r.replace(`${t}-`,"")]:a})),{});return{...e,...a}}return e}),e)),{})}function gatherQontoEmbedCssVariables(e=CUSTOM_PROP_PREFIX){return isRunningInBrowser()?extractVariablesFromStylesheet(document.styleSheets,e):{}}function getPopulatedIframeURL(e,t){const r=new URL(e);r.searchParams.set("cardId",t.cardId),"boolean"==typeof t.allowPinReveal&&r.searchParams.set("canSeePin",t.allowPinReveal.toString()),"boolean"==typeof t.allowBlocking&&r.searchParams.set("canBlock",t.allowBlocking.toString()),!0===t.debugMode&&r.searchParams.set("debug",t.debugMode.toString());const a=gatherQontoEmbedCssVariables(CUSTOM_PROP_PREFIX);return Object.keys(a).length>0&&r.searchParams.set("customization",JSON.stringify(a)),r.toString()}async function createEmbedUI({decorationParams:e,operationSettings:t,cardIframeUrl:r}){const{cardId:a,allowPinReveal:n,allowBlocking:i}=e,{uiParentElementId:o,debugMode:s}=t,l=getPopulatedIframeURL(r,{cardId:a,allowPinReveal:n,allowBlocking:i,debugMode:s}),c=await createIframe({iframeUrl:l,parentElementId:o});return{destroyEmbedUI:()=>{c.destroy()}}}async function getCards(e){try{const t=e?.cardSettings?.membershipId;if(t&&"string"!=typeof t)throw new InvalidParametersError("membershipId must be a string");const{proxyRequestFunction:r,stagingToken:a}=validateOperationSettingsParams(e?.operationSettings||{});if(r){const e=prepareGetCardsCall({membershipId:t,stagingToken:a});return(await callProxyFunction({proxyFunction:r,networkCallDescriptor:e})).body.cards.map((e=>serializeCard(e)))}{const r=e?.operationSettings?.accessToken||validatePresenceOfAuthToken();return(await getCards$1({membershipId:t,accessToken:r,stagingToken:a})).map((e=>serializeCard(e)))}}catch(e){return Promise.reject(e)}}async function getCard({cardSettings:e,operationSettings:t}){try{validateGetCardParams(e);const r=e.cardId,{proxyRequestFunction:a,stagingToken:n}=validateOperationSettingsParams(t||{});if(a){const e=prepareGetCardCall({cardId:r,stagingToken:n}),t=(await callProxyFunction({proxyFunction:a,networkCallDescriptor:e})).body.cards;if(Array.isArray(t)&&t.length>0)return serializeCard(t[0]);throw new InvalidParametersError("Unable to retrieve card data")}{const e=t?.accessToken||validatePresenceOfAuthToken();return serializeCard(await getCard$1({cardId:r,accessToken:e,stagingToken:n}))}}catch(e){return Promise.reject(e)}}async function orderCard(e){try{const t=validatePresenceOfAuthToken(),{uiParentElementId:r,debugMode:a}=validateOperationSettingsParams(e.operationSettings,{requiresUI:!0});validateOrderCardParams(e.cardSettings);const n=buildIframeUrl({accessToken:t,stagingToken:authManager.getStagingToken()||void 0,debugMode:a}),i=await createIframe({iframeUrl:n,parentElementId:r}),o=serializeOrderCardPayload(e.cardSettings),s=await i.postMessage(o);return i.destroy(),serializeCard(s)}catch(e){return Promise.reject(e)}}async function unlockCard(e){try{const t=validatePresenceOfAuthToken(),{uiParentElementId:r,debugMode:a}=validateOperationSettingsParams(e.operationSettings,{requiresUI:!0});validateUnlockCardParams(e.cardSettings);const n=buildIframeUrl({accessToken:t,stagingToken:authManager.getStagingToken()||void 0,debugMode:a}),i=await createIframe({iframeUrl:n,parentElementId:r}),o=serializeUnlockCardPayload(e),s=await i.postMessage(o);return i.destroy(),serializeCard(s)}catch(e){return Promise.reject(e)}}async function displayCard(e){try{const{uiParentElementId:t,accessToken:r,stagingToken:a,debugMode:n,mfaPreference:i,proxyRequestFunction:o}=validateOperationSettingsParams(e.operationSettings,{requiresUI:!0});if(validateDisplayCardParams(e.cardSettings),o){const r=prepareGetCardIframeUrl({stagingToken:a}),i=(await callProxyFunction({proxyFunction:o,networkCallDescriptor:r})).body.embed_auth_link;return createEmbedUI({decorationParams:e.cardSettings,operationSettings:{uiParentElementId:t,debugMode:n},cardIframeUrl:i.url})}{const o=r||validatePresenceOfAuthToken(),s=await getCardIframeURL({...e.cardSettings,accessToken:o,stagingToken:a});return createEmbedUI({decorationParams:e.cardSettings,operationSettings:{uiParentElementId:t,debugMode:n,mfaPreference:i},cardIframeUrl:s.url})}}catch(e){return Promise.reject(e)}}const cards$1={getCards:getCards,getCard:getCard,orderCard:orderCard,unlockCard:unlockCard,displayCard:displayCard},cards=cards$1;function buildPaginationParams(e){const t=new URLSearchParams;return e?.page&&t.append("page",e.page.toString()),e?.itemsPerPage&&t.append("per_page",e.itemsPerPage.toString()),t}function serializePaginationResponse(e){if(e)return{totalItems:e?.total_count,totalPages:e?.total_pages,currentPage:e?.current_page,itemsPerPage:e?.per_page,previousPage:e?.prev_page||null,nextPage:e?.next_page||null}}function serializeBeneficiary(e){return{id:e.id,name:e.name,email:e.email,activityTag:e.activity_tag,iban:e.iban,bic:e.bic,currency:e.currency,status:e.status,trusted:e.trusted,createdAt:new Date(e.created_at),updatedAt:new Date(e.updated_at)}}function serializeToNewBeneficiaryDataObject(e){return{name:e.name,...e.email&&{email:e.email},...e.activityTag&&{activity_tag:e.activityTag},iban:e.iban,...e.bic&&{bic:e.bic}}}const BENEFICIARIES_ENDPOINT="/v2/sepa/beneficiaries";function prepareGetBeneficiariesCall({paginationSettings:e,accessToken:t,stagingToken:r}){const a={method:"GET",headers:{accessToken:t,stagingToken:r}},n=buildPaginationParams(e),i=n.size?`?${n.toString()}`:"";return{path:`${BENEFICIARIES_ENDPOINT}${i}`,options:a}}async function getBeneficiaries$1({paginationSettings:e,accessToken:t,stagingToken:r}){const a=prepareGetBeneficiariesCall({paginationSettings:e,accessToken:t,stagingToken:r}),{beneficiaries:n,meta:i}=await makeNetworkCall(a);return{beneficiaries:n,meta:i}}function prepareGetBeneficiaryCall({beneficiaryId:e,accessToken:t,stagingToken:r}){return{path:`${BENEFICIARIES_ENDPOINT}/${e}`,options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}async function getBeneficiary$1({accessToken:e,stagingToken:t,beneficiaryId:r}){const a=prepareGetBeneficiaryCall({beneficiaryId:r,accessToken:e,stagingToken:t}),{beneficiary:n}=await makeNetworkCall(a);return n}function prepareAddBeneficiaryCall({beneficiary:e,accessToken:t,stagingToken:r,idempotencyKey:a=v4()}){return{path:BENEFICIARIES_ENDPOINT,options:{method:"POST",headers:{accessToken:t,stagingToken:r,idempotencyKey:a},body:{beneficiary:serializeToNewBeneficiaryDataObject(e)}}}}async function addBeneficiary$1({beneficiary:e,accessToken:t,stagingToken:r,idempotencyKey:a=v4()}){const n=prepareAddBeneficiaryCall({beneficiary:e,accessToken:t,stagingToken:r,idempotencyKey:a}),{beneficiary:i}=await makeNetworkCall(n);return i}function prepareUntrustBeneficiaryCall({beneficiaryIds:e,accessToken:t,stagingToken:r}){return{path:`${BENEFICIARIES_ENDPOINT}/untrust`,options:{method:"PATCH",headers:{accessToken:t,stagingToken:r},body:{ids:e}}}}async function untrustBeneficiaries$1({beneficiaryIds:e,accessToken:t,stagingToken:r}){const a=prepareUntrustBeneficiaryCall({beneficiaryIds:e,accessToken:t,stagingToken:r}),{beneficiaries:n}=await makeNetworkCall(a);return n}function prepareUpdateBeneficiaryCall({beneficiaryParamsBeingEdited:e,accessToken:t,stagingToken:r,idempotencyKey:a,mfaPreference:n}){const{name:i,email:o,activityTag:s}=e,l={method:"PATCH",headers:{accessToken:t,stagingToken:r,idempotencyKey:a,mfaPreference:n},body:{beneficiary:{name:i,email:o,activity_tag:s}}};return{path:`${BENEFICIARIES_ENDPOINT}/${e.id}`,options:l}}async function updateBeneficiary$1({beneficiaryParamsBeingEdited:e,accessToken:t,stagingToken:r,idempotencyKey:a,mfaPreference:n}){const i=prepareUpdateBeneficiaryCall({beneficiaryParamsBeingEdited:e,accessToken:t,stagingToken:r,idempotencyKey:a,mfaPreference:n}),{beneficiary:o}=await makeNetworkCall(i);return o}const requiredNewBeneficiaryParams=[{name:"name"},{name:"iban"}];function validateGetBeneficiaryParams(e){if(!e)throw new InvalidParametersError("beneficiaryId parameter is required for the called function");if(e&&"string"!=typeof e)throw new InvalidParametersError("beneficiaryId must be a string");return e}function validateAddBeneficiaryParams(e){if(!e)throw new InvalidParametersError("beneficiary parameter is required for the called function");if("object"!=typeof e)throw new InvalidParametersError("beneficiary must be an object");validatePresenceOfRequiredParams(e,requiredNewBeneficiaryParams);const t=validateExpectedStringValues({name:e.name,iban:e.iban,email:e.email,activityTag:e.activityTag,bic:e.bic});if(t.length>0)throw new InvalidParametersError(t);return e}function validateUpdateBeneficiaryParams(e){const{id:t,name:r,email:a,activityTag:n}=e||{};if(!t)throw new InvalidParametersError("Invalid parameters were passed to the function:\nA beneficiary ID is required for the called function");if(!r&&!a&&!n)throw new InvalidParametersError("Invalid parameters were passed to the function:\nAt least one of the following properties must be provided: name, email, activityTag");const i=validateExpectedStringValues({name:r,email:a,activityTag:n});if(i.length>0)throw new InvalidParametersError(i);return{id:t,name:r,email:a,activityTag:n}}function validateTrustBeneficiariesParams(e){if(!e)throw new InvalidParametersError("beneficiaryIds parameter is required for the called function");if(!Array.isArray(e)||!e.every((e=>"string"==typeof e)))throw new InvalidParametersError("beneficiaryIds must be an array of strings");return e}async function getBeneficiaries(e){const{stagingToken:t,proxyRequestFunction:r,accessToken:a,paginationSettings:n}=validateOperationSettingsParams(e?.operationSettings||{});if(r){const e=prepareGetBeneficiariesCall({paginationSettings:n}),t=await callProxyFunction({proxyFunction:r,networkCallDescriptor:e}),a=t.body.beneficiaries.map((e=>serializeBeneficiary(e))),i=serializePaginationResponse(t.body.meta);return{beneficiaries:a,...i?{meta:i}:{}}}{const e=a||validatePresenceOfAuthToken(),r=await getBeneficiaries$1({accessToken:e,stagingToken:t,paginationSettings:n}),i=r.beneficiaries.map((e=>serializeBeneficiary(e))),o=serializePaginationResponse(r.meta);return{beneficiaries:i,...o?{meta:o}:{}}}}async function getBeneficiary({beneficiarySettings:e,operationSettings:t}){const r=validateGetBeneficiaryParams(e?.beneficiaryId),{proxyRequestFunction:a,accessToken:n,stagingToken:i}=validateOperationSettingsParams(t||{});if(a){const e=prepareGetBeneficiaryCall({beneficiaryId:r});return serializeBeneficiary((await callProxyFunction({proxyFunction:a,networkCallDescriptor:e})).body.beneficiary)}{const e=n||validatePresenceOfAuthToken();return serializeBeneficiary(await getBeneficiary$1({beneficiaryId:r,accessToken:e,stagingToken:i}))}}async function addBeneficiary({beneficiarySettings:e,operationSettings:t}){const r=validateAddBeneficiaryParams(e),{proxyRequestFunction:a,accessToken:n,stagingToken:i,idempotencyKey:o}=validateOperationSettingsParams(t||{});if(a){const e=prepareAddBeneficiaryCall({beneficiary:r,idempotencyKey:o});return serializeBeneficiary((await callProxyFunction({proxyFunction:a,networkCallDescriptor:e})).body.beneficiary)}{const e=n||validatePresenceOfAuthToken();return serializeBeneficiary(await addBeneficiary$1({beneficiary:r,accessToken:e,stagingToken:i,idempotencyKey:o}))}}async function updateBeneficiary({beneficiarySettings:e,operationSettings:t}){const r=validateUpdateBeneficiaryParams(e),{stagingToken:a,idempotencyKey:n,mfaPreference:i,proxyRequestFunction:o}=validateOperationSettingsParams(t),s={beneficiaryParamsBeingEdited:r,idempotencyKey:n,mfaPreference:i};if(o){const e=prepareUpdateBeneficiaryCall(s);return serializeBeneficiary((await callProxyFunction({proxyFunction:o,networkCallDescriptor:e})).body.beneficiary)}{const e=t?.accessToken||validatePresenceOfAuthToken();return serializeBeneficiary(await updateBeneficiary$1({...s,accessToken:e,stagingToken:a}))}}async function untrustBeneficiaries({beneficiarySettings:e,operationSettings:t}){const r=validateTrustBeneficiariesParams(e?.beneficiaryIds),{proxyRequestFunction:a,accessToken:n,stagingToken:i}=validateOperationSettingsParams(t||{});if(a){const e=prepareUntrustBeneficiaryCall({beneficiaryIds:r});return(await callProxyFunction({proxyFunction:a,networkCallDescriptor:e})).body.beneficiaries.map(serializeBeneficiary)}{const e=n||validatePresenceOfAuthToken();return(await untrustBeneficiaries$1({beneficiaryIds:r,accessToken:e,stagingToken:i})).map(serializeBeneficiary)}}const beneficiaries$1={getBeneficiaries:getBeneficiaries,getBeneficiary:getBeneficiary,addBeneficiary:addBeneficiary,updateBeneficiary:updateBeneficiary,untrustBeneficiaries:untrustBeneficiaries},beneficiaries=beneficiaries$1;function serializeBulkTransfer(e){return{id:e.id,initiatorId:e.initiator_id,createdAt:new Date(e.created_at),updatedAt:new Date(e.updated_at),totalCount:Number(e.total_count),completedCount:Number(e.completed_count),failedCount:Number(e.failed_count),pendingCount:Number(e.pending_count),results:e.results.map((e=>({clientTransferId:e.client_transfer_id,transferId:e.transfer_id??null,errors:e.errors||null,status:e.status})))}}function serializeToNewBulkTransferDataObject(e){return{beneficiary_id:e.beneficiaryId||e.beneficiary?.id,client_transfer_id:e.clientTransferId,amount:e.amount.toString(),reference:e.reference,...e.note?{note:e.note}:{},...e.scheduledDate?{scheduled_date:e.scheduledDate.toISOString().split("T")[0]}:{},...e.attachmentsIds?{attachment_ids:e.attachmentsIds}:{}}}function serializeToBulkVopVerificationResult(e){return{id:e.id,response:{matchResult:e.response.match_result,matchedName:e.response.matched_name}}}function serializeSepaTransfer(e){return{id:e.id,initiatorId:e.initiator_id,bankAccountId:e.bank_account_id,amount:Number(e.amount),amountCents:Number(e.amount_cents),amountCurrency:e.amount_currency,status:e.status,beneficiaryId:e.beneficiary_id,reference:e.reference,note:e.note,declinedReason:e.declined_reason,scheduledDate:new Date(e.scheduled_date),createdAt:new Date(e.created_at),updatedAt:new Date(e.updated_at),processedAt:new Date(e.processed_at),completedAt:new Date(e.completed_at),transactionId:e.transaction_id}}function serializeToNewSepaTransferDataObject(e){const t=e.beneficiaryId||e.beneficiary?.id;return{bank_account_id:e.bankAccountId,beneficiary_id:t,amount:e.amount.toString(),reference:e.reference,...e.note?{note:e.note}:{},...e.scheduledDate?{scheduled_date:e.scheduledDate.toISOString().split("T")[0]}:{},...e.attachmentIds?{attachment_ids:e.attachmentIds}:{}}}function serializeToVopVerificationResult(e){return{matchResult:e.match_result,matchedName:e.matched_name}}function serializeToSepaPayeeDataObject(e){return{name:e.name,iban:e.iban}}const SEPA_ENDPOINT="/v2/sepa",SEPA_TRANSFERS_ENDPOINT=`${SEPA_ENDPOINT}/transfers`;function prepareGetSepaTransfersCall({paginationSettings:e,accessToken:t,stagingToken:r}){const a={method:"GET",headers:{accessToken:t,stagingToken:r}},n=buildPaginationParams(e),i=n.size?`?${n.toString()}`:"";return{path:`${SEPA_TRANSFERS_ENDPOINT}${i}`,options:a}}async function getSepaTransfers$1({accessToken:e,stagingToken:t,paginationSettings:r}){const a=prepareGetSepaTransfersCall({paginationSettings:r,accessToken:e,stagingToken:t}),{transfers:n,meta:i}=await makeNetworkCall(a);return{transfers:n,meta:i}}function prepareGetSepaTransferCall({sepaTransferId:e,accessToken:t,stagingToken:r}){return{path:`${SEPA_TRANSFERS_ENDPOINT}/${e}`,options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}async function getSepaTransfer$1({accessToken:e,stagingToken:t,sepaTransferId:r}){const a=prepareGetSepaTransferCall({sepaTransferId:r,accessToken:e,stagingToken:t}),{transfer:n}=await makeNetworkCall(a);return n}function prepareCreateSepaTransferCall({transfer:e,vopProofToken:t,accessToken:r,stagingToken:a,idempotencyKey:n}){const i=serializeToNewSepaTransferDataObject(e);return{path:SEPA_TRANSFERS_ENDPOINT,options:{method:"POST",headers:{accessToken:r,stagingToken:a,idempotencyKey:n},body:{transfer:i,vop_proof_token:t}}}}async function createSepaTransfer$1({transfer:e,vopProofToken:t,accessToken:r,stagingToken:a,idempotencyKey:n}){const i=prepareCreateSepaTransferCall({transfer:e,vopProofToken:t,accessToken:r,stagingToken:a,idempotencyKey:n}),{transfer:o}=await makeNetworkCall(i);return o}function prepareCancelSepaTransferCall({sepaTransferId:e,accessToken:t,stagingToken:r}){return{path:`${SEPA_TRANSFERS_ENDPOINT}/${e}/cancel`,options:{method:"POST",headers:{accessToken:t,stagingToken:r}}}}async function cancelSepaTransfer$1({sepaTransferId:e,accessToken:t,stagingToken:r}){const a=prepareCancelSepaTransferCall({sepaTransferId:e,accessToken:t,stagingToken:r});await makeNetworkCall(a)}function prepareVerifySepaPayeeCall({sepaPayee:e,accessToken:t,stagingToken:r}){return{path:`${SEPA_ENDPOINT}/verify_payee`,options:{method:"POST",headers:{accessToken:t,stagingToken:r},body:{beneficiary_name:e.name,iban:e.iban}}}}async function verifySepaPayee$1({sepaPayee:e,accessToken:t,stagingToken:r}){const a=prepareVerifySepaPayeeCall({sepaPayee:e,accessToken:t,stagingToken:r});return await makeNetworkCall(a)}const BULK_TRANSFERS_ENDPOINT="/v2/sepa/bulk_transfers";function prepareGetBulkTransfersCall({paginationSettings:e,accessToken:t,stagingToken:r}){const a={method:"GET",headers:{accessToken:t,stagingToken:r}},n=buildPaginationParams(e),i=n.size?`?${n.toString()}`:"";return{path:`${BULK_TRANSFERS_ENDPOINT}${i}`,options:a}}async function getBulkTransfers$1({accessToken:e,stagingToken:t,paginationSettings:r}){const a=prepareGetBulkTransfersCall({paginationSettings:r,accessToken:e,stagingToken:t}),{bulk_transfers:n,meta:i}=await makeNetworkCall(a);return{bulkTransfers:n,meta:i}}function prepareGetBulkTransferCall({bulkTransferId:e,accessToken:t,stagingToken:r}){return{path:`${BULK_TRANSFERS_ENDPOINT}/${e}`,options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}async function getBulkTransfer$1({accessToken:e,stagingToken:t,bulkTransferId:r}){const a=prepareGetBulkTransferCall({bulkTransferId:r,accessToken:e,stagingToken:t}),{bulk_transfer:n}=await makeNetworkCall(a);return n}function prepareVerifySepaPayeesCall({sepaPayees:e,accessToken:t,stagingToken:r}){return{path:`${SEPA_ENDPOINT}/bulk_verify_payee`,options:{method:"POST",headers:{accessToken:t,stagingToken:r},body:{requests:e.map(serializeToSepaPayeeDataObject)}}}}async function verifySepaPayees({sepaPayees:e,accessToken:t,stagingToken:r}){const a=prepareVerifySepaPayeesCall({sepaPayees:e,accessToken:t,stagingToken:r});return await makeNetworkCall(a)}function validateBulkTransferParams(e){if(!e)throw new InvalidParametersError("bulkTransferId parameter is required for the called function.");if("string"!=typeof e)throw new InvalidParametersError("bulkTransferId must be a string.");return e}function validateCreateBulkTransferParams(e){if(!e)throw new InvalidParametersError("bulkTransferSettings parameter is required for the called function.");if(!e.bankAccountId)throw new InvalidParametersError("bankAccountId is required");if(!Array.isArray(e.bulkTransfers))throw new InvalidParametersError("bulkTransfers must be an array");if(e.bulkTransfers.length>400)throw new InvalidParametersError("Maximum of 400 bulk transfers allowed");return e.bulkTransfers.forEach(((e,t)=>{validateSingleBulkTransfer(e,t)})),e}function validateSingleBulkTransfer(e,t){if(!e)throw new InvalidParametersError(`Invalid bulkTransfer at index ${t}: bulkTransfer object is required`);if(!e.beneficiary)throw new InvalidParametersError(`Invalid bulkTransfer at index ${t}: Beneficiary details must be provided in the bulkTransferSettings.beneficiary field`);if(!e.beneficiary.iban)throw new InvalidParametersError(`Invalid bulkTransfer at index ${t}: IBAN is required as part of the beneficiary details`);if(!e.beneficiary.name)throw new InvalidParametersError(`Invalid bulkTransfer at index ${t}: Beneficiary name is required as part of the beneficiary details`);const r=[...validateExpectedStringValues({reference:e.reference,clientTransferId:e.clientTransferId,note:e.note}),...validateExpectedNumericValues({amount:e.amount})].flat();if(r.length>0)throw new InvalidParametersError(r);if(e.amount>AMOUNT_REQUIRING_ATTACHMENTS&&(!e.attachmentsIds||0===e.attachmentsIds.length))throw new InvalidParametersError(`Invalid bulkTransfer at index ${t}: Attachments are required for transfers over €${AMOUNT_REQUIRING_ATTACHMENTS}`)}const RUNTIME_ENVIRONMENT={BROWSER:"browser",SERVER:"server"};class InvalidRuntimeError extends Error{constructor(e){switch(super(),this.name="InvalidRuntimeError",e){case RUNTIME_ENVIRONMENT.BROWSER:this.message="This code is running in a browser environment, but it is expected to run in a server environment.";break;case RUNTIME_ENVIRONMENT.SERVER:this.message="This code is running in a server environment, but it is expected to run in a browser environment.";break;default:this.message="This code is not expected to run in this environment. Check if the function was server-only or browser-only."}}}async function getBulkTransfers(e){const{stagingToken:t,proxyRequestFunction:r,accessToken:a,paginationSettings:n}=validateOperationSettingsParams(e?.operationSettings||{});if(r){const e=prepareGetBulkTransfersCall({paginationSettings:n}),t=await callProxyFunction({proxyFunction:r,networkCallDescriptor:e}),a=t.body.bulk_transfers.map(serializeBulkTransfer),i=serializePaginationResponse(t.body.meta);return{bulkTransfers:a,...i?{meta:i}:{}}}{const e=a||validatePresenceOfAuthToken(),r=await getBulkTransfers$1({accessToken:e,stagingToken:t,paginationSettings:n}),i=r.bulkTransfers?.map(serializeBulkTransfer),o=serializePaginationResponse(r.meta);return{bulkTransfers:i,...o?{meta:o}:{}}}}async function getBulkTransfer({sepaTransferSettings:e,operationSettings:t}){const r=validateBulkTransferParams(e?.bulkTransferId),{proxyRequestFunction:a,accessToken:n,stagingToken:i}=validateOperationSettingsParams(t||{});if(a){const e=prepareGetBulkTransferCall({bulkTransferId:r});return serializeBulkTransfer((await callProxyFunction({proxyFunction:a,networkCallDescriptor:e})).body.bulk_transfer)}{const e=n||validatePresenceOfAuthToken();return serializeBulkTransfer(await getBulkTransfer$1({accessToken:e,stagingToken:i,bulkTransferId:r}))}}async function*createBulkTransfer({bulkTransferSettings:e,operationSettings:t}){const r=t?.accessToken||validatePresenceOfAuthToken(),a=t?.stagingToken||authManager.getStagingToken(),n=t?.idempotencyKey||v4();validateCreateBulkTransferParams(e);const{uiParentElementId:i,debugMode:o}=validateOperationSettingsParams(t,{requiresUI:!0});if(!isRunningInBrowser())throw new InvalidRuntimeError(RUNTIME_ENVIRONMENT.BROWSER);const s=new Map;for(const t of e.bulkTransfers){const e=t.beneficiary.iban;e&&!s.has(e)&&s.set(e,{name:t.beneficiary.name,iban:e})}const l=Array.from(s.values()),c=await verifySepaPayees({sepaPayees:l,accessToken:r,stagingToken:a||void 0});if((yield c.requests.map(serializeToBulkVopVerificationResult))===VOP_DECISIONS.REJECT)return;let h,d;try{const t=buildIframeUrl({accessToken:r,stagingToken:a||void 0,debugMode:o});d=await createIframe({iframeUrl:t,parentElementId:i});const s={bankAccountId:e.bankAccountId,bulkTransfers:e.bulkTransfers.map((e=>serializeToNewBulkTransferDataObject(e)))};h=await d.postMessage(buildIframeMessage({actionId:ACTIONS.TRANSFER_BULK_CREATE,actionData:{body:s,idempotencyKey:n}}))}finally{d?.destroy()}return serializeBulkTransfer(h)}const requiredCreateSepaTransferParams=[{name:"bankAccountId"},{name:"reference"},{name:"amount"}];function validateGetSepaTransferParams(e){if(!e)throw new InvalidParametersError("sepaTransferId parameter is required for the called function");if(e&&"string"!=typeof e)throw new InvalidParametersError("sepaTransferId must be a string");return e}function validateTransferBeneficiaryParams(e){if(!e)throw new InvalidParametersError("sepaTransferSettings parameter is required for the called function");if("object"!=typeof e)throw new InvalidParametersError("sepaTransferSettings must be an object");if(!e.beneficiaryId&&!e.beneficiary)throw new InvalidParametersError("Either beneficiaryId or beneficiary must be provided");const t=validateExpectedStringValues({beneficiaryId:e.beneficiaryId});if(t.length>0)throw new InvalidParametersError(t);return e}function validateCreateSepaTransferParams(e){if(!e)throw new InvalidParametersError("sepaTransferSettings parameter is required for the called function");if("object"!=typeof e)throw new InvalidParametersError("sepaTransferSettings must be an object");validatePresenceOfRequiredParams(e,requiredCreateSepaTransferParams);const t=[...validateExpectedStringValues({bankAccountId:e.bankAccountId,note:e.note,reference:e.reference}),...validateExpectedNumericValues({amount:e.amount})].flat();if(t.length>0)throw new InvalidParametersError(t);if(e.amount>AMOUNT_REQUIRING_ATTACHMENTS&&(!e.attachmentIds||0===e.attachmentIds.length))throw new InvalidParametersError("Attachments are required for transfers over €30,000");return e}function validateCancelSepaTransferParams(e){if(!e)throw new InvalidParametersError("sepaTransferId parameter is required for the called function");if("string"!=typeof e)throw new InvalidParametersError("sepaTransferId must be a string");return e}function validateGetSepaTransferCreationFlowLinkParams(e){if(!e||!e.callbackUrl)throw new InvalidParametersError("callbackUrl parameter is required for the getSepaTransferCreationFlowLink function");if("string"!=typeof e.callbackUrl)throw new InvalidParametersError("callbackUrl must be a string");return e.callbackUrl}function validateAuthLinkRequestSettings(e){if(!e||"object"!=typeof e)throw new InvalidParametersError("requestSettings must be an object");const t=e,{action:r,callbackUrl:a}=e;validatePresenceOfRequiredParams(t,[{name:"action"}]);const n=validateExpectedStringValues(t),i=Object.values(AUTH_LINK_ACTIONS);if(i.includes(r)||n.push(`action must be one of ${i.join(", ")}`),n.length>0)throw new InvalidParametersError(n);if(void 0!==a&&""===a.trim())throw new InvalidParametersError("callbackUrl cannot be empty")}function transformAuthLinkResponse(e){return{url:e.url,postAuthAction:e.post_authn_action,callbackUrl:e.callback_url,expiresAt:e.expired_at,usedAt:e.used_at}}async function request({requestSettings:e,operationSettings:t}){validateAuthLinkRequestSettings(e);const{proxyRequestFunction:r,stagingToken:a}=validateOperationSettingsParams(t||{});if(r){const t=prepareAuthLinkRequest({stagingToken:a,action:e.action,callbackUrl:e.callbackUrl});return transformAuthLinkResponse((await callProxyFunction({proxyFunction:r,networkCallDescriptor:t})).body)}{const r=t?.accessToken||validatePresenceOfAuthToken();return transformAuthLinkResponse(await requestAuthLink({accessToken:r,stagingToken:a,action:e.action,callbackUrl:e.callbackUrl}))}}const authLinks$1={request:request},authLinks=authLinks$1;async function findBeneficiary({sepaTransferSettings:e,operationSettings:t}){return e?.beneficiary?e.beneficiary:await getBeneficiary({beneficiarySettings:{beneficiaryId:e?.beneficiaryId},operationSettings:t})}function decorateUrlWithExtraParams(e,t){const r=t?.locale||localeManager.getLocale(),a=new URL(e);return r&&a.searchParams.append("lang",r),t?.mfaPreference&&a.searchParams.append("mfaPreference",t.mfaPreference),t?.idempotencyKey&&a.searchParams.append("idempotencyKey",t.idempotencyKey),a.toString()}function createSepaTransferScaElement({networkCallDescriptor:e,scaSessionToken:t,operationSettings:r}){const{uiParentElementId:a,proxyRequestFunction:n,locale:i}=r,o=getUIParentElement(a);o.innerHTML="";const s=document.createElement("qonto-sca-passkey-waiting");return s.networkCallDescriptor={...e,options:{...e.options,headers:{...e.options.headers,scaSessionToken:t}}},s.operationSettings={uiParentElementId:a,proxyRequestFunction:n,locale:i},o.appendChild(s),s}async function waitForSepaTransferScaResult(e){return new Promise(((t,r)=>{e.addEventListener("sca-success",(e=>{t(e.detail.result.transfer)}),{once:!0}),e.addEventListener("sca-error",(e=>{r(e.detail.error)}),{once:!0}),e.addEventListener("sca-abort",(e=>{r(e.detail.result)}),{once:!0})}))}function __decorate(e,t,r,a){var n,i=arguments.length,o=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(i<3?n(o):i>3?n(t,r,o):n(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}"function"==typeof SuppressedError&&SuppressedError;
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).QontoEmbed={})}(this,(function(exports){"use strict";class AuthManager{constructor(){this.accessToken=null,this.stagingToken=null}static getInstance(){return AuthManager.instance||(AuthManager.instance=new AuthManager),AuthManager.instance}setAccessToken(e){this.accessToken=e}getAccessToken(){return this.accessToken}hasAccessToken(){return null!==this.accessToken&&""!==this.accessToken}clearAccessToken(){this.accessToken=null}setStagingToken(e){this.stagingToken=e}getStagingToken(){return this.stagingToken}hasStagingToken(){return null!==this.stagingToken&&""!==this.stagingToken}clearStagingToken(){this.stagingToken=null}}const authManager=AuthManager.getInstance();class QontoEmbedSdkError extends Error{constructor(){super(),this.stack=""}toString(){return`${this.name}: ${this.message}`}}class AuthenticationError extends QontoEmbedSdkError{constructor(){super(),this.name="AuthenticationError",this.message="Authentication failed due to missing or invalid authentication method. Provide either a proxyRequestFunction (recommended) or accessToken, either as parameters or by calling the initialize function first."}}function validatePresenceOfAuthToken(){if(!authManager.hasAccessToken())throw new AuthenticationError;return authManager.getAccessToken()}class InvalidParametersError extends QontoEmbedSdkError{constructor(e){super(),this.name="InvalidParametersError",this.invalidParameters=Array.isArray(e)?e:[e],this.message=`Invalid parameters were passed to the function:\n${this.invalidParameters.map((e=>e)).join("\n")}`}}const IFRAME_EVENTS={READY:"qonto.ready"},ACTIONS={CARD_SEE:"card.see",CARD_SEE_DETAILS:"card.see-details",CARD_ORDER:"card.order",CARD_UNLOCK:"card.unlock",CARD_SHOW_PIN:"card.show.pin",CARD_SET_PIN:"card.set.pin",TRANSFER_SINGLE_CREATE:"transfer.single.create",TRANSFER_BULK_CREATE:"transfer.bulk.create",BENEFICIARIES_TRUST:"beneficiary.trust"},ENVIRONMENTS={PRODUCTION:"production",STAGING:"staging",LOCAL:"local"},BRANCHES={MASTER:"master",SANDBOX:"sandbox",QA:"qa"},ACTIVITY_TAGS={ATM:"atm",FALLBACK:"fallback",FEES:"fees",FINANCE:"finance",FOOD_AND_GROCERY:"food_and_grocery",GAS_STATION:"gas_station",HARDWARE_AND_EQUIPMENT:"hardware_and_equipment",HOTEL_AND_LODGING:"hotel_and_lodging",INSURANCE:"insurance",IT_AND_ELECTRONICS:"it_and_electronics",LEGAL_AND_ACCOUNTING:"legal_and_accounting",LOGISTICS:"logistics",MANUFACTURING:"manufacturing",MARKETING:"marketing",OFFICE_RENTAL:"office_rental",OFFICE_SUPPLY:"office_supply",ONLINE_SERVICE:"online_service",OTHER_EXPENSE:"other_expense",OTHER_INCOME:"other_income",OTHER_SERVICE:"other_service",PENDING:"pending",REFUND:"refund",RESTAURANT_AND_BAR:"restaurant_and_bar",SALES:"sales",SALARY:"salary",SUBSCRIPTION:"subscription",TAX:"tax",TRANSPORT:"transport",TREASURY_AND_INTERCO:"treasury_and_interco",UTILITY:"utility",VOUCHER:"voucher"},BENEFICIARY_STATUSES={PENDING:"pending",VALIDATED:"validated",DECLINED:"declined"},LOCALES$1={EN:"en",FR:"fr",DE:"de",ES:"es",IT:"it",PT:"pt"},TRANSFER_DECLINE_REASONS={BENEFICIARY_BIC_INVALID:"beneficiary_bic_invalid",BENEFICIARY_IBAN_INVALID:"beneficiary_iban_invalid",BENEFICIARY_STATUS:"beneficiary_status",BENEFICIARY_NETWORK_RULES_ERROR:"beneficiary_network_rules_error",ORGANISATION_COMPLIANCE_REASONS:"organisation_compliance_reasons",DEBIT_ACCOUNT_INSUFFICIENT_FUNDS:"debit_account_insufficient_funds",QONTO_PROCESSING_FAILED:"qonto_processing_failed"},TRANSFER_STATUSES={PENDING:"pending",PROCESSING:"processing",CANCELED:"canceled",DECLINED:"declined",SETTLED:"settled",FAILED:"failed",COMPLETED:"completed"},TRANSACTION_STATUSES={PENDING:"pending",DECLINED:"declined",COMPLETED:"completed"},MFA_METHODS={PASSKEY:"passkey",SMS_OTP:"sms-otp",PAIRED_DEVICE:"paired-device",MOCK:"mock"},AMOUNT_REQUIRING_ATTACHMENTS=3e4,VOP_CHECK_RESULTS={MATCH_RESULT_MATCH:"MATCH_RESULT_MATCH",MATCH_RESULT_NO_MATCH:"MATCH_RESULT_NO_MATCH",MATCH_RESULT_CLOSE_MATCH:"MATCH_RESULT_CLOSE_MATCH",MATCH_RESULT_NOT_POSSIBLE:"MATCH_RESULT_NOT_POSSIBLE",MATCH_RESULT_UNSPECIFIED:"MATCH_RESULT_UNSPECIFIED"},VOP_DECISIONS={ACCEPT:"ACCEPT",REJECT:"REJECT"},AUTH_LINK_ACTIONS={CARD_DISPLAY:"display_card",PAYMENT_LINK_CREATE:"create_payment_link",SEPA_TRANSFER_CREATE:"create_sepa_transfer"},HTTP_CODES={PRECONDITION_REQUIRED:428};var constants$1=Object.freeze({__proto__:null,ACTIONS:ACTIONS,ACTIVITY_TAGS:ACTIVITY_TAGS,AMOUNT_REQUIRING_ATTACHMENTS:AMOUNT_REQUIRING_ATTACHMENTS,AUTH_LINK_ACTIONS:AUTH_LINK_ACTIONS,BENEFICIARY_STATUSES:BENEFICIARY_STATUSES,BRANCHES:BRANCHES,ENVIRONMENTS:ENVIRONMENTS,HTTP_CODES:HTTP_CODES,IFRAME_EVENTS:IFRAME_EVENTS,LOCALES:LOCALES$1,MFA_METHODS:MFA_METHODS,TRANSACTION_STATUSES:TRANSACTION_STATUSES,TRANSFER_DECLINE_REASONS:TRANSFER_DECLINE_REASONS,TRANSFER_STATUSES:TRANSFER_STATUSES,VOP_CHECK_RESULTS:VOP_CHECK_RESULTS,VOP_DECISIONS:VOP_DECISIONS});class OperationSettingsManager{constructor(){this.mfaPreference=MFA_METHODS.PASSKEY,this.debugMode=!1}static getInstance(){return OperationSettingsManager.instance||(OperationSettingsManager.instance=new OperationSettingsManager),OperationSettingsManager.instance}setSettings(e){e.uiParentElementId&&(this.uiParentElementId=e.uiParentElementId),e.mfaPreference&&(this.mfaPreference=e.mfaPreference),e.debugMode&&(this.debugMode=e.debugMode),e.proxyRequestFunction&&(this.proxyRequestFunction=e.proxyRequestFunction),e.proxyEndpointDescriptor&&(this.proxyEndpointDescriptor=e.proxyEndpointDescriptor)}getUIParentElementId(){return this.uiParentElementId}getMFAPreference(){return this.mfaPreference}getDebugMode(){return this.debugMode}getProxyRequestFunction(){return this.proxyRequestFunction}getProxyEndpointDescriptor(){return this.proxyEndpointDescriptor}clearSettings(){this.uiParentElementId=void 0,this.mfaPreference=MFA_METHODS.PASSKEY,this.debugMode=!1,this.proxyRequestFunction=void 0}getSettings(){return{uiParentElementId:this.uiParentElementId,mfaPreference:this.mfaPreference,debugMode:this.debugMode,proxyRequestFunction:this.proxyRequestFunction}}}const operationSettingsManager=OperationSettingsManager.getInstance(),EMBED_BASE_URL_PROD="https://embed.qonto.com",EMBED_BASE_URL_STAGING="https://embed-js{branch}.staging.qonto.co",EMBED_BASE_URL_LOCAL="https://embed.dev.qonto.co",urlsPerEnvironment={[ENVIRONMENTS.PRODUCTION]:{EMBED_BASE_URL:EMBED_BASE_URL_PROD,EMBED_URL:`${EMBED_BASE_URL_PROD}/connect`,THIRD_PARTY_API_URL:"https://thirdparty.qonto.com"},[ENVIRONMENTS.STAGING]:{EMBED_BASE_URL:EMBED_BASE_URL_STAGING,EMBED_URL:`${EMBED_BASE_URL_STAGING}/connect`,THIRD_PARTY_API_URL:"https://thirdparty{branch}.staging.qonto.co"},[ENVIRONMENTS.LOCAL]:{EMBED_BASE_URL:EMBED_BASE_URL_LOCAL,EMBED_URL:`${EMBED_BASE_URL_LOCAL}/connect`,THIRD_PARTY_API_URL:"https://thirdparty{branch}.staging.qonto.co"}};class EnvironmentManager{constructor(){let e,t;this.environment=ENVIRONMENTS.PRODUCTION,this.branch=BRANCHES.SANDBOX,"undefined"!=typeof process&&process.env&&(e=process.env.QONTO_EMBED_ENVIRONMENT,t=process.env.QONTO_EMBED_BRANCH),this.environment=Object.values(ENVIRONMENTS).includes(e)?e:ENVIRONMENTS.PRODUCTION,this.branch=Object.values(BRANCHES).includes(t)?t:BRANCHES.SANDBOX}static getInstance(){return EnvironmentManager.instance||(EnvironmentManager.instance=new EnvironmentManager),EnvironmentManager.instance}setEnvironment(e){this.environment=e}getEnvironment(){return this.environment}isProductionEnvironment(){return this.environment===ENVIRONMENTS.PRODUCTION}setBranch(e){this.branch=e}getBranch(){return this.branch}clear(){this.environment=ENVIRONMENTS.PRODUCTION,this.branch=BRANCHES.MASTER}getEnvironmentUrls(){if(this.environment===ENVIRONMENTS.PRODUCTION)return urlsPerEnvironment.production;{const e=urlsPerEnvironment[this.environment];return Object.entries(e).reduce(((e,[t,r])=>({...e,[t]:r.replace("{branch}",`-${this.branch}`)})),{})}}}const environmentManager=EnvironmentManager.getInstance(),defaultOperationSettingsValidationConfiguration={requiresUI:!1};function validateOperationSettingsParams(e,{requiresUI:t}=defaultOperationSettingsValidationConfiguration){const r=e?.uiParentElementId||operationSettingsManager.getUIParentElementId();if(t){if(!r)throw new InvalidParametersError("operationSettings parameter must have a uiParentElementId for the called function.\nYou can pass it either to the initialize function or in a per function basis.");if(!["string","function"].includes(typeof r))throw new InvalidParametersError("operationSettings.uiParentElementId must be a string or a function returning an HTMLElement")}const n=e?.mfaPreference||operationSettingsManager.getMFAPreference();if(n){const e=getMfaValuesAvailableInCurrentEnvironment(Object.values(MFA_METHODS));if(!e.includes(n))throw new InvalidParametersError(`operationSettings.mfaPreference must be one of ${e.join(", ")}`);if(environmentManager.isProductionEnvironment()&&n===MFA_METHODS.MOCK)throw new InvalidParametersError("operationSettings.mfaPreference cannot be set to mock in production environment.")}const i=e?.debugMode||operationSettingsManager.getDebugMode();if(void 0!==i&&"boolean"!=typeof i)throw new InvalidParametersError("operationSettings.debugMode must be a boolean.");const a=e?.proxyRequestFunction||operationSettingsManager.getProxyRequestFunction();if(a&&"function"!=typeof a)throw new InvalidParametersError("operationSettings.proxyRequestFunction must be a function.");const o=e?.proxyEndpointDescriptor||operationSettingsManager.getProxyEndpointDescriptor();if(o&&!o.path)throw new InvalidParametersError("operationSettings.proxyEndpointDescriptor must have at least a string-formatted path property.");return{...e,uiParentElementId:r,mfaPreference:n,debugMode:i,proxyRequestFunction:a,proxyEndpointDescriptor:o}}function validateClientOperationSettings(e,t){const r=e?.proxyRequestFunction||operationSettingsManager.getProxyRequestFunction(),n=e?.proxyEndpointDescriptor||operationSettingsManager.getProxyEndpointDescriptor();if(!r&&!n)throw new InvalidParametersError(t||"Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. If you need to use accessToken, import the server version of this module.");return{...e,proxyRequestFunction:r,proxyEndpointDescriptor:n}}function getMfaValuesAvailableInCurrentEnvironment(e){return environmentManager.isProductionEnvironment()?e.filter((e=>e!==MFA_METHODS.MOCK)):e}const SUPPORTED_LOCALES=Object.values(LOCALES$1);function validateLocale(e){if(!isLocaleSupported(e))throw new InvalidParametersError(`Unsupported locale: ${e}. The locale must be one of: ${SUPPORTED_LOCALES.join(", ")}.`);return e}function isLocaleSupported(e){return SUPPORTED_LOCALES.includes(e)}function validateInitializeParams(e){if(!e?.accessToken&&!e?.operationSettings?.proxyRequestFunction&&!e?.operationSettings?.proxyEndpointDescriptor)throw new InvalidParametersError("Either operationSettings.proxyRequestFunction, operationSettings.proxyEndpointDescriptor, or access token is required when calling initialize()");return e?.operationSettings&&validateOperationSettingsParams(e.operationSettings),validateEnvironmentParams(e),e.locale&&validateLocale(e.locale),e}function validateEnvironmentParams(e){if(e.environment){if(!["production","staging","local"].includes(e.environment))throw new InvalidParametersError('If provided, environment must be either "production" or "staging"\nYou can "import constants from @qonto/embed-sdk/common" and then use "constants.environment.PRODUCTION" or "constants.environment.STAGING"');if(e.branch&&!["master","sandbox","qa"].includes(e.branch))throw new InvalidParametersError('If provided, branch must be either "master", "sandbox" or "qa"\nYou can "import constants from @qonto/embed-sdk/common" and then use "constants.branch.MASTER" or "constants.environment.SANDBOX" and so on')}return e}class LocaleManager{constructor(){this.currentLocale="en"}static getInstance(){return LocaleManager.instance||(LocaleManager.instance=new LocaleManager),LocaleManager.instance}setLocale(e){this.currentLocale=e}getLocale(){return this.currentLocale}setDefaultLocale(){this.currentLocale="en"}}const localeManager=LocaleManager.getInstance(),DEBUG_BUILD$3="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,SDK_VERSION="8.55.0",GLOBAL_OBJ=globalThis;function getGlobalSingleton(e,t,r){const n=r||GLOBAL_OBJ,i=n.__SENTRY__=n.__SENTRY__||{},a=i[SDK_VERSION]=i[SDK_VERSION]||{};return a[e]||(a[e]=t())}const DEBUG_BUILD$2="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,PREFIX$1="Sentry Logger ",CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],originalConsoleMethods={};function consoleSandbox(e){if(!("console"in GLOBAL_OBJ))return e();const t=GLOBAL_OBJ.console,r={},n=Object.keys(originalConsoleMethods);n.forEach((e=>{const n=originalConsoleMethods[e];r[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=r[e]}))}}function makeLogger(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return DEBUG_BUILD$2?CONSOLE_LEVELS.forEach((r=>{t[r]=(...t)=>{e&&consoleSandbox((()=>{GLOBAL_OBJ.console[r](`${PREFIX$1}[${r}]:`,...t)}))}})):CONSOLE_LEVELS.forEach((e=>{t[e]=()=>{}})),t}const logger=getGlobalSingleton("logger",makeLogger),STACKTRACE_FRAME_LIMIT=50,UNKNOWN_FUNCTION="?",WEBPACK_ERROR_REGEXP=/\(error: (.*)\)/,STRIP_FRAME_REGEXP=/captureMessage|captureException/;function createStackParser(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,r=0,n=0)=>{const i=[],a=e.split("\n");for(let e=r;e<a.length;e++){const r=a[e];if(r.length>1024)continue;const o=WEBPACK_ERROR_REGEXP.test(r)?r.replace(WEBPACK_ERROR_REGEXP,"$1"):r;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){i.push(t);break}}if(i.length>=STACKTRACE_FRAME_LIMIT+n)break}}return stripSentryFramesAndReverse(i.slice(n))}}function stackParserFromStackParserOptions(e){return Array.isArray(e)?createStackParser(...e):e}function stripSentryFramesAndReverse(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(getLastStackFrame(t).function||"")&&t.pop(),t.reverse(),STRIP_FRAME_REGEXP.test(getLastStackFrame(t).function||"")&&(t.pop(),STRIP_FRAME_REGEXP.test(getLastStackFrame(t).function||"")&&t.pop()),t.slice(0,STACKTRACE_FRAME_LIMIT).map((e=>({...e,filename:e.filename||getLastStackFrame(t).filename,function:e.function||UNKNOWN_FUNCTION})))}function getLastStackFrame(e){return e[e.length-1]||{}}const defaultFunctionName="<anonymous>";function getFunctionName(e){try{return e&&"function"==typeof e&&e.name||defaultFunctionName}catch(e){return defaultFunctionName}}function getFramesFromEvent(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}const handlers={},instrumented={};function addHandler(e,t){handlers[e]=handlers[e]||[],handlers[e].push(t)}function maybeInstrument(e,t){if(!instrumented[e]){instrumented[e]=!0;try{t()}catch(t){DEBUG_BUILD$2&&logger.error(`Error while instrumenting ${e}`,t)}}}function triggerHandlers(e,t){const r=e&&handlers[e];if(r)for(const n of r)try{n(t)}catch(t){DEBUG_BUILD$2&&logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${getFunctionName(n)}\nError:`,t)}}let _oldOnErrorHandler=null;function addGlobalErrorInstrumentationHandler(e){const t="error";addHandler(t,e),maybeInstrument(t,instrumentError)}function instrumentError(){_oldOnErrorHandler=GLOBAL_OBJ.onerror,GLOBAL_OBJ.onerror=function(e,t,r,n,i){return triggerHandlers("error",{column:n,error:i,line:r,msg:e,url:t}),!!_oldOnErrorHandler&&_oldOnErrorHandler.apply(this,arguments)},GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let _oldOnUnhandledRejectionHandler=null;function addGlobalUnhandledRejectionInstrumentationHandler(e){const t="unhandledrejection";addHandler(t,e),maybeInstrument(t,instrumentUnhandledRejection)}function instrumentUnhandledRejection(){_oldOnUnhandledRejectionHandler=GLOBAL_OBJ.onunhandledrejection,GLOBAL_OBJ.onunhandledrejection=function(e){return triggerHandlers("unhandledrejection",e),!_oldOnUnhandledRejectionHandler||_oldOnUnhandledRejectionHandler.apply(this,arguments)},GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function getMainCarrier(){return getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function getSentryCarrier(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||SDK_VERSION,t[SDK_VERSION]=t[SDK_VERSION]||{}}const objectToString=Object.prototype.toString;function isError(e){switch(objectToString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return isInstanceOf(e,Error)}}function isBuiltin(e,t){return objectToString.call(e)===`[object ${t}]`}function isErrorEvent$1(e){return isBuiltin(e,"ErrorEvent")}function isDOMError(e){return isBuiltin(e,"DOMError")}function isDOMException(e){return isBuiltin(e,"DOMException")}function isString(e){return isBuiltin(e,"String")}function isParameterizedString(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function isPrimitive(e){return null===e||isParameterizedString(e)||"object"!=typeof e&&"function"!=typeof e}function isPlainObject(e){return isBuiltin(e,"Object")}function isEvent(e){return"undefined"!=typeof Event&&isInstanceOf(e,Event)}function isElement(e){return"undefined"!=typeof Element&&isInstanceOf(e,Element)}function isRegExp(e){return isBuiltin(e,"RegExp")}function isThenable(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function isSyntheticEvent(e){return isPlainObject(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function isInstanceOf(e,t){try{return e instanceof t}catch(e){return!1}}function isVueViewModel(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const WINDOW$4=GLOBAL_OBJ,DEFAULT_MAX_STRING_LENGTH=80;function htmlTreeAsString(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let a=0,o=0;const s=" > ",l=s.length;let c;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||DEFAULT_MAX_STRING_LENGTH;for(;r&&a++<n&&(c=_htmlElementAsString(r,d),!("html"===c||a>1&&o+i.length*l+c.length>=u));)i.push(c),o+=c.length,r=r.parentNode;return i.reverse().join(s)}catch(e){return"<unknown>"}}function _htmlElementAsString(e,t){const r=e,n=[];if(!r||!r.tagName)return"";if(WINDOW$4.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const i=t&&t.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(i&&i.length)i.forEach((e=>{n.push(`[${e[0]}="${e[1]}"]`)}));else{r.id&&n.push(`#${r.id}`);const e=r.className;if(e&&isString(e)){const t=e.split(/\s+/);for(const e of t)n.push(`.${e}`)}}const a=["aria-label","type","name","title","alt"];for(const e of a){const t=r.getAttribute(e);t&&n.push(`[${e}="${t}"]`)}return n.join("")}function getLocationHref(){try{return WINDOW$4.document.location.href}catch(e){return""}}function getComponentName(e){if(!WINDOW$4.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function truncate(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function safeJoin(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t<e.length;t++){const n=e[t];try{isVueViewModel(n)?r.push("[VueViewModel]"):r.push(String(n))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function isMatchingPattern(e,t,r=!1){return!!isString(e)&&(isRegExp(t)?t.test(e):!!isString(t)&&(r?e===t:e.includes(t)))}function stringMatchesSomePattern(e,t=[],r=!1){return t.some((t=>isMatchingPattern(e,t,r)))}function fill(e,t,r){if(!(t in e))return;const n=e[t],i=r(n);"function"==typeof i&&markFunctionWrapped(i,n);try{e[t]=i}catch(r){DEBUG_BUILD$2&&logger.log(`Failed to replace method "${t}" in object`,e)}}function addNonEnumerableProperty(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){DEBUG_BUILD$2&&logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function markFunctionWrapped(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,addNonEnumerableProperty(e,"__sentry_original__",t)}catch(e){}}function getOriginalFunction(e){return e.__sentry_original__}function convertToPlainObject(e){if(isError(e))return{message:e.message,name:e.name,stack:e.stack,...getOwnProperties(e)};if(isEvent(e)){const t={type:e.type,target:serializeEventTarget(e.target),currentTarget:serializeEventTarget(e.currentTarget),...getOwnProperties(e)};return"undefined"!=typeof CustomEvent&&isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}return e}function serializeEventTarget(e){try{return isElement(e)?htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function getOwnProperties(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function extractExceptionKeysForMessage(e,t=40){const r=Object.keys(convertToPlainObject(e));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return truncate(n,t);for(let e=r.length;e>0;e--){const n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:truncate(n,t)}return""}function dropUndefinedKeys(e){return _dropUndefinedKeys(e,new Map)}function _dropUndefinedKeys(e,t){if(isPojo(e)){const r=t.get(e);if(void 0!==r)return r;const n={};t.set(e,n);for(const r of Object.getOwnPropertyNames(e))void 0!==e[r]&&(n[r]=_dropUndefinedKeys(e[r],t));return n}if(Array.isArray(e)){const r=t.get(e);if(void 0!==r)return r;const n=[];return t.set(e,n),e.forEach((e=>{n.push(_dropUndefinedKeys(e,t))})),n}return e}function isPojo(e){if(!isPlainObject(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}const ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return Date.now()/ONE_SECOND_IN_MS}function createUnixTimestampInSecondsFunc(){const{performance:e}=GLOBAL_OBJ;if(!e||!e.now)return dateTimestampInSeconds;const t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/ONE_SECOND_IN_MS}const timestampInSeconds=createUnixTimestampInSecondsFunc();function uuid4(){const e=GLOBAL_OBJ,t=e.crypto||e.msCrypto;let r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function getFirstException(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function getEventDescription(e){const{message:t,event_id:r}=e;if(t)return t;const n=getFirstException(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function addExceptionTypeValue(e,t,r){const n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function addExceptionMechanism(e,t){const r=getFirstException(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n&&n.data,...t.data};r.mechanism.data=e}}function checkOrSetAlreadyCaught(e){if(isAlreadyCaptured(e))return!0;try{addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch(e){}return!1}function isAlreadyCaptured(e){try{return e.__sentry_captured__}catch(e){}}var States;function resolvedSyncPromise(e){return new SyncPromise((t=>{t(e)}))}function rejectedSyncPromise(e){return new SyncPromise(((t,r)=>{r(e)}))}(()=>{const{performance:e}=GLOBAL_OBJ;if(!e||!e.now)return;const t=36e5,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,a=i<t,o=e.timing&&e.timing.navigationStart,s="number"==typeof o?Math.abs(o+r-n):t;(a||s<t)&&(i<=s&&e.timeOrigin)})(),function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(States||(States={}));class SyncPromise{constructor(e){SyncPromise.prototype.__init.call(this),SyncPromise.prototype.__init2.call(this),SyncPromise.prototype.__init3.call(this),SyncPromise.prototype.__init4.call(this),this._state=States.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new SyncPromise(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new SyncPromise(((t,r)=>{let n,i;return this.then((t=>{i=!1,n=t,e&&e()}),(t=>{i=!0,n=t,e&&e()})).then((()=>{i?r(n):t(n)}))}))}__init(){this._resolve=e=>{this._setResult(States.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(States.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===States.PENDING&&(isThenable(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===States.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===States.RESOLVED&&e[1](this._value),this._state===States.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function makeSession(e){const t=timestampInSeconds(),r={sid:uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>sessionToJSON(r)};return e&&updateSession(r,e),r}function updateSession(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||timestampInSeconds(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:uuid4()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function closeSession(e,t){let r={};"ok"===e.status&&(r={status:"exited"}),updateSession(e,r)}function sessionToJSON(e){return dropUndefinedKeys({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function generateTraceId(){return uuid4()}function generateSpanId(){return uuid4().substring(16)}function merge$1(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const n={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=merge$1(n[e],t[e],r-1));return n}const SCOPE_SPAN_FIELD="_sentrySpan";function _setSpanForScope(e,t){t?addNonEnumerableProperty(e,SCOPE_SPAN_FIELD,t):delete e[SCOPE_SPAN_FIELD]}function _getSpanForScope(e){return e[SCOPE_SPAN_FIELD]}const DEFAULT_MAX_BREADCRUMBS=100;class ScopeClass{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:generateTraceId(),spanId:generateSpanId()}}clone(){const e=new ScopeClass;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,_setSpanForScope(e,_getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[r,n]=t instanceof Scope?[t.getScopeData(),t.getRequestSession()]:isPlainObject(t)?[e,e.requestSession]:[],{tags:i,extra:a,user:o,contexts:s,level:l,fingerprint:c=[],propagationContext:d}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),c.length&&(this._fingerprint=c),d&&(this._propagationContext=d),n&&(this._requestSession=n),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,_setSpanForScope(this,void 0),this._attachments=[],this.setPropagationContext({traceId:generateTraceId()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:DEFAULT_MAX_BREADCRUMBS;if(r<=0)return this;const n={timestamp:dateTimestampInSeconds(),...e};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=merge$1(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:generateSpanId(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t&&t.event_id?t.event_id:uuid4();if(!this._client)return logger.warn("No client configured on scope - will not capture exception!"),r;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){const n=r&&r.event_id?r.event_id:uuid4();if(!this._client)return logger.warn("No client configured on scope - will not capture message!"),n;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){const r=t&&t.event_id?t.event_id:uuid4();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(logger.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Scope=ScopeClass;function getDefaultCurrentScope(){return getGlobalSingleton("defaultCurrentScope",(()=>new Scope))}function getDefaultIsolationScope(){return getGlobalSingleton("defaultIsolationScope",(()=>new Scope))}class AsyncContextStack{constructor(e,t){let r,n;r=e||new Scope,n=t||new Scope,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(e){throw this._popScope(),e}return isThenable(r)?r.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function getAsyncContextStack(){const e=getSentryCarrier(getMainCarrier());return e.stack=e.stack||new AsyncContextStack(getDefaultCurrentScope(),getDefaultIsolationScope())}function withScope$1(e){return getAsyncContextStack().withScope(e)}function withSetScope(e,t){const r=getAsyncContextStack();return r.withScope((()=>(r.getStackTop().scope=e,t(e))))}function withIsolationScope(e){return getAsyncContextStack().withScope((()=>e(getAsyncContextStack().getIsolationScope())))}function getStackAsyncContextStrategy(){return{withIsolationScope:withIsolationScope,withScope:withScope$1,withSetScope:withSetScope,withSetIsolationScope:(e,t)=>withIsolationScope(t),getCurrentScope:()=>getAsyncContextStack().getScope(),getIsolationScope:()=>getAsyncContextStack().getIsolationScope()}}function getAsyncContextStrategy(e){const t=getSentryCarrier(e);return t.acs?t.acs:getStackAsyncContextStrategy()}function getCurrentScope(){return getAsyncContextStrategy(getMainCarrier()).getCurrentScope()}function getIsolationScope(){return getAsyncContextStrategy(getMainCarrier()).getIsolationScope()}function getGlobalScope$1(){return getGlobalSingleton("globalScope",(()=>new Scope))}function withScope(...e){const t=getAsyncContextStrategy(getMainCarrier());if(2===e.length){const[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}return t.withScope(e[0])}function getClient(){return getCurrentScope().getClient()}function getTraceContextFromScope(e){const t=e.getPropagationContext(),{traceId:r,spanId:n,parentSpanId:i}=t;return dropUndefinedKeys({trace_id:r,span_id:n,parent_span_id:i})}const METRICS_SPAN_FIELD="_sentryMetrics";function getMetricSummaryJsonForSpan(e){const t=e[METRICS_SPAN_FIELD];if(!t)return;const r={};for(const[,[e,n]]of t){(r[e]||(r[e]=[])).push(dropUndefinedKeys(n))}return r}const SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source",SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",SPAN_STATUS_UNSET=0,SPAN_STATUS_OK=1,SENTRY_BAGGAGE_KEY_PREFIX="sentry-",SENTRY_BAGGAGE_KEY_PREFIX_REGEX=/^sentry-/;function baggageHeaderToDynamicSamplingContext(e){const t=parseBaggageHeader(e);if(!t)return;const r=Object.entries(t).reduce(((e,[t,r])=>{if(t.match(SENTRY_BAGGAGE_KEY_PREFIX_REGEX)){e[t.slice(SENTRY_BAGGAGE_KEY_PREFIX.length)]=r}return e}),{});return Object.keys(r).length>0?r:void 0}function parseBaggageHeader(e){if(e&&(isString(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const r=baggageHeaderToObject(t);return Object.entries(r).forEach((([t,r])=>{e[t]=r})),e}),{}):baggageHeaderToObject(e)}function baggageHeaderToObject(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,r])=>(t&&r&&(e[t]=r),e)),{})}const TRACE_FLAG_SAMPLED=1;let hasShownSpanDropWarning=!1;function spanToTraceContext(e){const{spanId:t,traceId:r,isRemote:n}=e.spanContext();return dropUndefinedKeys({parent_span_id:n?t:spanToJSON(e).parent_span_id,span_id:n?generateSpanId():t,trace_id:r})}function spanTimeInputToSeconds(e){return"number"==typeof e?ensureTimestampInSeconds(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ensureTimestampInSeconds(e.getTime()):timestampInSeconds()}function ensureTimestampInSeconds(e){return e>9999999999?e/1e3:e}function spanToJSON(e){if(spanIsSentrySpan(e))return e.getSpanJSON();try{const{spanId:t,traceId:r}=e.spanContext();if(spanIsOpenTelemetrySdkTraceBaseSpan(e)){const{attributes:n,startTime:i,name:a,endTime:o,parentSpanId:s,status:l}=e;return dropUndefinedKeys({span_id:t,trace_id:r,data:n,description:a,parent_span_id:s,start_timestamp:spanTimeInputToSeconds(i),timestamp:spanTimeInputToSeconds(o)||void 0,status:getStatusMessage(l),op:n[SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:getMetricSummaryJsonForSpan(e)})}return{span_id:t,trace_id:r}}catch(e){return{}}}function spanIsOpenTelemetrySdkTraceBaseSpan(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function spanIsSentrySpan(e){return"function"==typeof e.getSpanJSON}function spanIsSampled(e){const{traceFlags:t}=e.spanContext();return t===TRACE_FLAG_SAMPLED}function getStatusMessage(e){if(e&&e.code!==SPAN_STATUS_UNSET)return e.code===SPAN_STATUS_OK?"ok":e.message||"unknown_error"}const ROOT_SPAN_FIELD="_sentryRootSpan";function getRootSpan(e){return e[ROOT_SPAN_FIELD]||e}function showSpanDropWarning(){hasShownSpanDropWarning||(consoleSandbox((()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")})),hasShownSpanDropWarning=!0)}function hasTracingEnabled(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=getClient(),r=t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const DEFAULT_ENVIRONMENT="production",FROZEN_DSC_FIELD="_frozenDsc";function getDynamicSamplingContextFromClient(e,t){const r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i=dropUndefinedKeys({environment:r.environment||DEFAULT_ENVIRONMENT,release:r.release,public_key:n,trace_id:e});return t.emit("createDsc",i),i}function getDynamicSamplingContextFromScope(e,t){const r=t.getPropagationContext();return r.dsc||getDynamicSamplingContextFromClient(r.traceId,e)}function getDynamicSamplingContextFromSpan(e){const t=getClient();if(!t)return{};const r=getRootSpan(e),n=r[FROZEN_DSC_FIELD];if(n)return n;const i=r.spanContext().traceState,a=i&&i.get("sentry.dsc"),o=a&&baggageHeaderToDynamicSamplingContext(a);if(o)return o;const s=getDynamicSamplingContextFromClient(e.spanContext().traceId,t),l=spanToJSON(r),c=l.data||{},d=c[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];null!=d&&(s.sample_rate=`${d}`);const u=c[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],p=l.description;return"url"!==u&&p&&(s.transaction=p),hasTracingEnabled()&&(s.sampled=String(spanIsSampled(r))),t.emit("createDsc",s,r),s}function parseSampleRate(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;DEBUG_BUILD$3&&logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}const DSN_REGEX=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function isValidProtocol(e){return"http"===e||"https"===e}function dsnToString(e,t=!1){const{host:r,path:n,pass:i,port:a,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n?`${n}/`:n}${o}`}function dsnFromString(e){const t=DSN_REGEX.exec(e);if(!t)return void consoleSandbox((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[r,n,i="",a="",o="",s=""]=t.slice(1);let l="",c=s;const d=c.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),c=d.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return dsnFromComponents({host:a,pass:i,path:l,projectId:c,port:o,protocol:r,publicKey:n})}function dsnFromComponents(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function validateDsn(e){if(!DEBUG_BUILD$2)return!0;const{port:t,projectId:r,protocol:n}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(logger.error(`Invalid Sentry Dsn: ${t} missing`),!0)))&&(r.match(/^\d+$/)?isValidProtocol(n)?!t||!isNaN(parseInt(t,10))||(logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(logger.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}function makeDsn(e){const t="string"==typeof e?dsnFromString(e):dsnFromComponents(e);if(t&&validateDsn(t))return t}function memoBuilder(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++){if(t[e]===r)return!0}return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}function normalize(e,t=100,r=1/0){try{return visit("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function normalizeToSize(e,t=3,r=102400){const n=normalize(e,t);return jsonSize(n)>r?normalizeToSize(e,t-1,r):n}function visit(e,t,r=1/0,n=1/0,i=memoBuilder()){const[a,o]=i;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=stringifyValue(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===l)return s.replace("object ","");if(a(t))return"[Circular ~]";const c=t;if(c&&"function"==typeof c.toJSON)try{return visit("",c.toJSON(),l-1,n,i)}catch(e){}const d=Array.isArray(t)?[]:{};let u=0;const p=convertToPlainObject(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(u>=n){d[e]="[MaxProperties ~]";break}const t=p[e];d[e]=visit(e,t,l-1,n,i),u++}return o(t),d}function stringifyValue(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(isVueViewModel(t))return"[VueViewModel]";if(isSyntheticEvent(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${getFunctionName(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=getConstructorName(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}function getConstructorName(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function utf8Length(e){return~-encodeURI(e).split(/%..|./).length}function jsonSize(e){return utf8Length(JSON.stringify(e))}function createEnvelope(e,t=[]){return[e,t]}function addItemToEnvelope(e,t){const[r,n]=e;return[r,[...n,t]]}function forEachEnvelopeItem(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function encodeUTF8(e){return GLOBAL_OBJ.__SENTRY__&&GLOBAL_OBJ.__SENTRY__.encodePolyfill?GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function serializeEnvelope(e){const[t,r]=e;let n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[encodeUTF8(n),e]:n.push("string"==typeof e?encodeUTF8(e):e)}for(const e of r){const[t,r]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify(normalize(r))}i(e)}}return"string"==typeof n?n:concatBuffers(n)}function concatBuffers(e){const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}function createAttachmentEnvelopeItem(e){const t="string"==typeof e.data?encodeUTF8(e.data):e.data;return[dropUndefinedKeys({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const ITEM_TYPE_TO_DATA_CATEGORY_MAP={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function envelopeItemTypeToDataCategory(e){return ITEM_TYPE_TO_DATA_CATEGORY_MAP[e]}function getSdkMetadataForEnvelopeHeader(e){if(!e||!e.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function createEventEnvelopeHeaders(e,t,r,n){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:dsnToString(n)},...i&&{trace:dropUndefinedKeys({...i})}}}function enhanceEventWithSdkInfo(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]],e):e}function createSessionEnvelope(e,t,r,n){const i=getSdkMetadataForEnvelopeHeader(r);return createEnvelope({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:dsnToString(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}function createEventEnvelope(e,t,r,n){const i=getSdkMetadataForEnvelopeHeader(r),a=e.type&&"replay_event"!==e.type?e.type:"event";enhanceEventWithSdkInfo(e,r&&r.sdk);const o=createEventEnvelopeHeaders(e,i,n,t);delete e.sdkProcessingMetadata;return createEnvelope(o,[[{type:a},e]])}function notifyEventProcessors(e,t,r,n=0){return new SyncPromise(((i,a)=>{const o=e[n];if(null===t||"function"!=typeof o)i(t);else{const s=o({...t},r);DEBUG_BUILD$3&&o.id&&null===s&&logger.log(`Event processor "${o.id}" dropped event`),isThenable(s)?s.then((t=>notifyEventProcessors(e,t,r,n+1).then(i))).then(null,a):notifyEventProcessors(e,s,r,n+1).then(i).then(null,a)}}))}let parsedStackResults,lastKeysCount,cachedFilenameDebugIds;function getFilenameToDebugIdMap(e){const t=GLOBAL_OBJ._sentryDebugIds;if(!t)return{};const r=Object.keys(t);return cachedFilenameDebugIds&&r.length===lastKeysCount||(lastKeysCount=r.length,cachedFilenameDebugIds=r.reduce(((r,n)=>{parsedStackResults||(parsedStackResults={});const i=parsedStackResults[n];if(i)r[i[0]]=i[1];else{const i=e(n);for(let e=i.length-1;e>=0;e--){const a=i[e],o=a&&a.filename,s=t[n];if(o&&s){r[o]=s,parsedStackResults[n]=[o,s];break}}}return r}),{})),cachedFilenameDebugIds}function applyScopeDataToEvent(e,t){const{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:a}=t;applyDataToEvent(e,t),n&&applySpanToEvent(e,n),applyFingerprintToEvent(e,r),applyBreadcrumbsToEvent(e,i),applySdkMetadataToEvent(e,a)}function mergeScopeData(e,t){const{extra:r,tags:n,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:d,attachments:u,propagationContext:p,transactionName:h,span:f}=t;mergeAndOverwriteScopeData(e,"extra",r),mergeAndOverwriteScopeData(e,"tags",n),mergeAndOverwriteScopeData(e,"user",i),mergeAndOverwriteScopeData(e,"contexts",a),e.sdkProcessingMetadata=merge$1(e.sdkProcessingMetadata,s,2),o&&(e.level=o),h&&(e.transactionName=h),f&&(e.span=f),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...p}}function mergeAndOverwriteScopeData(e,t,r){e[t]=merge$1(e[t],r,1)}function applyDataToEvent(e,t){const{extra:r,tags:n,user:i,contexts:a,level:o,transactionName:s}=t,l=dropUndefinedKeys(r);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=dropUndefinedKeys(n);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const d=dropUndefinedKeys(i);d&&Object.keys(d).length&&(e.user={...d,...e.user});const u=dropUndefinedKeys(a);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts}),o&&(e.level=o),s&&"transaction"!==e.type&&(e.transaction=s)}function applyBreadcrumbsToEvent(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function applySdkMetadataToEvent(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function applySpanToEvent(e,t){e.contexts={trace:spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};const r=spanToJSON(getRootSpan(t)).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}function applyFingerprintToEvent(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function prepareEvent(e,t,r,n,i,a){const{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||r.event_id||uuid4(),timestamp:t.timestamp||dateTimestampInSeconds()},c=r.integrations||e.integrations.map((e=>e.name));applyClientOptions(l,e),applyIntegrationsMetadata(l,c),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&applyDebugIds(l,e.stackParser);const d=getFinalScope(n,r.captureContext);r.mechanism&&addExceptionMechanism(l,r.mechanism);const u=i?i.getEventProcessors():[],p=getGlobalScope$1().getScopeData();if(a){mergeScopeData(p,a.getScopeData())}if(d){mergeScopeData(p,d.getScopeData())}const h=[...r.attachments||[],...p.attachments];h.length&&(r.attachments=h),applyScopeDataToEvent(l,p);return notifyEventProcessors([...u,...p.eventProcessors],l,r).then((e=>(e&&applyDebugMeta(e),"number"==typeof o&&o>0?normalizeEvent(e,o,s):e)))}function applyClientOptions(e,t){const{environment:r,release:n,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||r||DEFAULT_ENVIRONMENT,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i),e.message&&(e.message=truncate(e.message,a));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=truncate(o.value,a));const s=e.request;s&&s.url&&(s.url=truncate(s.url,a))}function applyDebugIds(e,t){const r=getFilenameToDebugIdMap(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{r&&e.filename&&(e.debug_id=r[e.filename])}))}))}catch(e){}}function applyDebugMeta(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})}))}function applyIntegrationsMetadata(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function normalizeEvent(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:normalize(e.data,t,r)}})))},...e.user&&{user:normalize(e.user,t,r)},...e.contexts&&{contexts:normalize(e.contexts,t,r)},...e.extra&&{extra:normalize(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=normalize(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map((e=>({...e,...e.data&&{data:normalize(e.data,t,r)}})))),e.contexts&&e.contexts.flags&&n.contexts&&(n.contexts.flags=normalize(e.contexts.flags,3,r)),n}function getFinalScope(e,t){if(!t)return e;const r=e?e.clone():new Scope;return r.update(t),r}function parseEventHintOrCaptureContext(e){}function captureException(e,t){return getCurrentScope().captureException(e,parseEventHintOrCaptureContext())}function captureMessage(e,t){const r="string"==typeof t?t:void 0,n="string"!=typeof t?{captureContext:t}:void 0;return getCurrentScope().captureMessage(e,r,n)}function captureEvent(e,t){return getCurrentScope().captureEvent(e,t)}function startSession(e){const t=getClient(),r=getIsolationScope(),n=getCurrentScope(),{release:i,environment:a=DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:o}=GLOBAL_OBJ.navigator||{},s=makeSession({release:i,environment:a,user:n.getUser()||r.getUser(),...o&&{userAgent:o},...e}),l=r.getSession();return l&&"ok"===l.status&&updateSession(l,{status:"exited"}),endSession(),r.setSession(s),n.setSession(s),s}function endSession(){const e=getIsolationScope(),t=getCurrentScope(),r=t.getSession()||e.getSession();r&&closeSession(r),_sendSessionUpdate(),e.setSession(),t.setSession()}function _sendSessionUpdate(){const e=getIsolationScope(),t=getCurrentScope(),r=getClient(),n=t.getSession()||e.getSession();n&&r&&r.captureSession(n)}function captureSession(e=!1){e?endSession():_sendSessionUpdate()}const SENTRY_API_VERSION="7";function getBaseApiEndpoint(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function _getIngestEndpoint(e){return`${getBaseApiEndpoint(e)}${e.projectId}/envelope/`}function _encodedAuth(e,t){const r={sentry_version:SENTRY_API_VERSION};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}function getEnvelopeEndpointWithUrlEncodedAuth(e,t,r){return t||`${_getIngestEndpoint(e)}?${_encodedAuth(e,r)}`}const installedIntegrations=[];function filterDuplicates(e){const t={};return e.forEach((e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.values(t)}function getIntegrationsToSetup(e){const t=e.defaultIntegrations||[],r=e.integrations;let n;if(t.forEach((e=>{e.isDefaultInstance=!0})),Array.isArray(r))n=[...t,...r];else if("function"==typeof r){const e=r(t);n=Array.isArray(e)?e:[e]}else n=t;const i=filterDuplicates(n),a=i.findIndex((e=>"Debug"===e.name));if(a>-1){const[e]=i.splice(a,1);i.push(e)}return i}function setupIntegrations(e,t){const r={};return t.forEach((t=>{t&&setupIntegration(e,t,r)})),r}function afterSetupIntegrations(e,t){for(const r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function setupIntegration(e,t,r){if(r[t.name])DEBUG_BUILD$3&&logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,-1===installedIntegrations.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),installedIntegrations.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,n)=>r(t,n,e)))}if("function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign(((t,n)=>r(t,n,e)),{id:t.name});e.addEventProcessor(n)}DEBUG_BUILD$3&&logger.log(`Integration installed: ${t.name}`)}}function defineIntegration(e){return e}function createClientReportEnvelope(e,t,r){return createEnvelope(t?{dsn:t}:{},[[{type:"client_report"},{timestamp:dateTimestampInSeconds(),discarded_events:e}]])}class SentryError extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}const ALREADY_SEEN_ERROR="Not capturing exception because it's already been captured.";class BaseClient{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=makeDsn(e.dsn):DEBUG_BUILD$3&&logger.warn("No DSN provided, client will not send events."),this._dsn){const t=getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}const t=["enableTracing","tracesSampleRate","tracesSampler"].find((t=>t in e&&null==e[t]));t&&consoleSandbox((()=>{console.warn(`[Sentry] Deprecation warning: \`${t}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)}))}captureException(e,t,r){const n=uuid4();if(checkOrSetAlreadyCaught(e))return DEBUG_BUILD$3&&logger.log(ALREADY_SEEN_ERROR),n;const i={event_id:n,...t};return this._process(this.eventFromException(e,i).then((e=>this._captureEvent(e,i,r)))),i.event_id}captureMessage(e,t,r,n){const i={event_id:uuid4(),...r},a=isParameterizedString(e)?e:String(e),o=isPrimitive(e)?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(o.then((e=>this._captureEvent(e,i,n)))),i.event_id}captureEvent(e,t,r){const n=uuid4();if(t&&t.originalException&&checkOrSetAlreadyCaught(t.originalException))return DEBUG_BUILD$3&&logger.log(ALREADY_SEEN_ERROR),n;const i={event_id:n,...t},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,a||r)),i.event_id}captureSession(e){"string"!=typeof e.release?DEBUG_BUILD$3&&logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e))))):resolvedSyncPromise(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];setupIntegration(this,e,this._integrations),t||afterSetupIntegrations(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])r=addItemToEnvelope(r,createAttachmentEnvelopeItem(e));const n=this.sendEnvelope(r);n&&n.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){const n="number"==typeof r?r:1,i=`${e}:${t}`;DEBUG_BUILD$3&&logger.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}on(e,t){const r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(DEBUG_BUILD$3&&logger.error("Error while sending envelope:",e),e))):(DEBUG_BUILD$3&&logger.error("Transport disabled"),resolvedSyncPromise({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=setupIntegrations(this,e),afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1;const i=t.exception&&t.exception.values;if(i){n=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&r)&&(updateSession(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new SyncPromise((t=>{let r=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r=getCurrentScope(),n=getIsolationScope()){const i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),prepareEvent(i,e,t,r,this,n).then((e=>{if(null===e)return e;e.contexts={trace:getTraceContextFromScope(r),...e.contexts};const t=getDynamicSamplingContextFromScope(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:t,...e.sdkProcessingMetadata},e}))}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then((e=>e.event_id),(e=>{DEBUG_BUILD$3&&(e instanceof SentryError&&"log"===e.logLevel?logger.log(e.message):logger.warn(e))}))}_processEvent(e,t,r){const n=this.getOptions(),{sampleRate:i}=n,a=isTransactionEvent(e),o=isErrorEvent(e),s=e.type||"error",l=`before send for type \`${s}\``,c=void 0===i?void 0:parseSampleRate(i);if(o&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),rejectedSyncPromise(new SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const d="replay_event"===s?"replay":s,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,u).then((r=>{if(null===r)throw this.recordDroppedEvent("event_processor",d,e),new SentryError("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return r;return _validateBeforeSendResult(processBeforeSend(this,n,r,t),l)})).then((n=>{if(null===n){if(this.recordDroppedEvent("before_send",d,e),a){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new SentryError(`${l} returned \`null\`, will not send event.`,"log")}const i=r&&r.getSession();if(!a&&i&&this._updateSessionFromEvent(i,n),a){const e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const o=n.transaction_info;if(a&&o&&n.transaction!==e.transaction){const e="custom";n.transaction_info={...o,source:e}}return this.sendEvent(n,t),n})).then(null,(e=>{if(e instanceof SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[r,n]=e.split(":");return{reason:r,category:n,quantity:t}}))}_flushOutcomes(){DEBUG_BUILD$3&&logger.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(DEBUG_BUILD$3&&logger.log("No outcomes to send"));if(!this._dsn)return void(DEBUG_BUILD$3&&logger.log("No dsn provided, will not send outcomes"));DEBUG_BUILD$3&&logger.log("Sending outcomes:",e);const t=createClientReportEnvelope(e,this._options.tunnel&&dsnToString(this._dsn));this.sendEnvelope(t)}}function _validateBeforeSendResult(e,t){const r=`${t} must return \`null\` or a valid event.`;if(isThenable(e))return e.then((e=>{if(!isPlainObject(e)&&null!==e)throw new SentryError(r);return e}),(e=>{throw new SentryError(`${t} rejected with ${e}`)}));if(!isPlainObject(e)&&null!==e)throw new SentryError(r);return e}function processBeforeSend(e,t,r,n){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o}=t;if(isErrorEvent(r)&&i)return i(r,n);if(isTransactionEvent(r)){if(r.spans&&o){const t=[];for(const n of r.spans){const r=o(n);r?t.push(r):(showSpanDropWarning(),e.recordDroppedEvent("before_send","span"))}r.spans=t}if(a){if(r.spans){const e=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(r,n)}}return r}function isErrorEvent(e){return void 0===e.type}function isTransactionEvent(e){return"transaction"===e.type}function initAndBind(e,t){!0===t.debug&&(DEBUG_BUILD$3?logger.enable():consoleSandbox((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));getCurrentScope().update(t.initialScope);const r=new e(t);return setCurrentClient(r),r.init(),r}function setCurrentClient(e){getCurrentScope().setClient(e)}function makePromiseBuffer(e){const t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return rejectedSyncPromise(new SentryError("Not adding Promise because buffer limit was reached."));const i=n();return-1===t.indexOf(i)&&t.push(i),i.then((()=>r(i))).then(null,(()=>r(i).then(null,(()=>{})))),i},drain:function(e){return new SyncPromise(((r,n)=>{let i=t.length;if(!i)return r(!0);const a=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{resolvedSyncPromise(e).then((()=>{--i||(clearTimeout(a),r(!0))}),n)}))}))}}}const DEFAULT_RETRY_AFTER=6e4;function parseRetryAfterHeader(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const n=Date.parse(`${e}`);return isNaN(n)?DEFAULT_RETRY_AFTER:n-t}function disabledUntil(e,t){return e[t]||e.all||0}function isRateLimited(e,t,r=Date.now()){return disabledUntil(e,t)>r}function updateRateLimits(e,{statusCode:t,headers:r},n=Date.now()){const i={...e},a=r&&r["x-sentry-rate-limits"],o=r&&r["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,r,,,a]=e.split(":",5),o=parseInt(t,10),s=1e3*(isNaN(o)?60:o);if(r)for(const e of r.split(";"))"metric_bucket"===e&&a&&!a.split(";").includes("custom")||(i[e]=n+s);else i.all=n+s}else o?i.all=n+parseRetryAfterHeader(o,n):429===t&&(i.all=n+6e4);return i}const DEFAULT_TRANSPORT_BUFFER_SIZE=64;function createTransport$1(e,t,r=makePromiseBuffer(e.bufferSize||DEFAULT_TRANSPORT_BUFFER_SIZE)){let n={};return{send:function(i){const a=[];if(forEachEnvelopeItem(i,((t,r)=>{const i=envelopeItemTypeToDataCategory(r);if(isRateLimited(n,i)){const n=getEventForEnvelopeItem(t,r);e.recordDroppedEvent("ratelimit_backoff",i,n)}else a.push(t)})),0===a.length)return resolvedSyncPromise({});const o=createEnvelope(i[0],a),s=t=>{forEachEnvelopeItem(o,((r,n)=>{const i=getEventForEnvelopeItem(r,n);e.recordDroppedEvent(t,envelopeItemTypeToDataCategory(n),i)}))};return r.add((()=>t({body:serializeEnvelope(o)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&DEBUG_BUILD$3&&logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=updateRateLimits(n,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof SentryError)return DEBUG_BUILD$3&&logger.error("Skipped sending event because buffer is full."),s("queue_overflow"),resolvedSyncPromise({});throw e}))},flush:e=>r.drain(e)}}function getEventForEnvelopeItem(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function applySdkMetadata(e,t,r=[t],n="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map((e=>({name:`${n}:@sentry/${e}`,version:SDK_VERSION}))),version:SDK_VERSION}),e._metadata=i}const DEFAULT_BREADCRUMBS=100;function addBreadcrumb(e,t){const r=getClient(),n=getIsolationScope();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=DEFAULT_BREADCRUMBS}=r.getOptions();if(a<=0)return;const o={timestamp:dateTimestampInSeconds(),...e},s=i?consoleSandbox((()=>i(o,t))):o;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,a))}let originalFunctionToString;const INTEGRATION_NAME$6="FunctionToString",SETUP_CLIENTS=new WeakMap,_functionToStringIntegration=()=>({name:INTEGRATION_NAME$6,setupOnce(){originalFunctionToString=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=getOriginalFunction(this),r=SETUP_CLIENTS.has(getClient())&&void 0!==t?t:this;return originalFunctionToString.apply(r,e)}}catch(e){}},setup(e){SETUP_CLIENTS.set(e,!0)}}),functionToStringIntegration=defineIntegration(_functionToStringIntegration),DEFAULT_IGNORE_ERRORS=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],INTEGRATION_NAME$5="InboundFilters",_inboundFiltersIntegration=(e={})=>({name:INTEGRATION_NAME$5,processEvent(t,r,n){const i=n.getOptions();return _shouldDropEvent$1(t,_mergeOptions(e,i))?null:t}}),inboundFiltersIntegration=defineIntegration(_inboundFiltersIntegration);function _mergeOptions(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:DEFAULT_IGNORE_ERRORS],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}function _shouldDropEvent$1(e,t){return t.ignoreInternal&&_isSentryError(e)?(DEBUG_BUILD$3&&logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${getEventDescription(e)}`),!0):_isIgnoredError(e,t.ignoreErrors)?(DEBUG_BUILD$3&&logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${getEventDescription(e)}`),!0):_isUselessError(e)?(DEBUG_BUILD$3&&logger.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${getEventDescription(e)}`),!0):_isIgnoredTransaction(e,t.ignoreTransactions)?(DEBUG_BUILD$3&&logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${getEventDescription(e)}`),!0):_isDeniedUrl(e,t.denyUrls)?(DEBUG_BUILD$3&&logger.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${getEventDescription(e)}.\nUrl: ${_getEventFilterUrl(e)}`),!0):!_isAllowedUrl(e,t.allowUrls)&&(DEBUG_BUILD$3&&logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${getEventDescription(e)}.\nUrl: ${_getEventFilterUrl(e)}`),!0)}function _isIgnoredError(e,t){return!(e.type||!t||!t.length)&&_getPossibleEventMessages(e).some((e=>stringMatchesSomePattern(e,t)))}function _isIgnoredTransaction(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const r=e.transaction;return!!r&&stringMatchesSomePattern(r,t)}function _isDeniedUrl(e,t){if(!t||!t.length)return!1;const r=_getEventFilterUrl(e);return!!r&&stringMatchesSomePattern(r,t)}function _isAllowedUrl(e,t){if(!t||!t.length)return!0;const r=_getEventFilterUrl(e);return!r||stringMatchesSomePattern(r,t)}function _getPossibleEventMessages(e){const t=[];let r;e.message&&t.push(e.message);try{r=e.exception.values[e.exception.values.length-1]}catch(e){}return r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`)),t}function _isSentryError(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}function _getLastValidUrl(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}function _getEventFilterUrl(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?_getLastValidUrl(t):null}catch(t){return DEBUG_BUILD$3&&logger.error(`Cannot extract url for event ${getEventDescription(e)}`),null}}function _isUselessError(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))))}function applyAggregateErrorsToEvent(e,t,r=250,n,i,a,o){if(!(a.exception&&a.exception.values&&o&&isInstanceOf(o.originalException,Error)))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=truncateAggregateExceptions(aggregateExceptionsFromError(e,t,i,o.originalException,n,a.exception.values,s,0),r))}function aggregateExceptionsFromError(e,t,r,n,i,a,o,s){if(a.length>=r+1)return a;let l=[...a];if(isInstanceOf(n[i],Error)){applyExceptionGroupFieldsForParentException(o,s);const a=e(t,n[i]),c=l.length;applyExceptionGroupFieldsForChildException(a,i,c,s),l=aggregateExceptionsFromError(e,t,r,n[i],i,[a,...l],a,c)}return Array.isArray(n.errors)&&n.errors.forEach(((n,a)=>{if(isInstanceOf(n,Error)){applyExceptionGroupFieldsForParentException(o,s);const c=e(t,n),d=l.length;applyExceptionGroupFieldsForChildException(c,`errors[${a}]`,d,s),l=aggregateExceptionsFromError(e,t,r,n,i,[c,...l],c,d)}})),l}function applyExceptionGroupFieldsForParentException(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function applyExceptionGroupFieldsForChildException(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function truncateAggregateExceptions(e,t){return e.map((e=>(e.value&&(e.value=truncate(e.value,t)),e)))}function parseUrl$2(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function addConsoleInstrumentationHandler(e){const t="console";addHandler(t,e),maybeInstrument(t,instrumentConsole)}function instrumentConsole(){"console"in GLOBAL_OBJ&&CONSOLE_LEVELS.forEach((function(e){e in GLOBAL_OBJ.console&&fill(GLOBAL_OBJ.console,e,(function(t){return originalConsoleMethods[e]=t,function(...t){triggerHandlers("console",{args:t,level:e});const r=originalConsoleMethods[e];r&&r.apply(GLOBAL_OBJ.console,t)}}))}))}function severityLevelFromString(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const INTEGRATION_NAME$4="Dedupe",_dedupeIntegration=()=>{let e;return{name:INTEGRATION_NAME$4,processEvent(t){if(t.type)return t;try{if(_shouldDropEvent(t,e))return DEBUG_BUILD$3&&logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}},dedupeIntegration=defineIntegration(_dedupeIntegration);function _shouldDropEvent(e,t){return!!t&&(!!_isSameMessageEvent(e,t)||!!_isSameExceptionEvent(e,t))}function _isSameMessageEvent(e,t){const r=e.message,n=t.message;return!(!r&&!n)&&(!(r&&!n||!r&&n)&&(r===n&&(!!_isSameFingerprint(e,t)&&!!_isSameStacktrace(e,t))))}function _isSameExceptionEvent(e,t){const r=_getExceptionFromEvent(t),n=_getExceptionFromEvent(e);return!(!r||!n)&&(r.type===n.type&&r.value===n.value&&(!!_isSameFingerprint(e,t)&&!!_isSameStacktrace(e,t)))}function _isSameStacktrace(e,t){let r=getFramesFromEvent(e),n=getFramesFromEvent(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function _isSameFingerprint(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(e){return!1}}function _getExceptionFromEvent(e){return e.exception&&e.exception.values&&e.exception.values[0]}function getBreadcrumbLogLevelFromHttpStatusCode(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const WINDOW$3=GLOBAL_OBJ;function supportsFetch(){if(!("fetch"in WINDOW$3))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function isNativeFunction(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function supportsNativeFetch(){if("string"==typeof EdgeRuntime)return!0;if(!supportsFetch())return!1;if(isNativeFunction(WINDOW$3.fetch))return!0;let e=!1;const t=WINDOW$3.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=isNativeFunction(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){DEBUG_BUILD$2&&logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function addFetchInstrumentationHandler(e,t){const r="fetch";addHandler(r,e),maybeInstrument(r,(()=>instrumentFetch(void 0,t)))}function instrumentFetch(e,t=!1){t&&!supportsNativeFetch()||fill(GLOBAL_OBJ,"fetch",(function(e){return function(...t){const r=new Error,{method:n,url:i}=parseFetchArgs(t),a={args:t,fetchData:{method:n,url:i},startTimestamp:1e3*timestampInSeconds(),virtualError:r};return triggerHandlers("fetch",{...a}),e.apply(GLOBAL_OBJ,t).then((async e=>(triggerHandlers("fetch",{...a,endTimestamp:1e3*timestampInSeconds(),response:e}),e)),(e=>{throw triggerHandlers("fetch",{...a,endTimestamp:1e3*timestampInSeconds(),error:e}),isError(e)&&void 0===e.stack&&(e.stack=r.stack,addNonEnumerableProperty(e,"framesToPop",1)),e}))}}))}function hasProp(e,t){return!!e&&"object"==typeof e&&!!e[t]}function getUrlFromResource(e){return"string"==typeof e?e:e?hasProp(e,"url")?e.url:e.toString?e.toString():"":""}function parseFetchArgs(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:getUrlFromResource(t),method:hasProp(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:getUrlFromResource(t),method:hasProp(t,"method")?String(t.method).toUpperCase():"GET"}}function getSDKSource(){return"npm"}const WINDOW$2=GLOBAL_OBJ;function supportsHistory(){const e=WINDOW$2.chrome,t=e&&e.app&&e.app.runtime,r="history"in WINDOW$2&&!!WINDOW$2.history.pushState&&!!WINDOW$2.history.replaceState;return!t&&r}const WINDOW$1=GLOBAL_OBJ;let ignoreOnError=0;function shouldIgnoreOnError(){return ignoreOnError>0}function ignoreNextOnError(){ignoreOnError++,setTimeout((()=>{ignoreOnError--}))}function wrap(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(getOriginalFunction(e))return e}catch(t){return e}const r=function(...r){try{const n=r.map((e=>wrap(e,t)));return e.apply(this,n)}catch(e){throw ignoreNextOnError(),withScope((n=>{n.addEventProcessor((e=>(t.mechanism&&(addExceptionTypeValue(e,void 0),addExceptionMechanism(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),captureException(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}markFunctionWrapped(r,e),addNonEnumerableProperty(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const DEBUG_BUILD$1="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function exceptionFromError(e,t){const r=parseStackFrames(e,t),n={type:extractType(t),value:extractMessage(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function eventFromPlainObject(e,t,r,n){const i=getClient(),a=i&&i.getOptions().normalizeDepth,o=getErrorPropertyFromObject(t),s={__serialized__:normalizeToSize(t,a)};if(o)return{exception:{values:[exceptionFromError(e,o)]},extra:s};const l={exception:{values:[{type:isEvent(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:getNonErrorObjectExceptionValue(t,{isUnhandledRejection:n})}]},extra:s};if(r){const t=parseStackFrames(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}function eventFromError(e,t){return{exception:{values:[exceptionFromError(e,t)]}}}function parseStackFrames(e,t){const r=t.stacktrace||t.stack||"",n=getSkipFirstStackStringLines(t),i=getPopFirstTopFrames(t);try{return e(r,n,i)}catch(e){}return[]}const reactMinifiedRegexp=/Minified React error #\d+;/i;function getSkipFirstStackStringLines(e){return e&&reactMinifiedRegexp.test(e.message)?1:0}function getPopFirstTopFrames(e){return"number"==typeof e.framesToPop?e.framesToPop:0}function isWebAssemblyException(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function extractType(e){const t=e&&e.name;if(!t&&isWebAssemblyException(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function extractMessage(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:isWebAssemblyException(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function eventFromException(e,t,r,n){const i=eventFromUnknownInput(e,t,r&&r.syntheticException||void 0,n);return addExceptionMechanism(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),resolvedSyncPromise(i)}function eventFromMessage(e,t,r="info",n,i){const a=eventFromString(e,t,n&&n.syntheticException||void 0,i);return a.level=r,n&&n.event_id&&(a.event_id=n.event_id),resolvedSyncPromise(a)}function eventFromUnknownInput(e,t,r,n,i){let a;if(isErrorEvent$1(t)&&t.error){return eventFromError(e,t.error)}if(isDOMError(t)||isDOMException(t)){const i=t;if("stack"in t)a=eventFromError(e,t);else{const t=i.name||(isDOMError(i)?"DOMError":"DOMException"),o=i.message?`${t}: ${i.message}`:t;a=eventFromString(e,o,r,n),addExceptionTypeValue(a,o)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}if(isError(t))return eventFromError(e,t);if(isPlainObject(t)||isEvent(t)){return a=eventFromPlainObject(e,t,r,i),addExceptionMechanism(a,{synthetic:!0}),a}return a=eventFromString(e,t,r,n),addExceptionTypeValue(a,`${t}`),addExceptionMechanism(a,{synthetic:!0}),a}function eventFromString(e,t,r,n){const i={};if(n&&r){const n=parseStackFrames(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),addExceptionMechanism(i,{synthetic:!0})}if(isParameterizedString(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}function getNonErrorObjectExceptionValue(e,{isUnhandledRejection:t}){const r=extractExceptionKeysForMessage(e),n=t?"promise rejection":"exception";if(isErrorEvent$1(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if(isEvent(e)){return`Event \`${getObjectClassName(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}function getObjectClassName(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}function getErrorPropertyFromObject(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}}function createUserFeedbackEnvelope(e,{metadata:t,tunnel:r,dsn:n}){return createEnvelope({event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:dsnToString(n)}},[createUserFeedbackEnvelopeItem(e)])}function createUserFeedbackEnvelopeItem(e){return[{type:"user_report"},e]}class BrowserClient extends BaseClient{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};applySdkMetadata(t,"browser",["browser"],WINDOW$1.SENTRY_SDK_SOURCE||getSDKSource()),super(t),t.sendClientReports&&WINDOW$1.document&&WINDOW$1.document.addEventListener("visibilitychange",(()=>{"hidden"===WINDOW$1.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return eventFromException(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return eventFromMessage(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(DEBUG_BUILD$1&&logger.warn("SDK not enabled, will not capture user feedback."));const t=createUserFeedbackEnvelope(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}}const DEBUG_BUILD="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,WINDOW=GLOBAL_OBJ,DEBOUNCE_DURATION=1e3;let debounceTimerID,lastCapturedEventType,lastCapturedEventTargetId,lastHref;function addClickKeypressInstrumentationHandler(e){addHandler("dom",e),maybeInstrument("dom",instrumentDOM)}function instrumentDOM(){if(!WINDOW.document)return;const e=triggerHandlers.bind(null,"dom"),t=makeDOMEventHandler(e,!0);WINDOW.document.addEventListener("click",t,!1),WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const r=WINDOW[t],n=r&&r.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(fill(n,"addEventListener",(function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{const n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=n[r]=n[r]||{refCount:0};if(!a.handler){const n=makeDOMEventHandler(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch(e){}return t.call(this,r,n,i)}})),fill(n,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}})))}))}function isSimilarToLastCapturedEvent(e){if(e.type!==lastCapturedEventType)return!1;try{if(!e.target||e.target._sentryId!==lastCapturedEventTargetId)return!1}catch(e){}return!0}function shouldSkipDOMEvent(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}function makeDOMEventHandler(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=getEventTarget(r);if(shouldSkipDOMEvent(r.type,n))return;addNonEnumerableProperty(r,"_sentryCaptured",!0),n&&!n._sentryId&&addNonEnumerableProperty(n,"_sentryId",uuid4());const i="keypress"===r.type?"input":r.type;if(!isSimilarToLastCapturedEvent(r)){e({event:r,name:i,global:t}),lastCapturedEventType=r.type,lastCapturedEventTargetId=n?n._sentryId:void 0}clearTimeout(debounceTimerID),debounceTimerID=WINDOW.setTimeout((()=>{lastCapturedEventTargetId=void 0,lastCapturedEventType=void 0}),DEBOUNCE_DURATION)}}function getEventTarget(e){try{return e.target}catch(e){return null}}function addHistoryInstrumentationHandler(e){const t="history";addHandler(t,e),maybeInstrument(t,instrumentHistory)}function instrumentHistory(){if(!supportsHistory())return;const e=WINDOW.onpopstate;function t(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const e=lastHref,t=String(r);lastHref=t;triggerHandlers("history",{from:e,to:t})}return e.apply(this,t)}}WINDOW.onpopstate=function(...t){const r=WINDOW.location.href,n=lastHref;lastHref=r;if(triggerHandlers("history",{from:n,to:r}),e)try{return e.apply(this,t)}catch(e){}},fill(WINDOW.history,"pushState",t),fill(WINDOW.history,"replaceState",t)}const cachedImplementations={};function getNativeImplementation(e){const t=cachedImplementations[e];if(t)return t;let r=WINDOW[e];if(isNativeFunction(r))return cachedImplementations[e]=r.bind(WINDOW);const n=WINDOW.document;if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(t){DEBUG_BUILD&&logger.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?cachedImplementations[e]=r.bind(WINDOW):r}function clearCachedImplementation(e){cachedImplementations[e]=void 0}const SENTRY_XHR_DATA_KEY="__sentry_xhr_v3__";function addXhrInstrumentationHandler(e){addHandler("xhr",e),maybeInstrument("xhr",instrumentXHR)}function instrumentXHR(){if(!WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){const n=new Error,i=1e3*timestampInSeconds(),a=isString(r[0])?r[0].toUpperCase():void 0,o=parseUrl$1(r[1]);if(!a||!o)return e.apply(t,r);t[SENTRY_XHR_DATA_KEY]={method:a,url:o,request_headers:{}},"POST"===a&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const s=()=>{const e=t[SENTRY_XHR_DATA_KEY];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}triggerHandlers("xhr",{endTimestamp:1e3*timestampInSeconds(),startTimestamp:i,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(s(),e.apply(t,r))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[n,i]=r,a=t[SENTRY_XHR_DATA_KEY];return a&&isString(n)&&isString(i)&&(a.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const n=t[SENTRY_XHR_DATA_KEY];if(!n)return e.apply(t,r);void 0!==r[0]&&(n.body=r[0]);return triggerHandlers("xhr",{startTimestamp:1e3*timestampInSeconds(),xhr:t}),e.apply(t,r)}})}function parseUrl$1(e){if(isString(e))return e;try{return e.toString()}catch(e){}}function makeFetchTransport(e,t=getNativeImplementation("fetch")){let r=0,n=0;return createTransport$1(e,(function(i){const a=i.body.length;r+=a,n++;const o={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};if(!t)return clearCachedImplementation("fetch"),rejectedSyncPromise("No fetch implementation available");try{return t(e.url,o).then((e=>(r-=a,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return clearCachedImplementation("fetch"),r-=a,n--,rejectedSyncPromise(e)}}))}const CHROME_PRIORITY=30,GECKO_PRIORITY=50;function createFrame(e,t,r,n){const i={filename:e,function:"<anonymous>"===t?UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}const chromeRegexNoFnName=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,chromeRegex=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,chromeEvalRegex=/\((\S*)(?::(\d+))(?::(\d+))\)/,chromeStackParserFn=e=>{const t=chromeRegexNoFnName.exec(e);if(t){const[,e,r,n]=t;return createFrame(e,UNKNOWN_FUNCTION,+r,+n)}const r=chromeRegex.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=chromeEvalRegex.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=extractSafariExtensionDetails(r[1]||UNKNOWN_FUNCTION,r[2]);return createFrame(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},chromeStackLineParser=[CHROME_PRIORITY,chromeStackParserFn],geckoREgex=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,geckoEvalRegex=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gecko=e=>{const t=geckoREgex.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=geckoEvalRegex.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||UNKNOWN_FUNCTION;return[r,e]=extractSafariExtensionDetails(r,e),createFrame(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},geckoStackLineParser=[GECKO_PRIORITY,gecko],defaultStackLineParsers=[chromeStackLineParser,geckoStackLineParser],defaultStackParser=createStackParser(...defaultStackLineParsers),extractSafariExtensionDetails=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},MAX_ALLOWED_STRING_LENGTH=1024,INTEGRATION_NAME$3="Breadcrumbs",_breadcrumbsIntegration=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:INTEGRATION_NAME$3,setup(e){t.console&&addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(e)),t.dom&&addClickKeypressInstrumentationHandler(_getDomBreadcrumbHandler(e,t.dom)),t.xhr&&addXhrInstrumentationHandler(_getXhrBreadcrumbHandler(e)),t.fetch&&addFetchInstrumentationHandler(_getFetchBreadcrumbHandler(e)),t.history&&addHistoryInstrumentationHandler(_getHistoryBreadcrumbHandler(e)),t.sentry&&e.on("beforeSendEvent",_getSentryBreadcrumbHandler(e))}}},breadcrumbsIntegration=defineIntegration(_breadcrumbsIntegration);function _getSentryBreadcrumbHandler(e){return function(t){getClient()===e&&addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:getEventDescription(t)},{event:t})}}function _getDomBreadcrumbHandler(e,t){return function(r){if(getClient()!==e)return;let n,i,a="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>MAX_ALLOWED_STRING_LENGTH&&(DEBUG_BUILD$1&&logger.warn(`\`dom.maxStringLength\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${o} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`),o=MAX_ALLOWED_STRING_LENGTH),"string"==typeof a&&(a=[a]);try{const e=r.event,t=_isEvent(e)?e.target:e;n=htmlTreeAsString(t,{keyAttrs:a,maxStringLength:o}),i=getComponentName(t)}catch(e){n="<unknown>"}if(0===n.length)return;const s={category:`ui.${r.name}`,message:n};i&&(s.data={"ui.component_name":i}),addBreadcrumb(s,{event:r.event,name:r.name,global:r.global})}}function _getConsoleBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:severityLevelFromString(t.level),message:safeJoin(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${safeJoin(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}addBreadcrumb(r,{input:t.args,level:t.level})}}function _getXhrBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;const{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[SENTRY_XHR_DATA_KEY];if(!r||!n||!i)return;const{method:a,url:o,status_code:s,body:l}=i,c={method:a,url:o,status_code:s},d={xhr:t.xhr,input:l,startTimestamp:r,endTimestamp:n};addBreadcrumb({category:"xhr",data:c,type:"http",level:getBreadcrumbLogLevelFromHttpStatusCode(s)},d)}}function _getFetchBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;const{startTimestamp:r,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){addBreadcrumb({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:r,endTimestamp:n})}else{const e=t.response,i={...t.fetchData,status_code:e&&e.status},a={input:t.args,response:e,startTimestamp:r,endTimestamp:n};addBreadcrumb({category:"fetch",data:i,type:"http",level:getBreadcrumbLogLevelFromHttpStatusCode(i.status_code)},a)}}}function _getHistoryBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;let r=t.from,n=t.to;const i=parseUrl$2(WINDOW$1.location.href);let a=r?parseUrl$2(r):void 0;const o=parseUrl$2(n);a&&a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),addBreadcrumb({category:"navigation",data:{from:r,to:n}})}}function _isEvent(e){return!!e&&!!e.target}const DEFAULT_EVENT_TARGET=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],INTEGRATION_NAME$2="BrowserApiErrors",_browserApiErrorsIntegration=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:INTEGRATION_NAME$2,setupOnce(){t.setTimeout&&fill(WINDOW$1,"setTimeout",_wrapTimeFunction),t.setInterval&&fill(WINDOW$1,"setInterval",_wrapTimeFunction),t.requestAnimationFrame&&fill(WINDOW$1,"requestAnimationFrame",_wrapRAF),t.XMLHttpRequest&&"XMLHttpRequest"in WINDOW$1&&fill(XMLHttpRequest.prototype,"send",_wrapXHR);const e=t.eventTarget;if(e){(Array.isArray(e)?e:DEFAULT_EVENT_TARGET).forEach(_wrapEventTarget)}}}},browserApiErrorsIntegration=defineIntegration(_browserApiErrorsIntegration);function _wrapTimeFunction(e){return function(...t){const r=t[0];return t[0]=wrap(r,{mechanism:{data:{function:getFunctionName(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function _wrapRAF(e){return function(t){return e.apply(this,[wrap(t,{mechanism:{data:{function:"requestAnimationFrame",handler:getFunctionName(e)},handled:!1,type:"instrument"}})])}}function _wrapXHR(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in r&&"function"==typeof r[e]&&fill(r,e,(function(t){const r={mechanism:{data:{function:e,handler:getFunctionName(t)},handled:!1,type:"instrument"}},n=getOriginalFunction(t);return n&&(r.mechanism.data.handler=getFunctionName(n)),wrap(t,r)}))})),e.apply(this,t)}}function _wrapEventTarget(e){const t=WINDOW$1[e],r=t&&t.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(fill(r,"addEventListener",(function(t){return function(r,n,i){try{isEventListenerObject(n)&&(n.handleEvent=wrap(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:getFunctionName(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,wrap(n,{mechanism:{data:{function:"addEventListener",handler:getFunctionName(n),target:e},handled:!1,type:"instrument"}}),i])}})),fill(r,"removeEventListener",(function(e){return function(t,r,n){try{const i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch(e){}return e.call(this,t,r,n)}})))}function isEventListenerObject(e){return"function"==typeof e.handleEvent}const browserSessionIntegration=defineIntegration((()=>({name:"BrowserSession",setupOnce(){void 0!==WINDOW$1.document?(startSession({ignoreDuration:!0}),captureSession(),addHistoryInstrumentationHandler((({from:e,to:t})=>{void 0!==e&&e!==t&&(startSession({ignoreDuration:!0}),captureSession())}))):DEBUG_BUILD$1&&logger.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}))),INTEGRATION_NAME$1="GlobalHandlers",_globalHandlersIntegration=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:INTEGRATION_NAME$1,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(_installGlobalOnErrorHandler(e),globalHandlerLog("onerror")),t.onunhandledrejection&&(_installGlobalOnUnhandledRejectionHandler(e),globalHandlerLog("onunhandledrejection"))}}},globalHandlersIntegration=defineIntegration(_globalHandlersIntegration);function _installGlobalOnErrorHandler(e){addGlobalErrorInstrumentationHandler((t=>{const{stackParser:r,attachStacktrace:n}=getOptions();if(getClient()!==e||shouldIgnoreOnError())return;const{msg:i,url:a,line:o,column:s,error:l}=t,c=_enhanceEventWithInitialFrame(eventFromUnknownInput(r,l||i,void 0,n,!1),a,o,s);c.level="error",captureEvent(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}function _installGlobalOnUnhandledRejectionHandler(e){addGlobalUnhandledRejectionInstrumentationHandler((t=>{const{stackParser:r,attachStacktrace:n}=getOptions();if(getClient()!==e||shouldIgnoreOnError())return;const i=_getUnhandledRejectionError(t),a=isPrimitive(i)?_eventFromRejectionWithPrimitive(i):eventFromUnknownInput(r,i,void 0,n,!0);a.level="error",captureEvent(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}function _getUnhandledRejectionError(e){if(isPrimitive(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}function _eventFromRejectionWithPrimitive(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function _enhanceEventWithInitialFrame(e,t,r,n){const i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],c=n,d=r,u=isString(t)&&t.length>0?t:getLocationHref();return 0===l.length&&l.push({colno:c,filename:u,function:UNKNOWN_FUNCTION,in_app:!0,lineno:d}),e}function globalHandlerLog(e){DEBUG_BUILD$1&&logger.log(`Global Handler attached: ${e}`)}function getOptions(){const e=getClient();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const httpContextIntegration=defineIntegration((()=>({name:"HttpContext",preprocessEvent(e){if(!WINDOW$1.navigator&&!WINDOW$1.location&&!WINDOW$1.document)return;const t=e.request&&e.request.url||WINDOW$1.location&&WINDOW$1.location.href,{referrer:r}=WINDOW$1.document||{},{userAgent:n}=WINDOW$1.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}))),DEFAULT_KEY="cause",DEFAULT_LIMIT=5,INTEGRATION_NAME="LinkedErrors",_linkedErrorsIntegration=(e={})=>{const t=e.limit||DEFAULT_LIMIT,r=e.key||DEFAULT_KEY;return{name:INTEGRATION_NAME,preprocessEvent(e,n,i){const a=i.getOptions();applyAggregateErrorsToEvent(exceptionFromError,a.stackParser,a.maxValueLength,r,t,e,n)}}},linkedErrorsIntegration=defineIntegration(_linkedErrorsIntegration);function getDefaultIntegrations(e){const t=[inboundFiltersIntegration(),functionToStringIntegration(),browserApiErrorsIntegration(),breadcrumbsIntegration(),globalHandlersIntegration(),linkedErrorsIntegration(),dedupeIntegration(),httpContextIntegration()];return!1!==e.autoSessionTracking&&t.push(browserSessionIntegration()),t}function applyDefaultOptions(e={}){const t={defaultIntegrations:getDefaultIntegrations(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:WINDOW$1.SENTRY_RELEASE&&WINDOW$1.SENTRY_RELEASE.id?WINDOW$1.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}function shouldShowBrowserExtensionError(){const e=void 0!==WINDOW$1.window&&WINDOW$1;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],r=t&&t.runtime&&t.runtime.id,n=WINDOW$1.location&&WINDOW$1.location.href||"",i=!!r&&WINDOW$1===WINDOW$1.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>n.startsWith(`${e}//`))),a=void 0!==e.nw;return!!r&&!i&&!a}function init$1(e={}){const t=applyDefaultOptions(e);if(!t.skipBrowserExtensionCheck&&shouldShowBrowserExtensionError())return void consoleSandbox((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));DEBUG_BUILD$1&&(supportsFetch()||logger.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...t,stackParser:stackParserFromStackParserOptions(t.stackParser||defaultStackParser),integrations:getIntegrationsToSetup(t),transport:t.transport||makeFetchTransport};return initAndBind(BrowserClient,r)}class SentryManager{constructor(){this.isInitialized=!1}static getInstance(){return SentryManager.instance||(SentryManager.instance=new SentryManager),SentryManager.instance}initialize(){if(this.isInitialized)return;const e=environmentManager.getEnvironment()||"production";if(!(e===ENVIRONMENTS.PRODUCTION||e===ENVIRONMENTS.STAGING))return;init$1({dsn:"https://8e000dda9faf4372bd40163105017f8a@o74188.ingest.us.sentry.io/4510466352742400",environment:e,sampleRate:.1}),this.isInitialized=!0}isEnabled(){return this.isInitialized}captureError(e){this.isInitialized&&captureException(e)}captureMessage(e,t="info"){this.isInitialized&&captureMessage(e,t)}}const sentryManager=SentryManager.getInstance(),SDK_PREFIX="[Qonto Embed SDK]";function isDebugEnabled(){return operationSettingsManager.getDebugMode()}function info(e,t){if(!isDebugEnabled())return;const r=void 0!==t?[SDK_PREFIX,e,t]:[SDK_PREFIX,e];console.log(...r)}const ANALYTICS_EVENTS={SDK_INITIALIZED:"SDK Initialized",CARDS_LIST:"Cards List",CARDS_ORDER_VIRTUAL:"Cards Order Virtual",CARDS_ORDER_PHYSICAL:"Cards Order Physical",BENEFICIARIES_LIST:"Beneficiaries List",SEPA_TRANSFER_CREATE:"SEPA Transfer Create",SEPA_TRANSFER_BULK_CREATE:"SEPA Transfer Bulk Create",TRANSACTIONS_LIST:"Transactions List",ORGANIZATIONS_LIST:"Organizations List",PAYMENT_LINKS_CREATE:"Payment Links Create",AUTH_LINKS_REQUEST:"Auth Links Request",UI_ELEMENT_CREATED:"UI Element Created"};var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var __assign$1=function(){return __assign$1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign$1.apply(this,arguments)},IdentifyOperation$1,SpecialEventType;function __rest(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function __decorate(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function __awaiter(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}l((n=n.apply(e,t||[])).next())}))}function __generator(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function __values$1(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$1(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function __spreadArray(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError,function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(IdentifyOperation$1||(IdentifyOperation$1={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(SpecialEventType||(SpecialEventType={}));var UNSET_VALUE="-",AMPLITUDE_PREFIX="AMP",STORAGE_PREFIX="".concat(AMPLITUDE_PREFIX,"_unsent"),DEFAULT_INSTANCE_NAME="$default_instance",AMPLITUDE_SERVER_URL="https://api2.amplitude.com/2/httpapi",EU_AMPLITUDE_SERVER_URL="https://api.eu.amplitude.com/2/httpapi",AMPLITUDE_BATCH_SERVER_URL="https://api2.amplitude.com/batch",EU_AMPLITUDE_BATCH_SERVER_URL="https://api.eu.amplitude.com/batch",UTM_CAMPAIGN="utm_campaign",UTM_CONTENT="utm_content",UTM_ID="utm_id",UTM_MEDIUM="utm_medium",UTM_SOURCE="utm_source",UTM_TERM="utm_term",DCLID="dclid",FBCLID="fbclid",GBRAID="gbraid",GCLID="gclid",KO_CLICK_ID="ko_click_id",LI_FAT_ID="li_fat_id",MSCLKID="msclkid",RDT_CID="rdt_cid",TTCLID="ttclid",TWCLID="twclid",WBRAID="wbraid",BASE_CAMPAIGN={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},SAFE_HEADERS=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],FORBIDDEN_HEADERS=["authorization","cookie","set-cookie"],MAX_PROPERTY_KEYS=1e3,isValidObject=function(e){if(Object.keys(e).length>MAX_PROPERTY_KEYS)return!1;for(var t in e){var r=e[t];if(!isValidProperties(t,r))return!1}return!0},isValidProperties=function(e,t){var r,n;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var a=__values$1(t),o=a.next();!o.done;o=a.next()){var s=o.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&isValidObject(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}else{if(null==t)return!1;if("object"==typeof t)return isValidObject(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0},Identify=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return __assign$1({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(IdentifyOperation.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(IdentifyOperation.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(IdentifyOperation.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(IdentifyOperation.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(IdentifyOperation.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(IdentifyOperation.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(IdentifyOperation.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(IdentifyOperation.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(IdentifyOperation.UNSET,e,UNSET_VALUE),this},e.prototype.clearAll=function(){return this._properties={},this._properties[IdentifyOperation.CLEAR_ALL]=UNSET_VALUE,this},e.prototype._safeSet=function(e,t,r){if(this._validate(e,t,r)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=r,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,r){return void 0===this._properties[IdentifyOperation.CLEAR_ALL]&&(!this._propertySet.has(t)&&(e===IdentifyOperation.ADD?"number"==typeof r:e===IdentifyOperation.UNSET||e===IdentifyOperation.REMOVE||isValidProperties(t,r)))},e}(),IdentifyOperation;!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(IdentifyOperation||(IdentifyOperation={}));var OrderedIdentifyOperations=[IdentifyOperation.CLEAR_ALL,IdentifyOperation.UNSET,IdentifyOperation.SET,IdentifyOperation.SET_ONCE,IdentifyOperation.ADD,IdentifyOperation.APPEND,IdentifyOperation.PREPEND,IdentifyOperation.PREINSERT,IdentifyOperation.POSTINSERT,IdentifyOperation.REMOVE],SUCCESS_MESSAGE="Event tracked successfully",UNEXPECTED_ERROR_MESSAGE="Unexpected error occurred",MAX_RETRIES_EXCEEDED_MESSAGE="Event rejected due to exceeded retry count",OPT_OUT_MESSAGE="Event skipped due to optOut config",MISSING_API_KEY_MESSAGE="Event rejected due to missing API key",INVALID_API_KEY="Invalid API key",CLIENT_NOT_INITIALIZED="Client not initialized",Status;!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(Status||(Status={}));var buildResult=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Status.Unknown),{event:e,code:t,message:r}},getGlobalScope=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:void 0},legacyUUID=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,UUID)},hex=__spreadArray([],__read$1(Array(256).keys()),!1).map((function(e){return e.toString(16).padStart(2,"0")})),UUID=function(e){var t,r=getGlobalScope();if(!(null===(t=null==r?void 0:r.crypto)||void 0===t?void 0:t.getRandomValues))return legacyUUID(e);var n=r.crypto.getRandomValues(new Uint8Array(16));return n[6]=15&n[6]|64,n[8]=63&n[8]|128,__spreadArray([],__read$1(n.entries()),!1).map((function(e){var t=__read$1(e,2),r=t[0],n=t[1];return[4,6,8,10].includes(r)?"-".concat(hex[n]):hex[n]})).join("")},Timeline=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var r,n;return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){switch(i.label){case 0:return this.plugins.some((function(t){return t.name===e.name}))?(this.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2]):(void 0===e.name&&(e.name=UUID(),this.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!==(r=e.type)&&void 0!==r?r:"enrichment",[4,null===(n=e.setup)||void 0===n?void 0:n.call(e,t,this.client)]);case 1:return i.sent(),this.plugins.push(e),[2]}}))}))},e.prototype.deregister=function(e,t){var r;return __awaiter(this,void 0,void 0,(function(){var n,i;return __generator(this,(function(a){switch(a.label){case 0:return n=this.plugins.findIndex((function(t){return t.name===e})),-1===n?(t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2]):(i=this.plugins[n],this.plugins.splice(n,1),[4,null===(r=i.teardown)||void 0===r?void 0:r.call(i)]);case 1:return a.sent(),[2]}}))}))},e.prototype.reset=function(e){this.applying=!1,this.plugins.map((function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)})),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise((function(r){t.queue.push([e,r]),t.scheduleApply(0)}))},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout((function(){t.apply(t.queue.shift()).then((function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)}))}),e))},e.prototype.apply=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,a,o,s,l,c,d,u,p,h,f,m,g,y,v,b,E;return __generator(this,(function(_){switch(_.label){case 0:if(!e)return[2];t=__read$1(e,1),r=t[0],n=__read$1(e,2),i=n[1],this.loggerProvider.log("Timeline.apply: Initial event",r),a=this.plugins.filter((function(e){return"before"===e.type})),_.label=1;case 1:_.trys.push([1,6,7,8]),o=__values$1(a),s=o.next(),_.label=2;case 2:return s.done?[3,5]:(p=s.value).execute?[4,p.execute(__assign$1({},r))]:[3,4];case 3:if(null===(h=_.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(r))),i({event:r,code:0,message:""}),[2];r=h,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(r))),_.label=4;case 4:return s=o.next(),[3,2];case 5:return[3,8];case 6:return l=_.sent(),y={error:l},[3,8];case 7:try{s&&!s.done&&(v=o.return)&&v.call(o)}finally{if(y)throw y.error}return[7];case 8:c=this.plugins.filter((function(e){return"enrichment"===e.type||void 0===e.type})),_.label=9;case 9:_.trys.push([9,14,15,16]),d=__values$1(c),u=d.next(),_.label=10;case 10:return u.done?[3,13]:(p=u.value).execute?[4,p.execute(__assign$1({},r))]:[3,12];case 11:if(null===(h=_.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(r))),i({event:r,code:0,message:""}),[2];r=h,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(r))),_.label=12;case 12:return u=d.next(),[3,10];case 13:return[3,16];case 14:return f=_.sent(),b={error:f},[3,16];case 15:try{u&&!u.done&&(E=d.return)&&E.call(d)}finally{if(b)throw b.error}return[7];case 16:return m=this.plugins.filter((function(e){return"destination"===e.type})),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(r))),g=m.map((function(e){var t=__assign$1({},r);return e.execute(t).catch((function(e){return buildResult(t,0,String(e))}))})),Promise.all(g).then((function(e){var t=__read$1(e,1)[0]||buildResult(r,100,"Event not tracked, no destination plugins on the instance");i(t)})),[2]}}))}))},e.prototype.flush=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n=this;return __generator(this,(function(i){switch(i.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map((function(e){return n.apply(e)})))];case 1:return i.sent(),t=this.plugins.filter((function(e){return"destination"===e.type})),r=t.map((function(e){return e.flush&&e.flush()})),[4,Promise.all(r)];case 2:return i.sent(),[2]}}))}))},e.prototype.onIdentityChanged=function(e){this.plugins.forEach((function(t){var r;null===(r=t.onIdentityChanged)||void 0===r||r.call(t,e)}))},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach((function(t){var r;null===(r=t.onSessionIdChanged)||void 0===r||r.call(t,e)}))},e.prototype.onOptOutChanged=function(e){this.plugins.forEach((function(t){var r;null===(r=t.onOptOutChanged)||void 0===r||r.call(t,e)}))},e.prototype.onReset=function(){this.plugins.forEach((function(e){var t;null===(t=e.onReset)||void 0===t||t.call(e)}))},e}(),createTrackEvent=function(e,t,r){return __assign$1(__assign$1(__assign$1({},"string"==typeof e?{event_type:e}:e),r),t&&{event_properties:t})},createIdentifyEvent=function(e,t){return __assign$1(__assign$1({},t),{event_type:SpecialEventType.IDENTIFY,user_properties:e.getUserProperties()})},createGroupIdentifyEvent=function(e,t,r,n){var i;return __assign$1(__assign$1({},n),{event_type:SpecialEventType.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(i={},i[e]=t,i)})},createGroupEvent=function(e,t,r){var n,i=new Identify;return i.set(e,t),__assign$1(__assign$1({},r),{event_type:SpecialEventType.IDENTIFY,user_properties:i.getUserProperties(),groups:(n={},n[e]=t,n)})},createRevenueEvent=function(e,t){return __assign$1(__assign$1({},t),{event_type:SpecialEventType.REVENUE,event_properties:e.getEventProperties()})},returnWrapper=function(e){return{promise:e||Promise.resolve()}},AmplitudeCore=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new Timeline(this),this.name=e}return e.prototype._init=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}}))}))},e.prototype.runQueuedFunctions=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,a,o,s,l;return __generator(this,(function(c){switch(c.label){case 0:t=this[e],this[e]=[],c.label=1;case 1:c.trys.push([1,8,9,10]),r=__values$1(t),n=r.next(),c.label=2;case 2:return n.done?[3,7]:(i=n.value,(a=i())&&"promise"in a?[4,a.promise]:[3,4]);case 3:return c.sent(),[3,6];case 4:return[4,a];case 5:c.sent(),c.label=6;case 6:return n=r.next(),[3,2];case 7:return[3,10];case 8:return o=c.sent(),s={error:o},[3,10];case 9:try{n&&!n.done&&(l=r.return)&&l.call(r)}finally{if(s)throw s.error}return[7];case 10:return this[e].length?[4,this.runQueuedFunctions(e)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[2]}}))}))},e.prototype.track=function(e,t,r){var n=createTrackEvent(e,t,r);return returnWrapper(this.dispatch(n))},e.prototype.identify=function(e,t){var r=createIdentifyEvent(e,t);return returnWrapper(this.dispatch(r))},e.prototype.groupIdentify=function(e,t,r,n){var i=createGroupIdentifyEvent(e,t,r,n);return returnWrapper(this.dispatch(i))},e.prototype.setGroup=function(e,t,r){var n=createGroupEvent(e,t,r);return returnWrapper(this.dispatch(n))},e.prototype.revenue=function(e,t){var r=createRevenueEvent(e,t);return returnWrapper(this.dispatch(r))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),returnWrapper())},e.prototype._addPlugin=function(e){return returnWrapper(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),returnWrapper())},e.prototype._removePlugin=function(e){return returnWrapper(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(buildResult(e,0,CLIENT_NOT_INITIALIZED));this.process(e).then(t)},e.prototype.dispatch=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(r){return this.isReady?[2,this.process(e)]:[2,new Promise((function(r){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,r))}))]}))}))},e.prototype.getOperationAppliedUserProperties=function(e){var t={};if(void 0===e)return t;var r={};return Object.keys(e).forEach((function(t){Object.values(IdentifyOperation$1).includes(t)||(r[t]=e[t])})),OrderedIdentifyOperations.forEach((function(r){if(Object.keys(e).includes(r)){var n=e[r];switch(r){case IdentifyOperation$1.CLEAR_ALL:Object.keys(t).forEach((function(e){delete t[e]}));break;case IdentifyOperation$1.UNSET:Object.keys(n).forEach((function(e){delete t[e]}));break;case IdentifyOperation$1.SET:Object.assign(t,n)}}})),Object.assign(t,r),t},e.prototype.process=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i;return __generator(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),this.config.optOut?[2,buildResult(e,0,OPT_OUT_MESSAGE)]:(e.event_type===SpecialEventType.IDENTIFY&&(t=this.getOperationAppliedUserProperties(e.user_properties),this.timeline.onIdentityChanged({userProperties:t})),[4,this.timeline.push(e)]);case 1:return 200===(i=a.sent()).code?this.config.loggerProvider.log(i.message):100===i.code?this.config.loggerProvider.warn(i.message):this.config.loggerProvider.error(i.message),[2,i];case 2:return r=a.sent(),n=String(r),this.config.loggerProvider.error(n),[2,i=buildResult(e,0,n)];case 3:return[2]}}))}))},e.prototype.setOptOut=function(e){this.isReady?this._setOptOut(e):this.q.push(this._setOptOut.bind(this,Boolean(e)))},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.timeline.onOptOutChanged(e),this.config.optOut=Boolean(e))},e.prototype.flush=function(){return returnWrapper(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find((function(t){return t.name===e}));if(void 0!==t)return t;this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e))},e.prototype.plugins=function(e){return this.timeline.plugins.filter((function(t){return t instanceof e}))},e}(),Revenue=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){return isValidObject(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?__assign$1({},this.properties):{};return e[RevenueProperty.REVENUE_PRODUCT_ID]=this.productId,e[RevenueProperty.REVENUE_QUANTITY]=this.quantity,e[RevenueProperty.REVENUE_PRICE]=this.price,e[RevenueProperty.REVENUE_TYPE]=this.revenueType,e[RevenueProperty.REVENUE_CURRENCY]=this.currency,e[RevenueProperty.REVENUE]=this.revenue,e[RevenueProperty.RECEIPT]=this.receipt,e[RevenueProperty.RECEIPT_SIG]=this.receiptSig,e},e}(),RevenueProperty;!function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"}(RevenueProperty||(RevenueProperty={}));var chunk=function(e,t){var r=Math.max(t,1);return e.reduce((function(e,t,n){var i=Math.floor(n/r);return e[i]||(e[i]=[]),e[i].push(t),e}),[])},LogLevel;!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(LogLevel||(LogLevel={}));var PREFIX="Amplitude Logger ",Logger=function(){function e(){this.logLevel=LogLevel.None}return e.prototype.disable=function(){this.logLevel=LogLevel.None},e.prototype.enable=function(e){void 0===e&&(e=LogLevel.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<LogLevel.Verbose||console.log("".concat(PREFIX,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<LogLevel.Warn||console.warn("".concat(PREFIX,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<LogLevel.Error||console.error("".concat(PREFIX,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<LogLevel.Debug||console.log("".concat(PREFIX,"[Debug]: ").concat(e.join(" ")))},e}(),getDefaultConfig=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:DEFAULT_INSTANCE_NAME,logLevel:LogLevel.Warn,loggerProvider:new Logger,offline:!1,optOut:!1,serverUrl:AMPLITUDE_SERVER_URL,serverZone:"US",useBatch:!1}},Config=function(){function e(e){var t,r,n,i;this._optOut=!1;var a=getDefaultConfig();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:a.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||a.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||a.flushQueueSize,this.instanceName=e.instanceName||a.instanceName,this.loggerProvider=e.loggerProvider||a.loggerProvider,this.logLevel=null!==(r=e.logLevel)&&void 0!==r?r:a.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:a.offline,this.optOut=null!==(n=e.optOut)&&void 0!==n?n:a.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||a.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:a.useBatch,this.loggerProvider.enable(this.logLevel);var o=createServerConfig(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=o.serverZone,this.serverUrl=o.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),getServerUrl=function(e,t){return"EU"===e?t?EU_AMPLITUDE_BATCH_SERVER_URL:EU_AMPLITUDE_SERVER_URL:t?AMPLITUDE_BATCH_SERVER_URL:AMPLITUDE_SERVER_URL},createServerConfig=function(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=getDefaultConfig().serverZone),void 0===r&&(r=getDefaultConfig().useBatch),e)return{serverUrl:e,serverZone:void 0};var n=["US","EU"].includes(t)?t:getDefaultConfig().serverZone;return{serverZone:n,serverUrl:getServerUrl(n,r)}},RequestMetadata=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}();function isSuccessStatusCode(e){return e>=200&&e<300}var getStacktrace=function(e){return void 0===e&&(e=0),((new Error).stack||"").split("\n").slice(2+e).map((function(e){return e.trim()}))},getClientLogConfig=function(e){return function(){var t=__assign$1({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},getValueByStringPath=function(e,t){var r,n;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=__values$1(t.split(".")),a=i.next();!a.done;a=i.next()){var o=a.value;if(!(o in e))return;e=e[o]}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},getClientStates=function(e,t){return function(){var r,n,i={};try{for(var a=__values$1(t),o=a.next();!o.done;o=a.next()){var s=o.value;i[s]=getValueByStringPath(e,s)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}},debugWrapper=function(e,t,r,n,i){return void 0===i&&(i=null),function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=r(),l=s.logger,c=s.logLevel;if(c&&c<LogLevel.Debug||!c||!l)return e.apply(i,a);var d={type:"invoke public method",name:t,args:a,stacktrace:getStacktrace(1),time:{start:(new Date).toISOString()},states:{}};n&&d.states&&(d.states.before=n());var u=e.apply(i,a);return u&&u.promise?u.promise.then((function(){n&&d.states&&(d.states.after=n()),d.time&&(d.time.end=(new Date).toISOString()),l.debug(JSON.stringify(d,null,2))})):(n&&d.states&&(d.states.after=n()),d.time&&(d.time.end=(new Date).toISOString()),l.debug(JSON.stringify(d,null,2))),u}};function getErrorMessage(e){return e instanceof Error?e.message:String(e)}function getResponseBodyString(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var Destination=function(){function e(e){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=null==e?void 0:e.diagnosticsClient}return e.prototype.setup=function(e){var t;return __awaiter(this,void 0,void 0,(function(){var r,n=this;return __generator(this,(function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(STORAGE_PREFIX,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(r=i.sent())&&r.length>0&&Promise.all(r.map((function(e){return n.execute(e)}))).catch(),[2,Promise.resolve(void 0)]}}))}))},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=UUID()),new Promise((function(r){var n={event:e,attempts:0,callback:function(e){return r(e)},timeout:0};t.queue.push(n),t.schedule(t.config.flushIntervalMillis),t.saveEvents()}))},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter((function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,MAX_RETRIES_EXCEEDED_MESSAGE),!1)}))},e.prototype.scheduleEvents=function(e){var t=this;e.forEach((function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)}))},e.prototype.schedule=function(e){var t=this;if(!this.config.offline)return null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout?(this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,void(this.scheduleId=setTimeout((function(){t.queue=t.queue.map((function(e){return e.timeout=0,e})),t.flush(!0)}),e))):void 0},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),__awaiter(this,void 0,void 0,(function(){var t,r,n=this;return __generator(this,(function(i){switch(i.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),t=[],r=[],this.queue.forEach((function(e){return 0===e.timeout?t.push(e):r.push(e)})),[4,chunk(t,this.config.flushQueueSize).reduce((function(t,r){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,t];case 1:return n.sent(),[4,this.send(r,e)];case 2:return[2,n.sent()]}}))}))}),Promise.resolve())]);case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}}))}))},e.prototype.send=function(e,t){var r;return void 0===t&&(t=!0),__awaiter(this,void 0,void 0,(function(){var n,i,a,o,s;return __generator(this,(function(l){switch(l.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,MISSING_API_KEY_MESSAGE)];n={api_key:this.config.apiKey,events:e.map((function(e){var t=e.event;return t.extra,__rest(t,["extra"])})),options:{min_id_length:this.config.minIdLength},client_upload_time:(new Date).toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new RequestMetadata,l.label=1;case 1:return l.trys.push([1,3,,4]),i=createServerConfig(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(i,n)];case 2:return null===(a=l.sent())?(this.fulfillRequest(e,0,UNEXPECTED_ERROR_MESSAGE),[2]):t?(this.handleResponse(a,e),[3,4]):("body"in a?this.fulfillRequest(e,a.statusCode,"".concat(a.status,": ").concat(getResponseBodyString(a))):this.fulfillRequest(e,a.statusCode,a.status),[2]);case 3:return o=l.sent(),s=getErrorMessage(o),this.config.loggerProvider.error(s),null===(r=this.diagnosticsClient)||void 0===r||r.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:e.map((function(e){return e.event.event_type})),message:s,stack_trace:getStacktrace()}),this.handleResponse({status:Status.Failed,statusCode:0},e),[3,4];case 4:return[2]}}))}))},e.prototype.handleResponse=function(e,t){var r;isSuccessStatusCode(e.statusCode)||null===(r=this.diagnosticsClient)||void 0===r||r.recordEvent("analytics.events.unsuccessful",{events:t.map((function(e){return e.event.event_type})),code:e.statusCode,status:e.status,body:getResponseBodyString(e),stack_trace:getStacktrace()});var n=e.status;switch(n){case Status.Success:this.handleSuccessResponse(e,t);break;case Status.Invalid:this.handleInvalidResponse(e,t);break;case Status.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case Status.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,SUCCESS_MESSAGE)},e.prototype.handleInvalidResponse=function(e,t){var r=this;if(e.body.missingField||e.body.error.startsWith(INVALID_API_KEY))this.fulfillRequest(t,e.statusCode,e.body.error);else{var n=__spreadArray(__spreadArray(__spreadArray(__spreadArray([],__read$1(Object.values(e.body.eventsWithInvalidFields)),!1),__read$1(Object.values(e.body.eventsWithMissingFields)),!1),__read$1(Object.values(e.body.eventsWithInvalidIdLengths)),!1),__read$1(e.body.silencedEvents),!1).flat(),i=new Set(n),a=t.filter((function(t,n){if(!i.has(n))return!0;r.fulfillRequest([t],e.statusCode,e.body.error)}));a.length>0&&this.config.loggerProvider.warn(getResponseBodyString(e));var o=this.removeEventsExceedFlushMaxRetries(a);this.scheduleEvents(o)}},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1!==t.length){this.config.loggerProvider.warn(getResponseBodyString(e)),this.config.flushQueueSize/=2;var r=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(r)}else this.fulfillRequest(t,e.statusCode,e.body.error)},e.prototype.handleRateLimitResponse=function(e,t){var r=this,n=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),a=e.body.throttledEvents,o=new Set(n),s=new Set(i),l=new Set(a),c=t.filter((function(t,n){if(!(t.event.user_id&&o.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)))return l.has(n)&&(t.timeout=r.throttleTimeout),!0;r.fulfillRequest([t],e.statusCode,e.body.error)}));c.length>0&&this.config.loggerProvider.warn(getResponseBodyString(e));var d=this.removeEventsExceedFlushMaxRetries(c);this.scheduleEvents(d)},e.prototype.handleOtherResponse=function(e){var t=this,r=e.map((function(e){return e.timeout=e.attempts*t.retryTimeout,e})),n=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(n)},e.prototype.fulfillRequest=function(e,t,r){var n,i,a;isSuccessStatusCode(t)?null===(a=this.diagnosticsClient)||void 0===a||a.increment("analytics.events.sent",e.length):(null===(n=this.diagnosticsClient)||void 0===n||n.increment("analytics.events.dropped",e.length),null===(i=this.diagnosticsClient)||void 0===i||i.recordEvent("analytics.events.dropped",{events:e.map((function(e){return e.event.event_type})),code:t,message:r,stack_trace:getStacktrace()})),this.removeEvents(e),e.forEach((function(e){return e.callback(buildResult(e.event,t,r))}))},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map((function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter((function(t){return!e.some((function(e){return e.event.insert_id===t.event.insert_id}))})),this.saveEvents()},e}(),ApplicationContextProviderImpl=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:getLanguage$1(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),getLanguage$1=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},EventBridgeImpl=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach((function(t){e(t)})),this.queue=[])},e}(),__assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)};function __values(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}"function"==typeof SuppressedError&&SuppressedError;var isEqual=function(e,t){var r,n,i=typeof e;if(i!==typeof t)return!1;try{for(var a=__values(["string","number","boolean","undefined"]),o=a.next();!o.done;o=a.next()){if(o.value===i)return e===t}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;var s=Array.isArray(e),l=Array.isArray(t);if(s!==l)return!1;if(!s||!l){var c=Object.keys(e).sort(),d=Object.keys(t).sort();if(!isEqual(c,d))return!1;var u=!0;return Object.keys(e).forEach((function(r){isEqual(e[r],t[r])||(u=!1)})),u}for(var p=0;p<e.length;p++)if(!isEqual(e[p],t[p]))return!1;return!0},ID_OP_SET="$set",ID_OP_UNSET="$unset",ID_OP_CLEAR_ALL="$clearAll";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var IdentityStoreImpl=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=__assign({},this.identity.userProperties),r=__assign(__assign({},this.identity),{userProperties:t});return{setUserId:function(e){return r.userId=e,this},setDeviceId:function(e){return r.deviceId=e,this},setUserProperties:function(e){return r.userProperties=e,this},setOptOut:function(e){return r.optOut=e,this},updateUserProperties:function(e){var t,n,i,a,o,s,l=r.userProperties||{};try{for(var c=__values(Object.entries(e)),d=c.next();!d.done;d=c.next()){var u=__read(d.value,2),p=u[0],h=u[1];switch(p){case ID_OP_SET:try{for(var f=(i=void 0,__values(Object.entries(h))),m=f.next();!m.done;m=f.next()){var g=__read(m.value,2),y=g[0],v=g[1];l[y]=v}}catch(e){i={error:e}}finally{try{m&&!m.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}break;case ID_OP_UNSET:try{for(var b=(o=void 0,__values(Object.keys(h))),E=b.next();!E.done;E=b.next()){delete l[y=E.value]}}catch(e){o={error:e}}finally{try{E&&!E.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}break;case ID_OP_CLEAR_ALL:l={}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return r.userProperties=l,this},commit:function(){return e.setIdentity(r),this}}},e.prototype.getIdentity=function(){return __assign({},this.identity)},e.prototype.setIdentity=function(e){var t=__assign({},this.identity);this.identity=__assign({},e),isEqual(t,this.identity)||this.listeners.forEach((function(t){t(e)}))},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),safeGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:self,AnalyticsConnector=function(){function e(){this.identityStore=new IdentityStoreImpl,this.eventBridge=new EventBridgeImpl,this.applicationContextProvider=new ApplicationContextProviderImpl}return e.getInstance=function(t){return safeGlobal.analyticsConnectorInstances||(safeGlobal.analyticsConnectorInstances={}),safeGlobal.analyticsConnectorInstances[t]||(safeGlobal.analyticsConnectorInstances[t]=new e),safeGlobal.analyticsConnectorInstances[t]},e}(),getAnalyticsConnector=function(e){return void 0===e&&(e=DEFAULT_INSTANCE_NAME),AnalyticsConnector.getInstance(e)},setConnectorUserId=function(e,t){getAnalyticsConnector(t).identityStore.editIdentity().setUserId(e).commit()},setConnectorDeviceId=function(e,t){getAnalyticsConnector(t).identityStore.editIdentity().setDeviceId(e).commit()},IdentityEventSender=function(){function e(){this.name="identity",this.type="before",this.identityStore=getAnalyticsConnector().identityStore}return e.prototype.execute=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]}))}))},e.prototype.setup=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return e.instanceName&&(this.identityStore=getAnalyticsConnector(e.instanceName).identityStore),[2]}))}))},e}(),isNewSession=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},getCookieName=function(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=10),[AMPLITUDE_PREFIX,t,e.substring(0,r)].filter(Boolean).join("_")},getOldCookieName=function(e){return"".concat(AMPLITUDE_PREFIX.toLowerCase(),"_").concat(e.substring(0,6))},getLanguage=function(){var e,t,r,n;if("undefined"==typeof navigator)return"";var i=navigator.userLanguage;return null!==(n=null!==(r=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==r?r:i)&&void 0!==n?n:""},getQueryParams=function(){var e,t=getGlobalScope();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce((function(e,t){var r=t.split("=",2),n=tryDecodeURIComponent(r[0]),i=tryDecodeURIComponent(r[1]);return i?(e[n]=i,e):e}),{}):{}},tryDecodeURIComponent=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},isUrlMatchAllowlist=function(e,t){return!t||!t.length||t.some((function(t){return"string"==typeof t?e===t:e.match(t)}))},getDecodeURI=function(e,t){var r=e;try{r=decodeURI(e)}catch(e){null==t||t.error("Malformed URI sequence: ",e)}return r},generateHashCode=function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return t},isTimestampInSampleTemp=function(e,t){var r=generateHashCode(e.toString());return 31*Math.abs(r)%1e5/1e5<t},MemoryStorage=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,!0]}))}))},e.prototype.get=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.memoryStorage.get(e)]}))}))},e.prototype.getRaw=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.get(e)];case 1:return[2,(t=r.sent())?JSON.stringify(t):void 0]}}))}))},e.prototype.set=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return this.memoryStorage.set(e,t),[2]}))}))},e.prototype.remove=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return this.memoryStorage.delete(e),[2]}))}))},e.prototype.reset=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return this.memoryStorage.clear(),[2]}))}))},e}(),CookieStorage=function(){function e(e){this.options=__assign$1({},e)}return e.prototype.isEnabled=function(){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:if(!getGlobalScope())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),r="AMP_TEST",n.label=1;case 1:return n.trys.push([1,4,5,7]),[4,t.set(r,e.testValue)];case 2:return n.sent(),[4,t.get(r)];case 3:return[2,n.sent()===e.testValue];case 4:return n.sent(),[2,!1];case 5:return[4,t.remove(r)];case 6:return n.sent(),[7];case 7:return[2]}}))}))},e.prototype.get=function(e){var t;return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(r=i.sent()))return[2,void 0];try{return void 0===(n=null!==(t=decodeCookiesAsDefault(r))&&void 0!==t?t:decodeCookiesWithDoubleUrlEncoding(r))?(console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(r)),[2,void 0]):[2,JSON.parse(n)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(r)),[2,void 0]}return[2]}}))}))},e.prototype.getRaw=function(e){var t,r;return __awaiter(this,void 0,void 0,(function(){var n,i,a;return __generator(this,(function(o){return n=getGlobalScope(),i=null!==(r=null===(t=null==n?void 0:n.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==r?r:[],a=i.find((function(t){return 0===t.indexOf(e+"=")})),a?[2,a.substring(e.length+1)]:[2,void 0]}))}))},e.prototype.set=function(e,t){var r;return __awaiter(this,void 0,void 0,(function(){var n,i,a,o,s,l,c;return __generator(this,(function(d){try{n=null!==(r=this.options.expirationDays)&&void 0!==r?r:0,a=void 0,(i=null!==t?n:-1)&&((o=new Date).setTime(o.getTime()+24*i*60*60*1e3),a=o),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),a&&(s+="; expires=".concat(a.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(l=getGlobalScope())&&(l.document.cookie=s)}catch(t){c=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(c))}return[2]}))}))},e.prototype.remove=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}}))}))},e.prototype.reset=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},e}(),decodeCookiesAsDefault=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},decodeCookiesWithDoubleUrlEncoding=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},getStorageKey=function(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=10),[AMPLITUDE_PREFIX,t,e.substring(0,r)].filter(Boolean).join("_")},BrowserStorage=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,n;return __generator(this,(function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return i.sent(),[4,r.get(n)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return i.sent(),[7];case 7:return[2]}}))}))},e.prototype.get=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return(t=r.sent())?[2,JSON.parse(t)]:[2,void 0];case 2:return r.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}}))}))},e.prototype.getRaw=function(e){var t;return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]}))}))},e.prototype.set=function(e,t){var r;return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){try{null===(r=this.storage)||void 0===r||r.setItem(e,JSON.stringify(t))}catch(e){}return[2]}))}))},e.prototype.remove=function(e){var t;return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]}))}))},e.prototype.reset=function(){var e;return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]}))}))},e}(),MAX_PERSISTENT_STORAGE_EVENTS_COUNT=10,DB_VERSION=1,TABLE_NAMES={TAGS:"tags",COUNTERS:"counters",HISTOGRAMS:"histograms",EVENTS:"events",INTERNAL:"internal"},INTERNAL_KEYS={LAST_FLUSH_TIMESTAMP:"last_flush_timestamp"},DiagnosticsStorage=function(){function e(e,t){this.dbPromise=null,this.logger=t,this.dbName="AMP_diagnostics_".concat(e.substring(0,10))}return e.isSupported=function(){var e;return void 0!==(null===(e=getGlobalScope())||void 0===e?void 0:e.indexedDB)},e.prototype.getDB=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]}))}))},e.prototype.openDB=function(){var e=this;return new Promise((function(t,r){var n=indexedDB.open(e.dbName,DB_VERSION);n.onerror=function(){e.dbPromise=null,r(new Error("Failed to open IndexedDB"))},n.onsuccess=function(){var r=n.result;r.onclose=function(){e.dbPromise=null,e.logger.debug("DiagnosticsStorage: DB connection closed.")},r.onerror=function(t){e.logger.debug("DiagnosticsStorage: A global database error occurred.",t),r.close()},t(r)},n.onupgradeneeded=function(t){var r=t.target.result;e.createTables(r)}}))},e.prototype.createTables=function(e){(e.objectStoreNames.contains(TABLE_NAMES.TAGS)||e.createObjectStore(TABLE_NAMES.TAGS,{keyPath:"key"}),e.objectStoreNames.contains(TABLE_NAMES.COUNTERS)||e.createObjectStore(TABLE_NAMES.COUNTERS,{keyPath:"key"}),e.objectStoreNames.contains(TABLE_NAMES.HISTOGRAMS)||e.createObjectStore(TABLE_NAMES.HISTOGRAMS,{keyPath:"key"}),e.objectStoreNames.contains(TABLE_NAMES.EVENTS))||e.createObjectStore(TABLE_NAMES.EVENTS,{keyPath:"id",autoIncrement:!0}).createIndex("time_idx","time",{unique:!1});e.objectStoreNames.contains(TABLE_NAMES.INTERNAL)||e.createObjectStore(TABLE_NAMES.INTERNAL,{keyPath:"key"})},e.prototype.setTags=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,a=this;return __generator(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),0===Object.entries(e).length?[2]:[4,this.getDB()];case 1:return t=o.sent(),r=t.transaction([TABLE_NAMES.TAGS],"readwrite"),n=r.objectStore(TABLE_NAMES.TAGS),[2,new Promise((function(t){var i=Object.entries(e);r.oncomplete=function(){t()},r.onabort=function(e){a.logger.debug("DiagnosticsStorage: Failed to set tags",e),t()},i.forEach((function(e){var t=__read$1(e,2),r=t[0],i=t[1];n.put({key:r,value:i}).onerror=function(e){a.logger.debug("DiagnosticsStorage: Failed to set tag",r,i,e)}}))}))];case 2:return i=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",i),[3,3];case 3:return[2]}}))}))},e.prototype.incrementCounters=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,a=this;return __generator(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),0===Object.entries(e).length?[2]:[4,this.getDB()];case 1:return t=o.sent(),r=t.transaction([TABLE_NAMES.COUNTERS],"readwrite"),n=r.objectStore(TABLE_NAMES.COUNTERS),[2,new Promise((function(t){var i=Object.entries(e);r.oncomplete=function(){t()},r.onabort=function(e){a.logger.debug("DiagnosticsStorage: Failed to increment counters",e),t()},i.forEach((function(e){var t=__read$1(e,2),r=t[0],i=t[1],o=n.get(r);o.onsuccess=function(){var e=o.result,t=e?e.value:0;n.put({key:r,value:t+i}).onerror=function(e){a.logger.debug("DiagnosticsStorage: Failed to update counter",r,e)}},o.onerror=function(e){a.logger.debug("DiagnosticsStorage: Failed to read existing counter",r,e)}}))}))];case 2:return i=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",i),[3,3];case 3:return[2]}}))}))},e.prototype.setHistogramStats=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,a=this;return __generator(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),0===Object.entries(e).length?[2]:[4,this.getDB()];case 1:return t=o.sent(),r=t.transaction([TABLE_NAMES.HISTOGRAMS],"readwrite"),n=r.objectStore(TABLE_NAMES.HISTOGRAMS),[2,new Promise((function(t){var i=Object.entries(e);r.oncomplete=function(){t()},r.onabort=function(e){a.logger.debug("DiagnosticsStorage: Failed to set histogram stats",e),t()},i.forEach((function(e){var t=__read$1(e,2),r=t[0],i=t[1],o=n.get(r);o.onsuccess=function(){var e,t=o.result;e=t?{key:r,count:t.count+i.count,min:Math.min(t.min,i.min),max:Math.max(t.max,i.max),sum:t.sum+i.sum}:{key:r,count:i.count,min:i.min,max:i.max,sum:i.sum},n.put(e).onerror=function(e){a.logger.debug("DiagnosticsStorage: Failed to set histogram stats",r,e)}},o.onerror=function(e){a.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",r,e)}}))}))];case 2:return i=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",i),[3,3];case 3:return[2]}}))}))},e.prototype.addEventRecords=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,a=this;return __generator(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),0===e.length?[2]:[4,this.getDB()];case 1:return t=o.sent(),r=t.transaction([TABLE_NAMES.EVENTS],"readwrite"),n=r.objectStore(TABLE_NAMES.EVENTS),[2,new Promise((function(t){r.oncomplete=function(){t()},r.onabort=function(e){a.logger.debug("DiagnosticsStorage: Failed to add event records",e),t()};var i=n.count();i.onsuccess=function(){var t=i.result,r=Math.max(0,MAX_PERSISTENT_STORAGE_EVENTS_COUNT-t);r<e.length&&a.logger.debug("DiagnosticsStorage: Only added ".concat(r," of ").concat(e.length," events due to storage limit")),e.slice(0,r).forEach((function(e){n.add(e).onerror=function(e){a.logger.debug("DiagnosticsStorage: Failed to add event record",e)}}))},i.onerror=function(e){a.logger.debug("DiagnosticsStorage: Failed to count existing events",e)}}))];case 2:return i=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",i),[3,3];case 3:return[2]}}))}))},e.prototype.setInternal=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,a;return __generator(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.getDB()];case 1:return r=o.sent(),n=r.transaction([TABLE_NAMES.INTERNAL],"readwrite"),i=n.objectStore(TABLE_NAMES.INTERNAL),[2,new Promise((function(r,a){n.onabort=function(){return a(new Error("Failed to set internal value"))};var o=i.put({key:e,value:t});o.onsuccess=function(){return r()},o.onerror=function(){return a(new Error("Failed to set internal value"))}}))];case 2:return a=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",a),[3,3];case 3:return[2]}}))}))},e.prototype.getInternal=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i;return __generator(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.getDB()];case 1:return t=a.sent(),r=t.transaction([TABLE_NAMES.INTERNAL],"readonly"),n=r.objectStore(TABLE_NAMES.INTERNAL),[2,new Promise((function(t,i){r.onabort=function(){return i(new Error("Failed to get internal value"))};var a=n.get(e);a.onsuccess=function(){return t(a.result)},a.onerror=function(){return i(new Error("Failed to get internal value"))}}))];case 2:return i=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",i),[2,void 0];case 3:return[2]}}))}))},e.prototype.getLastFlushTimestamp=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getInternal(INTERNAL_KEYS.LAST_FLUSH_TIMESTAMP)];case 1:return[2,(e=r.sent())?parseInt(e.value,10):void 0];case 2:return t=r.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",t),[2,void 0];case 3:return[2]}}))}))},e.prototype.setLastFlushTimestamp=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.setInternal(INTERNAL_KEYS.LAST_FLUSH_TIMESTAMP,e.toString())];case 1:return r.sent(),[3,3];case 2:return t=r.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",t),[3,3];case 3:return[2]}}))}))},e.prototype.clearTable=function(e,t){return new Promise((function(r,n){var i=e.objectStore(t).clear();i.onsuccess=function(){return r()},i.onerror=function(){return n(new Error("Failed to clear table ".concat(t)))}}))},e.prototype.getAllAndClear=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,a,o,s;return __generator(this,(function(l){switch(l.label){case 0:return l.trys.push([0,4,,5]),[4,this.getDB()];case 1:return e=l.sent(),t=e.transaction([TABLE_NAMES.TAGS,TABLE_NAMES.COUNTERS,TABLE_NAMES.HISTOGRAMS,TABLE_NAMES.EVENTS],"readwrite"),[4,Promise.all([this.getAllFromStore(t,TABLE_NAMES.TAGS),this.getAllFromStore(t,TABLE_NAMES.COUNTERS),this.getAllFromStore(t,TABLE_NAMES.HISTOGRAMS),this.getAllFromStore(t,TABLE_NAMES.EVENTS)])];case 2:return r=__read$1.apply(void 0,[l.sent(),4]),n=r[0],i=r[1],a=r[2],o=r[3],[4,Promise.all([this.clearTable(t,TABLE_NAMES.COUNTERS),this.clearTable(t,TABLE_NAMES.HISTOGRAMS),this.clearTable(t,TABLE_NAMES.EVENTS)])];case 3:return l.sent(),[2,{tags:n,counters:i,histogramStats:a,events:o}];case 4:return s=l.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",s),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}}))}))},e.prototype.getAllFromStore=function(e,t){return new Promise((function(r,n){var i=e.objectStore(t).getAll();i.onsuccess=function(){return r(i.result)},i.onerror=function(){return n(new Error("Failed to get all from ".concat(t)))}}))},e}(),GLOBAL_KEY="__AMPLITUDE_SCRIPT_URL__",EVENT_NAME_ERROR_UNCAUGHT="sdk.error.uncaught",getNormalizedScriptUrl=function(){var e=getGlobalScope();return null==e?void 0:e[GLOBAL_KEY]},enableSdkErrorListeners=function(e){var t=getGlobalScope();if(t&&"function"==typeof t.addEventListener){var r=function(t){e.recordEvent(EVENT_NAME_ERROR_UNCAUGHT,__assign$1({type:t.type,message:t.message,filename:t.filename,error_name:t.errorName,stack:t.stack},t.metadata))};t.addEventListener("error",(function(e){var t=e.error instanceof Error?e.error:void 0,n=null==t?void 0:t.stack,i=detectSdkOrigin({filename:e.filename,stack:n});i&&r({type:"error",message:e.message,stack:n,filename:e.filename,errorName:null==t?void 0:t.name,metadata:{colno:e.colno,lineno:e.lineno,isTrusted:e.isTrusted,matchReason:i}})}),!0),t.addEventListener("unhandledrejection",(function(e){var t,n=e.reason instanceof Error?e.reason:void 0,i=null==n?void 0:n.stack,a=extractFilenameFromStack(i),o=detectSdkOrigin({filename:a,stack:i});o&&r({type:"unhandledrejection",message:null!==(t=null==n?void 0:n.message)&&void 0!==t?t:stringifyReason(e.reason),stack:i,filename:a,errorName:null==n?void 0:n.name,metadata:{isTrusted:e.isTrusted,matchReason:o}})}),!0)}},detectSdkOrigin=function(e){var t=getNormalizedScriptUrl();if(t)return e.filename&&e.filename.includes(t)?"filename":e.stack&&e.stack.includes(t)?"stack":void 0},extractFilenameFromStack=function(e){if(e){var t=e.match(/(https?:\/\/\S+?)(?=[)\s]|$)/);return t?t[1]:void 0}},stringifyReason=function(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(e){return"[object Object]"}},SAVE_INTERVAL_MS=1e3,FLUSH_INTERVAL_MS=3e5,DIAGNOSTICS_US_SERVER_URL="https://diagnostics.prod.us-west-2.amplitude.com/v1/capture",DIAGNOSTICS_EU_SERVER_URL="https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",MAX_MEMORY_STORAGE_COUNT=1e4,MAX_MEMORY_STORAGE_EVENTS_COUNT=10,DiagnosticsClient=function(){function e(e,t,r,n){void 0===r&&(r="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=e,this.logger=t,this.serverUrl="US"===r?DIAGNOSTICS_US_SERVER_URL:DIAGNOSTICS_EU_SERVER_URL,this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(n,null,2)),this.config=__assign$1({enabled:!0,sampleRate:0},n),this.startTimestamp=Date.now(),this.shouldTrack=isTimestampInSampleTemp(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,DiagnosticsStorage.isSupported()?this.storage=new DiagnosticsStorage(e,t):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval(),this.shouldTrack&&(this.increment("sdk.diagnostics.sampled.in.and.enabled"),enableSdkErrorListeners(this))}return e.prototype.isStorageAndTrackEnabled=function(){return Boolean(this.storage)&&Boolean(this.shouldTrack)},e.prototype.setTag=function(e,t){this.isStorageAndTrackEnabled()&&(Object.keys(this.inMemoryTags).length>=MAX_MEMORY_STORAGE_COUNT?this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit"):(this.inMemoryTags[e]=t,this.startTimersIfNeeded()))},e.prototype.increment=function(e,t){void 0===t&&(t=1),this.isStorageAndTrackEnabled()&&(Object.keys(this.inMemoryCounters).length>=MAX_MEMORY_STORAGE_COUNT?this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit"):(this.inMemoryCounters[e]=(this.inMemoryCounters[e]||0)+t,this.startTimersIfNeeded()))},e.prototype.recordHistogram=function(e,t){if(this.isStorageAndTrackEnabled())if(Object.keys(this.inMemoryHistograms).length>=MAX_MEMORY_STORAGE_COUNT)this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");else{var r=this.inMemoryHistograms[e];r?(r.count+=1,r.min=Math.min(r.min,t),r.max=Math.max(r.max,t),r.sum+=t):this.inMemoryHistograms[e]={count:1,min:t,max:t,sum:t},this.startTimersIfNeeded()}},e.prototype.recordEvent=function(e,t){this.isStorageAndTrackEnabled()&&(this.inMemoryEvents.length>=MAX_MEMORY_STORAGE_EVENTS_COUNT?this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit"):(this.inMemoryEvents.push({event_name:e,time:Date.now(),event_properties:t}),this.startTimersIfNeeded()))},e.prototype.startTimersIfNeeded=function(){var e=this;this.saveTimer||(this.saveTimer=setTimeout((function(){e.saveAllDataToStorage().catch((function(t){e.logger.debug("DiagnosticsClient: Failed to save all data to storage",t)})).finally((function(){e.saveTimer=null}))}),SAVE_INTERVAL_MS)),this.flushTimer||(this.flushTimer=setTimeout((function(){e._flush().catch((function(t){e.logger.debug("DiagnosticsClient: Failed to flush",t)})).finally((function(){e.flushTimer=null}))}),FLUSH_INTERVAL_MS))},e.prototype.saveAllDataToStorage=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(i){switch(i.label){case 0:return this.storage?(e=__assign$1({},this.inMemoryTags),t=__assign$1({},this.inMemoryCounters),r=__assign$1({},this.inMemoryHistograms),n=__spreadArray([],__read$1(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(e),this.storage.incrementCounters(t),this.storage.setHistogramStats(r),this.storage.addEventRecords(n)])]):[2];case 1:return i.sent(),[2]}}))}))},e.prototype._flush=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,a,o,s,l,c;return __generator(this,(function(d){switch(d.label){case 0:return this.storage?[4,this.saveAllDataToStorage()]:[2];case 1:return d.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:return e=d.sent(),t=e.tags,r=e.counters,n=e.histogramStats,i=e.events,this.storage.setLastFlushTimestamp(Date.now()),a={},t.forEach((function(e){a[e.key]=e.value})),o={},r.forEach((function(e){o[e.key]=e.value})),s={},n.forEach((function(e){s[e.key]={count:e.count,min:e.min,max:e.max,avg:Math.round(e.sum/e.count*100)/100}})),l=i.map((function(e){return{event_name:e.event_name,time:e.time,event_properties:e.event_properties}})),0===Object.keys(o).length&&0===Object.keys(s).length&&0===l.length?[2]:(c={tags:a,histogram:s,counters:o,events:l},this.fetch(c),[2])}}))}))},e.prototype.fetch=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),!getGlobalScope())throw new Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(e)})];case 1:return r.sent().ok?(this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3]):(this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2]);case 2:return t=r.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",t),[3,3];case 3:return[2]}}))}))},e.prototype.initializeFlushInterval=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r;return __generator(this,(function(n){switch(n.label){case 0:return this.storage?(e=Date.now(),[4,this.storage.getLastFlushTimestamp()]):[2];case 1:return-1===(t=n.sent()||-1)?(this.storage.setLastFlushTimestamp(e),this._setFlushTimer(FLUSH_INTERVAL_MS),[2]):(r=e-t)>=FLUSH_INTERVAL_MS?(this._flush(),[2]):(this._setFlushTimer(FLUSH_INTERVAL_MS-r),[2])}}))}))},e.prototype._setFlushTimer=function(e){var t=this;this.flushTimer=setTimeout((function(){t._flush().catch((function(e){t.logger.debug("DiagnosticsClient: Failed to flush",e)})).finally((function(){t.flushTimer=null}))}),e)},e.prototype._setSampleRate=function(e){this.logger.debug("DiagnosticsClient: Setting sample rate to",e),this.config.sampleRate=e,this.shouldTrack=isTimestampInSampleTemp(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},e}(),BaseTransport=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){var t,r,n,i,a,o,s,l,c,d,u,p,h,f,m,g,y,v,b,E,_,S;if("object"!=typeof e)return null;var x=e.code||0,T=this.buildStatus(x);switch(T){case Status.Success:return{status:T,statusCode:x,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(r=e.payload_size_bytes)&&void 0!==r?r:0,serverUploadTime:null!==(n=e.server_upload_time)&&void 0!==n?n:0}};case Status.Invalid:return{status:T,statusCode:x,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(a=e.missing_field)&&void 0!==a?a:"",eventsWithInvalidFields:null!==(o=e.events_with_invalid_fields)&&void 0!==o?o:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(l=e.events_with_invalid_id_lengths)&&void 0!==l?l:{},epsThreshold:null!==(c=e.eps_threshold)&&void 0!==c?c:0,exceededDailyQuotaDevices:null!==(d=e.exceeded_daily_quota_devices)&&void 0!==d?d:{},silencedDevices:null!==(u=e.silenced_devices)&&void 0!==u?u:[],silencedEvents:null!==(p=e.silenced_events)&&void 0!==p?p:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(f=e.throttled_events)&&void 0!==f?f:[]}};case Status.PayloadTooLarge:return{status:T,statusCode:x,body:{error:null!==(m=e.error)&&void 0!==m?m:""}};case Status.RateLimit:return{status:T,statusCode:x,body:{error:null!==(g=e.error)&&void 0!==g?g:"",epsThreshold:null!==(y=e.eps_threshold)&&void 0!==y?y:0,throttledDevices:null!==(v=e.throttled_devices)&&void 0!==v?v:{},throttledUsers:null!==(b=e.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(E=e.exceeded_daily_quota_devices)&&void 0!==E?E:{},exceededDailyQuotaUsers:null!==(_=e.exceeded_daily_quota_users)&&void 0!==_?_:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case Status.Timeout:default:return{status:T,statusCode:x}}},e.prototype.buildStatus=function(e){return isSuccessStatusCode(e)?Status.Success:429===e?Status.RateLimit:413===e?Status.PayloadTooLarge:408===e?Status.Timeout:e>=400&&e<500?Status.Invalid:e>=500?Status.Failed:Status.Unknown},e}(),FetchTransport=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.send=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(a){switch(a.label){case 0:if("undefined"==typeof fetch)throw new Error("FetchTransport is not supported");return r={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"},[4,fetch(e,r)];case 1:return[4,(n=a.sent()).text()];case 2:i=a.sent();try{return[2,this.buildResponse(JSON.parse(i))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}}))}))},t}(BaseTransport),RemoteConfigLocalStorage=function(){function e(e,t){this.key="AMP_remote_config_".concat(e.substring(0,10)),this.logger=t}return e.prototype.fetchConfig=function(){var e=null,t={remoteConfig:null,lastFetch:new Date};try{e=localStorage.getItem(this.key)}catch(e){return this.logger.debug("Remote config localstorage failed to access: ",e),Promise.resolve(t)}if(null===e)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(t);try{var r=JSON.parse(e);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(r))),Promise.resolve({remoteConfig:r.remoteConfig,lastFetch:new Date(r.lastFetch)})}catch(e){return this.logger.debug("Remote config localstorage failed to parse: ",e),localStorage.removeItem(this.key),Promise.resolve(t)}},e.prototype.setConfig=function(e){try{return localStorage.setItem(this.key,JSON.stringify(e)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(e){this.logger.debug("Remote config localstorage failed to set: ",e)}return Promise.resolve(!1)},e}(),US_SERVER_URL="https://sr-client-cfg.amplitude.com/config",EU_SERVER_URL="https://sr-client-cfg.eu.amplitude.com/config",DEFAULT_MAX_RETRIES=3,DEFAULT_TIMEOUT=1e3,DEFAULT_MIN_TIME_BETWEEN_FETCHES=3e5,RemoteConfigClient=function(){function e(e,t,r,n){void 0===r&&(r="US"),this.callbackInfos=[],this.lastSuccessfulFetch=null,this.fetchPromise=null,this.apiKey=e,this.serverUrl=n||("US"===r?US_SERVER_URL:EU_SERVER_URL),this.logger=t,this.storage=new RemoteConfigLocalStorage(e,t)}return e.prototype.subscribe=function(e,t,r){var n=UUID(),i={id:n,key:e,deliveryMode:t,callback:r};return this.callbackInfos.push(i),"all"===t?this.subscribeAll(i):this.subscribeWaitForRemote(i,t.timeout),n},e.prototype.unsubscribe=function(e){var t=this.callbackInfos.findIndex((function(t){return t.id===e}));return-1===t?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(e," doesn't exist.")),!1):(this.callbackInfos.splice(t,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(e,".")),!0)},e.prototype.updateConfigs=function(){return __awaiter(this,void 0,void 0,(function(){var e,t=this;return __generator(this,(function(r){switch(r.label){case 0:return this.lastSuccessfulFetch&&Date.now()-this.lastSuccessfulFetch<DEFAULT_MIN_TIME_BETWEEN_FETCHES?(this.logger.debug("Remote config client skipping updateConfigs: Too recent"),[2]):[4,this.getOrCreateFetchPromise()];case 1:return e=r.sent(),this.storage.setConfig(e),this.callbackInfos.forEach((function(r){t.sendCallback(r,e,"remote")})),[2]}}))}))},e.prototype.getOrCreateFetchPromise=function(){var e=this;return this.fetchPromise||(this.fetchPromise=this.fetch().then((function(t){return null!==t.remoteConfig&&(e.lastSuccessfulFetch=Date.now()),t})).finally((function(){e.fetchPromise=null}))),this.fetchPromise},e.prototype.subscribeAll=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i=this;return __generator(this,(function(a){switch(a.label){case 0:return t=this.getOrCreateFetchPromise().then((function(t){i.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(t))),i.sendCallback(e,t,"remote"),i.storage.setConfig(t)})),r=this.storage.fetchConfig().then((function(e){return e})),[4,Promise.race([t,r])];case 1:return void 0!==(n=a.sent())&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(n))),null!==n.remoteConfig?this.sendCallback(e,n,"cache"):this.logger.debug("Remote config client skips sending callback because cache is empty (first time user).")),[4,t];case 2:return a.sent(),[2]}}))}))},e.prototype.subscribeWaitForRemote=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){switch(i.label){case 0:r=new Promise((function(e,r){setTimeout((function(){r("Timeout exceeded")}),t)})),i.label=1;case 1:return i.trys.push([1,3,,5]),[4,Promise.race([this.getOrCreateFetchPromise(),r])];case 2:return n=i.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(e,n,"remote"),this.storage.setConfig(n),[3,5];case 3:return i.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return null!==(n=i.sent()).remoteConfig?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(e,n,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(e,n,"remote")),[3,5];case 5:return[2]}}))}))},e.prototype.sendCallback=function(e,t,r){var n;e.lastCallback=new Date,n=e.key?e.key.split(".").reduce((function(e,t){return null===e?e:t in e?e[t]:null}),t.remoteConfig):t.remoteConfig,e.callback(n,r,t.lastFetch)},e.prototype.fetch=function(e,t){return void 0===e&&(e=DEFAULT_MAX_RETRIES),void 0===t&&(t=DEFAULT_TIMEOUT),__awaiter(this,void 0,void 0,(function(){var r,n,i,a,o,s,l=this;return __generator(this,(function(c){switch(c.label){case 0:r=t/e,n={remoteConfig:null,lastFetch:new Date},i=function(n){var i,o,s,c,d;return __generator(this,(function(u){switch(u.label){case 0:i=new AbortController,o=setTimeout((function(){return i.abort()}),t),u.label=1;case 1:return u.trys.push([1,7,8,9]),[4,fetch(a.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:i.signal})];case 2:return(s=u.sent()).ok?[3,4]:[4,s.text()];case 3:return c=u.sent(),a.logger.debug("Remote config client fetch with retry time ".concat(e," failed with ").concat(s.status,": ").concat(c)),[3,6];case 4:return[4,s.json()];case 5:return[2,{value:{remoteConfig:u.sent(),lastFetch:new Date}}];case 6:return[3,9];case 7:return(d=u.sent())instanceof Error&&"AbortError"===d.name?a.logger.debug("Remote config client fetch with retry time ".concat(e," timed out after ").concat(t,"ms")):a.logger.debug("Remote config client fetch with retry time ".concat(e," is rejected because: "),d),[3,9];case 8:return clearTimeout(o),[7];case 9:return n<e-1?[4,new Promise((function(e){return setTimeout(e,l.getJitterDelay(r))}))]:[3,11];case 10:u.sent(),u.label=11;case 11:return[2]}}))},a=this,o=0,c.label=1;case 1:return o<e?[5,i(o)]:[3,4];case 2:if("object"==typeof(s=c.sent()))return[2,s.value];c.label=3;case 3:return o++,[3,1];case 4:return[2,n]}}))}))},e.prototype.getJitterDelay=function(e){return Math.floor(Math.random()*e)},e.prototype.getUrlParams=function(){var t=encodeURIComponent(this.apiKey),r=new URLSearchParams;return r.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(t,"?").concat(r.toString())},e.CONFIG_GROUP="browser",e}(),ServerZone;!function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"}(ServerZone||(ServerZone={}));var OfflineDisabled=null,DEFAULT_CSS_SELECTOR_ALLOWLIST=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],DEFAULT_DATA_ATTRIBUTE_PREFIX="data-amp-track-",DEFAULT_ACTION_CLICK_ALLOWLIST=["div","span","h1","h2","h3","h4","h5","h6"],CLICKABLE_ELEMENT_SELECTORS=["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]'],DEFAULT_DEAD_CLICK_ALLOWLIST=__spreadArray(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],__read$1(CLICKABLE_ELEMENT_SELECTORS),!1),DEFAULT_RAGE_CLICK_ALLOWLIST=["*"],DEFAULT_RAGE_CLICK_WINDOW_MS=1e3,DEFAULT_RAGE_CLICK_THRESHOLD=4,DEFAULT_RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD=50;function isJsonPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||null==e}function pruneJson(e,t,r){e&&_pruneJson({json:e,allowlist:t.map(tokenizeJsonPath),excludelist:r.map(tokenizeJsonPath),ancestors:[]})}function _pruneJson(e){var t,r,n=e.json,i=e.targetObject,a=e.allowlist,o=e.excludelist,s=e.ancestors,l=e.parentObject,c=e.targetKey;i||(i=n);var d=Object.keys(i);try{for(var u=__values$1(d),p=u.next();!p.done;p=u.next()){var h=p.value,f=__spreadArray(__spreadArray([],__read$1(s),!1),[h],!1);isJsonPrimitive(i[h])?hasPathMatchInList(f,a)&&!hasPathMatchInList(f,o)||delete i[h]:_pruneJson({json:n,targetObject:i[h],allowlist:a,excludelist:o,ancestors:f,parentObject:i,targetKey:h})}}catch(e){t={error:e}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}0===Object.keys(i).length&&l&&c&&delete l[c]}function tokenizeJsonPath(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map((function(e){return e.replace(/~0/g,"~").replace(/~1/g,"/")}))}function isPathMatch(e,t,r,n){if(void 0===r&&(r=0),void 0===n&&(n=0),n===t.length)return r===e.length;if(r===e.length){for(;n<t.length&&"**"===t[n];)n++;return n===t.length}var i=t[n];if("**"===i){if(n+1===t.length)return!0;for(var a=r;a<=e.length;a++)if(isPathMatch(e,t,a,n+1))return!0;return!1}return("*"===i||i===e[r])&&isPathMatch(e,t,r+1,n+1)}function hasPathMatchInList(e,t){return t.some((function(t){return isPathMatch(e,t)}))}var TEXT_READ_TIMEOUT=500,MAXIMUM_ENTRIES=100,RequestWrapperFetch=function(){function e(e){this.request=e}return e.prototype.headers=function(e){var t,r;void 0===e&&(e=[]);var n=this.request.headers,i={};if(Array.isArray(n))n.forEach((function(e){var t=__read$1(e,2),r=t[0],n=t[1];i[r]=n}));else if(n instanceof Headers)n.forEach((function(e,t){i[t]=e}));else if("object"==typeof n&&null!==n)try{for(var a=__values$1(Object.entries(n)),o=a.next();!o.done;o=a.next()){var s=__read$1(o.value,2),l=s[0],c=s[1];i[l]=c}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return pruneHeaders(i,{allow:e})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if("number"==typeof this._bodySize)return this._bodySize;var e=getGlobalScope();if(null==e?void 0:e.TextEncoder){var t=this.request.body;return this._bodySize=getBodySize(t,MAXIMUM_ENTRIES),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return"string"==typeof this.request.body?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return 0===e.length?[2,null]:[2,safeParseAndPruneBody(this.body,e,t)]}))}))},e}(),RequestWrapperXhr=function(){function e(e,t){this.bodyRaw=e,this.requestHeaders=t}return e.prototype.headers=function(e){return void 0===e&&(e=[]),pruneHeaders(this.requestHeaders,{allow:e})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return getBodySize(this.bodyRaw,MAXIMUM_ENTRIES)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return"string"==typeof this.bodyRaw?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return 0===e.length?[2,null]:[2,safeParseAndPruneBody(this.body,e,t)]}))}))},e}();function getBodySize(e,t){var r,n,i,a=getGlobalScope(),o=null==a?void 0:a.TextEncoder;if(o){var s;if("string"==typeof e)s=e,i=(new o).encode(s).length;else if(e instanceof Blob)i=(s=e).size;else if(e instanceof URLSearchParams)s=e,i=(new o).encode(s.toString()).length;else if(ArrayBuffer.isView(e))i=(s=e).byteLength;else if(e instanceof ArrayBuffer)i=(s=e).byteLength;else if(e instanceof FormData){var l=e,c=0,d=0;try{for(var u=__values$1(l.entries()),p=u.next();!p.done;p=u.next()){var h=__read$1(p.value,2),f=h[0],m=h[1];if(c+=f.length,"string"==typeof m)c+=(new o).encode(m).length;else{if(!(m instanceof Blob))return;c+=m.size}if(++d>=t)return}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}i=c}else if(e instanceof ReadableStream)return void(s=e);return i}}var ResponseWrapperFetch=function(){function e(e){this.response=e}return e.prototype.headers=function(e){var t;if(void 0===e&&(e=[]),this.response.headers instanceof Headers){var r=this.response.headers,n={};return null===(t=null==r?void 0:r.forEach)||void 0===t||t.call(r,(function(e,t){n[t]=e})),pruneHeaders(n,{allow:e})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){var e,t;if(void 0!==this._bodySize)return this._bodySize;var r=null===(t=null===(e=this.response.headers)||void 0===e?void 0:e.get)||void 0===t?void 0:t.call(e,"content-length"),n=r?parseInt(r,10):void 0;return this._bodySize=n,n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),r.label=1;case 1:return r.trys.push([1,3,,4]),e=this.clonedResponse.text(),t=new Promise((function(e){return setTimeout((function(){return e(null)}),TEXT_READ_TIMEOUT)})),[4,Promise.race([e,t])];case 2:return[2,r.sent()];case 3:return r.sent(),[2,null];case 4:return[2]}}))}))},e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return 0===e.length?[2,null]:[4,this.text()];case 1:return[2,safeParseAndPruneBody(r.sent(),e,t)]}}))}))},e}(),ResponseWrapperXhr=function(){function e(e,t,r,n){this.statusCode=e,this.headersString=t,this.size=r,this.getJson=n}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(e){var t,r;if(void 0===e&&(e=[]),!this.headersString)return{};var n={},i=this.headersString.split("\r\n");try{for(var a=__values$1(i),o=a.next();!o.done;o=a.next()){var s=__read$1(o.value.split(": "),2),l=s[0],c=s[1];l&&c&&(n[l]=c)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return pruneHeaders(n,{allow:e})},e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),__awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(n){return 0===e.length?[2,null]:(r=this.getJson())?(pruneJson(r,e,t),[2,r]):[2,null]}))}))},e}(),PRUNE_STRATEGY;function safeParseAndPruneBody(e,t,r){if(!e)return null;try{var n=JSON.parse(e);return pruneJson(n,t,r),n}catch(e){return null}}!function(e){e.REDACT="redact",e.REMOVE="remove"}(PRUNE_STRATEGY||(PRUNE_STRATEGY={}));var REDACTED_VALUE="[REDACTED]",pruneHeaders=function(e,t){var r,n,i=t.allow,a=void 0===i?[]:i,o=t.strategy,s=void 0===o?PRUNE_STRATEGY.REMOVE:o,l=__spreadArray([],__read$1(FORBIDDEN_HEADERS),!1),c={},d=function(t){var r=t.toLowerCase();l.find((function(e){return e.toLowerCase()===r}))?s===PRUNE_STRATEGY.REDACT&&(c[t]=REDACTED_VALUE):a.find((function(e){return e.toLowerCase()===r}))?c[t]=e[t]:s===PRUNE_STRATEGY.REDACT&&(c[t]=REDACTED_VALUE)};try{for(var u=__values$1(Object.keys(e)),p=u.next();!p.done;p=u.next()){d(p.value)}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return c},NetworkRequestEvent=function(){function e(e,t,r,n,i,a,o,s,l,c,d){void 0===o&&(o=0),this.type=e,this.method=t,this.timestamp=r,this.startTime=n,this.url=i,this.requestWrapper=a,this.status=o,this.duration=s,this.responseWrapper=l,this.error=c,this.endTime=d}return e.prototype.toSerializable=function(){var e,t,r,n,i={type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:null===(e=this.requestWrapper)||void 0===e?void 0:e.headers(__spreadArray([],__read$1(SAFE_HEADERS),!1)),requestBodySize:null===(t=this.requestWrapper)||void 0===t?void 0:t.bodySize,responseHeaders:null===(r=this.responseWrapper)||void 0===r?void 0:r.headers(__spreadArray([],__read$1(SAFE_HEADERS),!1)),responseBodySize:null===(n=this.responseWrapper)||void 0===n?void 0:n.bodySize};return Object.fromEntries(Object.entries(i).filter((function(e){var t=__read$1(e,2);return t[0],void 0!==t[1]})))},e}();function isRequest(e){return"object"==typeof e&&null!==e&&"url"in e&&"method"in e}var NetworkEventCallback=function(e,t){void 0===t&&(t=UUID()),this.callback=e,this.id=t},NetworkObserver=function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var r=getGlobalScope();e.isSupported()&&(this.globalScope=r)}return e.isSupported=function(){var e=getGlobalScope();return!!e&&!!e.fetch},e.prototype.subscribe=function(e,t){var r,n,i,a,o,s,l,c,d,u;if(this.logger||(this.logger=t),this.eventCallbacks.set(e.id,e),!this.isObserving){var p=null===(i=null===(n=null===(r=this.globalScope)||void 0===r?void 0:r.XMLHttpRequest)||void 0===n?void 0:n.prototype)||void 0===i?void 0:i.open,h=null===(s=null===(o=null===(a=this.globalScope)||void 0===a?void 0:a.XMLHttpRequest)||void 0===o?void 0:o.prototype)||void 0===s?void 0:s.send,f=null===(d=null===(c=null===(l=this.globalScope)||void 0===l?void 0:l.XMLHttpRequest)||void 0===c?void 0:c.prototype)||void 0===d?void 0:d.setRequestHeader;p&&h&&f&&this.observeXhr(p,h,f);var m=null===(u=this.globalScope)||void 0===u?void 0:u.fetch;m&&this.observeFetch(m),this.isObserving=!0}},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id)},e.prototype.triggerEventCallbacks=function(e){var t=this;this.eventCallbacks.forEach((function(r){var n;try{r.callback(e)}catch(e){null===(n=t.logger)||void 0===n||n.debug("an unexpected error occurred while triggering event callbacks",e)}}))},e.prototype.handleNetworkRequestEvent=function(e,t,r,n,i,a,o){var s;if(void 0!==a&&void 0!==o){var l,c,d,u="GET";if(isRequest(t)?(l=t.url,u=t.method):l=null===(s=null==t?void 0:t.toString)||void 0===s?void 0:s.call(t),l)try{var p=new URL(l);l="".concat(p.protocol,"//").concat(p.host).concat(p.pathname).concat(p.search).concat(p.hash)}catch(e){}u=(null==r?void 0:r.method)||u,n&&(c=n.status),i&&(d={name:i.name||"UnknownError",message:i.message||"An unknown error occurred"},c=0);var h=Math.floor(performance.now()-o),f=Math.floor(a+h),m=new NetworkRequestEvent(e,u,a,a,l,r,c,h,n,d,f);this.triggerEventCallbacks(m)}},e.prototype.getTimestamps=function(){var e,t;return{startTime:null===(e=Date.now)||void 0===e?void 0:e.call(Date),durationStart:null===(t=null===performance||void 0===performance?void 0:performance.now)||void 0===t?void 0:t.call(performance)}},e.prototype.observeFetch=function(e){var t=this;this.globalScope&&e&&(this.globalScope.fetch=function(r,n){return __awaiter(t,void 0,void 0,(function(){var t,i,a,o,s,l;return __generator(this,(function(c){switch(c.label){case 0:try{t=this.getTimestamps()}catch(e){null===(s=this.logger)||void 0===s||s.debug("an unexpected error occurred while retrieving timestamps",e)}c.label=1;case 1:return c.trys.push([1,3,,4]),[4,e(r,n)];case 2:return i=c.sent(),[3,4];case 3:return o=c.sent(),a=o,[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",r,n?new RequestWrapperFetch(n):void 0,i?new ResponseWrapperFetch(i):void 0,a,null==t?void 0:t.startTime,null==t?void 0:t.durationStart)}catch(e){null===(l=this.logger)||void 0===l||l.debug("an unexpected error occurred while handling fetch",e)}if(i)return[2,i];throw a}}))}))})},e.createXhrJsonParser=function(e,t){return function(){var r,n;try{if("json"===e.responseType){if(null===(r=t.globalScope)||void 0===r?void 0:r.structuredClone)return t.globalScope.structuredClone(e.response)}else if(["text",""].includes(e.responseType))return JSON.parse(e.responseText)}catch(r){return r instanceof Error&&"InvalidStateError"===r.name&&(null===(n=t.logger)||void 0===n||n.error("unexpected error when retrieving responseText. responseType='".concat(e.responseType,"'"))),null}return null}},e.prototype.observeXhr=function(t,r,n){if(this.globalScope&&t&&r){var i=this.globalScope.XMLHttpRequest.prototype,a=this;i.open=function(){for(var e,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=__read$1(n,2),s=o[0],l=o[1];try{this.$$AmplitudeAnalyticsEvent=__assign$1({method:s,url:null===(e=null==l?void 0:l.toString)||void 0===e?void 0:e.call(l),headers:{}},a.getTimestamps())}catch(e){null===(r=a.logger)||void 0===r||r.error("an unexpected error occurred while calling xhr open",e)}return t.apply(this,n)},i.send=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this,o=e.createXhrJsonParser(this,a),s=t[0],l=i.$$AmplitudeAnalyticsEvent;return i.addEventListener("loadend",(function(){var e;try{var t=i.getAllResponseHeaders(),r=i.getResponseHeader("content-length"),n=new ResponseWrapperXhr(i.status,t,r?parseInt(r,10):void 0,o),c=i.$$AmplitudeAnalyticsEvent.headers,d=new RequestWrapperXhr(s,c);l.status=i.status,a.handleNetworkRequestEvent("xhr",{url:l.url,method:l.method},d,n,void 0,l.startTime,l.durationStart)}catch(t){null===(e=a.logger)||void 0===e||e.error("an unexpected error occurred while handling xhr send",t)}})),r.apply(i,t)},i.setRequestHeader=function(e,t){var r;try{this.$$AmplitudeAnalyticsEvent.headers[e]=t}catch(e){null===(r=a.logger)||void 0===r||r.error("an unexpected error occurred while calling xhr setRequestHeader",e)}n.apply(this,[e,t])}}},e}(),networkObserver=new NetworkObserver,CampaignParser=function(){function e(){}return e.prototype.parse=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,__assign$1(__assign$1(__assign$1(__assign$1({},BASE_CAMPAIGN),this.getUtmParam()),this.getReferrer()),this.getClickIds())]}))}))},e.prototype.getUtmParam=function(){var e=getQueryParams();return{utm_campaign:e[UTM_CAMPAIGN],utm_content:e[UTM_CONTENT],utm_id:e[UTM_ID],utm_medium:e[UTM_MEDIUM],utm_source:e[UTM_SOURCE],utm_term:e[UTM_TERM]}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!==(t=null===(e=r.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return r},e.prototype.getClickIds=function(){var e,t=getQueryParams();return(e={})[DCLID]=t[DCLID],e[FBCLID]=t[FBCLID],e[GBRAID]=t[GBRAID],e[GCLID]=t[GCLID],e[KO_CLICK_ID]=t[KO_CLICK_ID],e[LI_FAT_ID]=t[LI_FAT_ID],e[MSCLKID]=t[MSCLKID],e[RDT_CID]=t[RDT_CID],e[TTCLID]=t[TTCLID],e[TWCLID]=t[TWCLID],e[WBRAID]=t[WBRAID],e},e}(),TEXT_MASK_ATTRIBUTE="data-amp-mask",MASKED_TEXT_VALUE="*****",CC_REGEX=/\b(?:\d[ -]*?){13,16}\b/,SSN_REGEX=/(\d{3}-?\d{2}-?\d{4})/g,EMAIL_REGEX=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,replaceSensitiveString=function(e,t){var r,n;if(void 0===t&&(t=[]),"string"!=typeof e)return"";var i=e;i=(i=(i=i.replace(CC_REGEX,MASKED_TEXT_VALUE)).replace(SSN_REGEX,MASKED_TEXT_VALUE)).replace(EMAIL_REGEX,MASKED_TEXT_VALUE);try{for(var a=__values$1(t),o=a.next();!o.done;o=a.next()){var s=o.value;try{i=i.replace(s,MASKED_TEXT_VALUE)}catch(e){}}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},getPageTitle=function(e){if("undefined"==typeof document||!document.title)return"";var t=document.querySelector("title");return t&&t.hasAttribute(TEXT_MASK_ATTRIBUTE)?MASKED_TEXT_VALUE:e?e(document.title):document.title};function _createForOfIteratorHelperLoose(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}var hasSymbols=function(){return"function"==typeof Symbol},hasSymbol=function(e){return hasSymbols()&&Boolean(Symbol[e])},getSymbol=function(e){return hasSymbol(e)?Symbol[e]:"@@"+e};hasSymbols()&&!hasSymbol("observable")&&(Symbol.observable=Symbol("observable"));var SymbolIterator=getSymbol("iterator"),SymbolObservable=getSymbol("observable"),SymbolSpecies=getSymbol("species");function getMethod(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function getSpecies(e){var t=e.constructor;return void 0!==t&&null===(t=t[SymbolSpecies])&&(t=void 0),void 0!==t?t:Observable}function isObservable(e){return e instanceof Observable}function hostReportError(e){hostReportError.log?hostReportError.log(e):setTimeout((function(){throw e}))}function enqueue(e){Promise.resolve().then((function(){try{e()}catch(e){hostReportError(e)}}))}function cleanupSubscription(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=getMethod(t,"unsubscribe");r&&r.call(t)}}catch(e){hostReportError(e)}}function closeSubscription(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function flushSubscription(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(notifySubscription(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}function notifySubscription(e,t,r){e._state="running";var n=e._observer;try{var i=getMethod(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(closeSubscription(e),!i)throw r;i.call(n,r);break;case"complete":closeSubscription(e),i&&i.call(n)}}catch(e){hostReportError(e)}"closed"===e._state?cleanupSubscription(e):"running"===e._state&&(e._state="ready")}function onNotify(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void enqueue((function(){return flushSubscription(e)}))):void notifySubscription(e,t,r);e._queue.push({type:t,value:r})}}var Subscription=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new SubscriptionObserver(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(closeSubscription(this),cleanupSubscription(this))},_createClass(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),SubscriptionObserver=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){onNotify(this._subscription,"next",e)},t.error=function(e){onNotify(this._subscription,"error",e)},t.complete=function(){onNotify(this._subscription,"complete")},_createClass(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Observable=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new Subscription(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,a)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function a(){i.unsubscribe(),r()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(getSpecies(this))((function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(getSpecies(this))((function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=getSpecies(this),n=arguments.length>1,i=!1,a=arguments[1];return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=getSpecies(this);return new i((function(t){var n,a=0;return function e(o){n=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===r.length?(n=void 0,t.complete()):e(i.from(r[a++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=getSpecies(this);return new r((function(n){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var a=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){n.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),a.unsubscribe()}}))},t[SymbolObservable]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=getMethod(t,SymbolObservable);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return isObservable(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(hasSymbol("iterator")&&(n=getMethod(t,SymbolIterator)))return new r((function(e){enqueue((function(){if(!e.closed){for(var r,i=_createForOfIteratorHelperLoose(n.call(t));!(r=i()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){enqueue((function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)((function(e){enqueue((function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}}))}))},_createClass(e,null,[{key:SymbolSpecies,get:function(){return this}}]),e}();function asyncMap(e,t){return new Observable((function(r){e.subscribe({next:function(e){t(e).then((function(e){return r.next(e)})).catch((function(e){return r.error(e)}))},error:function(e){r.error(e)},complete:function(){r.complete()}})}))}function merge(e,t){return new Observable((function(r){var n=!1,i=new Set,a=function(){var e,t;n=!0;try{for(var r=__values$1(i),a=r.next();!a.done;a=r.next()){var o=a.value;try{o.unsubscribe()}catch(e){}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}i.clear()},o=function(e){var t=e.subscribe({next:function(e){n||r.next(e)},error:function(e){n||(n=!0,r.error(e),a())},complete:function(){i.delete(t),n||0!==i.size||(r.complete(),a(),n=!0)}});i.add(t)};return o(e),o(t),a}))}function multicast(e){var t=new Set,r=null;function n(){null==r||r.unsubscribe(),r=null,t.clear()}return new Observable((function(i){return t.add(i),null===r&&(r=e.subscribe({next:function(e){var r,n,i;try{for(var a=__values$1(t),o=a.next();!o.done;o=a.next()){var s=o.value;null===(i=s.next)||void 0===i||i.call(s,e)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}},error:function(e){var r,i,a;try{for(var o=__values$1(t),s=o.next();!s.done;s=o.next()){var l=s.value;null===(a=l.error)||void 0===a||a.call(l,e)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}n()},complete:function(){var e,r,i;try{for(var a=__values$1(t),o=a.next();!o.done;o=a.next()){var s=o.value;null===(i=s.complete)||void 0===i||i.call(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}n()}})),function(){t.delete(i),0===t.size&&r&&(r.unsubscribe(),r=null)}}))}hasSymbols()&&Object.defineProperty(Observable,Symbol("extensions"),{value:{symbol:SymbolObservable,hostReportError:hostReportError},configurable:!0});var isTrackingEnabled=function(e,t){return"boolean"==typeof e?e:!1!==(null==e?void 0:e[t])},isAttributionTrackingEnabled=function(e){return isTrackingEnabled(e,"attribution")},isFileDownloadTrackingEnabled=function(e){return isTrackingEnabled(e,"fileDownloads")},isFormInteractionTrackingEnabled=function(e){return isTrackingEnabled(e,"formInteractions")},isPageViewTrackingEnabled=function(e){return isTrackingEnabled(e,"pageViews")},isSessionTrackingEnabled=function(e){return isTrackingEnabled(e,"sessions")},isPageUrlEnrichmentEnabled=function(e){return isTrackingEnabled(e,"pageUrlEnrichment")},isNetworkTrackingEnabled=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.networkTracking||"object"==typeof e.networkTracking)},isElementInteractionsEnabled=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},isWebVitalsEnabled=function(e){return"boolean"==typeof e?e:"object"==typeof e&&!0===e.webVitals},isFrustrationInteractionsEnabled=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.frustrationInteractions||"object"==typeof e.frustrationInteractions)},getElementInteractionsConfig=function(e){if(isElementInteractionsEnabled(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},getFrustrationInteractionsConfig=function(e){if(isFrustrationInteractionsEnabled(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.frustrationInteractions)return e.autocapture.frustrationInteractions},getNetworkTrackingConfig=function(e){var t;if(isNetworkTrackingEnabled(e.autocapture)){var r=void 0;return"object"==typeof e.autocapture&&"object"==typeof e.autocapture.networkTracking?r=e.autocapture.networkTracking:e.networkTrackingOptions&&(r=e.networkTrackingOptions),__assign$1(__assign$1({},r),{captureRules:null===(t=null==r?void 0:r.captureRules)||void 0===t?void 0:t.map((function(t){var r,n,i;if((null===(r=t.urls)||void 0===r?void 0:r.length)&&(null===(n=t.hosts)||void 0===n?void 0:n.length)){var a=JSON.stringify(t.hosts),o=JSON.stringify(t.urls);return null===(i=e.loggerProvider)||void 0===i||i.warn("Found network capture rule with both urls='".concat(o,"' and hosts='").concat(a,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),__assign$1(__assign$1({},t),{hosts:void 0})}return t}))})}},getPageViewTrackingConfig=function(e){var t,r=function(){return!1},n=void 0,i=e.pageCounter;return isPageViewTrackingEnabled(e.defaultTracking)&&(r=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:r,trackHistoryChanges:n,eventType:t,pageCounter:i}},getAttributionTrackingConfig=function(e){return isAttributionTrackingEnabled(e.defaultTracking)&&e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.attribution&&"object"==typeof e.defaultTracking.attribution?__assign$1({},e.defaultTracking.attribution):{}},runQueuedFunctions=function(e,t){convertProxyObjectToRealObject(e,t)},convertProxyObjectToRealObject=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.name,a=n.args,o=n.resolve,s=e&&e[i];if("function"==typeof s){var l=s.apply(e,a);"function"==typeof o&&o(null==l?void 0:l.promise)}}return e},isInstanceProxy=function(e){return e&&void 0!==e._q},VERSION$1="2.32.2",LIBPREFIX="amplitude-ts",BROWSER_PLATFORM="Web",IP_ADDRESS="$remote",Context=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(LIBPREFIX,"/").concat(VERSION$1),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,r;return __awaiter(this,void 0,void 0,(function(){var n,i,a;return __generator(this,(function(o){return n=(new Date).getTime(),i=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1,a=null!==(r=e.event_id)&&void 0!==r?r:i+1,this.config.lastEventId=a,e.time||(this.config.lastEventTime=n),[2,__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:n},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:BROWSER_PLATFORM}),this.config.trackingOptions.language&&{language:getLanguage()}),this.config.trackingOptions.ipAddress&&{ip:IP_ADDRESS}),{insert_id:UUID(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:a,library:this.library,user_agent:this.userAgent})]}))}))},e}(),MAX_ARRAY_LENGTH=1e3,LocalStorage=function(e){function t(t){var r,n,i,a=this;try{i=null===(r=getGlobalScope())||void 0===r?void 0:r.localStorage}catch(e){null===(n=null==t?void 0:t.loggerProvider)||void 0===n||n.debug("Failed to access localStorage. error=".concat(JSON.stringify(e))),i=void 0}return(a=e.call(this,i)||this).loggerProvider=null==t?void 0:t.loggerProvider,a}return __extends(t,e),t.prototype.set=function(t,r){var n;return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(a){switch(a.label){case 0:return Array.isArray(r)&&r.length>MAX_ARRAY_LENGTH?(i=r.length-MAX_ARRAY_LENGTH,[4,e.prototype.set.call(this,t,r.slice(0,MAX_ARRAY_LENGTH))]):[3,2];case 1:return a.sent(),null===(n=this.loggerProvider)||void 0===n||n.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(MAX_ARRAY_LENGTH,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,r)];case 3:a.sent(),a.label=4;case 4:return[2]}}))}))},t}(BrowserStorage),SessionStorage=function(e){function t(){var t;return e.call(this,null===(t=getGlobalScope())||void 0===t?void 0:t.sessionStorage)||this}return __extends(t,e),t}(BrowserStorage),XHRTransport=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return __extends(t,e),t.prototype.send=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r=this;return __generator(this,(function(n){return[2,new Promise((function(n,i){"undefined"==typeof XMLHttpRequest&&i(new Error("XHRTransport is not supported."));var a=new XMLHttpRequest;a.open("POST",e,!0),a.onreadystatechange=function(){if(a.readyState===r.state.done){var e=a.responseText;try{n(r.buildResponse(JSON.parse(e)))}catch(e){n(r.buildResponse({code:a.status}))}}},a.setRequestHeader("Content-Type","application/json"),a.setRequestHeader("Accept","*/*"),a.send(JSON.stringify(t))}))]}))}))},t}(BaseTransport),SendBeaconTransport=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.send=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r=this;return __generator(this,(function(n){return[2,new Promise((function(n,i){var a=getGlobalScope();if(!(null==a?void 0:a.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var o=JSON.stringify(t);return n(a.navigator.sendBeacon(e,JSON.stringify(t))?r.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:o.length,server_upload_time:Date.now()}):r.buildResponse({code:500}))}catch(e){i(e)}}))]}))}))},t}(BaseTransport),parseLegacyCookies=function(e,t,r){return void 0===r&&(r=!0),__awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,s,l,c,d,u;return __generator(this,(function(p){switch(p.label){case 0:return n=getOldCookieName(e),[4,t.getRaw(n)];case 1:return(i=p.sent())?r?[4,t.remove(n)]:[3,3]:[2,{optOut:!1}];case 2:p.sent(),p.label=3;case 3:return a=__read$1(i.split("."),6),o=a[0],s=a[1],l=a[2],c=a[3],d=a[4],u=a[5],[2,{deviceId:o,userId:decode(s),sessionId:parseTime(c),lastEventId:parseTime(u),lastEventTime:parseTime(d),optOut:Boolean(l)}]}}))}))},parseTime=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},decode=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},DEFAULT_EVENT_PREFIX="[Amplitude]",DEFAULT_FORM_START_EVENT="".concat(DEFAULT_EVENT_PREFIX," Form Started"),DEFAULT_FORM_SUBMIT_EVENT="".concat(DEFAULT_EVENT_PREFIX," Form Submitted"),DEFAULT_FILE_DOWNLOAD_EVENT="".concat(DEFAULT_EVENT_PREFIX," File Downloaded"),DEFAULT_SESSION_START_EVENT="session_start",DEFAULT_SESSION_END_EVENT="session_end",FILE_EXTENSION="".concat(DEFAULT_EVENT_PREFIX," File Extension"),FILE_NAME="".concat(DEFAULT_EVENT_PREFIX," File Name"),LINK_ID="".concat(DEFAULT_EVENT_PREFIX," Link ID"),LINK_TEXT="".concat(DEFAULT_EVENT_PREFIX," Link Text"),LINK_URL="".concat(DEFAULT_EVENT_PREFIX," Link URL"),FORM_ID="".concat(DEFAULT_EVENT_PREFIX," Form ID"),FORM_NAME="".concat(DEFAULT_EVENT_PREFIX," Form Name"),FORM_DESTINATION="".concat(DEFAULT_EVENT_PREFIX," Form Destination"),DEFAULT_IDENTITY_STORAGE="cookie",DEFAULT_SERVER_ZONE="US",BrowserConfig=function(e){function t(t,r,n,i,a,o,s,l,c,d,u,p,h,f,m,g,y,v,b,E,_,S,x,T,k,A,P,I,C,w,D,R,L,O,M,N,F,$,B,V){void 0===n&&(n=new MemoryStorage),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===c&&(c=5),void 0===d&&(d=30),void 0===u&&(u=DEFAULT_IDENTITY_STORAGE),void 0===g&&(g=new Logger),void 0===y&&(y=LogLevel.Warn),void 0===b&&(b=!1),void 0===E&&(E=!1),void 0===x&&(x=""),void 0===T&&(T=DEFAULT_SERVER_ZONE),void 0===A&&(A=18e5),void 0===P&&(P=new LocalStorage({loggerProvider:g})),void 0===I&&(I={ipAddress:!0,language:!0,platform:!0}),void 0===C&&(C="fetch"),void 0===w&&(w=!1),void 0===D&&(D=!0),void 0===F&&(F=!0),void 0===$&&($=0);var U,G=e.call(this,{apiKey:t,storageProvider:P,transportProvider:createTransport(C)})||this;return G.apiKey=t,G.appVersion=r,G.cookieOptions=i,G.defaultTracking=a,G.autocapture=o,G.flushIntervalMillis=l,G.flushMaxRetries=c,G.flushQueueSize=d,G.identityStorage=u,G.ingestionMetadata=p,G.instanceName=h,G.loggerProvider=g,G.logLevel=y,G.minIdLength=v,G.offline=b,G.partnerId=_,G.plan=S,G.serverUrl=x,G.serverZone=T,G.sessionTimeout=A,G.storageProvider=P,G.trackingOptions=I,G.transport=C,G.useBatch=w,G.fetchRemoteConfig=D,G.networkTrackingOptions=M,G.identify=N,G.enableDiagnostics=F,G.diagnosticsSampleRate=$,G.diagnosticsClient=B,G.remoteConfig=V,G.version=VERSION$1,G._optOut=!1,G._cookieStorage=n,G.deviceId=s,G.lastEventId=f,G.lastEventTime=m,G.optOut=E,G.sessionId=k,G.pageCounter=L,G.userId=R,G.debugLogsEnabled=O,G.loggerProvider.enable(O?LogLevel.Debug:G.logLevel),G.networkTrackingOptions=M,G.identify=N,G.enableDiagnostics=F,G.diagnosticsSampleRate=$,G.diagnosticsClient=B,U=!0===(null==V?void 0:V.fetchRemoteConfig)||!1!==(null==V?void 0:V.fetchRemoteConfig)&&!1!==D,G.remoteConfig=G.remoteConfig||{},G.remoteConfig.fetchRemoteConfig=U,G.fetchRemoteConfig=U,G}return __extends(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(getCookieName(this.apiKey),e)},t}(Config),useBrowserConfig=function(e,t,r){return void 0===t&&(t={}),__awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,s,l,c,d,u,p,h,f,m,g,y,v,b,E,_,S,x,T,k,A,P,I,C,w,D,R,L,O,M,N,F,$,B,V,U,G,q,z,H,j,W;return __generator(this,(function(K){switch(K.label){case 0:return n=t.identityStorage||DEFAULT_IDENTITY_STORAGE,x={},n===DEFAULT_IDENTITY_STORAGE?[3,1]:(a="",[3,5]);case 1:return null===(k=null===(T=t.cookieOptions)||void 0===T?void 0:T.domain)||void 0===k?[3,2]:(o=k,[3,4]);case 2:return[4,getTopLevelDomain()];case 3:o=K.sent(),K.label=4;case 4:a=o,K.label=5;case 5:return i=__assign$1.apply(void 0,[(x.domain=a,x.expiration=365,x.sameSite="Lax",x.secure=!1,x.upgrade=!0,x),t.cookieOptions]),s=createCookieStorage(t.identityStorage,i),[4,parseLegacyCookies(e,s,null===(P=null===(A=t.cookieOptions)||void 0===A?void 0:A.upgrade)||void 0===P||P)];case 6:return l=K.sent(),[4,s.get(getCookieName(e))];case 7:return c=K.sent(),d=getQueryParams(),u=d.ampTimestamp?Number(d.ampTimestamp):void 0,p=!u||Date.now()<u,h=null!==(R=null!==(D=null!==(w=null!==(I=t.deviceId)&&void 0!==I?I:p?null!==(C=d.ampDeviceId)&&void 0!==C?C:d.deviceId:void 0)&&void 0!==w?w:null==c?void 0:c.deviceId)&&void 0!==D?D:l.deviceId)&&void 0!==R?R:UUID(),f=null!==(L=null==c?void 0:c.lastEventId)&&void 0!==L?L:l.lastEventId,m=null!==(O=null==c?void 0:c.lastEventTime)&&void 0!==O?O:l.lastEventTime,g=null!==(N=null!==(M=t.optOut)&&void 0!==M?M:null==c?void 0:c.optOut)&&void 0!==N?N:l.optOut,y=null!==(F=null==c?void 0:c.sessionId)&&void 0!==F?F:l.sessionId,v=null!==(B=null!==($=t.userId)&&void 0!==$?$:null==c?void 0:c.userId)&&void 0!==B?B:l.userId,r.previousSessionDeviceId=null!==(V=null==c?void 0:c.deviceId)&&void 0!==V?V:l.deviceId,r.previousSessionUserId=null!==(U=null==c?void 0:c.userId)&&void 0!==U?U:l.userId,b={ipAddress:null===(q=null===(G=t.trackingOptions)||void 0===G?void 0:G.ipAddress)||void 0===q||q,language:null===(H=null===(z=t.trackingOptions)||void 0===z?void 0:z.language)||void 0===H||H,platform:null===(W=null===(j=t.trackingOptions)||void 0===j?void 0:j.platform)||void 0===W||W},E=null==c?void 0:c.pageCounter,_=null==c?void 0:c.debugLogsEnabled,void 0!==t.autocapture&&(t.defaultTracking=t.autocapture),[4,(S=new BrowserConfig(e,t.appVersion,s,i,t.defaultTracking,t.autocapture,h,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,n,t.ingestionMetadata,t.instanceName,f,m,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,g,t.partnerId,t.plan,t.serverUrl,t.serverZone,y,t.sessionTimeout,t.storageProvider,b,t.transport,t.useBatch,t.fetchRemoteConfig,v,E,_,t.networkTrackingOptions,t.identify,t.enableDiagnostics,r._diagnosticsSampleRate,void 0,t.remoteConfig)).storageProvider.isEnabled()];case 8:return K.sent()||(S.loggerProvider.warn("Storage provider ".concat(S.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),S.storageProvider=new MemoryStorage),[2,S]}}))}))},createCookieStorage=function(e,t){switch(void 0===e&&(e=DEFAULT_IDENTITY_STORAGE),void 0===t&&(t={}),e){case"localStorage":return new LocalStorage;case"sessionStorage":return new SessionStorage;case"none":return new MemoryStorage;default:return new CookieStorage(__assign$1(__assign$1({},t),{expirationDays:t.expiration}))}},createTransport=function(e){return"xhr"===e?new XHRTransport:"beacon"===e?new SendBeaconTransport:new FetchTransport},getTopLevelDomain=function(e){return __awaiter(void 0,void 0,void 0,(function(){var e,t,r,n,i,a,o;return __generator(this,(function(s){switch(s.label){case 0:return[4,(new CookieStorage).isEnabled()];case 1:if(!s.sent()||"undefined"==typeof location||!location.hostname)return[2,""];for(e=location.hostname,t=e.split("."),r=[],n="AMP_TLDTEST",i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));i=0,s.label=2;case 2:return i<r.length?(a=r[i],[4,(o=new CookieStorage({domain:"."+a})).set(n,1)]):[3,7];case 3:return s.sent(),[4,o.get(n)];case 4:return s.sent()?[4,o.remove(n)]:[3,6];case 5:return s.sent(),[2,"."+a];case 6:return i++,[3,2];case 7:return[2,""]}}))}))},omitUndefined=function(e){var t={};for(var r in e){var n=e[r];n&&(t[r]=n)}return t},defaultPageViewEvent="[Amplitude] Page Viewed",pageViewTrackingPlugin=function(e){var t;void 0===e&&(e={});var r,n=getGlobalScope(),i=void 0,a=!1,o=e.trackOn,s=e.trackHistoryChanges,l=e.eventType,c=void 0===l?defaultPageViewEvent:l,d=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==i||i.error("Malformed URI sequence: ",e)}return t},u=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t,r;return __generator(this,(function(n){switch(n.label){case 0:return e=d("undefined"!=typeof location&&location.href||""),r={event_type:c},t=[{}],[4,getCampaignParams()];case 1:return[2,(r.event_properties=__assign$1.apply(void 0,[__assign$1.apply(void 0,t.concat([n.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&d(location.pathname)||"","[Amplitude] Page Title":getPageTitle(replaceSensitiveString),"[Amplitude] Page URL":e.split("?")[0]}]),r)]}}))}))},p=function(){return void 0===o||"function"==typeof o&&o()},h="undefined"!=typeof location?location.href:null,f=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,r,n,a;return __generator(this,(function(o){switch(o.label){case 0:return e=location.href,r=shouldTrackHistoryPageView(s,e,h||"")&&p(),h=e,r?(null==i||i.log("Tracking page view event"),null!=t?[3,1]:[3,3]):[3,4];case 1:return a=(n=t).track,[4,u()];case 2:a.apply(n,[o.sent()]),o.label=3;case 3:o.label=4;case 4:return[2]}}))}))},m=function(){f()},g={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,o){return __awaiter(void 0,void 0,void 0,(function(){var s,l;return __generator(this,(function(c){switch(c.label){case 0:return t=o,r=e,(i=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),a=!0,n&&(n.addEventListener("popstate",m),n.history.pushState=new Proxy(n.history.pushState,{apply:function(e,t,r){var n=__read$1(r,3),i=n[0],o=n[1],s=n[2];e.apply(t,[i,o,s]),a&&f()}})),p()?(i.log("Tracking page view event"),l=(s=t).track,[4,u()]):[3,2];case 1:l.apply(s,[c.sent()]),c.label=2;case 2:return[2]}}))}))},execute:function(e){return __awaiter(void 0,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return"attribution"===o&&isCampaignEvent(e)?(null==i||i.log("Enriching campaign event to page view event with campaign parameters"),[4,u()]):[3,2];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=__assign$1(__assign$1({},e.event_properties),t.event_properties),n.label=2;case 2:return r&&e.event_type===c&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=__assign$1(__assign$1({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}}))}))},teardown:function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return n&&(n.removeEventListener("popstate",m),a=!1),[2]}))}))}};return g},getCampaignParams=function(){return __awaiter(void 0,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return e=omitUndefined,[4,(new CampaignParser).parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}}))}))},isCampaignEvent=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,r=t[IdentifyOperation$1.SET]||{},n=t[IdentifyOperation$1.UNSET]||{},i=__spreadArray(__spreadArray([],__read$1(Object.keys(r)),!1),__read$1(Object.keys(n)),!1);return Object.keys(BASE_CAMPAIGN).every((function(e){return i.includes(e)}))}return!1},shouldTrackHistoryPageView=function(e,t,r){if("pathOnly"===e){if(""==r)return!0;var n=new URL(t),i=new URL(r);return n.origin+n.pathname!==i.origin+i.pathname}return t!==r},formInteractionTracking=function(){var e,t=[],r=function(e,r,n){e.addEventListener(r,n),t.push({element:e,type:r,handler:n})};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,n){return __awaiter(void 0,void 0,void 0,(function(){var i,a;return __generator(this,(function(o){return i=function(){if(n){if("undefined"!=typeof document){var i=function(e){var t=!1;r(e,"change",(function(){var r,i=extractFormAction(e);t||n.track(DEFAULT_FORM_START_EVENT,((r={})[FORM_ID]=stringOrUndefined(e.id),r[FORM_NAME]=stringOrUndefined(e.name),r[FORM_DESTINATION]=i,r)),t=!0})),r(e,"submit",(function(){var r,i,a=extractFormAction(e);t||n.track(DEFAULT_FORM_START_EVENT,((r={})[FORM_ID]=stringOrUndefined(e.id),r[FORM_NAME]=stringOrUndefined(e.name),r[FORM_DESTINATION]=a,r)),n.track(DEFAULT_FORM_SUBMIT_EVENT,((i={})[FORM_ID]=stringOrUndefined(e.id),i[FORM_NAME]=stringOrUndefined(e.name),i[FORM_DESTINATION]=a,i)),t=!1}))};Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.")},"complete"===document.readyState?i():(a=getGlobalScope())?a.addEventListener("load",i):t.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]}))}))},execute:function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,e]}))}))},teardown:function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(r){return null==e||e.disconnect(),t.forEach((function(e){var t=e.element,r=e.type,n=e.handler;null==t||t.removeEventListener(r,n)})),t=[],[2]}))}))}}},stringOrUndefined=function(e){if("string"==typeof e)return e},extractFormAction=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},fileDownloadTracking=function(){var e,t=[];return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(r,n){return __awaiter(void 0,void 0,void 0,(function(){var i,a;return __generator(this,(function(o){return i=function(){if(n){if("undefined"!=typeof document){var i=function(e){var r;try{r=new URL(e.href,window.location.href)}catch(e){return}var i=a.exec(r.href),o=null==i?void 0:i[1];o&&function(e,r,n){e.addEventListener(r,n),t.push({element:e,type:r,handler:n})}(e,"click",(function(){var t;o&&n.track(DEFAULT_FILE_DOWNLOAD_EVENT,((t={})[FILE_EXTENSION]=o,t[FILE_NAME]=r.pathname,t[LINK_ID]=e.id,t[LINK_TEXT]=e.text,t[LINK_URL]=e.href,t))}))},a=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else r.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.")},"complete"===document.readyState?i():(a=getGlobalScope())?a.addEventListener("load",i):r.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]}))}))},execute:function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,e]}))}))},teardown:function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(r){return null==e||e.disconnect(),t.forEach((function(e){var t=e.element,r=e.type,n=e.handler;null==t||t.removeEventListener(r,n)})),t=[],[2]}))}))}}},notified=!1,detNotify=function(e){if(!notified&&void 0===e.defaultTracking){e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),notified=!0}},networkConnectivityCheckerPlugin=function(){var e=getGlobalScope(),t=[],r=function(r,n){(null==e?void 0:e.addEventListener)&&(null==e||e.addEventListener(r,n),t.push({type:r,handler:n}))};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1,[2]):(e.offline=!navigator.onLine,r("online",(function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout((function(){t.flush()}),e.flushIntervalMillis)})),r("offline",(function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2])}))}))},teardown:function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(r){return t.forEach((function(t){var r=t.type,n=t.handler;null==e||e.removeEventListener(r,n)})),t=[],[2]}))}))}}};function translateRemoteConfigToLocal(e){var t,r,n,i,a,o,s,l,c,d,u;if("object"==typeof e&&null!==e&&!Array.isArray(e)){var p=Object.keys(e);try{for(var h=__values$1(p),f=h.next();!f.done;f=h.next()){var m=f.value;try{var g=e[m];"boolean"==typeof(null==g?void 0:g.enabled)&&(g.enabled?(delete g.enabled,0===Object.keys(g).length&&(e[m]=!0)):e[m]=!1),translateRemoteConfigToLocal(g)}catch(e){}}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(t)throw t.error}}try{if(null===(c=null===(l=null===(s=e.autocapture)||void 0===s?void 0:s.networkTracking)||void 0===l?void 0:l.captureRules)||void 0===c?void 0:c.length)try{for(var y=__values$1(e.autocapture.networkTracking.captureRules),v=y.next();!v.done;v=y.next()){var b=v.value;try{for(var E=(a=void 0,__values$1(["responseHeaders","requestHeaders"])),_=E.next();!_.done;_=E.next()){var S=_.value,x=null!==(d=b[S])&&void 0!==d?d:{},T=x.captureSafeHeaders,k=x.allowlist;(T||k)&&(void 0===k||Array.isArray(k)?b[S]=__spreadArray(__spreadArray([],__read$1(T?SAFE_HEADERS:[]),!1),__read$1(null!=k?k:[]),!1):delete b[S])}}catch(e){a={error:e}}finally{try{_&&!_.done&&(o=E.return)&&o.call(E)}finally{if(a)throw a.error}}}}catch(e){n={error:e}}finally{try{v&&!v.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}}catch(e){}var A=null===(u=e.autocapture)||void 0===u?void 0:u.frustrationInteractions;A&&(A.rageClick&&(A.rageClicks=A.rageClick,delete A.rageClick),A.deadClick&&(A.deadClicks=A.deadClick,delete A.deadClick))}}function mergeUrls(e,t,r){var n,i,a=[];try{for(var o=__values$1(null!=t?t:[]),s=o.next();!s.done;s=o.next()){var l=s.value;try{a.push(new RegExp(l))}catch(e){r.loggerProvider.warn("Invalid regex pattern: ".concat(l),e)}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e.concat(a)}function updateBrowserConfigWithRemoteConfig(e,t){var r,n,i,a,o,s,l;if(e){translateRemoteConfigToLocal(e);try{t.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e));var c=e;if(c&&"autocapture"in c){if("boolean"==typeof c.autocapture&&(t.autocapture=c.autocapture),"object"==typeof c.autocapture&&null!==c.autocapture){var d=__assign$1({},c.autocapture);if(void 0===t.autocapture&&(t.autocapture=c.autocapture),"object"==typeof c.autocapture.elementInteractions&&null!==c.autocapture.elementInteractions&&(null===(i=c.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===i?void 0:i.length)){d.elementInteractions=__assign$1({},c.autocapture.elementInteractions);var u=d.elementInteractions,p=null!==(a=u.pageUrlAllowlist)&&void 0!==a?a:[],h=c.autocapture.elementInteractions.pageUrlAllowlistRegex;u.pageUrlAllowlist=mergeUrls(p,h,t),delete u.pageUrlAllowlistRegex}if("object"==typeof c.autocapture.networkTracking&&null!==c.autocapture.networkTracking&&(null===(o=c.autocapture.networkTracking.captureRules)||void 0===o?void 0:o.length)){d.networkTracking=__assign$1({},c.autocapture.networkTracking);var f=null!==(s=d.networkTracking.captureRules)&&void 0!==s?s:[];try{for(var m=__values$1(f),g=m.next();!g.done;g=m.next()){var y=g.value;y.urls=mergeUrls(null!==(l=y.urls)&&void 0!==l?l:[],y.urlsRegex,t),delete y.urlsRegex}}catch(e){r={error:e}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}}"boolean"==typeof t.autocapture&&(t.autocapture=__assign$1({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},d)),"object"==typeof t.autocapture&&(t.autocapture=__assign$1(__assign$1({},t.autocapture),d))}t.defaultTracking=t.autocapture}t.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(t))}catch(e){t.loggerProvider.error("Failed to apply remote configuration because of error: ",e)}}}var VERSION="1.18.2",PLUGIN_NAME$2="@amplitude/plugin-autocapture-browser",FRUSTRATION_PLUGIN_NAME="@amplitude/plugin-frustration-browser",AMPLITUDE_ELEMENT_CLICKED_EVENT="[Amplitude] Element Clicked",AMPLITUDE_ELEMENT_DEAD_CLICKED_EVENT="[Amplitude] Dead Click",AMPLITUDE_ELEMENT_RAGE_CLICKED_EVENT="[Amplitude] Rage Click",AMPLITUDE_ELEMENT_CHANGED_EVENT="[Amplitude] Element Changed",AMPLITUDE_EVENT_PROP_ELEMENT_ID="[Amplitude] Element ID",AMPLITUDE_EVENT_PROP_ELEMENT_CLASS="[Amplitude] Element Class",AMPLITUDE_EVENT_PROP_ELEMENT_TAG="[Amplitude] Element Tag",AMPLITUDE_EVENT_PROP_ELEMENT_TEXT="[Amplitude] Element Text",AMPLITUDE_EVENT_PROP_ELEMENT_HIERARCHY="[Amplitude] Element Hierarchy",AMPLITUDE_EVENT_PROP_ELEMENT_HREF="[Amplitude] Element Href",AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_LEFT="[Amplitude] Element Position Left",AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_TOP="[Amplitude] Element Position Top",AMPLITUDE_EVENT_PROP_ELEMENT_ARIA_LABEL="[Amplitude] Element Aria Label",AMPLITUDE_EVENT_PROP_ELEMENT_ATTRIBUTES="[Amplitude] Element Attributes",AMPLITUDE_EVENT_PROP_ELEMENT_PARENT_LABEL="[Amplitude] Element Parent Label",AMPLITUDE_EVENT_PROP_PAGE_URL="[Amplitude] Page URL",AMPLITUDE_EVENT_PROP_PAGE_TITLE="[Amplitude] Page Title",AMPLITUDE_EVENT_PROP_VIEWPORT_HEIGHT="[Amplitude] Viewport Height",AMPLITUDE_EVENT_PROP_VIEWPORT_WIDTH="[Amplitude] Viewport Width",AMPLITUDE_ORIGIN="https://app.amplitude.com",AMPLITUDE_ORIGIN_EU="https://app.eu.amplitude.com",AMPLITUDE_ORIGIN_STAGING="https://apps.stag2.amplitude.com",AMPLITUDE_ORIGINS_MAP={US:AMPLITUDE_ORIGIN,EU:AMPLITUDE_ORIGIN_EU,STAGING:AMPLITUDE_ORIGIN_STAGING},AMPLITUDE_VISUAL_TAGGING_SELECTOR_SCRIPT_URL="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",AMPLITUDE_VISUAL_TAGGING_HIGHLIGHT_CLASS="amp-visual-tagging-selector-highlight",DATA_AMP_MASK_ATTRIBUTES="data-amp-mask-attributes",MAX_MASK_TEXT_PATTERNS=25,MAX_ATTRIBUTE_LENGTH=128,SENSITIVE_TAGS=["input","select","textarea"],isElementPointerCursor=function(e,t){var r,n=null===(r=null===window||void 0===window?void 0:window.getComputedStyle)||void 0===r?void 0:r.call(window,e);return"pointer"===(null==n?void 0:n.getPropertyValue("cursor"))&&"click"===t},createShouldTrackEvent=function(e,t,r){return void 0===r&&(r=!1),function(n,i){var a,o,s=e.pageUrlAllowlist,l=e.pageUrlExcludelist,c=e.shouldTrackEventResolver,d=null===(o=null===(a=null==i?void 0:i.tagName)||void 0===a?void 0:a.toLowerCase)||void 0===o?void 0:o.call(a);if(!d)return!1;if(c)return c(n,i);if(!isUrlMatchAllowlist(window.location.href,s))return!1;if(l&&l.length>0&&isUrlMatchAllowlist(window.location.href,l))return!1;var u=String(null==i?void 0:i.getAttribute("type"))||"";if("string"==typeof u)switch(u.toLowerCase()){case"hidden":case"password":return!1}var p=isElementPointerCursor(i,n);if(r&&p)return!0;if(t){var h=t.some((function(e){var t;return!!(null===(t=null==i?void 0:i.matches)||void 0===t?void 0:t.call(i,e))}));if(!h)return!1}switch(d){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:return!!p||"click"===n}}},isNonSensitiveElement=function(e){var t,r,n,i=null===(r=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===r?void 0:r.call(t),a=e instanceof HTMLElement&&"true"===(null===(n=e.getAttribute("contenteditable"))||void 0===n?void 0:n.toLowerCase());return!SENSITIVE_TAGS.includes(i)&&!a},parseAttributesToMask=function(e){return e?e.split(",").map((function(e){return e.trim()})).filter((function(e){return e.length>0&&"id"!==e&&"class"!==e})):[]},extractPrefixedAttributes=function(e,t){return Object.entries(e).reduce((function(e,r){var n=__read$1(r,2),i=n[0],a=n[1];if(i.startsWith(t)){var o=i.replace(t,"");o&&(e[o]=a||"")}return e}),{})},isEmpty=function(e){return null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length},removeEmptyProperties=function(e){return Object.keys(e).reduce((function(t,r){var n=e[r];return isEmpty(n)||(t[r]=n),t}),{})},getClosestElement=function(e,t){return e?t.some((function(t){var r;return null===(r=null==e?void 0:e.matches)||void 0===r?void 0:r.call(e,t)}))?e:getClosestElement(null==e?void 0:e.parentElement,t):null},asyncLoadScript=function(e){return new Promise((function(t,r){var n;try{var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.addEventListener("load",(function(){t({status:!0})}),{once:!0}),i.addEventListener("error",(function(){r({status:!1,message:"Failed to load the script ".concat(e)})})),null===(n=document.head)||void 0===n||n.appendChild(i)}catch(e){r(e)}}))};function generateUniqueId(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var filterOutNonTrackableEvents=function(e){return!(null===e.event.target||!e.closestTrackedAncestor)};function isElementBasedEvent(e){return"click"===e.type||"change"===e.type}var BLOCKED_ATTRIBUTES=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",DATA_AMP_MASK_ATTRIBUTES,TEXT_MASK_ATTRIBUTE]),SENSITIVE_ELEMENT_ATTRIBUTE_ALLOWLIST=["type"],SVG_TAGS=["svg","path","g"],HIGHLY_SENSITIVE_INPUT_TYPES=["password","hidden"];function getElementProperties(e,t){var r,n,i,a,o,s;if(null===e)return null;var l=String(e.tagName).toLowerCase(),c={tag:l},d=Array.from(null!==(a=null===(i=e.parentElement)||void 0===i?void 0:i.children)&&void 0!==a?a:[]);d.length&&(c.index=d.indexOf(e),c.indexOfType=d.filter((function(t){return t.tagName===e.tagName})).indexOf(e));var u=null===(s=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===s?void 0:s.toLowerCase();u&&(c.prevSib=String(u));var p=e.getAttribute("id");p&&(c.id=String(p));var h=Array.from(e.classList);h.length&&(c.classes=h);var f={},m=Array.from(e.attributes).filter((function(e){return!BLOCKED_ATTRIBUTES.has(e.name)})),g=!isNonSensitiveElement(e);if(!HIGHLY_SENSITIVE_INPUT_TYPES.includes(String(e.getAttribute("type")))&&!SVG_TAGS.includes(l))try{for(var y=__values$1(m),v=y.next();!v.done;v=y.next()){var b=v.value;g&&!SENSITIVE_ELEMENT_ATTRIBUTE_ALLOWLIST.includes(b.name)||(t.has(b.name)?f[b.name]=MASKED_TEXT_VALUE:f[b.name]=String(b.value).substring(0,MAX_ATTRIBUTE_LENGTH))}}catch(e){r={error:e}}finally{try{v&&!v.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}return Object.keys(f).length&&(c.attrs=f),c}function getAncestors(e){var t=[];if(!e)return t;t.push(e);for(var r=e.parentElement;r&&"HTML"!==r.tagName;)t.push(r),r=r.parentElement;return t}var getDataSource=function(e,t){try{if("DOM_ELEMENT"===e.sourceType){var r=document.documentElement;return e.scope&&t&&(r=t.closest(e.scope)),r&&e.selector?r.querySelector(e.selector):r}}catch(e){return}},executeActions=function(e,t,r){e.forEach((function(e){if("string"!=typeof e&&"ATTACH_EVENT_PROPERTY"===e.actionType){var n=r.extractDataFromDataSource(e.dataSource,t.closestTrackedAncestor);t.targetElementProperties[e.destinationKey]=n}}))},DataExtractor=function(e,t){var r,n,i,a=this;this.replaceSensitiveString=function(e){return replaceSensitiveString(e,a.additionalMaskTextPatterns)},this.getHierarchy=function(e){var t,r,n,i,o,s=performance.now();if(!e)return[];for(var l=getAncestors(e),c=new Map,d=l.length-1;d>=0;d--){var u=l[d];if(u){var p=parseAttributesToMask(u.getAttribute(DATA_AMP_MASK_ATTRIBUTES)),h=d===l.length-1?[]:null!==(n=c.get(l[d+1]))&&void 0!==n?n:new Set,f=new Set(__spreadArray(__spreadArray([],__read$1(h),!1),__read$1(p),!1));c.set(u,f)}}o=l.map((function(e){var t;return getElementProperties(e,null!==(t=c.get(e))&&void 0!==t?t:new Set)}));var m=function(e){(null==e?void 0:e.attrs)&&Object.entries(e.attrs).forEach((function(t){var r=__read$1(t,2),n=r[0],i=r[1];e.attrs&&(e.attrs[n]=a.replaceSensitiveString(i))}))};try{for(var g=__values$1(o),y=g.next();!y.done;y=g.next())m(y.value)}catch(e){t={error:e}}finally{try{y&&!y.done&&(r=g.return)&&r.call(g)}finally{if(t)throw t.error}}var v=performance.now();return null===(i=a.diagnosticsClient)||void 0===i||i.recordHistogram("autocapturePlugin.getHierarchy",v-s),o},this.getNearestLabel=function(e){var t,r=e.parentElement;if(!r)return"";try{t=r.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}return t?a.getText(t):a.getNearestLabel(r)},this.getEventProperties=function(e,t,r){var n,i,o,s,l=null===(o=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===o?void 0:o.call(i),c="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},d=a.getHierarchy(t),u=null===(s=d[0])||void 0===s?void 0:s.attrs,p=a.getNearestLabel(t),h=extractPrefixedAttributes(null!=u?u:{},r),f=((n={})[AMPLITUDE_EVENT_PROP_ELEMENT_HIERARCHY]=d,n[AMPLITUDE_EVENT_PROP_ELEMENT_TAG]=l,n[AMPLITUDE_EVENT_PROP_ELEMENT_TEXT]=a.getText(t),n[AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_LEFT]=null==c.left?null:Math.round(c.left),n[AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_TOP]=null==c.top?null:Math.round(c.top),n[AMPLITUDE_EVENT_PROP_ELEMENT_ATTRIBUTES]=h,n[AMPLITUDE_EVENT_PROP_ELEMENT_PARENT_LABEL]=p,n[AMPLITUDE_EVENT_PROP_PAGE_URL]=getDecodeURI(window.location.href.split("?")[0]),n[AMPLITUDE_EVENT_PROP_PAGE_TITLE]=getPageTitle(a.replaceSensitiveString),n[AMPLITUDE_EVENT_PROP_VIEWPORT_HEIGHT]=window.innerHeight,n[AMPLITUDE_EVENT_PROP_VIEWPORT_WIDTH]=window.innerWidth,n);if(f[AMPLITUDE_EVENT_PROP_ELEMENT_ID]=t.getAttribute("id")||"",f[AMPLITUDE_EVENT_PROP_ELEMENT_CLASS]=t.getAttribute("class"),f[AMPLITUDE_EVENT_PROP_ELEMENT_ARIA_LABEL]=null==u?void 0:u["aria-label"],"a"===l&&"click"===e&&t instanceof HTMLAnchorElement){var m=t.href.substring(0,MAX_ATTRIBUTE_LENGTH);f[AMPLITUDE_EVENT_PROP_ELEMENT_HREF]=a.replaceSensitiveString(m)}return removeEmptyProperties(f)},this.addAdditionalEventProperties=function(e,t,r,n,i){void 0===i&&(i=!1);var o={event:e,timestamp:Date.now(),type:t};if(isElementBasedEvent(o)&&null!==o.event.target){if(i&&isElementPointerCursor(o.event.target,o.type))return o.closestTrackedAncestor=o.event.target,o.targetElementProperties=a.getEventProperties(o.type,o.closestTrackedAncestor,n),o;var s=getClosestElement(o.event.target,r);return s&&(o.closestTrackedAncestor=s,o.targetElementProperties=a.getEventProperties(o.type,s,n)),o}return o},this.extractDataFromDataSource=function(e,t){if("DOM_ELEMENT"===e.sourceType){var r=getDataSource(e,t);if(!r)return;return"TEXT"===e.elementExtractType?a.getText(r):"ATTRIBUTE"===e.elementExtractType&&e.attribute?r.getAttribute(e.attribute):void 0}},this.getText=function(e){if(null!==e.closest("[".concat(TEXT_MASK_ATTRIBUTE,"]")))return MASKED_TEXT_VALUE;var t="";if(e.querySelector("[".concat(TEXT_MASK_ATTRIBUTE,"], [contenteditable]"))){var r=e.cloneNode(!0);r.querySelectorAll("[".concat(TEXT_MASK_ATTRIBUTE,"], [contenteditable]")).forEach((function(e){e.innerText=MASKED_TEXT_VALUE})),t=r.innerText||""}else t=e.innerText||"";return a.replaceSensitiveString(t.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(e){var t,r,n;if(!e)return{};var i=null===(n=null===(r=null==e?void 0:e.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===n?void 0:n.call(r),o=((t={})[AMPLITUDE_EVENT_PROP_ELEMENT_TAG]=i,t[AMPLITUDE_EVENT_PROP_ELEMENT_TEXT]=a.getText(e),t[AMPLITUDE_EVENT_PROP_PAGE_URL]=window.location.href.split("?")[0],t);return removeEmptyProperties(o)},this.diagnosticsClient=null==t?void 0:t.diagnosticsClient;var o=null!==(i=e.maskTextRegex)&&void 0!==i?i:[],s=[];try{for(var l=__values$1(o),c=l.next();!c.done;c=l.next()){var d=c.value;if(s.length>=MAX_MASK_TEXT_PATTERNS)break;if(d instanceof RegExp)s.push(d);else if("pattern"in d&&"string"==typeof d.pattern)try{s.push(new RegExp(d.pattern,"i"))}catch(e){}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}this.additionalMaskTextPatterns=s},WindowMessenger=function(){function e(e){var t=(void 0===e?{}:e).origin,r=void 0===t?AMPLITUDE_ORIGIN:t,n=this;this.endpoint=AMPLITUDE_ORIGIN,this.requestCallbacks={},this.onSelect=function(e){n.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?n.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&n.notify({action:"track-selector-moved",data:t})},this.endpoint=r}return e.prototype.notify=function(e){var t,r,n,i;null===(r=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===r||r.call(t,"Message sent: ",JSON.stringify(e)),null===(i=null===(n=window.opener)||void 0===n?void 0:n.postMessage)||void 0===i||i.call(n,e,this.endpoint)},e.prototype.sendRequest=function(e,t,r){var n=this;void 0===r&&(r={timeout:15e3});var i=generateUniqueId(),a={id:i,action:e,args:t};return new Promise((function(t,o){n.requestCallbacks[i]={resolve:t,reject:o},n.notify(a),(null==r?void 0:r.timeout)>0&&setTimeout((function(){o(new Error("".concat(e," timed out (id: ").concat(i,")"))),delete n.requestCallbacks[i]}),r.timeout)}))},e.prototype.handleResponse=function(e){var t;this.requestCallbacks[e.id]?(this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]):null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id))},e.prototype.setup=function(e){var t=this,r=void 0===e?{dataExtractor:new DataExtractor({})}:e,n=r.logger,i=r.endpoint,a=r.isElementSelectable,o=r.cssSelectorAllowlist,s=r.actionClickAllowlist,l=r.dataExtractor;this.logger=n,i&&this.endpoint===AMPLITUDE_ORIGIN&&(this.endpoint=i);var c=null;window.addEventListener("message",(function(e){var r,n,i,d,u;if(null===(n=null===(r=t.logger)||void 0===r?void 0:r.debug)||void 0===n||n.call(r,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var p=null==e?void 0:e.data,h=null==p?void 0:p.action;if(h)if("id"in p)null===(d=null===(i=t.logger)||void 0===i?void 0:i.debug)||void 0===d||d.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(p);else if("ping"===h)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===h){var f=null==p?void 0:p.data;asyncLoadScript(AMPLITUDE_VISUAL_TAGGING_SELECTOR_SCRIPT_URL).then((function(){var e;c=null===(e=null===window||void 0===window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:l.getEventTagProps,isElementSelectable:function(e){return!a||a((null==f?void 0:f.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:AMPLITUDE_VISUAL_TAGGING_HIGHLIGHT_CLASS,messenger:t,cssSelectorAllowlist:o,actionClickAllowlist:s,extractDataFromDataSource:l.extractDataFromDataSource,dataExtractor:l,diagnostics:{autocapture:{version:VERSION}}}),t.notify({action:"selector-loaded"})})).catch((function(){var e;null===(e=t.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")}))}else"close-visual-tagging-selector"===h&&(null===(u=null==c?void 0:c.close)||void 0===u||u.call(c))}})),this.notify({action:"page-loaded"})},e}();function trackClicks(e){var t=e.amplitude,r=e.allObservables,n=e.shouldTrackEvent,i=e.evaluateTriggers;return r.clickObservable.filter(filterOutNonTrackableEvents).filter((function(e){return n("click",e.closestTrackedAncestor)})).map((function(e){return i(e)})).subscribe((function(e){null==t||t.track(AMPLITUDE_ELEMENT_CLICKED_EVENT,e.targetElementProperties)}))}function trackChange(e){var t=e.amplitude,r=e.allObservables,n=e.getEventProperties,i=e.shouldTrackEvent,a=e.evaluateTriggers;return r.changeObservable.filter(filterOutNonTrackableEvents).filter((function(e){return i("change",e.closestTrackedAncestor)})).map((function(e){return a(e)})).subscribe((function(e){null==t||t.track(AMPLITUDE_ELEMENT_CHANGED_EVENT,n("change",e.closestTrackedAncestor))}))}function trackActionClick(e){var t=e.amplitude,r=e.allObservables,n=e.options,i=e.getEventProperties,a=e.shouldTrackEvent,o=e.shouldTrackActionClick,s=r.clickObservable,l=r.mutationObservable,c=r.navigateObservable,d=s.filter((function(e){return!a("click",e.closestTrackedAncestor)})).map((function(e){var t=getClosestElement(e.event.target,n.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=i(e.type,e.closestTrackedAncestor)),e})).filter(filterOutNonTrackableEvents).filter((function(e){return o("click",e.closestTrackedAncestor)})),u=c?merge(l,c):l,p=merge(d,u),h=null,f=null;return asyncMap(p,(function(e){if(h&&(clearTimeout(h),h=null),"click"===e.type)return f=e,h=setTimeout((function(){h=null,f=null}),500),Promise.resolve(null);if(f){var t=f;return f=null,Promise.resolve(t)}return Promise.resolve(null)})).subscribe((function(e){e&&(null==t||t.track(AMPLITUDE_ELEMENT_CLICKED_EVENT,i("click",e.closestTrackedAncestor)))}))}var createMutationObservable=function(){return new Observable((function(e){var t=new MutationObserver((function(t){e.next(t)}));return document.body&&t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}}))},createClickObservable=function(e){return void 0===e&&(e="click"),new Observable((function(t){var r,n=function(e){t.next(e)};return null===(r=getGlobalScope())||void 0===r||r.document.addEventListener(e,n,{capture:!0}),function(){var t;null===(t=getGlobalScope())||void 0===t||t.document.removeEventListener(e,n,{capture:!0})}}))},matchEventToFilter=function(e,t){try{if("[Amplitude] Element Text"===t.subprop_key)return"is"===t.subprop_op&&t.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if("[Amplitude] Element Hierarchy"===t.subprop_key)return"autotrack css match"===t.subprop_op&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(e){return console.error("Error matching event to filter",e),!1}return!1},eventTypeToBrowserEventMap={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},groupLabeledEventIdsByEventType=function(e){var t,r,n,i,a=Object.values(eventTypeToBrowserEventMap).reduce((function(e,t){return e[t]=new Set,e}),{});if(!e)return a;try{for(var o=__values$1(e),s=o.next();!s.done;s=o.next()){var l=s.value;try{try{for(var c=(n=void 0,__values$1(l.definition)),d=c.next();!d.done;d=c.next()){var u=d.value,p=eventTypeToBrowserEventMap[u.event_type];p&&a[p].add(l.id)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}catch(e){console.warn("Skipping Labeled Event due to malformed definition",null==l?void 0:l.id,e)}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return a},createLabeledEventToTriggerMap=function(e){var t,r,n,i,a=new Map;try{for(var o=__values$1(e),s=o.next();!s.done;s=o.next()){var l=s.value;try{for(var c=(n=void 0,__values$1(l.conditions)),d=c.next();!d.done;d=c.next()){var u=d.value;if("LABELED_EVENT"===u.type){var p=u.match.eventId,h=a.get(p);h||(h=[],a.set(p,h)),h.push(l)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return a},matchEventToLabeledEvents=function(e,t){return t.filter((function(t){return t.definition.some((function(t){return eventTypeToBrowserEventMap[t.event_type]===e.type&&t.filters.every((function(t){return matchEventToFilter(e,t)}))}))}))},matchLabeledEventsToTriggers=function(e,t){var r,n,i,a,o=new Set;try{for(var s=__values$1(e),l=s.next();!l.done;l=s.next()){var c=l.value,d=t.get(c.id);if(d)try{for(var u=(i=void 0,__values$1(d)),p=u.next();!p.done;p=u.next()){var h=p.value;o.add(h)}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return Array.from(o)},TriggerEvaluator=function(){function e(e,t,r,n){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.dataExtractor=r,this.options=n}return e.prototype.evaluate=function(e){var t,r,n=this.options.pageActions;if(!n)return e;var i=matchEventToLabeledEvents(e,Array.from(this.groupedLabeledEvents[e.type]).map((function(e){return n.labeledEvents[e]}))),a=matchLabeledEventsToTriggers(i,this.labeledEventToTriggerMap);try{for(var o=__values$1(a),s=o.next();!s.done;s=o.next()){var l=s.value;executeActions(l.actions,e,this.dataExtractor)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return e},e.prototype.update=function(e,t,r){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.options=r},e}(),createTriggerEvaluator=function(e,t,r,n){return new TriggerEvaluator(e,t,r,n)},ObservablesEnum$1;!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable"}(ObservablesEnum$1||(ObservablesEnum$1={}));var autocapturePlugin=function(e,t){var r,n,i,a,o,s,l,c;void 0===e&&(e={}),null==t||t.diagnosticsClient.setTag("plugin.autocapture.version",VERSION);var d=e.dataAttributePrefix,u=void 0===d?DEFAULT_DATA_ATTRIBUTE_PREFIX:d,p=e.visualTaggingOptions,h=void 0===p?{enabled:!0,messenger:new WindowMessenger}:p;e.cssSelectorAllowlist=null!==(r=e.cssSelectorAllowlist)&&void 0!==r?r:DEFAULT_CSS_SELECTOR_ALLOWLIST,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:DEFAULT_ACTION_CLICK_ALLOWLIST,e.debounceTime=null!==(i=e.debounceTime)&&void 0!==i?i:0,e.pageUrlExcludelist=null===(a=e.pageUrlExcludelist)||void 0===a?void 0:a.reduce((function(e,t){if("string"==typeof t&&e.push(t),t instanceof RegExp&&e.push(t),"object"==typeof t&&null!==t&&"pattern"in t)try{e.push(new RegExp(t.pattern))}catch(r){return console.warn("Invalid regex pattern: ".concat(t.pattern),r),e}return e}),[]);var f=PLUGIN_NAME$2,m=[],g=new DataExtractor(e,t),y=groupLabeledEventIdsByEventType(Object.values(null!==(s=null===(o=e.pageActions)||void 0===o?void 0:o.labeledEvents)&&void 0!==s?s:{})),v=createLabeledEventToTriggerMap(null!==(c=null===(l=e.pageActions)||void 0===l?void 0:l.triggers)&&void 0!==c?c:[]),b=createTriggerEvaluator(y,v,g,e);return{name:f,type:"enrichment",setup:function(t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,s,l,c,d,p,E;return __generator(this,(function(_){return"undefined"==typeof document||(t.fetchRemoteConfig&&(t.remoteConfigClient?t.remoteConfigClient.subscribe("analyticsSDK.pageActions","all",(function(t){!function(t){var r,n;t&&(e.pageActions=__assign$1(__assign$1({},e.pageActions),t),y=groupLabeledEventIdsByEventType(Object.values(null!==(r=e.pageActions.labeledEvents)&&void 0!==r?r:{})),v=createLabeledEventToTriggerMap(null!==(n=e.pageActions.triggers)&&void 0!==n?n:[]),b.update(y,v,e))}(t)})):t.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),n=createShouldTrackEvent(e,e.cssSelectorAllowlist),i=createShouldTrackEvent(e,e.actionClickAllowlist),a=function(){var t,r,n=multicast(createClickObservable().map((function(t){return g.addAdditionalEventProperties(t,"click",e.cssSelectorAllowlist,u)}))),i=multicast(new Observable((function(t){var r,n=function(r){var n=g.addAdditionalEventProperties(r,"change",e.cssSelectorAllowlist,u);t.next(n)};return null===(r=getGlobalScope())||void 0===r||r.document.addEventListener("change",n,{capture:!0}),function(){var e;return null===(e=getGlobalScope())||void 0===e?void 0:e.document.removeEventListener("change",n)}})));window.navigation&&(r=multicast(new Observable((function(t){var r=function(r){var n=g.addAdditionalEventProperties(r,"navigate",e.cssSelectorAllowlist,u);t.next(n)};return window.navigation.addEventListener("navigate",r),function(){window.navigation.removeEventListener("navigate",r)}}))));var a=multicast(createMutationObservable().map((function(t){return g.addAdditionalEventProperties(t,"mutation",e.cssSelectorAllowlist,u)})));return(t={})[ObservablesEnum$1.ChangeObservable]=i,t[ObservablesEnum$1.ClickObservable]=n,t[ObservablesEnum$1.MutationObservable]=a,t[ObservablesEnum$1.NavigateObservable]=r,t}(),o=trackClicks({allObservables:a,amplitude:r,shouldTrackEvent:n,evaluateTriggers:b.evaluate.bind(b)}),m.push(o),s=trackChange({allObservables:a,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g.getEventProperties.apply(g,__spreadArray(__spreadArray([],__read$1(e),!1),[u],!1))},amplitude:r,shouldTrackEvent:n,evaluateTriggers:b.evaluate.bind(b)}),m.push(s),l=trackActionClick({allObservables:a,options:e,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g.getEventProperties.apply(g,__spreadArray(__spreadArray([],__read$1(e),!1),[u],!1))},amplitude:r,shouldTrackEvent:n,shouldTrackActionClick:i}),l&&m.push(l),null===(p=null==t?void 0:t.loggerProvider)||void 0===p||p.log("".concat(f," has been successfully added.")),window.opener&&h.enabled&&(c=e.cssSelectorAllowlist,d=e.actionClickAllowlist,null===(E=h.messenger)||void 0===E||E.setup(__assign$1(__assign$1({dataExtractor:g,logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:AMPLITUDE_ORIGINS_MAP[t.serverZone]}),{isElementSelectable:createShouldTrackEvent(e,__spreadArray(__spreadArray([],__read$1(c),!1),__read$1(d),!1)),cssSelectorAllowlist:c,actionClickAllowlist:d})))),[2]}))}))},execute:function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,e]}))}))},teardown:function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(i){try{for(e=__values$1(m),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(n=e.return)&&n.call(e)}finally{if(r)throw r.error}}return[2]}))}))}}},DEAD_CLICK_TIMEOUT=3e3,CHANGE_EVENTS=["mutation","navigate"];function trackDeadClick(e){var t=e.amplitude,r=e.allObservables,n=e.getEventProperties,i=e.shouldTrackDeadClick,a=r.clickObservable,o=r.mutationObservable,s=r.navigateObservable,l=a.filter((function(e){return filterOutNonTrackableEvents(e)&&i("click",e.closestTrackedAncestor)&&e.event.target instanceof Element&&null===e.event.target.closest('a[target="_blank"]')})),c=s?merge(o,s):o,d=merge(l,c),u=null;return asyncMap(d,(function(e){return u&&CHANGE_EVENTS.includes(e.type)?(clearTimeout(u),u=null,Promise.resolve(null)):"click"===e.type?u?Promise.resolve(null):new Promise((function(t){u=setTimeout((function(){t(e),u=null}),DEAD_CLICK_TIMEOUT)})):Promise.resolve(null)})).subscribe((function(e){if(e){var r={"[Amplitude] X":e.event.clientX,"[Amplitude] Y":e.event.clientY};t.track(AMPLITUDE_ELEMENT_DEAD_CLICKED_EVENT,__assign$1(__assign$1({},n("click",e.closestTrackedAncestor)),r),{time:e.timestamp})}}))}var RAGE_CLICK_THRESHOLD=DEFAULT_RAGE_CLICK_THRESHOLD,RAGE_CLICK_WINDOW_MS=DEFAULT_RAGE_CLICK_WINDOW_MS,RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD=DEFAULT_RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD;function addCoordinates(e,t){var r,n,i,a,o=t.event,s=o.clientX,l=o.clientY;e.yMin=Math.min(null!==(r=e.yMin)&&void 0!==r?r:l,l),e.yMax=Math.max(null!==(n=e.yMax)&&void 0!==n?n:l,l),e.xMin=Math.min(null!==(i=e.xMin)&&void 0!==i?i:s,s),e.xMax=Math.max(null!==(a=e.xMax)&&void 0!==a?a:s,s),e.isOutOfBounds=e.yMax-e.yMin>RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD||e.xMax-e.xMin>RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD}function getRageClickAnalyticsEvent(e){if(0===e.length)return null;var t=e[0],r=e[e.length-1];return{rageClickEvent:__assign$1({"[Amplitude] Begin Time":new Date(t.timestamp).toISOString(),"[Amplitude] End Time":new Date(r.timestamp).toISOString(),"[Amplitude] Duration":r.timestamp-t.timestamp,"[Amplitude] Clicks":e.map((function(e){return{X:e.event.clientX,Y:e.event.clientY,Time:e.timestamp}})),"[Amplitude] Click Count":e.length},t.targetElementProperties),time:t.timestamp}}function isClickOutsideRageClickWindow(e,t){var r=e[Math.max(0,e.length-RAGE_CLICK_THRESHOLD+1)];return t.timestamp-r.timestamp>=RAGE_CLICK_WINDOW_MS}function isNewElement(e,t){return e.length>0&&e[e.length-1].closestTrackedAncestor!==t.closestTrackedAncestor}function trackRageClicks(e){var t=this,r=e.amplitude,n=e.allObservables,i=e.shouldTrackRageClick,a=n.clickObservable,o=[],s={},l=null;return asyncMap(a.filter((function(e){return i("click",e.closestTrackedAncestor)})),(function(e){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(r){return addCoordinates(s,e),t=null,0===o.length||isNewElement(o,e)||isClickOutsideRageClickWindow(o,e)||s.isOutOfBounds?(l&&(t=getRageClickAnalyticsEvent(o)),function(e){o=[],s={},e&&(addCoordinates(s,e),o.push(e))}(e)):o.push(e),l&&(clearTimeout(l.timerId),l.resolve(t),l=null),o.length>=RAGE_CLICK_THRESHOLD?[2,new Promise((function(e){l={resolve:e,timerId:setTimeout((function(){e(getRageClickAnalyticsEvent(o))}),RAGE_CLICK_WINDOW_MS)}}))]:[2,null]}))}))})).subscribe((function(e){null!==e&&r.track(AMPLITUDE_ELEMENT_RAGE_CLICKED_EVENT,e.rageClickEvent,{time:e.time})}))}var frustrationPlugin=function(e){var t,r,n,i,a;void 0===e&&(e={});var o=FRUSTRATION_PLUGIN_NAME,s=[],l=null!==(r=null===(t=e.rageClicks)||void 0===t?void 0:t.cssSelectorAllowlist)&&void 0!==r?r:DEFAULT_RAGE_CLICK_ALLOWLIST,c=null!==(i=null===(n=e.deadClicks)||void 0===n?void 0:n.cssSelectorAllowlist)&&void 0!==i?i:DEFAULT_DEAD_CLICK_ALLOWLIST,d=null!==(a=e.dataAttributePrefix)&&void 0!==a?a:DEFAULT_DATA_ATTRIBUTE_PREFIX,u=new DataExtractor(e),p=__spreadArray([],__read$1(new Set(__spreadArray(__spreadArray([],__read$1(l),!1),__read$1(c),!1))),!1);return{name:o,type:"enrichment",setup:function(t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,h,f,m;return __generator(this,(function(g){return"undefined"==typeof document||(n=createShouldTrackEvent(e,l),i=createShouldTrackEvent(e,c),a=function(){var e,t,r=multicast(createClickObservable("pointerdown").map((function(e){return u.addAdditionalEventProperties(e,"click",p,d,!0)}))),n=multicast(createMutationObservable().map((function(e){return u.addAdditionalEventProperties(e,"mutation",p,d)})));return window.navigation&&(t=multicast(new Observable((function(e){var t=function(t){e.next(__assign$1(__assign$1({},t),{type:"navigate"}))};return window.navigation.addEventListener("navigate",t),function(){window.navigation.removeEventListener("navigate",t)}})).map((function(e){return u.addAdditionalEventProperties(e,"navigate",p,d)})))),(e={})[ObservablesEnum$1.ClickObservable]=r,e[ObservablesEnum$1.MutationObservable]=n,e[ObservablesEnum$1.NavigateObservable]=t,e}(),h=trackRageClicks({allObservables:a,amplitude:r,shouldTrackRageClick:n}),s.push(h),f=trackDeadClick({amplitude:r,allObservables:a,getEventProperties:function(e,t){return u.getEventProperties(e,t,d)},shouldTrackDeadClick:i}),s.push(f),null===(m=null==t?void 0:t.loggerProvider)||void 0===m||m.log("".concat(o," has been successfully added."))),[2]}))}))},execute:function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,e]}))}))},teardown:function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(i){try{for(e=__values$1(s),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(n=e.return)&&n.call(e)}finally{if(r)throw r.error}}return[2]}))}))}}},PLUGIN_NAME$1="@amplitude/plugin-network-capture-browser",AMPLITUDE_NETWORK_REQUEST_EVENT="[Amplitude] Network Request",DEFAULT_STATUS_CODE_RANGE="500-599",ObservablesEnum,subscription;function wildcardMatch(e,t){var r="^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$";return new RegExp(r).test(e)}function isStatusCodeInRange(e,t){var r,n,i=t.split(",");try{for(var a=__values$1(i),o=a.next();!o.done;o=a.next()){var s=__read$1(o.value.split("-").map(Number),2),l=s[0],c=s[1];if(e===l&&void 0===c)return!0;if(e>=l&&e<=c)return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return!1}function isCaptureRuleMatch(e,t,r,n,i){if((!e.hosts||e.hosts.find((function(e){return wildcardMatch(t,e)})))&&(!n||!e.urls||isUrlMatchAllowlist(n,e.urls))&&(!i||!e.methods||e.methods.find((function(e){return i.toLowerCase()===e.toLowerCase()||"*"===e})))){if(r||0===r)if(!isStatusCodeInRange(r,e.statusCodeRange||DEFAULT_STATUS_CODE_RANGE))return!1;return!0}}function parseUrl(e){var t;if(e)try{var r=null===(t=getGlobalScope())||void 0===t?void 0:t.location.href,n=new URL(e,r),i=n.searchParams.toString(),a=n.hash.replace("#",""),o=n.href,s=n.host;return n.hash="",n.search="",{query:i,fragment:a,href:o,hrefWithoutQueryOrHash:n.href,host:s}}catch(e){return}}function isAmplitudeNetworkRequestEvent(e,t){if(e.includes("amplitude.com"))try{var r=t.body;if("string"!=typeof r)return!1;if(JSON.parse(r).events.find((function(e){return e.event_type===AMPLITUDE_NETWORK_REQUEST_EVENT})))return!0}catch(e){}return!1}function parseHeaderCaptureRule(e){if("object"==typeof e&&null!==e){if(0!==e.length)return e}else{if(e)return __spreadArray([],__read$1(SAFE_HEADERS),!1);if(void 0===e){return}}}function isBodyCaptureRuleEmpty(e){var t,r;return!(null===(t=null==e?void 0:e.allowlist)||void 0===t?void 0:t.length)&&!(null===(r=null==e?void 0:e.blocklist)||void 0===r?void 0:r.length)}function shouldTrackNetworkEvent(e,t){var r;void 0===t&&(t={});var n=parseUrl(e.url);if(!n)return!1;var i,a=n.host;if(!1!==t.ignoreAmplitudeRequests&&(wildcardMatch(a,"*.amplitude.com")||wildcardMatch(a,"amplitude.com")))return!1;if(null===(r=t.ignoreHosts)||void 0===r?void 0:r.find((function(e){return wildcardMatch(a,e)})))return!1;if(!t.captureRules&&void 0!==e.status&&!isStatusCodeInRange(e.status,DEFAULT_STATUS_CODE_RANGE))return!1;if(t.captureRules&&(__spreadArray([],__read$1(t.captureRules),!1).reverse().find((function(t){if(i=isCaptureRuleMatch(t,a,e.status,e.url,e.method)){var r=parseHeaderCaptureRule(t.responseHeaders);if(e.responseWrapper&&r){var n=e.responseWrapper.headers(r);n&&(e.responseHeaders=n)}var o=parseHeaderCaptureRule(t.requestHeaders);if(e.requestWrapper&&o){var s=e.requestWrapper.headers(o);s&&(e.requestHeaders=s)}e.responseWrapper&&t.responseBody&&!isBodyCaptureRuleEmpty(t.responseBody)&&(e.responseBodyJson=e.responseWrapper.json(t.responseBody.allowlist,t.responseBody.blocklist)),e.requestWrapper&&t.requestBody&&!isBodyCaptureRuleEmpty(t.requestBody)&&(e.requestBodyJson=e.requestWrapper.json(t.requestBody.allowlist,t.requestBody.blocklist))}return void 0!==i})),!i))return!1;return!e.requestWrapper||!isAmplitudeNetworkRequestEvent(a,e.requestWrapper)}function logNetworkAnalyticsEvent(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){var i,a,o;return __generator(this,(function(s){switch(s.label){case 0:return t.requestBodyJson||t.responseBodyJson?[4,Promise.all([t.requestBodyJson,t.responseBodyJson])]:[3,2];case 1:if(i=__read$1.apply(void 0,[s.sent(),2]),a=i[0],o=i[1],a)try{e["[Amplitude] Request Body"]=JSON.stringify(a)}catch(e){null==n||n.debug("Failed to stringify request body",e)}if(o)try{e["[Amplitude] Response Body"]=JSON.stringify(o)}catch(e){null==n||n.debug("Failed to stringify response body")}s.label=2;case 2:return null==r||r.track(AMPLITUDE_NETWORK_REQUEST_EVENT,e),[2]}}))}))}function trackNetworkEvents(e){var t=e.allObservables,r=e.networkTrackingOptions,n=e.amplitude,i=e.loggerProvider;return t.networkObservable.filter((function(e){return shouldTrackNetworkEvent(e.event,r)})).subscribe((function(e){var t,r,a,o=e.event,s=parseUrl(o.url);if(s){var l=null===(r=o.responseWrapper)||void 0===r?void 0:r.bodySize,c=null===(a=o.requestWrapper)||void 0===a?void 0:a.bodySize;logNetworkAnalyticsEvent(((t={})["[Amplitude] URL"]=s.hrefWithoutQueryOrHash,t["[Amplitude] URL Query"]=s.query,t["[Amplitude] URL Fragment"]=s.fragment,t["[Amplitude] Request Method"]=o.method,t["[Amplitude] Status Code"]=o.status,t["[Amplitude] Start Time"]=o.startTime,t["[Amplitude] Completion Time"]=o.endTime,t["[Amplitude] Duration"]=o.duration,t["[Amplitude] Request Body Size"]=c,t["[Amplitude] Response Body Size"]=l,t["[Amplitude] Request Type"]=o.type,t["[Amplitude] Request Headers"]=o.requestHeaders,t["[Amplitude] Response Headers"]=o.responseHeaders,t),o,n,i)}}))}!function(e){e.NetworkObservable="networkObservable"}(ObservablesEnum||(ObservablesEnum={}));var networkCapturePlugin=function(e){void 0===e&&(e={});var t,r=PLUGIN_NAME$1,n=function(){var e,r=new Observable((function(e){var r=new NetworkEventCallback((function(t){var r=function(e,t){return{event:e,timestamp:Date.now(),type:t}}(t,"network");e.next(r)}));return networkObserver.subscribe(r,t),function(){networkObserver.unsubscribe(r)}}));return(e={})[ObservablesEnum.NetworkObservable]=r,e};return{name:r,type:"enrichment",setup:function(i,a){return __awaiter(void 0,void 0,void 0,(function(){var o;return __generator(this,(function(s){return"undefined"==typeof document||(o=n(),t=null==i?void 0:i.loggerProvider,subscription=trackNetworkEvents({allObservables:o,networkTrackingOptions:e,amplitude:a,loggerProvider:t}),null==t||t.log("".concat(r," has been successfully added."))),[2]}))}))},execute:function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,e]}))}))},teardown:function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return subscription.unsubscribe(),[2]}))}))}}},PLUGIN_NAME="web-vitals-browser",WEB_VITALS_EVENT_NAME="[Amplitude] Web Vitals";let e$8=-1;const t$4=e=>{addEventListener("pageshow",(t=>{t.persisted&&(e$8=t.timeStamp,e(t))}),!0)},n$7=(e,t,r,n)=>{let i,a;return o=>{t.value>=0&&(o||n)&&(a=t.value-(i??0),(a||void 0===i)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t)))}},i$5=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},o$9=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},s$5=()=>{const e=o$9();return e?.activationStart??0},r$6=(e,t=-1)=>{const r=o$9();let n="navigate";return e$8>=0?n="back-forward-cache":r&&(document.prerendering||s$5()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},c$4=new WeakMap;function a$3(e,t){return c$4.get(e)||c$4.set(e,new t),c$4.get(e)}let d$2=class{t;i=0;o=[];h(e){if(e.hadRecentInput)return;const t=this.o[0],r=this.o.at(-1);this.i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}};const h$7=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return n.observe({type:e,buffered:!0,...r}),n}}catch{}},f$4=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let u$3=-1;const l$3=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,m$1=e=>{"hidden"===document.visibilityState&&u$3>-1&&(u$3="visibilitychange"===e.type?e.timeStamp:0,p$2())},g$1=()=>{addEventListener("visibilitychange",m$1,!0),addEventListener("prerenderingchange",m$1,!0)},p$2=()=>{removeEventListener("visibilitychange",m$1,!0),removeEventListener("prerenderingchange",m$1,!0)},v$4=()=>{if(u$3<0){const e=s$5(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter((t=>"hidden"===t.name&&t.startTime>e))[0]?.startTime;u$3=t??l$3(),g$1(),t$4((()=>{setTimeout((()=>{u$3=l$3(),g$1()}))}))}return{get firstHiddenTime(){return u$3}}},y$2=e=>{document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},b$2=[1800,3e3],P$1=(e,t={})=>{y$2((()=>{const r=v$4();let n,i=r$6("FCP");const a=h$7("paint",(e=>{for(const t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-s$5(),0),i.entries.push(t),n(!0)))}));a&&(n=n$7(e,i,b$2,t.reportAllChanges),t$4((r=>{i=r$6("FCP"),n=n$7(e,i,b$2,t.reportAllChanges),i$5((()=>{i.value=performance.now()-r.timeStamp,n(!0)}))})))}))},T$1=[.1,.25],E$1=(e,t={})=>{P$1(f$4((()=>{let r,n=r$6("CLS",0);const i=a$3(t,d$2),a=e=>{for(const t of e)i.h(t);i.i>n.value&&(n.value=i.i,n.entries=i.o,r())},o=h$7("layout-shift",a);o&&(r=n$7(e,n,T$1,t.reportAllChanges),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&(a(o.takeRecords()),r(!0))})),t$4((()=>{i.i=0,n=r$6("CLS",0),r=n$7(e,n,T$1,t.reportAllChanges),i$5((()=>r()))})),setTimeout(r))})))};let _$1=0,L$1=1/0,M$1=0;const C$1=e=>{for(const t of e)t.interactionId&&(L$1=Math.min(L$1,t.interactionId),M$1=Math.max(M$1,t.interactionId),_$1=M$1?(M$1-L$1)/7+1:0)};let I$1;const w$3=()=>I$1?_$1:performance.interactionCount??0,F=()=>{"interactionCount"in performance||I$1||(I$1=h$7("event",C$1,{type:"event",buffered:!0,durationThreshold:0}))};let k$1=0,A$1=class{u=[];l=new Map;m;p;v(){k$1=w$3(),this.u.length=0,this.l.clear()}P(){const e=Math.min(this.u.length-1,Math.floor((w$3()-k$1)/50));return this.u[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this.u.at(-1);let r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.T){if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort(((e,t)=>t.T-e.T)),this.u.length>10){const e=this.u.splice(10);for(const t of e)this.l.delete(t.id)}this.p?.(r)}}};const B$1=e=>{const t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(t(e=f$4(e)),document.addEventListener("visibilitychange",e,{once:!0}))},N$1=[200,500],S$2=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&y$2((()=>{F();let r,n=r$6("INP");const i=a$3(t,A$1),a=e=>{B$1((()=>{for(const t of e)i.h(t);const t=i.P();t&&t.T!==n.value&&(n.value=t.T,n.entries=t.entries,r())}))},o=h$7("event",a,{durationThreshold:t.durationThreshold??40});r=n$7(e,n,N$1,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&(a(o.takeRecords()),r(!0))})),t$4((()=>{i.v(),n=r$6("INP"),r=n$7(e,n,N$1,t.reportAllChanges)})))}))};class q{m;h(e){this.m?.(e)}}const x$1=[2500,4e3],O=(e,t={})=>{y$2((()=>{const r=v$4();let n,i=r$6("LCP");const a=a$3(t,q),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)a.h(t),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-s$5(),0),i.entries=[t],n())},s=h$7("largest-contentful-paint",o);if(s){n=n$7(e,i,x$1,t.reportAllChanges);const r=f$4((()=>{o(s.takeRecords()),s.disconnect(),n(!0)}));for(const e of["keydown","click","visibilitychange"])addEventListener(e,(()=>B$1(r)),{capture:!0,once:!0});t$4((r=>{i=r$6("LCP"),n=n$7(e,i,x$1,t.reportAllChanges),i$5((()=>{i.value=performance.now()-r.timeStamp,n(!0)}))}))}}))},$$1=[800,1800],D=e=>{document.prerendering?y$2((()=>D(e))):"complete"!==document.readyState?addEventListener("load",(()=>D(e)),!0):setTimeout(e)},H$1=(e,t={})=>{let r=r$6("TTFB"),n=n$7(e,r,$$1,t.reportAllChanges);D((()=>{const i=o$9();i&&(r.value=Math.max(i.responseStart-s$5(),0),r.entries=[i],n(!0),t$4((()=>{r=r$6("TTFB",0),n=n$7(e,r,$$1,t.reportAllChanges),n(!0)})))}))};function getMetricStartTime(e){var t,r=(null===(t=e.entries[0])||void 0===t?void 0:t.startTime)||0;return performance.timeOrigin+r}function processMetric(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(getMetricStartTime(e)),navigationStart:Math.floor(performance.timeOrigin)}}var webVitalsPlugin=function(){var e=null,t=getGlobalScope(),r=null==t?void 0:t.document,n=null==t?void 0:t.location;return{name:PLUGIN_NAME,type:"enrichment",setup:function(t,i){return __awaiter(void 0,void 0,void 0,(function(){var a,o;return __generator(this,(function(s){return void 0===r||(a=getDecodeURI((null==n?void 0:n.href)||"",t.loggerProvider),o={"[Amplitude] Page Domain":(null==n?void 0:n.hostname)||"","[Amplitude] Page Location":a,"[Amplitude] Page Path":getDecodeURI((null==n?void 0:n.pathname)||"",t.loggerProvider),"[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":getDecodeURI(a.split("?")[0],t.loggerProvider)},O((function(e){o["[Amplitude] LCP"]=processMetric(e)})),P$1((function(e){o["[Amplitude] FCP"]=processMetric(e)})),S$2((function(e){o["[Amplitude] INP"]=processMetric(e)})),E$1((function(e){o["[Amplitude] CLS"]=processMetric(e)})),H$1((function(e){o["[Amplitude] TTFB"]=processMetric(e)})),e=function(){"hidden"===r.visibilityState&&e&&(i.track(WEB_VITALS_EVENT_NAME,o),r.removeEventListener("visibilitychange",e),e=null)},r.addEventListener("visibilitychange",e)),[2]}))}))},execute:function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,e]}))}))},teardown:function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return e&&(null==r||r.removeEventListener("visibilitychange",e)),[2]}))}))}}},domainWithoutSubdomain=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},isDirectTraffic=function(e){return Object.values(e).every((function(e){return!e}))},isNewCampaign=function(e,t,r,n,i){void 0===i&&(i=!0),e.referrer;var a=e.referring_domain,o=__rest(e,["referrer","referring_domain"]),s=t||{};s.referrer;var l=s.referring_domain,c=__rest(s,["referrer","referring_domain"]);if(isExcludedReferrer(r.excludeReferrers,e.referring_domain))return n.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&isDirectTraffic(e)&&t)return n.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var d=JSON.stringify(o)!==JSON.stringify(c),u=domainWithoutSubdomain(a||"")!==domainWithoutSubdomain(l||""),p=!t||d||u;return p?n.debug("This is a new campaign. An $identify event will be sent."):n.debug("This is not a new campaign because it's the same as the previous one."),p},isExcludedReferrer=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some((function(e){return e instanceof RegExp?e.test(t):e===t}))},createCampaignEvent=function(e,t){var r=__assign$1(__assign$1({},BASE_CAMPAIGN),e),n=Object.entries(r).reduce((function(e,r){var n,i=__read$1(r,2),a=i[0],o=i[1];return e.setOnce("initial_".concat(a),null!==(n=null!=o?o:t.initialEmptyValue)&&void 0!==n?n:"EMPTY"),o?e.set(a,o):e.unset(a)}),new Identify);return createIdentifyEvent(n)},getDefaultExcludedReferrers=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},WebAttribution=function(){function e(e,t){var r;this.shouldTrackNewCampaign=!1,this.options=__assign$1({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:getDefaultExcludedReferrers(null===(r=t.cookieOptions)||void 0===r?void 0:r.domain)},e),this.storage=t.cookieStorage,this.storageKey=getStorageKey(t.apiKey,"MKTG"),this.webExpStorageKey=getStorageKey(t.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=BASE_CAMPAIGN,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:return t=__read$1.apply(void 0,[r.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||isNewSession(this.sessionTimeout,this.lastEventTime),isNewCampaign(this.currentCampaign,this.previousCampaign,this.options,this.logger,e)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))},e.prototype.fetchCampaign=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return(e=t.sent())?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:t.sent(),t.label=3;case 3:return[4,Promise.all([e||(new CampaignParser).parse(),this.storage.get(this.storageKey)])];case 4:return[2,t.sent()]}}))}))},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t=createCampaignEvent(this.currentCampaign,this.options);return e&&(t.event_id=e),t},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),CURRENT_PAGE_STORAGE_KEY="AMP_CURRENT_PAGE",PREVIOUS_PAGE_STORAGE_KEY="AMP_PREVIOUS_PAGE",URL_INFO_STORAGE_KEY="AMP_URL_INFO",PreviousPageType;!function(e){e.Direct="direct",e.Internal="internal",e.External="external"}(PreviousPageType||(PreviousPageType={}));var EXCLUDED_DEFAULT_EVENT_TYPES=new Set([SpecialEventType.IDENTIFY,SpecialEventType.GROUP_IDENTIFY,SpecialEventType.REVENUE]),pageUrlEnrichmentPlugin=function(e){var t={}.internalDomains,r=void 0===t?[]:t,n=getGlobalScope(),i=void 0,a=!1,o=void 0,s=!1,l=!1,c=function(e){var t="undefined"!=typeof location&&location.hostname||"",n=e?function(e){var t;try{var r=getDecodeURI(e,o);t=new URL(r).hostname}catch(e){null==o||o.error("Could not parse URL: ",e)}return t}(e):void 0;if(!n)return PreviousPageType.Direct;var i=r.some((function(e){return-1!==t.indexOf(e)})),a=r.some((function(e){return-1!==n.indexOf(e)}));return t===n||a&&i?PreviousPageType.Internal:PreviousPageType.External},d=function(){__awaiter(void 0,void 0,void 0,(function(){var e,t,r,n,o;return __generator(this,(function(s){switch(s.label){case 0:return i&&a?[4,i.get(URL_INFO_STORAGE_KEY)]:[3,3];case 1:return e=s.sent(),t=getDecodeURI("undefined"!=typeof location&&location.href||""),r=(null==e?void 0:e[CURRENT_PAGE_STORAGE_KEY])||"",n=void 0,n=t===r?(null==e?void 0:e[PREVIOUS_PAGE_STORAGE_KEY])||"":r||document.referrer||"",[4,i.set(URL_INFO_STORAGE_KEY,(o={},o[CURRENT_PAGE_STORAGE_KEY]=t,o[PREVIOUS_PAGE_STORAGE_KEY]=n,o))];case 2:s.sent(),s.label=3;case 3:return[2]}}))}))},u={name:"@amplitude/plugin-page-url-enrichment-browser",type:"enrichment",setup:function(e,t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return(o=e.loggerProvider).log("Installing @amplitude/plugin-page-url-enrichment-browser"),l=!0,n?[4,(i=new BrowserStorage(n.sessionStorage)).isEnabled()]:[3,2];case 1:a=t.sent(),n.addEventListener("popstate",d),s||(n.history.pushState=new Proxy(n.history.pushState,{apply:function(e,t,r){var n=__read$1(r,3),i=n[0],a=n[1],o=n[2];e.apply(t,[i,a,o]),l&&d()}}),n.history.replaceState=new Proxy(n.history.replaceState,{apply:function(e,t,r){var n=__read$1(r,3),i=n[0],a=n[1],o=n[2];e.apply(t,[i,a,o]),l&&d()}}),s=!0),t.label=2;case 2:return[2]}}))}))},execute:function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,r,n,o,s;return __generator(this,(function(l){switch(l.label){case 0:return t=getDecodeURI("undefined"!=typeof location&&location.href||""),i&&a?[4,i.get(URL_INFO_STORAGE_KEY)]:[3,5];case 1:return(null==(r=l.sent())?void 0:r[CURRENT_PAGE_STORAGE_KEY])?[3,3]:[4,i.set(URL_INFO_STORAGE_KEY,(s={},s[CURRENT_PAGE_STORAGE_KEY]=t,s[PREVIOUS_PAGE_STORAGE_KEY]=document.referrer||"",s))];case 2:l.sent(),l.label=3;case 3:return[4,i.get(URL_INFO_STORAGE_KEY)];case 4:if(n=l.sent(),o="",n&&(o=n[PREVIOUS_PAGE_STORAGE_KEY]||""),EXCLUDED_DEFAULT_EVENT_TYPES.has(e.event_type))return[2,e];e.event_properties=__assign$1(__assign$1({},e.event_properties||{}),{"[Amplitude] Page Domain":addIfNotExist(e,"[Amplitude] Page Domain","undefined"!=typeof location&&location.hostname||""),"[Amplitude] Page Location":addIfNotExist(e,"[Amplitude] Page Location",t),"[Amplitude] Page Path":addIfNotExist(e,"[Amplitude] Page Path","undefined"!=typeof location&&getDecodeURI(location.pathname)||""),"[Amplitude] Page Title":addIfNotExist(e,"[Amplitude] Page Title",getPageTitle(replaceSensitiveString)),"[Amplitude] Page URL":addIfNotExist(e,"[Amplitude] Page URL",t.split("?")[0]),"[Amplitude] Previous Page Location":o,"[Amplitude] Previous Page Type":c(o)}),l.label=5;case 5:return[2,e]}}))}))},teardown:function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return n&&(n.removeEventListener("popstate",d),l=!1),i&&a?[4,i.set(URL_INFO_STORAGE_KEY,{})]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}};return u};function addIfNotExist(e,t,r){return e.event_properties||(e.event_properties={}),void 0===e.event_properties[t]?r:e.event_properties[t]}var AmplitudeBrowser=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._diagnosticsSampleRate=0,t}return __extends(t,e),t.prototype.init=function(e,t,r){var n,i;return void 0===e&&(e=""),arguments.length>2?(n=t,i=r):"string"==typeof t?(n=t,i=void 0):(n=null==t?void 0:t.userId,i=t),returnWrapper(this._init(__assign$1(__assign$1({},i),{userId:n,apiKey:e})))},t.prototype._init=function(t){var r,n,i,a;return __awaiter(this,void 0,void 0,(function(){var o,s,l,c,d,u,p,h,f,m=this;return __generator(this,(function(g){switch(g.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,useBrowserConfig(t.apiKey,t,this)]);case 1:return o=g.sent(),o.remoteConfig&&o.remoteConfig.fetchRemoteConfig?(s=new RemoteConfigClient(o.apiKey,o.loggerProvider,o.serverZone,null===(r=o.remoteConfig)||void 0===r?void 0:r.serverUrl),[4,new Promise((function(e){null==s||s.subscribe("configs.analyticsSDK.browserSDK","all",(function(t,r,n){o.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:t,source:r,lastFetch:n},null,2)),t&&updateBrowserConfigWithRemoteConfig(t,o),e()}))}))]):[3,4];case 2:return g.sent(),[4,new Promise((function(e){null==s||s.subscribe("configs.diagnostics.browserSDK","all",(function(t,r,n){if(o.loggerProvider.debug("Diagnostics remote configuration received:",JSON.stringify({remoteConfig:t,source:r,lastFetch:n},null,2)),t){var i=t.sampleRate;"number"!=typeof i||isNaN(i)||(o.diagnosticsSampleRate=i);var a=t.enabled;"boolean"==typeof a&&(o.enableDiagnostics=a)}e()}))}))];case 3:g.sent(),g.label=4;case 4:return(l=new DiagnosticsClient(o.apiKey,o.loggerProvider,o.serverZone,{enabled:o.enableDiagnostics,sampleRate:o.diagnosticsSampleRate})).setTag("library","".concat(LIBPREFIX,"/").concat(VERSION$1)),l.setTag("user_agent",navigator.userAgent),[4,e.prototype._init.call(this,o)];case 5:return g.sent(),this.logBrowserOptions(o),this.config.diagnosticsClient=l,this.config.remoteConfigClient=s,isAttributionTrackingEnabled(this.config.defaultTracking)?(c=getAttributionTrackingConfig(this.config),this.webAttribution=new WebAttribution(c,this.config),[4,this.webAttribution.init()]):[3,7];case 6:g.sent(),g.label=7;case 7:return d=getQueryParams(),u=d.ampTimestamp?Number(d.ampTimestamp):void 0,p=!u||Date.now()<u,h=p&&!Number.isNaN(Number(d.ampSessionId))?Number(d.ampSessionId):void 0,this.setSessionId(null!==(a=null!==(i=null!==(n=t.sessionId)&&void 0!==n?n:h)&&void 0!==i?i:this.config.sessionId)&&void 0!==a?a:Date.now()),(f=getAnalyticsConnector(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===OfflineDisabled?[3,9]:[4,this.add(networkConnectivityCheckerPlugin()).promise];case 8:g.sent(),g.label=9;case 9:return[4,this.add(new Destination({diagnosticsClient:l})).promise];case 10:return g.sent(),[4,this.add(new Context).promise];case 11:return g.sent(),[4,this.add(new IdentityEventSender).promise];case 12:return g.sent(),detNotify(this.config),isFileDownloadTrackingEnabled(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(fileDownloadTracking()).promise]):[3,14];case 13:g.sent(),g.label=14;case 14:return isFormInteractionTrackingEnabled(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(formInteractionTracking()).promise]):[3,16];case 15:g.sent(),g.label=16;case 16:return isPageViewTrackingEnabled(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(pageViewTrackingPlugin(getPageViewTrackingConfig(this.config))).promise]):[3,18];case 17:g.sent(),g.label=18;case 18:return isElementInteractionsEnabled(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(autocapturePlugin(getElementInteractionsConfig(this.config),{diagnosticsClient:l})).promise]):[3,20];case 19:g.sent(),g.label=20;case 20:return isFrustrationInteractionsEnabled(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(frustrationPlugin(getFrustrationInteractionsConfig(this.config))).promise]):[3,22];case 21:g.sent(),g.label=22;case 22:return isNetworkTrackingEnabled(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(networkCapturePlugin(getNetworkTrackingConfig(this.config))).promise]):[3,24];case 23:g.sent(),g.label=24;case 24:return isWebVitalsEnabled(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(webVitalsPlugin()).promise]):[3,26];case 25:g.sent(),g.label=26;case 26:return isPageUrlEnrichmentEnabled(this.config.autocapture)?(this.config.loggerProvider.debug("Adding referrer page url plugin"),[4,this.add(pageUrlEnrichmentPlugin()).promise]):[3,28];case 27:g.sent(),g.label=28;case 28:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 29:return g.sent(),f.eventBridge.setEventReceiver((function(e){var t=e.eventProperties||{},r=t.time,n=__rest(t,["time"]),i="number"==typeof r?{time:r}:void 0;m.track(e.eventType,n,i)})),[2]}}))}))},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){this.config?(this.config.loggerProvider.debug("function setUserId: ",e),e===this.config.userId&&void 0!==e||(this.config.userId=e,this.timeline.onIdentityChanged({userId:e}),setConnectorUserId(e,this.config.instanceName))):this.q.push(this.setUserId.bind(this,e))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){this.config?(this.config.loggerProvider.debug("function setDeviceId: ",e),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),setConnectorDeviceId(e,this.config.instanceName))):this.q.push(this.setDeviceId.bind(this,e))},t.prototype.reset=function(){this.setDeviceId(UUID()),this.setUserId(void 0),this.timeline.onReset()},t.prototype.getIdentity=function(){var e,t;return{deviceId:null===(e=this.config)||void 0===e?void 0:e.deviceId,userId:null===(t=this.config)||void 0===t?void 0:t.userId,userProperties:this.userProperties}},t.prototype.getOptOut=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.optOut},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,r=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),returnWrapper(Promise.resolve());if(e===this.config.sessionId)return returnWrapper(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var n=this.getSessionId();n!==e&&this.timeline.onSessionIdChanged(e);var i=this.config.lastEventTime,a=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,isSessionTrackingEnabled(this.config.defaultTracking)&&(n&&i&&r.push(this.track(DEFAULT_SESSION_END_EVENT,void 0,{device_id:this.previousSessionDeviceId,event_id:++a,session_id:n,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var o=this.trackCampaignEventIfNeeded(++a,r);return this.config.identify&&r.push(this.track(createIdentifyEvent(this.config.identify)).promise),isSessionTrackingEnabled(this.config.defaultTracking)&&r.push(this.track(DEFAULT_SESSION_START_EVENT,void 0,{event_id:o?++a:a,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,returnWrapper(Promise.all(r))},t.prototype.extendSession=function(){this.config?this.config.lastEventTime=Date.now():this.q.push(this.extendSession.bind(this))},t.prototype.setTransport=function(e){this.config?this.config.transportProvider=createTransport(e):this.q.push(this.setTransport.bind(this,e))},t.prototype.identify=function(t,r){if(isInstanceProxy(t)){var n=t._q;t._q=[],t=convertProxyObjectToRealObject(new Identify,n)}return(null==r?void 0:r.user_id)&&this.setUserId(r.user_id),(null==r?void 0:r.device_id)&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,t,r)},t.prototype.groupIdentify=function(t,r,n,i){if(isInstanceProxy(n)){var a=n._q;n._q=[],n=convertProxyObjectToRealObject(new Identify,a)}return e.prototype.groupIdentify.call(this,t,r,n,i)},t.prototype.revenue=function(t,r){if(isInstanceProxy(t)){var n=t._q;t._q=[],t=convertProxyObjectToRealObject(new Revenue,n)}return e.prototype.revenue.call(this,t,r)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var r=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(r).promise):this.track(r),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(a){return r=Date.now(),n=isNewSession(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===DEFAULT_SESSION_START_EVENT||t.event_type===DEFAULT_SESSION_END_EVENT||t.session_id&&t.session_id!==this.getSessionId()||(n||i?(this.setSessionId(r),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):n||this.trackCampaignEventIfNeeded()),t.event_type===SpecialEventType.IDENTIFY&&t.user_properties&&(this.userProperties=this.getOperationAppliedUserProperties(t.user_properties)),[2,e.prototype.process.call(this,t)]}))}))},t.prototype.logBrowserOptions=function(e){try{var t=__assign$1(__assign$1({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t.prototype._setDiagnosticsSampleRate=function(e){e>1||e<0||this.config||(this._diagnosticsSampleRate=e)},t}(AmplitudeCore),createInstance=function(){var e=new AmplitudeBrowser;return{init:debugWrapper(e.init.bind(e),"init",getClientLogConfig(e),getClientStates(e,["config"])),add:debugWrapper(e.add.bind(e),"add",getClientLogConfig(e),getClientStates(e,["config.apiKey","timeline.plugins"])),remove:debugWrapper(e.remove.bind(e),"remove",getClientLogConfig(e),getClientStates(e,["config.apiKey","timeline.plugins"])),track:debugWrapper(e.track.bind(e),"track",getClientLogConfig(e),getClientStates(e,["config.apiKey","timeline.queue.length"])),logEvent:debugWrapper(e.logEvent.bind(e),"logEvent",getClientLogConfig(e),getClientStates(e,["config.apiKey","timeline.queue.length"])),identify:debugWrapper(e.identify.bind(e),"identify",getClientLogConfig(e),getClientStates(e,["config.apiKey","timeline.queue.length"])),groupIdentify:debugWrapper(e.groupIdentify.bind(e),"groupIdentify",getClientLogConfig(e),getClientStates(e,["config.apiKey","timeline.queue.length"])),setGroup:debugWrapper(e.setGroup.bind(e),"setGroup",getClientLogConfig(e),getClientStates(e,["config.apiKey","timeline.queue.length"])),revenue:debugWrapper(e.revenue.bind(e),"revenue",getClientLogConfig(e),getClientStates(e,["config.apiKey","timeline.queue.length"])),flush:debugWrapper(e.flush.bind(e),"flush",getClientLogConfig(e),getClientStates(e,["config.apiKey","timeline.queue.length"])),getUserId:debugWrapper(e.getUserId.bind(e),"getUserId",getClientLogConfig(e),getClientStates(e,["config","config.userId"])),setUserId:debugWrapper(e.setUserId.bind(e),"setUserId",getClientLogConfig(e),getClientStates(e,["config","config.userId"])),getDeviceId:debugWrapper(e.getDeviceId.bind(e),"getDeviceId",getClientLogConfig(e),getClientStates(e,["config","config.deviceId"])),setDeviceId:debugWrapper(e.setDeviceId.bind(e),"setDeviceId",getClientLogConfig(e),getClientStates(e,["config","config.deviceId"])),reset:debugWrapper(e.reset.bind(e),"reset",getClientLogConfig(e),getClientStates(e,["config","config.userId","config.deviceId"])),getSessionId:debugWrapper(e.getSessionId.bind(e),"getSessionId",getClientLogConfig(e),getClientStates(e,["config"])),setSessionId:debugWrapper(e.setSessionId.bind(e),"setSessionId",getClientLogConfig(e),getClientStates(e,["config"])),extendSession:debugWrapper(e.extendSession.bind(e),"extendSession",getClientLogConfig(e),getClientStates(e,["config"])),setOptOut:debugWrapper(e.setOptOut.bind(e),"setOptOut",getClientLogConfig(e),getClientStates(e,["config"])),setTransport:debugWrapper(e.setTransport.bind(e),"setTransport",getClientLogConfig(e),getClientStates(e,["config"])),getIdentity:debugWrapper(e.getIdentity.bind(e),"getIdentity",getClientLogConfig(e),getClientStates(e,["config"])),getOptOut:debugWrapper(e.getOptOut.bind(e),"getOptOut",getClientLogConfig(e),getClientStates(e,["config"])),_setDiagnosticsSampleRate:debugWrapper(e._setDiagnosticsSampleRate.bind(e),"_setDiagnosticsSampleRate",getClientLogConfig(e),getClientStates(e,["config"]))}},client=createInstance(),types=Object.freeze({__proto__:null,DEFAULT_ACTION_CLICK_ALLOWLIST:DEFAULT_ACTION_CLICK_ALLOWLIST,DEFAULT_CSS_SELECTOR_ALLOWLIST:DEFAULT_CSS_SELECTOR_ALLOWLIST,DEFAULT_DATA_ATTRIBUTE_PREFIX:DEFAULT_DATA_ATTRIBUTE_PREFIX,get IdentifyOperation(){return IdentifyOperation$1},get LogLevel(){return LogLevel},OfflineDisabled:OfflineDisabled,get RevenueProperty(){return RevenueProperty},get ServerZone(){return ServerZone},get SpecialEventType(){return SpecialEventType}}),add=client.add,extendSession=client.extendSession,flush=client.flush,getDeviceId=client.getDeviceId,getIdentity=client.getIdentity,getOptOut=client.getOptOut,getSessionId=client.getSessionId,getUserId=client.getUserId,groupIdentify=client.groupIdentify,identify=client.identify,init=client.init,logEvent=client.logEvent,remove=client.remove,reset$1=client.reset,revenue=client.revenue,setDeviceId=client.setDeviceId,setGroup=client.setGroup,setOptOut=client.setOptOut,setSessionId=client.setSessionId,setTransport=client.setTransport,setUserId=client.setUserId,track=client.track,_setDiagnosticsSampleRate=client._setDiagnosticsSampleRate,amplitude=Object.freeze({__proto__:null,AmplitudeBrowser:AmplitudeBrowser,Identify:Identify,Revenue:Revenue,Types:types,_setDiagnosticsSampleRate:_setDiagnosticsSampleRate,add:add,createInstance:createInstance,extendSession:extendSession,flush:flush,getDeviceId:getDeviceId,getIdentity:getIdentity,getOptOut:getOptOut,getSessionId:getSessionId,getUserId:getUserId,groupIdentify:groupIdentify,identify:identify,init:init,logEvent:logEvent,remove:remove,reset:reset$1,revenue:revenue,runQueuedFunctions:runQueuedFunctions,setDeviceId:setDeviceId,setGroup:setGroup,setOptOut:setOptOut,setSessionId:setSessionId,setTransport:setTransport,setUserId:setUserId,track:track});function isRunningInBrowser(){return"undefined"!=typeof window&&"undefined"!=typeof document}function isRunningInServer(){return!isRunningInBrowser()}class AmplitudeManager{constructor(){this.isInitialized=!1}static getInstance(){return AmplitudeManager.instance||(AmplitudeManager.instance=new AmplitudeManager),AmplitudeManager.instance}initialize(){if(this.isInitialized||isRunningInServer())return;const e=environmentManager.getEnvironment()||"production",t=e===ENVIRONMENTS.PRODUCTION?"52c120d2f5c89ca646fae6649a1ce7ad":"373aa80c38e5bc2a55895a96c8447fef";if(t)try{if(!amplitude||"function"!=typeof init)throw new Error("Analytics SDK module not available");const r={defaultTracking:{sessions:!1,pageViews:!1,formInteractions:!1,fileDownloads:!1},logLevel:e!==ENVIRONMENTS.PRODUCTION?LogLevel.Debug:LogLevel.None};init(t,void 0,r),this.isInitialized=!0,this.track(ANALYTICS_EVENTS.SDK_INITIALIZED)}catch(e){console.error("Failed to initialize analytics tracking:",e)}else info("No tracking client will be initialized due to missing API key")}isEnabled(){return this.isInitialized}track(e,t){if(this.isInitialized)try{track(e,t)}catch(e){console.error("Failed to track analytics event:",e)}}reset(){if(this.isInitialized)try{reset$1()}catch(e){console.error("Failed to reset analytics:",e)}}}const amplitudeManager=AmplitudeManager.getInstance();function initialize$2(){amplitudeManager.initialize()}function reset(){amplitudeManager.reset()}function trackEvent(e,t){amplitudeManager.track(e,t)}const tracker={cardsList:e=>{trackEvent(ANALYTICS_EVENTS.CARDS_LIST,e)},cardsOrderVirtual:e=>{trackEvent(ANALYTICS_EVENTS.CARDS_ORDER_VIRTUAL,e)},cardsOrderPhysical:e=>{trackEvent(ANALYTICS_EVENTS.CARDS_ORDER_PHYSICAL,e)},beneficiariesList:e=>{trackEvent(ANALYTICS_EVENTS.BENEFICIARIES_LIST,e)},sepaTransferCreate:e=>{trackEvent(ANALYTICS_EVENTS.SEPA_TRANSFER_CREATE,e)},sepaTransferBulkCreate:e=>{trackEvent(ANALYTICS_EVENTS.SEPA_TRANSFER_BULK_CREATE,e)},transactionsList:e=>{trackEvent(ANALYTICS_EVENTS.TRANSACTIONS_LIST,e)},organizationsList:e=>{trackEvent(ANALYTICS_EVENTS.ORGANIZATIONS_LIST,e)},paymentLinksCreate:e=>{trackEvent(ANALYTICS_EVENTS.PAYMENT_LINKS_CREATE,e)},authLinksRequest:e=>{trackEvent(ANALYTICS_EVENTS.AUTH_LINKS_REQUEST,e)},uiElementCreated:(e,t)=>{trackEvent(ANALYTICS_EVENTS.UI_ELEMENT_CREATED,{uiElementType:e,...t})}};function initialize$1(e){const{accessToken:t,stagingToken:r,operationSettings:n,environment:i,branch:a,locale:o}=validateInitializeParams(e);t&&authManager.setAccessToken(t),r&&authManager.setStagingToken(r),o&&localeManager.setLocale(o),n&&operationSettingsManager.setSettings(n),i&&(environmentManager.setEnvironment(i),a&&environmentManager.setBranch(a)),sentryManager.initialize(),initialize$2(),info("SDK initialized successfully",{environment:i,locale:o,debugMode:n?.debugMode})}function logout$1(){authManager.clearAccessToken(),authManager.clearStagingToken(),localeManager.setDefaultLocale(),operationSettingsManager.clearSettings(),reset()}const common={initialize:initialize$1,logout:logout$1,constants:constants$1},{initialize:initialize,logout:logout,constants:constants}=common;class EmbedOperationError extends QontoEmbedSdkError{constructor(e){super(),this.name="EmbedOperationError",this.message=e}}class EmbedApiError extends QontoEmbedSdkError{constructor({message:e,data:t,code:r}){super(),this.code=500;const n=Array.isArray(e)?e.join("\n"):e;this.name="EmbedApiError",this.message=`The call to the Embed API failed with the following errors:\n${n}`,this.data=t||{},this.code=r||this.code}}function base64Encode(e){return isRunningInServer()?Buffer.from(e).toString("base64"):btoa(e)}function base64Decode(e){return isRunningInServer()?Buffer.from(e,"base64").toString("utf-8"):atob(e)}function buildRequestHeaders({accessToken:e,stagingToken:t,idempotencyKey:r,mfaPreference:n,scaSessionToken:i}){const a=new Headers;a.append("Authorization",`Bearer ${e}`);const o=t||authManager.getStagingToken();o&&a.append("X-Qonto-Staging-Token",o),r&&a.append("X-Qonto-Idempotency-Key",r);const s=n||operationSettingsManager.getMFAPreference();return s&&a.append("X-Qonto-2fa-Preference",s),i&&a.append("X-Qonto-SCA-Session-Token",i),a.append("Content-Type","application/json"),a.append("Accept-Language",localeManager.getLocale()),a}async function makeNetworkCall({path:e,options:t}){const r=`${environmentManager.getEnvironmentUrls().THIRD_PARTY_API_URL}${e}`,n=await fetch(r,{...t,headers:buildRequestHeaders(t.headers),body:t.body?JSON.stringify(t.body):void 0});if(204===n.status)return;const i=await n.json();if(!n.ok)throw i.errors?new EmbedApiError({code:n.status,message:i.errors.map((e=>`${e.code}: ${e.detail}`))}):new EmbedApiError({code:n.status,message:`${i.code}: ${i.detail}`,data:i});return i}function encodeNetworkCall(e){const t={method:e.options.method,headers:e.options.headers,path:e.path,payload:e.options?.body};return base64Encode(JSON.stringify(t))}function decodeNetworkResponse(e){return JSON.parse(base64Decode(e))}function getUIParentElement(e){let t=null;if(t="function"==typeof e?e():document.getElementById(e),!(t&&t instanceof HTMLElement))throw new EmbedOperationError(`Could not install the UI Element because the parent element with id ${e} was not found.\nPlease make sure to pass a valid parentElementId or ensure the parentElementId function returns a valid element.`);return t}async function callProxyFunction({proxyFunction:e,networkCallDescriptor:t,proxyEndpointDescriptor:r}){if(r){const e={...Object.fromEntries([...buildRequestHeaders(t.options?.headers)??{}])},n=encodeNetworkCall({...t,options:{...t.options,headers:e}}),i=await fetch(r.path,{method:r.method,headers:r.options.headers,body:n}),a=decodeNetworkResponse(await i.text());if(!i.ok)throw new EmbedApiError({code:i.status,data:a,message:`Error from proxy endpoint: ${i.status} ${i.statusText}`});return a}if(e){const r=Object.fromEntries([...buildRequestHeaders(t.options?.headers)??{}]),n=encodeNetworkCall({...t,options:{...t.options,headers:r}});return decodeNetworkResponse(await e(n))}throw new EmbedOperationError("No proxy function or proxy endpoint descriptor provided for proxy call.")}function prepareAuthLinkRequest({accessToken:e,stagingToken:t,action:r,callbackUrl:n}){const i={post_authn_action:r};return n&&(i.callback_url=n),{path:"/v1/embed_auth_links",options:{method:"POST",headers:{accessToken:e,stagingToken:t},body:{embed_auth_link:i}}}}async function requestAuthLink(e){const t=prepareAuthLinkRequest({accessToken:e.accessToken,stagingToken:e.stagingToken,action:e.action,callbackUrl:e.callbackUrl}),{embed_auth_link:r}=await makeNetworkCall(t);return{url:r.url,post_authn_action:r.post_authn_action,callback_url:r.callback_url,expired_at:r.expired_at,used_at:r.used_at}}function prepareGetCardsCall({membershipId:e,accessToken:t,stagingToken:r}){return{path:e?`/v2/cards?holder_ids[]=${e}`:"/v2/cards",options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}async function getCards$1({membershipId:e,accessToken:t,stagingToken:r}){const n=prepareGetCardsCall({membershipId:e,accessToken:t,stagingToken:r}),{cards:i}=await makeNetworkCall(n);return i}function prepareGetCardCall({cardId:e,accessToken:t,stagingToken:r}){return{path:`/v2/cards?ids[]=${e}`,options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}async function getCard$1({cardId:e,accessToken:t,stagingToken:r}){const n=prepareGetCardCall({cardId:e,accessToken:t,stagingToken:r}),{cards:i}=await makeNetworkCall(n);return i[0]}function prepareGetCardIframeUrl({accessToken:e,stagingToken:t}){return prepareAuthLinkRequest({accessToken:e,stagingToken:t,action:AUTH_LINK_ACTIONS.CARD_DISPLAY})}async function getCardIframeURL(e){const t=prepareGetCardIframeUrl(e),{embed_auth_link:r}=await makeNetworkCall(t);return r}var CardStatus;!function(e){e.PENDING="pending",e.ONHOLD="onhold",e.ORDER_CANCELED="order_canceled",e.LIVE="live",e.PAUSED="paused",e.STOLEN="stolen",e.LOST="lost",e.PIN_BLOCKED="pin_blocked",e.DELETED="deleted",e.PRE_EXPIRED="pre_expired",e.EXPIRED="expired",e.DISCARDED="discarded",e.SHIPPED_LOST="shipped_lost",e.ABUSIVE="abusive"}(CardStatus||(CardStatus={}));const CardCategories={TRANSPORT:"transport",RESTAURANT_AND_BAR:"restaurant_and_bar",FOOD_AND_GROCERY:"food_and_grocery",IT_AND_ELECTRONICS:"it_and_electronics",UTILITY:"utility",TAX:"tax",LEGAL_AND_ACCOUNTING:"legal_and_accounting",ATM:"atm",OFFICE_SUPPLY:"office_supply",HARDWARE_AND_EQUIPMENT:"hardware_and_equipment",FINANCE:"finance"};var VirtualCardLevel,PhysicalCardLevel;function validatePresenceOfRequiredParams(e,t){const r=t.filter((t=>t.requiredIfPresent?!e[t.name]&&e[t.requiredIfPresent]:void 0===e[t.name])).map((e=>e.name));if(r.length>0)throw new InvalidParametersError(r.map((e=>`Missing required parameter: ${e}`)))}function validateExpectedStringValues(e){return Object.entries(e).filter((([,e])=>void 0!==e)).filter((([,e])=>"string"!=typeof e)).map((([e])=>`${e} must be a string`))}function validateExpectedBooleanValues(e){return Object.entries(e).filter((([,e])=>void 0!==e&&!1!==e&&!0!==e)).map((([e])=>`${e} must be a boolean`))}function validateExpectedNumericValues(e){return Object.entries(e).filter((([,e])=>void 0!==e)).filter((([,e])=>"number"!=typeof e)).map((([e])=>`${e} must be a number`))}!function(e){e.VIRTUAL="virtual"}(VirtualCardLevel||(VirtualCardLevel={})),function(e){e.METAL="metal",e.PLUS="plus",e.STANDARD="standard"}(PhysicalCardLevel||(PhysicalCardLevel={}));const requiredVirtualCardOrderParams=[{name:"organizationId"},{name:"membershipId"},{name:"bankAccountId"},{name:"monthlyLimit"},{name:"cardLevel"}],requiredPhysicalCardOrderParams=[...requiredVirtualCardOrderParams,{name:"atmDailyLimit",requiredIfPresent:"hasAtmDailyLimit"},{name:"hasAtmDailyLimit",requiredIfPresent:"hasAtmOption"},{name:"atmMonthlyLimit",requiredIfPresent:"hasAtmOption"},{name:"shipToBusiness"},{name:"cardLevel"}];function validateOrderCardParams(e){if(!e)throw new InvalidParametersError("cardSettings parameter is required for the called function");return"virtual"===e.cardLevel?validateOrderVirtualCardParams(e):validateOrderPhysicalCardParams(e)}function validateUnlockCardParams(e){if(!e)throw new InvalidParametersError("cardSettings parameter is required for the called function");if(!e.cardId)throw new InvalidParametersError("cardId is required for the called function");const t=validateExpectedStringValues({cardId:e.cardId});if(t.length>0)throw new InvalidParametersError(t)}function validateOrderVirtualCardParams(e){return validatePresenceOfRequiredParams(e,requiredVirtualCardOrderParams),validateOrderVirtualCardParamsType(e),e}function validateOrderVirtualCardParamsType(e){const{membershipId:t,organizationId:r,bankAccountId:n,hasDailyLimit:i,hasTransactionLimit:a,monthlyLimit:o,dailyLimit:s,transactionLimit:l,activeDays:c,categories:d,cardLevel:u}=e,p=[...validateVirtualCardLevel(u),...validateExpectedStringValues({membershipId:t,organizationId:r,bankAccountId:n}),...validateExpectedBooleanValues({hasDailyLimit:i,hasTransactionLimit:a}),...validateExpectedNumericValues({monthlyLimit:o,dailyLimit:s,transactionLimit:l}),...validateActiveDays(c),...validateCategories(d)];if(p.length>0)throw new InvalidParametersError(p)}function validateOrderPhysicalCardParams(e){validatePresenceOfRequiredParams(e,requiredPhysicalCardOrderParams),validateOrderPhysicalCardParamsType(e)}function validateOrderPhysicalCardParamsType(e){const{membershipId:t,organizationId:r,bankAccountId:n,hasDailyLimit:i,hasTransactionLimit:a,monthlyLimit:o,dailyLimit:s,transactionLimit:l,activeDays:c,categories:d,cardLevel:u,hasNfcOption:p,hasForeignPaymentOption:h,hasOnlinePaymentOption:f,shipToBusiness:m,hasAtmOption:g,hasAtmDailyLimit:y,atmDailyLimit:v,atmMonthlyLimit:b,address:E,cardDesign:_,typeOfPrint:S}=e,x=validatePhysicalCardLevel(u),T=validateTypeOfPrint(S),k=[...x,...validateExpectedStringValues({membershipId:t,organizationId:r,bankAccountId:n}),...validateExpectedBooleanValues({hasDailyLimit:i,hasTransactionLimit:a,hasAtmOption:g,hasNfcOption:p,hasForeignPaymentOption:h,hasOnlinePaymentOption:f,hasAtmDailyLimit:y,shipToBusiness:m}),...validateExpectedNumericValues({monthlyLimit:o,dailyLimit:s,transactionLimit:l,atmDailyLimit:v,atmMonthlyLimit:b}),...validateActiveDays(c),...validateCategories(d),...T,...validateCardDesign(_),...validateAddress(E,m)];if(k.length>0)throw new InvalidParametersError(k)}function validateActiveDays(e){const t=!Array.isArray(e)||!e.every((e=>Number.isInteger(e)&&e>0&&e<8));return void 0!==e&&t?["activeDays must be an array of integers between 1 and 7"]:[]}function validateCategories(e){const t=!Array.isArray(e)||e.some((e=>"string"!=typeof e));return void 0!==e&&t?["categories must be an array of strings"]:[]}function validateCardDesign(e){return["undefined","string"].includes(typeof e)?[]:["cardDesign must be a string"]}function validateTypeOfPrint(e){const t=null!=e&&"string"!=typeof e,r=!["print","embossed",void 0,null].includes(e);return t||r?['typeOfPrint must be one of "print", "embossed" or null']:[]}function validatePhysicalCardLevel(e){return Object.values(PhysicalCardLevel).includes(e)?[]:['cardLevel must be one of "standard", "plus", "metal"']}function validateVirtualCardLevel(e){return"virtual"!==e?['cardLevel must be "virtual"']:[]}function validateAddress(e,t){return t||!e||e.contactName&&e.firstLine&&e.zipCode&&e.city&&e.country?[]:["address must contain at least contactName, firstLine, zipCode, city and country properties"]}function validateDisplayCardParams(e){if(!e)throw new InvalidParametersError("cardSettings parameter is required for the called function");if(!e.cardId)throw new InvalidParametersError("cardId is required for the called function");const t=validateExpectedStringValues({cardId:e.cardId});if(t.length>0)throw new InvalidParametersError(t);let r={};void 0!==e.allowPinReveal&&(r={allowPinReveal:e.allowPinReveal}),void 0!==e.allowBlocking&&(r={...r,allowBlocking:e.allowBlocking});const n=validateExpectedBooleanValues(r);if(n.length>0)throw new InvalidParametersError(n);return e}function validateGetCardParams(e){if(!e)throw new InvalidParametersError("cardSettings parameter is required for the called function");if(!e.cardId)throw new InvalidParametersError("cardId parameter is required for the called function");const t=validateExpectedStringValues({cardId:e.cardId});if(t.length>0)throw new InvalidParametersError(t);return e}const byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,t=0){return(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var native={randomUUID:randomUUID};function v4(e,t,r){if(native.randomUUID&&!e)return native.randomUUID();const n=(e=e||{}).random??e.rng?.()??rng();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,unsafeStringify(n)}function buildIframeMessage({actionId:e,actionData:t}){const r=operationSettingsManager.getMFAPreference();return{actionId:e,actionData:{...t,scaPreference:t.scaPreference||r,idempotencyKey:t.idempotencyKey||v4()}}}class EmbedIframe{constructor(e){this.options=e,this.iframe=null,this.parentElement=null,this.messageListeners=new Map,this.defaultTimeout=3e4;const t=new URL(e.iframeUrl);this.targetOrigin=`${t.protocol}//${t.host}`}async initialize(){if(this.iframe)return this;if(this.parentElement=getUIParentElement(this.options.parentElementId),!this.parentElement)throw new EmbedOperationError(`Could not install the authentication UI because the parent element with id ${this.options.parentElementId} was not found.\nPlease make sure to pass a valid parentElementId when calling the method.`);return new Promise(((e,t)=>{this.iframe=document.createElement("iframe"),this.iframe.src=this.options.iframeUrl,this.iframe.style.width="100%",this.iframe.style.height="100%",this.iframe.style.border="none";const r=this.options.timeout||this.defaultTimeout,n=setTimeout((()=>{window.removeEventListener("message",i),t(new EmbedOperationError(`Could not install the authentication UI because the timeout of ${r}ms was reached.\nPlease make sure the application can reach the Internet.`))}),r),i=t=>{t.data.eventId===IFRAME_EVENTS.READY&&(clearTimeout(n),window.removeEventListener("message",i),e(this))};window.addEventListener("message",i),this.parentElement?.appendChild(this.iframe)}))}postMessage(e){if(!this.iframe||!this.iframe.contentWindow)return Promise.reject(new EmbedOperationError("Attempted to perform an Embed operation without having the authentication UI initialized."));const t=buildIframeMessage(e);return new Promise(((e,r)=>{const n=i=>{if(i.data?.actionId===t.actionId){if("error"===i.data.status)return this.removeMessageListener(t.actionId,n),r(new EmbedOperationError(`An error occurred when performing the action ${t.actionId}.\n${JSON.stringify(i.data.payload)}`));this.removeMessageListener(t.actionId,n),e(i.data.payload)}};this.addMessageListener(t.actionId,n),this.iframe?.contentWindow?.postMessage(t,this.targetOrigin)}))}addMessageListener(e,t){this.messageListeners.has(e)||this.messageListeners.set(e,[]);this.messageListeners.get(e).push(t),window.addEventListener("message",t)}removeMessageListener(e,t){const r=this.messageListeners.get(e);if(r){const e=r.indexOf(t);-1!==e&&(r.splice(e,1),window.removeEventListener("message",t))}}destroy(){this.messageListeners.forEach((e=>{e.forEach((e=>{window.removeEventListener("message",e)}))})),this.messageListeners.clear(),this.iframe&&this.parentElement&&(this.parentElement.removeChild(this.iframe),this.iframe=null)}}function buildIframeUrl({accessToken:e,stagingToken:t,locale:r,debugMode:n}){const i=n||!1,a=r||localeManager.getLocale(),o=environmentManager.getEnvironmentUrls().EMBED_URL,s=t?`;staging_token=${encodeURIComponent(t)}`:"";return`${o}?debug=${i}&lang=${encodeURIComponent(a)}#access_token=${encodeURIComponent(e)}${s}`}function createIframe({parentElementId:e,iframeUrl:t}){return new EmbedIframe({parentElementId:e,iframeUrl:t}).initialize()}function serializeOrderCardPayload(e){return"virtual"===e.cardLevel?serializeOrderVirtualCardPayload(e):serializeOrderPhysicalCardPayload(e)}function serializeOrderVirtualCardPayload(e){const t=filterValidCategories(e.categories);return{actionId:ACTIONS.CARD_ORDER,actionData:{idempotencyKey:v4(),body:{card:{payment_monthly_limit:e.monthlyLimit,payment_daily_limit:e.dailyLimit,payment_daily_limit_option:e.hasDailyLimit,payment_transaction_limit:e.transactionLimit,payment_transaction_limit_option:e.hasTransactionLimit,active_days:e.activeDays||[],holder_id:e.membershipId,organization_id:e.organizationId,bank_account_id:e.bankAccountId,categories:t,card_level:e.cardLevel}}}}}function serializeOrderPhysicalCardPayload(e){const t=filterValidCategories(e.categories);return{actionId:ACTIONS.CARD_ORDER,actionData:{idempotencyKey:v4(),body:{card:{payment_monthly_limit:e.monthlyLimit,payment_daily_limit:e.dailyLimit,payment_daily_limit_option:e.hasDailyLimit,payment_transaction_limit:e.transactionLimit,payment_transaction_limit_option:e.hasTransactionLimit,active_days:e.activeDays||[],holder_id:e.membershipId,organization_id:e.organizationId,bank_account_id:e.bankAccountId,categories:t,card_level:e.cardLevel,card_design:e.cardDesign,..."plus"===e.cardLevel&&{type_of_print:e.typeOfPrint},ship_to_business_address:e.shipToBusiness,atm_option:e.hasAtmOption,nfc_option:e.hasNfcOption,foreign_option:e.hasForeignPaymentOption,online_option:e.hasOnlinePaymentOption,atm_daily_limit:e.atmDailyLimit,atm_monthly_limit:e.atmMonthlyLimit,...!e.shipToBusiness&&{address:{contact_name:e.address?.contactName,first_line:e.address?.firstLine,second_line:e.address?.secondLine,third_line:e.address?.thirdLine,zipcode:e.address?.zipCode,city:e.address?.city,country:e.address?.country}}}}}}}function serializeCard(e){return{id:e.id,nickname:e.nickname,embossedName:e.embossed_name,status:e.status,maskPan:e.mask_pan,expMonth:parseInt(e.exp_month,10),expYear:parseInt(e.exp_year,10),lastActivityAt:new Date(e.last_activity_at),lastDigits:e.last_digits,shipToBusiness:e.ship_to_business,atmOption:e.atm_option,atmDailyLimitOption:e.atm_daily_limit_option,nfcOption:e.nfc_option,onlineOption:e.online_option,foreignOption:e.foreign_option,atmMonthlyLimit:e.atm_monthly_limit,atmMonthlySpent:e.atm_monthly_spent,atmDailyLimit:e.atm_daily_limit,atmDailySpent:e.atm_daily_spent,paymentMonthlyLimit:e.payment_monthly_limit,paymentMonthlySpent:e.payment_monthly_spent,paymentDailyLimit:e.payment_daily_limit,paymentDailySpent:e.payment_daily_spent,paymentDailyLimitOption:e.payment_daily_limit_option,paymentTransactionLimit:e.payment_transaction_limit,paymentTransactionLimitOption:e.payment_transaction_limit_option,activeDays:e.active_days,holderId:e.holder_id,bankAccountId:e.bank_account_id,organizationId:e.organization_id,updatedAt:new Date(e.updated_at),createdAt:new Date(e.created_at),shippedAt:new Date(e.shipped_at),cardType:e.card_type,cardLevel:e.card_level,paymentLifespanLimit:e.payment_lifespan_limit,paymentLifespanSpent:e.payment_lifespan_spent,preExpiresAt:new Date(e.pre_expires_at),categories:e.categories,renewed:e.renewed,renewal:e.renewal,...e.parent_card_summary&&{parentCardSummary:{id:e.parent_card_summary.id,lastDigits:e.parent_card_summary.last_digits}},hadOperation:e.had_operation,hadPinOperation:e.had_pin_operation,cardDesign:e.card_design,typeOfPrint:e.type_of_print,upsold:e.upsold,upsell:e.upsell,discardOn:new Date(e.discard_on),reordered:e.reordered}}function filterValidCategories(e){const t=Object.values(CardCategories);return(e||[]).filter((e=>t.includes(e)))}function serializeUnlockCardPayload(e){return{actionId:ACTIONS.CARD_UNLOCK,actionData:{body:{cardId:e.cardSettings.cardId}}}}const CUSTOM_PROP_PREFIX="--qonto-embed";function isSameDomain(e){return!e.href||e.href.startsWith(window.location.origin)}function isStyleRule(e){return"CSSStyleRule"===e.constructor.name}function extractVariablesFromStylesheet(e,t){return[...e].filter(isSameDomain).reduce(((e,r)=>[...r.cssRules].filter(isStyleRule).reduce(((e,r)=>{if("style"in r){const n=[...r.style].map((e=>[e.trim(),r.style.getPropertyValue(e).trim()])).filter((([e])=>e.startsWith(t))).reduce(((e,[r,n])=>({...e,[r.replace(`${t}-`,"")]:n})),{});return{...e,...n}}return e}),e)),{})}function gatherQontoEmbedCssVariables(e=CUSTOM_PROP_PREFIX){return isRunningInBrowser()?extractVariablesFromStylesheet(document.styleSheets,e):{}}function getPopulatedIframeURL(e,t){const r=new URL(e);r.searchParams.set("cardId",t.cardId),"boolean"==typeof t.allowPinReveal&&r.searchParams.set("canSeePin",t.allowPinReveal.toString()),"boolean"==typeof t.allowBlocking&&r.searchParams.set("canBlock",t.allowBlocking.toString()),!0===t.debugMode&&r.searchParams.set("debug",t.debugMode.toString());const n=gatherQontoEmbedCssVariables(CUSTOM_PROP_PREFIX);return Object.keys(n).length>0&&r.searchParams.set("customization",JSON.stringify(n)),r.toString()}async function createEmbedUI({decorationParams:e,operationSettings:t,cardIframeUrl:r}){const{cardId:n,allowPinReveal:i,allowBlocking:a}=e,{uiParentElementId:o,debugMode:s}=t,l=getPopulatedIframeURL(r,{cardId:n,allowPinReveal:i,allowBlocking:a,debugMode:s}),c=await createIframe({iframeUrl:l,parentElementId:o});return{destroyEmbedUI:()=>{c.destroy()}}}async function getCards(e){try{const t=e?.cardSettings?.membershipId;if(t&&"string"!=typeof t)throw new InvalidParametersError("membershipId must be a string");const{proxyRequestFunction:r,stagingToken:n}=validateOperationSettingsParams(e?.operationSettings||{});let i;if(r){const e=prepareGetCardsCall({membershipId:t,stagingToken:n});i=(await callProxyFunction({proxyFunction:r,networkCallDescriptor:e})).body.cards.map((e=>serializeCard(e)))}else{const r=e?.operationSettings?.accessToken||validatePresenceOfAuthToken();i=(await getCards$1({membershipId:t,accessToken:r,stagingToken:n})).map((e=>serializeCard(e)))}return tracker.cardsList(),i}catch(e){return Promise.reject(e)}}async function getCard({cardSettings:e,operationSettings:t}){try{validateGetCardParams(e);const r=e.cardId,{proxyRequestFunction:n,stagingToken:i}=validateOperationSettingsParams(t||{});if(n){const e=prepareGetCardCall({cardId:r,stagingToken:i}),t=(await callProxyFunction({proxyFunction:n,networkCallDescriptor:e})).body.cards;if(Array.isArray(t)&&t.length>0)return serializeCard(t[0]);throw new InvalidParametersError("Unable to retrieve card data")}{const e=t?.accessToken||validatePresenceOfAuthToken();return serializeCard(await getCard$1({cardId:r,accessToken:e,stagingToken:i}))}}catch(e){return Promise.reject(e)}}async function orderCard(e){try{const t=validatePresenceOfAuthToken(),{uiParentElementId:r,debugMode:n}=validateOperationSettingsParams(e.operationSettings,{requiresUI:!0});validateOrderCardParams(e.cardSettings);const i="virtual"===e.cardSettings.cardLevel,a=buildIframeUrl({accessToken:t,stagingToken:authManager.getStagingToken()||void 0,debugMode:n}),o=await createIframe({iframeUrl:a,parentElementId:r}),s=serializeOrderCardPayload(e.cardSettings),l=await o.postMessage(s);return o.destroy(),i?tracker.cardsOrderVirtual():tracker.cardsOrderPhysical(),serializeCard(l)}catch(e){return Promise.reject(e)}}async function unlockCard(e){try{const t=validatePresenceOfAuthToken(),{uiParentElementId:r,debugMode:n}=validateOperationSettingsParams(e.operationSettings,{requiresUI:!0});validateUnlockCardParams(e.cardSettings);const i=buildIframeUrl({accessToken:t,stagingToken:authManager.getStagingToken()||void 0,debugMode:n}),a=await createIframe({iframeUrl:i,parentElementId:r}),o=serializeUnlockCardPayload(e),s=await a.postMessage(o);return a.destroy(),serializeCard(s)}catch(e){return Promise.reject(e)}}async function displayCard(e){try{const{uiParentElementId:t,accessToken:r,stagingToken:n,debugMode:i,mfaPreference:a,proxyRequestFunction:o}=validateOperationSettingsParams(e.operationSettings,{requiresUI:!0});if(validateDisplayCardParams(e.cardSettings),o){const r=prepareGetCardIframeUrl({stagingToken:n}),a=(await callProxyFunction({proxyFunction:o,networkCallDescriptor:r})).body.embed_auth_link;return createEmbedUI({decorationParams:e.cardSettings,operationSettings:{uiParentElementId:t,debugMode:i},cardIframeUrl:a.url})}{const o=r||validatePresenceOfAuthToken(),s=await getCardIframeURL({...e.cardSettings,accessToken:o,stagingToken:n});return createEmbedUI({decorationParams:e.cardSettings,operationSettings:{uiParentElementId:t,debugMode:i,mfaPreference:a},cardIframeUrl:s.url})}}catch(e){return Promise.reject(e)}}const cards$1={getCards:getCards,getCard:getCard,orderCard:orderCard,unlockCard:unlockCard,displayCard:displayCard},cards=cards$1;function buildPaginationParams(e){const t=new URLSearchParams;return e?.page&&t.append("page",e.page.toString()),e?.itemsPerPage&&t.append("per_page",e.itemsPerPage.toString()),t}function serializePaginationResponse(e){if(e)return{totalItems:e?.total_count,totalPages:e?.total_pages,currentPage:e?.current_page,itemsPerPage:e?.per_page,previousPage:e?.prev_page||null,nextPage:e?.next_page||null}}function serializeBeneficiary(e){return{id:e.id,name:e.name,email:e.email,activityTag:e.activity_tag,iban:e.iban,bic:e.bic,currency:e.currency,status:e.status,trusted:e.trusted,createdAt:new Date(e.created_at),updatedAt:new Date(e.updated_at)}}function serializeToNewBeneficiaryDataObject(e){return{name:e.name,...e.email&&{email:e.email},...e.activityTag&&{activity_tag:e.activityTag},iban:e.iban,...e.bic&&{bic:e.bic}}}const BENEFICIARIES_ENDPOINT="/v2/sepa/beneficiaries";function prepareGetBeneficiariesCall({paginationSettings:e,accessToken:t,stagingToken:r}){const n={method:"GET",headers:{accessToken:t,stagingToken:r}},i=buildPaginationParams(e),a=i.size?`?${i.toString()}`:"";return{path:`${BENEFICIARIES_ENDPOINT}${a}`,options:n}}async function getBeneficiaries$1({paginationSettings:e,accessToken:t,stagingToken:r}){const n=prepareGetBeneficiariesCall({paginationSettings:e,accessToken:t,stagingToken:r}),{beneficiaries:i,meta:a}=await makeNetworkCall(n);return{beneficiaries:i,meta:a}}function prepareGetBeneficiaryCall({beneficiaryId:e,accessToken:t,stagingToken:r}){return{path:`${BENEFICIARIES_ENDPOINT}/${e}`,options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}async function getBeneficiary$1({accessToken:e,stagingToken:t,beneficiaryId:r}){const n=prepareGetBeneficiaryCall({beneficiaryId:r,accessToken:e,stagingToken:t}),{beneficiary:i}=await makeNetworkCall(n);return i}function prepareAddBeneficiaryCall({beneficiary:e,accessToken:t,stagingToken:r,idempotencyKey:n=v4()}){return{path:BENEFICIARIES_ENDPOINT,options:{method:"POST",headers:{accessToken:t,stagingToken:r,idempotencyKey:n},body:{beneficiary:serializeToNewBeneficiaryDataObject(e)}}}}async function addBeneficiary$1({beneficiary:e,accessToken:t,stagingToken:r,idempotencyKey:n=v4()}){const i=prepareAddBeneficiaryCall({beneficiary:e,accessToken:t,stagingToken:r,idempotencyKey:n}),{beneficiary:a}=await makeNetworkCall(i);return a}function prepareUntrustBeneficiaryCall({beneficiaryIds:e,accessToken:t,stagingToken:r}){return{path:`${BENEFICIARIES_ENDPOINT}/untrust`,options:{method:"PATCH",headers:{accessToken:t,stagingToken:r},body:{ids:e}}}}async function untrustBeneficiaries$1({beneficiaryIds:e,accessToken:t,stagingToken:r}){const n=prepareUntrustBeneficiaryCall({beneficiaryIds:e,accessToken:t,stagingToken:r}),{beneficiaries:i}=await makeNetworkCall(n);return i}function prepareUpdateBeneficiaryCall({beneficiaryParamsBeingEdited:e,accessToken:t,stagingToken:r,idempotencyKey:n,mfaPreference:i}){const{name:a,email:o,activityTag:s}=e,l={method:"PATCH",headers:{accessToken:t,stagingToken:r,idempotencyKey:n,mfaPreference:i},body:{beneficiary:{name:a,email:o,activity_tag:s}}};return{path:`${BENEFICIARIES_ENDPOINT}/${e.id}`,options:l}}async function updateBeneficiary$1({beneficiaryParamsBeingEdited:e,accessToken:t,stagingToken:r,idempotencyKey:n,mfaPreference:i}){const a=prepareUpdateBeneficiaryCall({beneficiaryParamsBeingEdited:e,accessToken:t,stagingToken:r,idempotencyKey:n,mfaPreference:i}),{beneficiary:o}=await makeNetworkCall(a);return o}const requiredNewBeneficiaryParams=[{name:"name"},{name:"iban"}];function validateGetBeneficiaryParams(e){if(!e)throw new InvalidParametersError("beneficiaryId parameter is required for the called function");if(e&&"string"!=typeof e)throw new InvalidParametersError("beneficiaryId must be a string");return e}function validateAddBeneficiaryParams(e){if(!e)throw new InvalidParametersError("beneficiary parameter is required for the called function");if("object"!=typeof e)throw new InvalidParametersError("beneficiary must be an object");validatePresenceOfRequiredParams(e,requiredNewBeneficiaryParams);const t=validateExpectedStringValues({name:e.name,iban:e.iban,email:e.email,activityTag:e.activityTag,bic:e.bic});if(t.length>0)throw new InvalidParametersError(t);return e}function validateUpdateBeneficiaryParams(e){const{id:t,name:r,email:n,activityTag:i}=e||{};if(!t)throw new InvalidParametersError("Invalid parameters were passed to the function:\nA beneficiary ID is required for the called function");if(!r&&!n&&!i)throw new InvalidParametersError("Invalid parameters were passed to the function:\nAt least one of the following properties must be provided: name, email, activityTag");const a=validateExpectedStringValues({name:r,email:n,activityTag:i});if(a.length>0)throw new InvalidParametersError(a);return{id:t,name:r,email:n,activityTag:i}}function validateTrustBeneficiariesParams(e){if(!e)throw new InvalidParametersError("beneficiaryIds parameter is required for the called function");if(!Array.isArray(e)||!e.every((e=>"string"==typeof e)))throw new InvalidParametersError("beneficiaryIds must be an array of strings");return e}async function getBeneficiaries(e){const{stagingToken:t,proxyRequestFunction:r,accessToken:n,paginationSettings:i}=validateOperationSettingsParams(e?.operationSettings||{});if(r){const e=prepareGetBeneficiariesCall({paginationSettings:i}),t=await callProxyFunction({proxyFunction:r,networkCallDescriptor:e}),n=t.body.beneficiaries.map((e=>serializeBeneficiary(e))),a=serializePaginationResponse(t.body.meta);return{beneficiaries:n,...a?{meta:a}:{}}}{const e=n||validatePresenceOfAuthToken(),r=await getBeneficiaries$1({accessToken:e,stagingToken:t,paginationSettings:i}),a=r.beneficiaries.map((e=>serializeBeneficiary(e))),o=serializePaginationResponse(r.meta);return{beneficiaries:a,...o?{meta:o}:{}}}}async function getBeneficiary({beneficiarySettings:e,operationSettings:t}){const r=validateGetBeneficiaryParams(e?.beneficiaryId),{proxyRequestFunction:n,accessToken:i,stagingToken:a}=validateOperationSettingsParams(t||{});if(n){const e=prepareGetBeneficiaryCall({beneficiaryId:r});return serializeBeneficiary((await callProxyFunction({proxyFunction:n,networkCallDescriptor:e})).body.beneficiary)}{const e=i||validatePresenceOfAuthToken();return serializeBeneficiary(await getBeneficiary$1({beneficiaryId:r,accessToken:e,stagingToken:a}))}}async function addBeneficiary({beneficiarySettings:e,operationSettings:t}){const r=validateAddBeneficiaryParams(e),{proxyRequestFunction:n,accessToken:i,stagingToken:a,idempotencyKey:o}=validateOperationSettingsParams(t||{});if(n){const e=prepareAddBeneficiaryCall({beneficiary:r,idempotencyKey:o});return serializeBeneficiary((await callProxyFunction({proxyFunction:n,networkCallDescriptor:e})).body.beneficiary)}{const e=i||validatePresenceOfAuthToken();return serializeBeneficiary(await addBeneficiary$1({beneficiary:r,accessToken:e,stagingToken:a,idempotencyKey:o}))}}async function updateBeneficiary({beneficiarySettings:e,operationSettings:t}){const r=validateUpdateBeneficiaryParams(e),{stagingToken:n,idempotencyKey:i,mfaPreference:a,proxyRequestFunction:o}=validateOperationSettingsParams(t),s={beneficiaryParamsBeingEdited:r,idempotencyKey:i,mfaPreference:a};if(o){const e=prepareUpdateBeneficiaryCall(s);return serializeBeneficiary((await callProxyFunction({proxyFunction:o,networkCallDescriptor:e})).body.beneficiary)}{const e=t?.accessToken||validatePresenceOfAuthToken();return serializeBeneficiary(await updateBeneficiary$1({...s,accessToken:e,stagingToken:n}))}}async function untrustBeneficiaries({beneficiarySettings:e,operationSettings:t}){const r=validateTrustBeneficiariesParams(e?.beneficiaryIds),{proxyRequestFunction:n,accessToken:i,stagingToken:a}=validateOperationSettingsParams(t||{});if(n){const e=prepareUntrustBeneficiaryCall({beneficiaryIds:r});return(await callProxyFunction({proxyFunction:n,networkCallDescriptor:e})).body.beneficiaries.map(serializeBeneficiary)}{const e=i||validatePresenceOfAuthToken();return(await untrustBeneficiaries$1({beneficiaryIds:r,accessToken:e,stagingToken:a})).map(serializeBeneficiary)}}const beneficiaries$1={getBeneficiaries:getBeneficiaries,getBeneficiary:getBeneficiary,addBeneficiary:addBeneficiary,updateBeneficiary:updateBeneficiary,untrustBeneficiaries:untrustBeneficiaries},beneficiaries=beneficiaries$1;function serializeSepaTransfer(e){return{id:e.id,initiatorId:e.initiator_id,bankAccountId:e.bank_account_id,amount:Number(e.amount),amountCents:Number(e.amount_cents),amountCurrency:e.amount_currency,status:e.status,beneficiaryId:e.beneficiary_id,reference:e.reference,note:e.note,declinedReason:e.declined_reason,scheduledDate:new Date(e.scheduled_date),createdAt:new Date(e.created_at),updatedAt:new Date(e.updated_at),processedAt:new Date(e.processed_at),completedAt:new Date(e.completed_at),transactionId:e.transaction_id}}function serializeToNewSepaTransferDataObject(e){const t=e.beneficiaryId||e.beneficiary?.id;return{bank_account_id:e.bankAccountId,beneficiary_id:t,amount:e.amount.toString(),reference:e.reference,...e.note?{note:e.note}:{},...e.scheduledDate?{scheduled_date:e.scheduledDate.toISOString().split("T")[0]}:{},...e.attachmentIds?{attachment_ids:e.attachmentIds}:{}}}function serializeToVopVerificationResult(e){return{matchResult:e.match_result,matchedName:e.matched_name}}function serializeToSepaPayeeDataObject(e){return{name:e.name,iban:e.iban}}const SEPA_ENDPOINT="/v2/sepa",SEPA_TRANSFERS_ENDPOINT=`${SEPA_ENDPOINT}/transfers`;function prepareGetSepaTransfersCall({paginationSettings:e,accessToken:t,stagingToken:r}){const n={method:"GET",headers:{accessToken:t,stagingToken:r}},i=buildPaginationParams(e),a=i.size?`?${i.toString()}`:"";return{path:`${SEPA_TRANSFERS_ENDPOINT}${a}`,options:n}}async function getSepaTransfers$2({accessToken:e,stagingToken:t,paginationSettings:r}){const n=prepareGetSepaTransfersCall({paginationSettings:r,accessToken:e,stagingToken:t}),{transfers:i,meta:a}=await makeNetworkCall(n);return{transfers:i,meta:a}}function prepareGetSepaTransferCall({sepaTransferId:e,accessToken:t,stagingToken:r}){return{path:`${SEPA_TRANSFERS_ENDPOINT}/${e}`,options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}function prepareCreateSepaTransferCall({transfer:e,vopProofToken:t,accessToken:r,stagingToken:n,scaSessionToken:i,idempotencyKey:a}){const o=serializeToNewSepaTransferDataObject(e);return{path:SEPA_TRANSFERS_ENDPOINT,options:{method:"POST",headers:{accessToken:r,stagingToken:n,scaSessionToken:i,idempotencyKey:a},body:{transfer:o,vop_proof_token:t}}}}function prepareCancelSepaTransferCall({sepaTransferId:e,accessToken:t,stagingToken:r}){return{path:`${SEPA_TRANSFERS_ENDPOINT}/${e}/cancel`,options:{method:"POST",headers:{accessToken:t,stagingToken:r}}}}function prepareVerifySepaPayeeCall({sepaPayee:e,accessToken:t,stagingToken:r}){return{path:`${SEPA_ENDPOINT}/verify_payee`,options:{method:"POST",headers:{accessToken:t,stagingToken:r},body:{beneficiary_name:e.name,iban:e.iban}}}}const requiredCreateSepaTransferParams=[{name:"bankAccountId"},{name:"reference"},{name:"amount"}];function validateGetSepaTransferParams(e){if(!e)throw new InvalidParametersError("sepaTransferId parameter is required for the called function");if(e&&"string"!=typeof e)throw new InvalidParametersError("sepaTransferId must be a string");return e}function validateTransferBeneficiaryParams(e){if(!e)throw new InvalidParametersError("sepaTransferSettings parameter is required for the called function");if("object"!=typeof e)throw new InvalidParametersError("sepaTransferSettings must be an object");if(!e.beneficiaryId&&!e.beneficiary)throw new InvalidParametersError("Either beneficiaryId or beneficiary must be provided");const t=validateExpectedStringValues({beneficiaryId:e.beneficiaryId});if(t.length>0)throw new InvalidParametersError(t);return e}function validateCreateSepaTransferParams(e){if(!e)throw new InvalidParametersError("sepaTransferSettings parameter is required for the called function");if("object"!=typeof e)throw new InvalidParametersError("sepaTransferSettings must be an object");validatePresenceOfRequiredParams(e,requiredCreateSepaTransferParams);const t=[...validateExpectedStringValues({bankAccountId:e.bankAccountId,note:e.note,reference:e.reference}),...validateExpectedNumericValues({amount:e.amount})].flat();if(t.length>0)throw new InvalidParametersError(t);if(e.amount>AMOUNT_REQUIRING_ATTACHMENTS&&(!e.attachmentIds||0===e.attachmentIds.length))throw new InvalidParametersError("Attachments are required for transfers over €30,000");return e}function validateCancelSepaTransferParams(e){if(!e)throw new InvalidParametersError("sepaTransferId parameter is required for the called function");if("string"!=typeof e)throw new InvalidParametersError("sepaTransferId must be a string");return e}function validateGetSepaTransferCreationFlowLinkParams(e){if(!e||!e.callbackUrl)throw new InvalidParametersError("callbackUrl parameter is required for the getSepaTransferCreationFlowLink function");if("string"!=typeof e.callbackUrl)throw new InvalidParametersError("callbackUrl must be a string");return e.callbackUrl}const RUNTIME_ENVIRONMENT={BROWSER:"browser",SERVER:"server"};class InvalidRuntimeError extends Error{constructor(e){switch(super(),this.name="InvalidRuntimeError",e){case RUNTIME_ENVIRONMENT.BROWSER:this.message="This code is running in a browser environment, but it is expected to run in a server environment.";break;case RUNTIME_ENVIRONMENT.SERVER:this.message="This code is running in a server environment, but it is expected to run in a browser environment.";break;default:this.message="This code is not expected to run in this environment. Check if the function was server-only or browser-only."}}}function validateAuthLinkRequestSettings(e){if(!e||"object"!=typeof e)throw new InvalidParametersError("requestSettings must be an object");const t=e,{action:r,callbackUrl:n}=e;validatePresenceOfRequiredParams(t,[{name:"action"}]);const i=validateExpectedStringValues(t),a=Object.values(AUTH_LINK_ACTIONS);if(a.includes(r)||i.push(`action must be one of ${a.join(", ")}`),i.length>0)throw new InvalidParametersError(i);if(void 0!==n&&""===n.trim())throw new InvalidParametersError("callbackUrl cannot be empty")}function transformAuthLinkResponse(e){return{url:e.url,postAuthAction:e.post_authn_action,callbackUrl:e.callback_url,expiresAt:e.expired_at,usedAt:e.used_at}}async function request({requestSettings:e,operationSettings:t}){validateAuthLinkRequestSettings(e);const{proxyRequestFunction:r,stagingToken:n}=validateOperationSettingsParams(t||{});if(r){const t=prepareAuthLinkRequest({stagingToken:n,action:e.action,callbackUrl:e.callbackUrl});return transformAuthLinkResponse((await callProxyFunction({proxyFunction:r,networkCallDescriptor:t})).body)}{const r=t?.accessToken||validatePresenceOfAuthToken();return transformAuthLinkResponse(await requestAuthLink({accessToken:r,stagingToken:n,action:e.action,callbackUrl:e.callbackUrl}))}}const authLinks$1={request:request},authLinks=authLinks$1;async function findBeneficiary({sepaTransferSettings:e,operationSettings:t}){return e?.beneficiary?e.beneficiary:await getBeneficiary({beneficiarySettings:{beneficiaryId:e?.beneficiaryId},operationSettings:t})}function decorateUrlWithExtraParams(e,t){const r=t?.locale||localeManager.getLocale(),n=new URL(e);return r&&n.searchParams.append("lang",r),t?.mfaPreference&&n.searchParams.append("mfaPreference",t.mfaPreference),t?.idempotencyKey&&n.searchParams.append("idempotencyKey",t.idempotencyKey),n.toString()}function createSepaTransferScaElement({networkCallDescriptor:e,scaSessionToken:t,operationSettings:r}){const{uiParentElementId:n,proxyRequestFunction:i,locale:a}=r,o=getUIParentElement(n);o.innerHTML="";const s=document.createElement("qonto-sca-passkey-waiting");return s.networkCallDescriptor={...e,options:{...e.options,headers:{...e.options.headers,scaSessionToken:t}}},s.operationSettings={uiParentElementId:n,proxyRequestFunction:i,locale:a},o.appendChild(s),s}async function waitForSepaTransferScaResult(e){return new Promise(((t,r)=>{e.addEventListener("sca-success",(e=>{t(e.detail.result.transfer)}),{once:!0}),e.addEventListener("sca-error",(e=>{r(e.detail.error)}),{once:!0}),e.addEventListener("sca-abort",(e=>{r(e.detail.result)}),{once:!0})}))}
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */
7
- const t$3=globalThis,e$7=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$4=Symbol(),o$8=new WeakMap;let n$6=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==s$4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(e$7&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=o$8.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&o$8.set(t,e))}return e}toString(){return this.cssText}};const r$5=e=>new n$6("string"==typeof e?e:e+"",void 0,s$4),i$4=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,a)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[a+1]),e[0]);return new n$6(r,e,s$4)},S$1=(e,t)=>{if(e$7)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),a=t$3.litNonce;void 0!==a&&t.setAttribute("nonce",a),t.textContent=r.cssText,e.appendChild(t)}},c$3=e$7?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return r$5(t)})(e):e
6
+ */const t$3=globalThis,e$7=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$4=Symbol(),o$8=new WeakMap;let n$6=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==s$4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(e$7&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=o$8.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&o$8.set(t,e))}return e}toString(){return this.cssText}};const r$5=e=>new n$6("string"==typeof e?e:e+"",void 0,s$4),i$4=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1]),e[0]);return new n$6(r,e,s$4)},S$1=(e,t)=>{if(e$7)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),n=t$3.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=r.cssText,e.appendChild(t)}},c$3=e$7?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return r$5(t)})(e):e
8
7
  /**
9
8
  * @license
10
9
  * Copyright 2017 Google LLC
11
10
  * SPDX-License-Identifier: BSD-3-Clause
12
- */,{is:i$3,defineProperty:e$6,getOwnPropertyDescriptor:h$6,getOwnPropertyNames:r$4,getOwnPropertySymbols:o$7,getPrototypeOf:n$5}=Object,a$2=globalThis,c$2=a$2.trustedTypes,l$2=c$2?c$2.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(e,t)=>e,u$2={toAttribute(e,t){switch(t){case Boolean:e=e?l$2:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},f$3=(e,t)=>!i$3(e,t),b$1={attribute:!0,type:String,converter:u$2,reflect:!1,useDefault:!1,hasChanged:f$3};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=b$1){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),a=this.getPropertyDescriptor(e,r,t);void 0!==a&&e$6(this.prototype,e,a)}}static getPropertyDescriptor(e,t,r){const{get:a,set:n}=h$6(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:a,set(t){const i=a?.call(this);n?.call(this,t),this.requestUpdate(e,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??b$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const e=n$5(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const e=this.properties,t=[...r$4(e),...o$7(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(c$3(e))}else void 0!==e&&t.push(c$3(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){const r=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,r);if(void 0!==a&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:u$2).toAttribute(t,r.type);this._$Em=e,null==n?this.removeAttribute(a):this.setAttribute(a,n),this._$Em=null}}_$AK(e,t){const r=this.constructor,a=r._$Eh.get(e);if(void 0!==a&&this._$Em!==a){const e=r.getPropertyOptions(a),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:u$2;this._$Em=a;const i=n.fromAttribute(t,e.type);this[a]=i??this._$Ej?.get(a)??i,this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){const a=this.constructor,n=this[e];if(r??=a.getPropertyOptions(e),!((r.hasChanged??f$3)(n,t)||r.useDefault&&r.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:a,wrapped:n},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),!0!==n||void 0!==i)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),!0===a&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e){const{wrapped:e}=r,a=this[t];!0!==e||this._$AL.has(t)||void 0===a||this.C(t,void 0,r,a)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}};y$1.elementStyles=[],y$1.shadowRootOptions={mode:"open"},y$1[d$1("elementProperties")]=new Map,y$1[d$1("finalized")]=new Map,p$1?.({ReactiveElement:y$1}),(a$2.reactiveElementVersions??=[]).push("2.1.1");
11
+ */,{is:i$3,defineProperty:e$6,getOwnPropertyDescriptor:h$6,getOwnPropertyNames:r$4,getOwnPropertySymbols:o$7,getPrototypeOf:n$5}=Object,a$2=globalThis,c$2=a$2.trustedTypes,l$2=c$2?c$2.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(e,t)=>e,u$2={toAttribute(e,t){switch(t){case Boolean:e=e?l$2:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},f$3=(e,t)=>!i$3(e,t),b$1={attribute:!0,type:String,converter:u$2,reflect:!1,useDefault:!1,hasChanged:f$3};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=b$1){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&e$6(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:i}=h$6(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){const a=n?.call(this);i?.call(this,t),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??b$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const e=n$5(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const e=this.properties,t=[...r$4(e),...o$7(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(c$3(e))}else void 0!==e&&t.push(c$3(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){const r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:u$2).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){const r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:u$2;this._$Em=n;const a=i.fromAttribute(t,e.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){const n=this.constructor,i=this[e];if(r??=n.getPropertyOptions(e),!((r.hasChanged??f$3)(i,t)||r.useDefault&&r.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:n,wrapped:i},a){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||void 0!==a)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),!0===n&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e){const{wrapped:e}=r,n=this[t];!0!==e||this._$AL.has(t)||void 0===n||this.C(t,void 0,r,n)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}};y$1.elementStyles=[],y$1.shadowRootOptions={mode:"open"},y$1[d$1("elementProperties")]=new Map,y$1[d$1("finalized")]=new Map,p$1?.({ReactiveElement:y$1}),(a$2.reactiveElementVersions??=[]).push("2.1.1");
13
12
  /**
14
13
  * @license
15
14
  * Copyright 2017 Google LLC
16
15
  * SPDX-License-Identifier: BSD-3-Clause
17
16
  */
18
- const t$2=globalThis,i$2=t$2.trustedTypes,s$3=i$2?i$2.createPolicy("lit-html",{createHTML:e=>e}):void 0,e$5="$lit$",h$5=`lit$${Math.random().toFixed(9).slice(2)}$`,o$6="?"+h$5,n$4=`<${o$6}>`,r$3=document,l$1=()=>r$3.createComment(""),c$1=e=>null===e||"object"!=typeof e&&"function"!=typeof e,a$1=Array.isArray,u$1=e=>a$1(e)||"function"==typeof e?.[Symbol.iterator],d="[ \t\n\f\r]",f$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),x=y(1),b=y(2),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$3.createTreeWalker(r$3,129);function P(e,t){if(!a$1(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$3?s$3.createHTML(t):t}const V=(e,t)=>{const r=e.length-1,a=[];let n,i=2===t?"<svg>":3===t?"<math>":"",o=f$2;for(let t=0;t<r;t++){const r=e[t];let s,l,c=-1,h=0;for(;h<r.length&&(o.lastIndex=h,l=o.exec(r),null!==l);)h=o.lastIndex,o===f$2?"!--"===l[1]?o=v$3:void 0!==l[1]?o=_:void 0!==l[2]?($.test(l[2])&&(n=RegExp("</"+l[2],"g")),o=m):void 0!==l[3]&&(o=m):o===m?">"===l[0]?(o=n??f$2,c=-1):void 0===l[1]?c=-2:(c=o.lastIndex-l[2].length,s=l[1],o=void 0===l[3]?m:'"'===l[3]?g:p):o===g||o===p?o=m:o===v$3||o===_?o=f$2:(o=m,n=void 0);const d=o===m&&e[t+1].startsWith("/>")?" ":"";i+=o===f$2?r+n$4:c>=0?(a.push(s),r.slice(0,c)+e$5+r.slice(c)+h$5+d):r+h$5+(-2===c?t:d)}return[P(e,i+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),a]};class N{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let n=0,i=0;const o=e.length-1,s=this.parts,[l,c]=V(e,t);if(this.el=N.createElement(l,r),C.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(a=C.nextNode())&&s.length<o;){if(1===a.nodeType){if(a.hasAttributes())for(const e of a.getAttributeNames())if(e.endsWith(e$5)){const t=c[i++],r=a.getAttribute(e).split(h$5),o=/([.?@])?(.*)/.exec(t);s.push({type:1,index:n,name:o[2],strings:r,ctor:"."===o[1]?H:"?"===o[1]?I:"@"===o[1]?L:k}),a.removeAttribute(e)}else e.startsWith(h$5)&&(s.push({type:6,index:n}),a.removeAttribute(e));if($.test(a.tagName)){const e=a.textContent.split(h$5),t=e.length-1;if(t>0){a.textContent=i$2?i$2.emptyScript:"";for(let r=0;r<t;r++)a.append(e[r],l$1()),C.nextNode(),s.push({type:2,index:++n});a.append(e[t],l$1())}}}else if(8===a.nodeType)if(a.data===o$6)s.push({type:2,index:n});else{let e=-1;for(;-1!==(e=a.data.indexOf(h$5,e+1));)s.push({type:7,index:n}),e+=h$5.length-1}n++}}static createElement(e,t){const r=r$3.createElement("template");return r.innerHTML=e,r}}function S(e,t,r=e,a){if(t===T)return t;let n=void 0!==a?r._$Co?.[a]:r._$Cl;const i=c$1(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(e),n._$AT(e,r,a)),void 0!==a?(r._$Co??=[])[a]=n:r._$Cl=n),void 0!==n&&(t=S(e,n._$AS(e,t.values),n,a)),t}class M{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,a=(e?.creationScope??r$3).importNode(t,!0);C.currentNode=a;let n=C.nextNode(),i=0,o=0,s=r[0];for(;void 0!==s;){if(i===s.index){let t;2===s.type?t=new R(n,n.nextSibling,this,e):1===s.type?t=new s.ctor(n,s.name,s.strings,this,e):6===s.type&&(t=new z(n,this,e)),this._$AV.push(t),s=r[++o]}i!==s?.index&&(n=C.nextNode(),i++)}return C.currentNode=r$3,a}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,a){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=S(this,e,t),c$1(e)?e===E||null==e||""===e?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==T&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):u$1(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==E&&c$1(this._$AH)?this._$AA.nextSibling.data=e:this.T(r$3.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,a="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=N.createElement(P(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===a)this._$AH.p(t);else{const e=new M(a,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=A.get(e.strings);return void 0===t&&A.set(e.strings,t=new N(e)),t}k(e){a$1(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,a=0;for(const n of e)a===t.length?t.push(r=new R(this.O(l$1()),this.O(l$1()),this,this.options)):r=t[a],r._$AI(n),a++;a<t.length&&(this._$AR(r&&r._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,a,n){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=E}_$AI(e,t=this,r,a){const n=this.strings;let i=!1;if(void 0===n)e=S(this,e,t,0),i=!c$1(e)||e!==this._$AH&&e!==T,i&&(this._$AH=e);else{const a=e;let o,s;for(e=n[0],o=0;o<n.length-1;o++)s=S(this,a[r+o],t,o),s===T&&(s=this._$AH[o]),i||=!c$1(s)||s!==this._$AH[o],s===E?e=E:e!==E&&(e+=(s??"")+n[o+1]),this._$AH[o]=s}i&&!a&&this.j(e)}j(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class H extends k{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===E?void 0:e}}class I extends k{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==E)}}class L extends k{constructor(e,t,r,a,n){super(e,t,r,a,n),this.type=5}_$AI(e,t=this){if((e=S(this,e,t,0)??E)===T)return;const r=this._$AH,a=e===E&&r!==E||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==E&&(r===E||a);a&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class z{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){S(this,e)}}const j=t$2.litHtmlPolyfillSupport;j?.(N,R),(t$2.litHtmlVersions??=[]).push("3.3.1");const B=(e,t,r)=>{const a=r?.renderBefore??t;let n=a._$litPart$;if(void 0===n){const e=r?.renderBefore??null;a._$litPart$=n=new R(t.insertBefore(l$1(),e),e,void 0,r??{})}return n._$AI(e),n
17
+ const t$2=globalThis,i$2=t$2.trustedTypes,s$3=i$2?i$2.createPolicy("lit-html",{createHTML:e=>e}):void 0,e$5="$lit$",h$5=`lit$${Math.random().toFixed(9).slice(2)}$`,o$6="?"+h$5,n$4=`<${o$6}>`,r$3=document,l$1=()=>r$3.createComment(""),c$1=e=>null===e||"object"!=typeof e&&"function"!=typeof e,a$1=Array.isArray,u$1=e=>a$1(e)||"function"==typeof e?.[Symbol.iterator],d="[ \t\n\f\r]",f$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),x=y(1),b=y(2),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$3.createTreeWalker(r$3,129);function P(e,t){if(!a$1(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$3?s$3.createHTML(t):t}const V=(e,t)=>{const r=e.length-1,n=[];let i,a=2===t?"<svg>":3===t?"<math>":"",o=f$2;for(let t=0;t<r;t++){const r=e[t];let s,l,c=-1,d=0;for(;d<r.length&&(o.lastIndex=d,l=o.exec(r),null!==l);)d=o.lastIndex,o===f$2?"!--"===l[1]?o=v$3:void 0!==l[1]?o=_:void 0!==l[2]?($.test(l[2])&&(i=RegExp("</"+l[2],"g")),o=m):void 0!==l[3]&&(o=m):o===m?">"===l[0]?(o=i??f$2,c=-1):void 0===l[1]?c=-2:(c=o.lastIndex-l[2].length,s=l[1],o=void 0===l[3]?m:'"'===l[3]?g:p):o===g||o===p?o=m:o===v$3||o===_?o=f$2:(o=m,i=void 0);const u=o===m&&e[t+1].startsWith("/>")?" ":"";a+=o===f$2?r+n$4:c>=0?(n.push(s),r.slice(0,c)+e$5+r.slice(c)+h$5+u):r+h$5+(-2===c?t:u)}return[P(e,a+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]};class N{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let i=0,a=0;const o=e.length-1,s=this.parts,[l,c]=V(e,t);if(this.el=N.createElement(l,r),C.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=C.nextNode())&&s.length<o;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(e$5)){const t=c[a++],r=n.getAttribute(e).split(h$5),o=/([.?@])?(.*)/.exec(t);s.push({type:1,index:i,name:o[2],strings:r,ctor:"."===o[1]?H:"?"===o[1]?I:"@"===o[1]?L:k}),n.removeAttribute(e)}else e.startsWith(h$5)&&(s.push({type:6,index:i}),n.removeAttribute(e));if($.test(n.tagName)){const e=n.textContent.split(h$5),t=e.length-1;if(t>0){n.textContent=i$2?i$2.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],l$1()),C.nextNode(),s.push({type:2,index:++i});n.append(e[t],l$1())}}}else if(8===n.nodeType)if(n.data===o$6)s.push({type:2,index:i});else{let e=-1;for(;-1!==(e=n.data.indexOf(h$5,e+1));)s.push({type:7,index:i}),e+=h$5.length-1}i++}}static createElement(e,t){const r=r$3.createElement("template");return r.innerHTML=e,r}}function S(e,t,r=e,n){if(t===T)return t;let i=void 0!==n?r._$Co?.[n]:r._$Cl;const a=c$1(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(e),i._$AT(e,r,n)),void 0!==n?(r._$Co??=[])[n]=i:r._$Cl=i),void 0!==i&&(t=S(e,i._$AS(e,t.values),i,n)),t}class M{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??r$3).importNode(t,!0);C.currentNode=n;let i=C.nextNode(),a=0,o=0,s=r[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new R(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new z(i,this,e)),this._$AV.push(t),s=r[++o]}a!==s?.index&&(i=C.nextNode(),a++)}return C.currentNode=r$3,n}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=S(this,e,t),c$1(e)?e===E||null==e||""===e?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==T&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):u$1(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==E&&c$1(this._$AH)?this._$AA.nextSibling.data=e:this.T(r$3.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=N.createElement(P(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new M(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=A.get(e.strings);return void 0===t&&A.set(e.strings,t=new N(e)),t}k(e){a$1(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const i of e)n===t.length?t.push(r=new R(this.O(l$1()),this.O(l$1()),this,this.options)):r=t[n],r._$AI(i),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=E}_$AI(e,t=this,r,n){const i=this.strings;let a=!1;if(void 0===i)e=S(this,e,t,0),a=!c$1(e)||e!==this._$AH&&e!==T,a&&(this._$AH=e);else{const n=e;let o,s;for(e=i[0],o=0;o<i.length-1;o++)s=S(this,n[r+o],t,o),s===T&&(s=this._$AH[o]),a||=!c$1(s)||s!==this._$AH[o],s===E?e=E:e!==E&&(e+=(s??"")+i[o+1]),this._$AH[o]=s}a&&!n&&this.j(e)}j(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class H extends k{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===E?void 0:e}}class I extends k{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==E)}}class L extends k{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){if((e=S(this,e,t,0)??E)===T)return;const r=this._$AH,n=e===E&&r!==E||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==E&&(r===E||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class z{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){S(this,e)}}const j=t$2.litHtmlPolyfillSupport;j?.(N,R),(t$2.litHtmlVersions??=[]).push("3.3.1");const B=(e,t,r)=>{const n=r?.renderBefore??t;let i=n._$litPart$;if(void 0===i){const e=r?.renderBefore??null;n._$litPart$=i=new R(t.insertBefore(l$1(),e),e,void 0,r??{})}return i._$AI(e),i
19
18
  /**
20
19
  * @license
21
20
  * Copyright 2017 Google LLC
@@ -31,7 +30,7 @@ const t$1=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t
31
30
  * @license
32
31
  * Copyright 2017 Google LLC
33
32
  * SPDX-License-Identifier: BSD-3-Clause
34
- */,o$4={attribute:!0,type:String,converter:u$2,reflect:!1,hasChanged:f$3},r$2=(e=o$4,t,r)=>{const{kind:a,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),"setter"===a&&((e=Object.create(e)).wrapped=!0),i.set(r.name,e),"accessor"===a){const{name:a}=r;return{set(r){const n=t.get.call(this);t.set.call(this,r),this.requestUpdate(a,n,e)},init(t){return void 0!==t&&this.C(a,void 0,e,t),t}}}if("setter"===a){const{name:a}=r;return function(r){const n=this[a];t.call(this,r),this.requestUpdate(a,n,e)}}throw Error("Unsupported decorator location: "+a)};function n$3(e){return(t,r)=>"object"==typeof r?r$2(e,t,r):((e,t,r)=>{const a=t.hasOwnProperty(r);return t.constructor.createProperty(r,e),a?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)
33
+ */,o$4={attribute:!0,type:String,converter:u$2,reflect:!1,hasChanged:f$3},r$2=(e=o$4,t,r)=>{const{kind:n,metadata:i}=r;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),"accessor"===n){const{name:n}=r;return{set(r){const i=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,i,e)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){const{name:n}=r;return function(r){const i=this[n];t.call(this,r),this.requestUpdate(n,i,e)}}throw Error("Unsupported decorator location: "+n)};function n$3(e){return(t,r)=>"object"==typeof r?r$2(e,t,r):((e,t,r)=>{const n=t.hasOwnProperty(r);return t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)
35
34
  /**
36
35
  * @license
37
36
  * Copyright 2017 Google LLC
@@ -46,12 +45,12 @@ const t$1=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t
46
45
  * @license
47
46
  * Copyright 2017 Google LLC
48
47
  * SPDX-License-Identifier: BSD-3-Clause
49
- */;function e$3(e,t){return(t,r,a)=>e$4(t,r,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}
48
+ */;function e$3(e,t){return(t,r,n)=>e$4(t,r,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}
50
49
  /**
51
50
  * @license
52
51
  * Copyright 2021 Google LLC
53
52
  * SPDX-License-Identifier: BSD-3-Clause
54
- */const LOCALE_STATUS_EVENT="lit-localize-status",_str=(e,...t)=>({strTag:!0,strings:e,values:t}),str=_str,isStrTagged=e=>"string"!=typeof e&&"strTag"in e,joinStringsAndValues=(e,t,r)=>{let a=e[0];for(let n=1;n<e.length;n++)a+=t[r?r[n-1]:n-1],a+=e[n];return a},defaultMsg=e=>isStrTagged(e)?joinStringsAndValues(e.strings,e.values):e;
53
+ */const LOCALE_STATUS_EVENT="lit-localize-status",_str=(e,...t)=>({strTag:!0,strings:e,values:t}),str=_str,isStrTagged=e=>"string"!=typeof e&&"strTag"in e,joinStringsAndValues=(e,t,r)=>{let n=e[0];for(let i=1;i<e.length;i++)n+=t[r?r[i-1]:i-1],n+=e[i];return n},defaultMsg=e=>isStrTagged(e)?joinStringsAndValues(e.strings,e.values):e;
55
54
  /**
56
55
  * @license
57
56
  * Copyright 2021 Google LLC
@@ -71,7 +70,7 @@ const t$1=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t
71
70
  * @license
72
71
  * Copyright 2014 Travis Webb
73
72
  * SPDX-License-Identifier: MIT
74
- */const hl=[];for(let e=0;e<256;e++)hl[e]=(e>>4&15).toString(16)+(15&e).toString(16);function fnv1a64(e){let t=0,r=8997,a=0,n=33826,i=0,o=40164,s=0,l=52210;for(let c=0;c<e.length;c++)r^=e.charCodeAt(c),t=435*r,a=435*n,i=435*o,s=435*l,i+=r<<8,s+=n<<8,a+=t>>>16,r=65535&t,i+=a>>>16,n=65535&a,l=s+(i>>>16)&65535,o=65535&i;return hl[l>>8]+hl[255&l]+hl[o>>8]+hl[255&o]+hl[n>>8]+hl[255&n]+hl[r>>8]+hl[255&r]}
73
+ */const hl=[];for(let e=0;e<256;e++)hl[e]=(e>>4&15).toString(16)+(15&e).toString(16);function fnv1a64(e){let t=0,r=8997,n=0,i=33826,a=0,o=40164,s=0,l=52210;for(let c=0;c<e.length;c++)r^=e.charCodeAt(c),t=435*r,n=435*i,a=435*o,s=435*l,a+=r<<8,s+=i<<8,n+=t>>>16,r=65535&t,a+=n>>>16,i=65535&n,l=s+(a>>>16)&65535,o=65535&a;return hl[l>>8]+hl[255&l]+hl[o>>8]+hl[255&o]+hl[i>>8]+hl[255&i]+hl[r>>8]+hl[255&r]}
75
74
  /**
76
75
  * @license
77
76
  * Copyright 2020 Google LLC
@@ -81,7 +80,7 @@ const t$1=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t
81
80
  * @license
82
81
  * Copyright 2021 Google LLC
83
82
  * SPDX-License-Identifier: BSD-3-Clause
84
- */const expressionOrders=new WeakMap,hashCache=new Map;function runtimeMsg(e,t,r){if(e){const a=e[r?.id??generateId(t)];if(a){if("string"==typeof a)return a;if("strTag"in a)return joinStringsAndValues(a.strings,t.values,a.values);{let e=expressionOrders.get(a);return void 0===e&&(e=a.values,expressionOrders.set(a,e)),{...a,values:e.map((e=>t.values[e]))}}}}return defaultMsg(t)}function generateId(e){const t="string"==typeof e?e:e.strings;let r=hashCache.get(t);return void 0===r&&(r=generateMsgId(t,"string"!=typeof e&&!("strTag"in e)),hashCache.set(t,r)),r}
83
+ */const expressionOrders=new WeakMap,hashCache=new Map;function runtimeMsg(e,t,r){if(e){const n=e[r?.id??generateId(t)];if(n){if("string"==typeof n)return n;if("strTag"in n)return joinStringsAndValues(n.strings,t.values,n.values);{let e=expressionOrders.get(n);return void 0===e&&(e=n.values,expressionOrders.set(n,e)),{...n,values:e.map((e=>t.values[e]))}}}}return defaultMsg(t)}function generateId(e){const t="string"==typeof e?e:e.strings;let r=hashCache.get(t);return void 0===r&&(r=generateMsgId(t,"string"!=typeof e&&!("strTag"in e)),hashCache.set(t,r)),r}
85
84
  /**
86
85
  * @license
87
86
  * Copyright 2021 Google LLC
@@ -175,12 +174,12 @@ const t$1=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t
175
174
  * @license
176
175
  * Copyright 2017 Google LLC
177
176
  * SPDX-License-Identifier: BSD-3-Clause
178
- */const s$1=(e,t)=>{const r=e._$AN;if(void 0===r)return!1;for(const e of r)e._$AO?.(t,!1),s$1(e,t);return!0},o$3=e=>{let t,r;do{if(void 0===(t=e._$AM))break;r=t._$AN,r.delete(e),e=t}while(0===r?.size)},r=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),c(t)}};function h$4(e){void 0!==this._$AN?(o$3(this),this._$AM=e,r(this)):this._$AM=e}function n$2(e,t=!1,r=0){const a=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(t)if(Array.isArray(a))for(let e=r;e<a.length;e++)s$1(a[e],!1),o$3(a[e]);else null!=a&&(s$1(a,!1),o$3(a));else s$1(this,e)}const c=e=>{e.type==t.CHILD&&(e._$AP??=n$2,e._$AQ??=h$4)};class f extends i{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,a){super._$AT(e,t,a),r(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(s$1(this,e),o$3(this))}setValue(e){if(f$1(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}
177
+ */const s$1=(e,t)=>{const r=e._$AN;if(void 0===r)return!1;for(const e of r)e._$AO?.(t,!1),s$1(e,t);return!0},o$3=e=>{let t,r;do{if(void 0===(t=e._$AM))break;r=t._$AN,r.delete(e),e=t}while(0===r?.size)},r=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),c(t)}};function h$4(e){void 0!==this._$AN?(o$3(this),this._$AM=e,r(this)):this._$AM=e}function n$2(e,t=!1,r=0){const n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(n))for(let e=r;e<n.length;e++)s$1(n[e],!1),o$3(n[e]);else null!=n&&(s$1(n,!1),o$3(n));else s$1(this,e)}const c=e=>{e.type==t.CHILD&&(e._$AP??=n$2,e._$AQ??=h$4)};class f extends i{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),r(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(s$1(this,e),o$3(this))}setValue(e){if(f$1(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}
179
178
  /**
180
179
  * @license
181
180
  * Copyright 2020 Google LLC
182
181
  * SPDX-License-Identifier: BSD-3-Clause
183
- */const e$1=()=>new h$3;let h$3=class{};const o$2=new WeakMap,n$1=e$2(class extends f{render(e){return E}update(e,[t]){const r=t!==this.G;return r&&void 0!==this.G&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),E}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){const t=this.ht??globalThis;let r=o$2.get(t);void 0===r&&(r=new WeakMap,o$2.set(t,r)),void 0!==r.get(this.G)&&this.G.call(this.ht,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return"function"==typeof this.G?o$2.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,function(module,exports){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,a,n=e.length;for(r=0;r<n;r+=1)for(var i in a=e[r].prototype)Object.prototype.hasOwnProperty.call(a,i)&&(t.prototype[i]=a[i])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,a=0,n=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(a=0;a<t;a+=1)n.push(r);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),a=e.length;for(t=0;t<a;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,a){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=a<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,a){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=a<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var a,n,i,o,s,l,c,h;switch(l=r*(1-t),c=r*(1-(s=6*e-(o=Math.floor(6*e)))*t),h=r*(1-(1-s)*t),o%6){case 0:a=r,n=h,i=l;break;case 1:a=c,n=r,i=l;break;case 2:a=l,n=r,i=h;break;case 3:a=l,n=c,i=r;break;case 4:a=h,n=l,i=r;break;case 5:a=r,n=l,i=c}return[a,n,i]}function RGBtoHSV(e,t,r){var a,n=Math.max(e,t,r),i=Math.min(e,t,r),o=n-i,s=0===n?0:o/n,l=n/255;switch(n){case i:a=0;break;case e:a=t-r+o*(t<r?6:0),a/=6*o;break;case t:a=r-e+2*o,a/=6*o;break;case r:a=e-t+4*o,a/=6*o}return[a,s,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,a){return e<0&&(e=0),t<0&&(t=0),a<0&&(a=0),"#"+r[e]+r[t]+r[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,r=1,a=[],n={onmessage:function(){},postMessage:function(t){e({data:t})}},i={postMessage:function(e){n.onmessage({data:e})}};function o(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),a=URL.createObjectURL(r);return new Worker(a)}return e=t,n}((function(e){if(i.dataManager||(i.dataManager=function(){function e(n,i){var o,s,l,c,h,p,u=n.length;for(s=0;s<u;s+=1)if("ks"in(o=n[s])&&!o.completed){if(o.completed=!0,o.hasMask){var m=o.masksProperties;for(c=m.length,l=0;l<c;l+=1)if(m[l].pt.k.i)a(m[l].pt.k);else for(p=m[l].pt.k.length,h=0;h<p;h+=1)m[l].pt.k[h].s&&a(m[l].pt.k[h].s[0]),m[l].pt.k[h].e&&a(m[l].pt.k[h].e[0])}0===o.ty?(o.layers=t(o.refId,i),e(o.layers,i)):4===o.ty?r(o.shapes):5===o.ty&&d(o)}}function t(e,t){var r=function(e,t){for(var r=0,a=t.length;r<a;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,n,i;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)a(e[t].ks.k);else for(i=e[t].ks.k.length,n=0;n<i;n+=1)e[t].ks.k[n].s&&a(e[t].ks.k[n].s[0]),e[t].ks.k[n].e&&a(e[t].ks.k[n].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function a(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function n(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var i,o=function(){var e=[4,4,14];function t(e){var t,r,a,n=e.length;for(t=0;t<n;t+=1)5===e[t].ty&&(a=void 0,a=(r=e[t]).t.d,r.t.d={k:[{s:a,t:0}]})}return function(r){if(n(e,r.v)&&(t(r.layers),r.assets)){var a,i=r.assets.length;for(a=0;a<i;a+=1)r.assets[a].layers&&t(r.assets[a].layers)}}}(),s=(i=[4,7,99],function(e){if(e.chars&&!n(i,e.v)){var t,a=e.chars.length;for(t=0;t<a;t+=1){var o=e.chars[t];o.data&&o.data.shapes&&(r(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,r,a=e.length;for(t=0;t<a;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(n(e,r.v)&&(t(r.layers),r.assets)){var a,i=r.assets.length;for(a=0;a<i;a+=1)r.assets[a].layers&&t(r.assets[a].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var r,a,n,i=e.length;for(r=0;r<i;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(n=e[r].c.k.length,a=0;a<n;a+=1)e[r].c.k[a].s&&(e[r].c.k[a].s[0]/=255,e[r].c.k[a].s[1]/=255,e[r].c.k[a].s[2]/=255,e[r].c.k[a].s[3]/=255),e[r].c.k[a].e&&(e[r].c.k[a].e[0]/=255,e[r].c.k[a].e[1]/=255,e[r].c.k[a].e[2]/=255,e[r].c.k[a].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,a=e.length;for(r=0;r<a;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(n(e,t.v)&&(r(t.layers),t.assets)){var a,i=t.assets.length;for(a=0;a<i;a+=1)t.assets[a].layers&&r(t.assets[a].layers)}}}(),h=function(){var e=[4,4,18];function t(e){var r,a,n;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(n=e[r].ks.k.length,a=0;a<n;a+=1)e[r].ks.k[a].s&&(e[r].ks.k[a].s[0].c=e[r].closed),e[r].ks.k[a].e&&(e[r].ks.k[a].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,a,n,i,o,s,l=e.length;for(a=0;a<l;a+=1){if((r=e[a]).hasMask){var c=r.masksProperties;for(i=c.length,n=0;n<i;n+=1)if(c[n].pt.k.i)c[n].pt.k.c=c[n].cl;else for(s=c[n].pt.k.length,o=0;o<s;o+=1)c[n].pt.k[o].s&&(c[n].pt.k[o].s[0].c=c[n].cl),c[n].pt.k[o].e&&(c[n].pt.k[o].e[0].c=c[n].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(n(e,t.v)&&(r(t.layers),t.assets)){var a,i=t.assets.length;for(a=0;a<i;a+=1)t.assets[a].layers&&r(t.assets[a].layers)}}}();function d(e){0===e.t.a.length&&e.t.p}var p={completeData:function(r){r.__complete||(c(r),o(r),s(r),l(r),h(r),e(r.layers,r.assets),function(r,a){if(r){var n=0,i=r.length;for(n=0;n<i;n+=1)1===r[n].t&&(r[n].data.layers=t(r[n].data.refId,a),e(r[n].data.layers,a))}}(r.chars,r.assets),r.__complete=!0)}};return p.checkColors=c,p.checkChars=s,p.checkPathProperties=l,p.checkShapes=h,p.completeLayers=e,p}()),i.assetLoader||(i.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,a,n){var i,o=new XMLHttpRequest;try{o.responseType="json"}catch(e){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)i=e(o),a(i);else try{i=e(o),a(i)}catch(e){n&&n(e)}};try{o.open(["G","E","T"].join(""),t,!0)}catch(e){o.open(["G","E","T"].join(""),r+"/"+t,!0)}o.send()}}}()),"loadAnimation"===e.data.type)i.assetLoader.load(e.data.path,e.data.fullPath,(function(t){i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){i.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&i.assetLoader.load(e.data.path,e.data.fullPath,(function(t){i.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){i.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,n=a[r];a[r]=null,"success"===t.status?n.onComplete(t.payload):n.onError&&n.onError()})}function s(e,t){var n="processId_"+(r+=1);return a[n]={onComplete:e,onError:t},n}return{loadAnimation:function(e,r,a){o();var n=s(r,a);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(e,r,a){o();var n=s(r,a);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(e,r,a){o();var n=s(r,a);t.postMessage({type:"complete",animation:e,id:n})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(e,t,r){var a="";if(e.e)a=e.p;else if(t){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),a=t+n}else a=r,a+=e.u?e.u:"",a+=e.p;return a}function n(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function i(e){var t={assetData:e},r=a(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function o(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=i.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var a=e.length;for(r=0;r<a;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=a(t,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),n.src=r;var i={img:n,assetData:t};return i},createImageData:function(t){var r=a(t,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var i={img:n,assetData:t};return i},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],a=0;a<r.length;a+=1)r[a](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,a=this._cbs[e].length;r<a;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,a-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),a={},n=0,i=0;i<r.length;i+=1)2===(t=r[i].split(":")).length&&(a[t[0]]=t[1].trim(),n+=1);if(0===n)throw new Error;return a}return function(t){for(var r=[],a=0;a<t.length;a+=1){var n=t[a],i={time:n.tm,duration:n.dr};try{i.payload=JSON.parse(t[a].cm)}catch(r){try{i.payload=e(t[a].cm)}catch(e){i.payload={name:t[a].cm}}}r.push(i)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},a=e.attributes;r.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",r.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";"false"===n?r.loop=!1:"true"===n?r.loop=!0:""!==n&&(r.loop=parseInt(n,10));var i=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:!a.getNamedItem("bm-autoplay")||a.getNamedItem("bm-autoplay").value;r.autoplay="false"!==i,r.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"","false"===(a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,a=this.animationData.layers,n=a.length,i=e.layers,o=i.length;for(r=0;r<o;r+=1)for(t=0;t<n;){if(a[t].id===i[r].id){a[t]=i[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(n=e.assets.length,t=0;t<n;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,a="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,a)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var a=Number(e);if(isNaN(a)){var n=this.getMarkerData(e);n&&this.goToAndStop(n.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var a=Number(e);if(isNaN(a)){var n=this.getMarkerData(e);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(a,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,a=e.length;for(r=0;r<a;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,a=0,n=0,i=!0,o=!1;function s(e){for(var r=0,n=e.target;r<a;)t[r].animation===n&&(t.splice(r,1),r-=1,a-=1,n.isPaused||h()),r+=1}function l(e,r){if(!e)return null;for(var n=0;n<a;){if(t[n].elem===e&&null!==t[n].elem)return t[n].animation;n+=1}var i=new AnimationItem;return d(i,e),i.setData(e,r),i}function c(){n+=1,m()}function h(){n-=1}function d(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",h),t.push({elem:r,animation:e}),a+=1}function p(e){var s,l=e-r;for(s=0;s<a;s+=1)t[s].animation.advanceTime(l);r=e,n&&!o?window.requestAnimationFrame(p):i=!0}function u(e){r=e,window.requestAnimationFrame(p)}function m(){!o&&n&&i&&(window.requestAnimationFrame(u),i=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return d(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var n;for(n=0;n<a;n+=1)t[n].animation.setSpeed(e,r)},e.setDirection=function(e,r){var n;for(n=0;n<a;n+=1)t[n].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var a,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),i=n.length;for(a=0;a<i;a+=1)r&&n[a].setAttribute("data-bm-type",r),l(n[a],e);if(t&&0===i){r||(r="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),o.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<a;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,n){var i;for(i=0;i<a;i+=1)t[i].animation.goToAndStop(e,r,n)},e.destroy=function(e){var r;for(r=a-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){o=!0},e.unfreeze=function(){o=!1,m()},e.setVolume=function(e,r){var n;for(n=0;n<a;n+=1)t[n].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,a=[];for(e=0;e<r;e+=1)a.push(t[e].animation);return a},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,a,n,i){var o=i||("bez_"+e+"_"+r+"_"+a+"_"+n).replace(/\./g,"p");if(t[o])return t[o];var s=new h([e,r,a,n]);return t[o]=s,s}},t={},r=11,a=1/(r-1),n="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((i(t,r)*e+o(t,r))*e+s(t))*e}function c(e,t,r){return 3*i(t,r)*e*e+2*o(t,r)*e+s(t)}function h(e){this._p=e,this._mSampleValues=n?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(e){var t=this._p[0],r=this._p[1],a=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),t===r&&a===n?e:0===e?0:1===e?1:l(this._getTForX(e),r,n)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],a=this._p[3];this._precomputed=!0,e===t&&r===a||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<r;++n)this._mSampleValues[n]=l(n*a,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],i=this._mSampleValues,o=0,s=1,h=r-1;s!==h&&i[s]<=e;++s)o+=a;var d=o+(e-i[--s])/(i[s+1]-i[s])*a,p=c(d,t,n);return p>=.001?function(e,t,r,a){for(var n=0;n<4;++n){var i=c(t,r,a);if(0===i)return t;t-=(l(t,r,a)-e)/i}return t}(e,d,t,n):0===p?d:function(e,t,r,a,n){var i,o,s=0;do{(i=l(o=t+(r-t)/2,a,n)-e)>0?r=o:t=o}while(Math.abs(i)>1e-7&&++s<10);return o}(e,o,o+a,t,n)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var a=0,n=e,i=createSizedArray(n);return{newElement:function(){return a?i[a-=1]:t()},release:function(e){a===n&&(i=pooling.double(i),n*=2),r&&r(e),i[a]=e,a+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,a,n,i){var o=e*a+t*n+r*i-n*a-i*e-r*t;return o>-.001&&o<.001}var r=function(e,t,r,a){var n,i,o,s,l,c,h=getDefaultCurveSegments(),d=0,p=[],u=[],m=bezierLengthPool.newElement();for(o=r.length,n=0;n<h;n+=1){for(l=n/(h-1),c=0,i=0;i<o;i+=1)s=bmPow(1-l,3)*e[i]+3*bmPow(1-l,2)*l*r[i]+3*(1-l)*bmPow(l,2)*a[i]+bmPow(l,3)*t[i],p[i]=s,null!==u[i]&&(c+=bmPow(p[i]-u[i],2)),u[i]=p[i];c&&(d+=c=bmSqrt(c)),m.percents[n]=l,m.lengths[n]=d}return m.addedLength=d,m};function a(e){this.segmentLength=0,this.points=new Array(e)}function n(e,t){this.partialLength=e,this.point=t}var i,o=(i={},function(e,r,o,s){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!i[l]){var c,h,d,p,u,m,f,g=getDefaultCurveSegments(),y=0,v=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+o[0],e[1]+o[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(g=2);var b=new a(g);for(d=o.length,c=0;c<g;c+=1){for(f=createSizedArray(d),u=c/(g-1),m=0,h=0;h<d;h+=1)p=bmPow(1-u,3)*e[h]+3*bmPow(1-u,2)*u*(e[h]+o[h])+3*(1-u)*bmPow(u,2)*(r[h]+s[h])+bmPow(u,3)*r[h],f[h]=p,null!==v&&(m+=bmPow(f[h]-v[h],2));y+=m=bmSqrt(m),b.points[c]=new n(m,f),v=f}b.segmentLength=y,i[l]=b}return i[l]});function s(e,t){var r=t.percents,a=t.lengths,n=r.length,i=bmFloor((n-1)*e),o=e*t.addedLength,s=0;if(i===n-1||0===i||o===a[i])return r[i];for(var l=a[i]>o?-1:1,c=!0;c;)if(a[i]<=o&&a[i+1]>o?(s=(o-a[i])/(a[i+1]-a[i]),c=!1):i+=l,i<0||i>=n-1){if(i===n-1)return r[i];c=!1}return r[i]+(r[i+1]-r[i])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,a=segmentsLengthPool.newElement(),n=e.c,i=e.v,o=e.o,s=e.i,l=e._length,c=a.lengths,h=0;for(t=0;t<l-1;t+=1)c[t]=r(i[t],i[t+1],o[t],s[t+1]),h+=c[t].addedLength;return n&&l&&(c[t]=r(i[t],i[0],o[t],s[0]),h+=c[t].addedLength),a.totalLength=h,a},getNewSegment:function(t,r,a,n,i,o,c){i<0?i=0:i>1&&(i=1);var h,d=s(i,c),p=s(o=o>1?1:o,c),u=t.length,m=1-d,f=1-p,g=m*m*m,y=d*m*m*3,v=d*d*m*3,b=d*d*d,x=m*m*f,E=d*m*f+m*d*f+m*m*p,S=d*d*f+m*d*p+d*m*p,k=d*d*p,_=m*f*f,T=d*f*f+m*p*f+m*f*p,P=d*p*f+m*p*p+d*f*p,A=d*p*p,C=f*f*f,w=p*f*f+f*p*f+f*f*p,I=p*p*f+f*p*p+p*f*p,D=p*p*p;for(h=0;h<u;h+=1)l[4*h]=e.round(1e3*(g*t[h]+y*a[h]+v*n[h]+b*r[h]))/1e3,l[4*h+1]=e.round(1e3*(x*t[h]+E*a[h]+S*n[h]+k*r[h]))/1e3,l[4*h+2]=e.round(1e3*(_*t[h]+T*a[h]+P*n[h]+A*r[h]))/1e3,l[4*h+3]=e.round(1e3*(C*t[h]+w*a[h]+I*n[h]+D*r[h]))/1e3;return l},getPointInSegment:function(t,r,a,n,i,o){var l=s(i,o),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*a[0]+(l*l*c+c*l*l+l*c*l)*n[0]+l*l*l*r[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*a[1]+(l*l*c+c*l*l+l*c*l)*n[1]+l*l*l*r[1]))/1e3]},buildBezierData:o,pointOnLine2D:t,pointOnLine3D:function(r,a,n,i,o,s,l,c,h){if(0===n&&0===s&&0===h)return t(r,a,i,o,l,c);var d,p=e.sqrt(e.pow(i-r,2)+e.pow(o-a,2)+e.pow(s-n,2)),u=e.sqrt(e.pow(l-r,2)+e.pow(c-a,2)+e.pow(h-n,2)),m=e.sqrt(e.pow(l-i,2)+e.pow(c-o,2)+e.pow(h-s,2));return(d=p>u?p>m?p-u-m:m-u-p:m>u?m-u-p:u-p-m)>-1e-4&&d<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,a=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var n,i,o,s,l,c,h,d,p,u=t.lastIndex,m=u,f=this.keyframes.length-1,g=!0;g;){if(n=this.keyframes[m],i=this.keyframes[m+1],m===f-1&&e>=i.t-a){n.h&&(n=i),u=0;break}if(i.t-a>e){u=m;break}m<f-1?m+=1:(u=0,g=!1)}o=this.keyframesMetadata[m]||{};var y,v=i.t-a,b=n.t-a;if(n.to){o.bezierData||(o.bezierData=bez.buildBezierData(n.s,i.s||n.e,n.to,n.ti));var x=o.bezierData;if(e>=v||e<b){var E=e>=v?x.points.length-1:0;for(l=x.points[E].point.length,s=0;s<l;s+=1)r[s]=x.points[E].point[s]}else{o.__fnct?p=o.__fnct:(p=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,o.__fnct=p),c=p((e-b)/(v-b));var S,k=x.segmentLength*c,_=t.lastFrame<e&&t._lastKeyframeIndex===m?t._lastAddedLength:0;for(d=t.lastFrame<e&&t._lastKeyframeIndex===m?t._lastPoint:0,g=!0,h=x.points.length;g;){if(_+=x.points[d].partialLength,0===k||0===c||d===x.points.length-1){for(l=x.points[d].point.length,s=0;s<l;s+=1)r[s]=x.points[d].point[s];break}if(k>=_&&k<_+x.points[d+1].partialLength){for(S=(k-_)/x.points[d+1].partialLength,l=x.points[d].point.length,s=0;s<l;s+=1)r[s]=x.points[d].point[s]+(x.points[d+1].point[s]-x.points[d].point[s])*S;break}d<h-1?d+=1:g=!1}t._lastPoint=d,t._lastAddedLength=_-x.points[d].partialLength,t._lastKeyframeIndex=m}}else{var T,P,A,C,w;if(f=n.s.length,y=i.s||n.e,this.sh&&1!==n.h)e>=v?(r[0]=y[0],r[1]=y[1],r[2]=y[2]):e<=b?(r[0]=n.s[0],r[1]=n.s[1],r[2]=n.s[2]):quaternionToEuler(r,slerp(createQuaternion(n.s),createQuaternion(y),(e-b)/(v-b)));else for(m=0;m<f;m+=1)1!==n.h&&(e>=v?c=1:e<b?c=0:(n.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[m]?p=o.__fnct[m]:(T=void 0===n.o.x[m]?n.o.x[0]:n.o.x[m],P=void 0===n.o.y[m]?n.o.y[0]:n.o.y[m],A=void 0===n.i.x[m]?n.i.x[0]:n.i.x[m],C=void 0===n.i.y[m]?n.i.y[0]:n.i.y[m],p=BezierFactory.getBezierEasing(T,P,A,C).get,o.__fnct[m]=p)):o.__fnct?p=o.__fnct:(T=n.o.x,P=n.o.y,A=n.i.x,C=n.i.y,p=BezierFactory.getBezierEasing(T,P,A,C).get,n.keyframeMetadata=p),c=p((e-b)/(v-b)))),y=i.s||n.e,w=1===n.h?n.s[m]:n.s[m]+(y[m]-n.s[m])*c,"multidimensional"===this.propType?r[m]=w:r=w}return t.lastIndex=u,r}function slerp(e,t,r){var a,n,i,o,s,l=[],c=e[0],h=e[1],d=e[2],p=e[3],u=t[0],m=t[1],f=t[2],g=t[3];return(n=c*u+h*m+d*f+p*g)<0&&(n=-n,u=-u,m=-m,f=-f,g=-g),1-n>1e-6?(a=Math.acos(n),i=Math.sin(a),o=Math.sin((1-r)*a)/i,s=Math.sin(r*a)/i):(o=1-r,s=r),l[0]=o*c+s*u,l[1]=o*h+s*m,l[2]=o*d+s*f,l[3]=o*p+s*g,l}function quaternionToEuler(e,t){var r=t[0],a=t[1],n=t[2],i=t[3],o=Math.atan2(2*a*i-2*r*n,1-2*a*a-2*n*n),s=Math.asin(2*r*a+2*n*i),l=Math.atan2(2*r*i-2*a*n,1-2*r*r-2*n*n);e[0]=o/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,a=e[2]*degToRads,n=Math.cos(t/2),i=Math.cos(r/2),o=Math.cos(a/2),s=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(a/2);return[s*l*o+n*i*c,s*i*o+n*l*c,n*l*o-s*i*c,n*i*o-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(e,this._caching);this.pv=a}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,a=this.v.length;r<a;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,a){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,a){var n;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i=t.k.length;for(this.v=createTypedArray("float32",i),this.pv=createTypedArray("float32",i),this.vel=createTypedArray("float32",i),n=0;n<i;n+=1)this.v[n]=t.k[n]*this.mult,this.pv[n]=t.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,a){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=a,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,a){var n;this.propType="multidimensional";var i,o,s,l,c=t.k.length;for(n=0;n<c-1;n+=1)t.k[n].to&&t.k[n].s&&t.k[n+1]&&t.k[n+1].s&&(i=t.k[n].s,o=t.k[n+1].s,s=t.k[n].to,l=t.k[n].ti,(2===i.length&&(i[0]!==o[0]||i[1]!==o[1])&&bez.pointOnLine2D(i[0],i[1],o[0],o[1],i[0]+s[0],i[1]+s[1])&&bez.pointOnLine2D(i[0],i[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===i.length&&(i[0]!==o[0]||i[1]!==o[1]||i[2]!==o[2])&&bez.pointOnLine3D(i[0],i[1],i[2],o[0],o[1],o[2],i[0]+s[0],i[1]+s[1],i[2]+s[2])&&bez.pointOnLine3D(i[0],i[1],i[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(t.k[n].to=null,t.k[n].ti=null),i[0]===o[0]&&i[1]===o[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===i.length||i[2]===o[2]&&0===s[2]&&0===l[2])&&(t.k[n].to=null,t.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=a,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var h=t.k[0].s.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),n=0;n<h;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",h)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(e,t,r,a,n){var i;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])i=new MultiDimensionalProperty(e,t,a,n);else switch(r){case 0:i=new KeyframedValueProperty(e,t,a,n);break;case 1:i=new KeyframedMultidimensionalProperty(e,t,a,n)}else i=new ValueProperty(e,t,a,n);return i.effectsSequence.length&&n.addDynamicProperty(i),i}},ob),ob;function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,a,n){var i;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":i=this.v;break;case"i":i=this.i;break;case"o":i=this.o;break;default:i=[]}(!i[a]||i[a]&&!n)&&(i[a]=pointPool.newElement()),i[a][0]=e,i[a][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,a,n,i,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(r,a,"o",o,s),this.setXYAt(n,i,"i",o,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,a=this.i,n=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],a[0][0],a[0][1],r[0][0],r[0][1],0,!1),n=1);var i,o=this._length-1,s=this._length;for(i=n;i<s;i+=1)e.setTripleAt(t[o][0],t[o][1],a[o][0],a[o][1],r[o][0],r[o][1],i,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),a=void 0===e._length?e.v.length:e._length;for(r.setLength(a),r.c=e.c,t=0;t<a;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:function(){return t?a[t-=1]:new ShapeCollection},release:function(e){var n,i=e._length;for(n=0;n<i;n+=1)shapePool.release(e.shapes[n]);e._length=0,t===r&&(a=pooling.double(a),r*=2),a[t]=e,t+=1}},t=0,r=4,a=createSizedArray(r);return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var a,n,i,o,s,l,c,h,d,p=r.lastIndex,u=this.keyframes;if(e<u[0].t-this.offsetTime)a=u[0].s[0],i=!0,p=0;else if(e>=u[u.length-1].t-this.offsetTime)a=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],i=!0;else{for(var m,f,g,y=p,v=u.length-1,b=!0;b&&(m=u[y],!((f=u[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},p=y,!(i=1===m.h)){if(e>=f.t-this.offsetTime)h=1;else if(e<m.t-this.offsetTime)h=0;else{var x;g.__fnct?x=g.__fnct:(x=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,g.__fnct=x),h=x((e-(m.t-this.offsetTime))/(f.t-this.offsetTime-(m.t-this.offsetTime)))}n=f.s?f.s[0]:m.e[0]}a=m.s[0]}for(l=t._length,c=a.i[0].length,r.lastIndex=p,o=0;o<l;o+=1)for(s=0;s<c;s+=1)d=i?a.i[o][s]:a.i[o][s]+(n.i[o][s]-a.i[o][s])*h,t.i[o][s]=d,d=i?a.o[o][s]:a.o[o][s]+(n.o[o][s]-a.o[o][s])*h,t.o[o][s]=d,d=i?a.v[o][s]:a.v[o][s]+(n.v[o][s]-a.v[o][s])*h,t.v[o][s]=d}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==e&&(n<r&&t<r||n>a&&t>a)||(this._caching.lastIndex=n<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function a(){this.paths=this.localShapeCollection}function n(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,a=e._length;for(r=0;r<a;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,n,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===i?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}o.prototype.interpolateShape=t,o.prototype.getValue=i,o.prototype.setVValue=n,o.prototype.addEffect=s,l.prototype.getValue=i,l.prototype.interpolateShape=t,l.prototype.setVValue=n,l.prototype.addEffect=s;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],a=this.s.v[0]/2,n=this.s.v[1]/2,i=3!==this.d,o=this.v;o.v[0][0]=t,o.v[0][1]=r-n,o.v[1][0]=i?t+a:t-a,o.v[1][1]=r,o.v[2][0]=t,o.v[2][1]=r+n,o.v[3][0]=i?t-a:t+a,o.v[3][1]=r,o.i[0][0]=i?t-a*e:t+a*e,o.i[0][1]=r-n,o.i[1][0]=i?t+a:t-a,o.i[1][1]=r-n*e,o.i[2][0]=i?t+a*e:t-a*e,o.i[2][1]=r+n,o.i[3][0]=i?t-a:t+a,o.i[3][1]=r+n*e,o.o[0][0]=i?t+a*e:t-a*e,o.o[0][1]=r-n,o.o[1][0]=i?t+a:t-a,o.o[1][1]=r+n*e,o.o[2][0]=i?t-a*e:t+a*e,o.o[2][1]=r+n,o.o[3][0]=i?t-a:t+a,o.o[3][1]=r-n*e}},extendPrototype([DynamicPropertyContainer],t),t}(),h=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,a,n=2*Math.floor(this.pt.v),i=2*Math.PI/n,o=!0,s=this.or.v,l=this.ir.v,c=this.os.v,h=this.is.v,d=2*Math.PI*s/(2*n),p=2*Math.PI*l/(2*n),u=-Math.PI/2;u+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<n;e+=1){r=o?c:h,a=o?d:p;var f=(t=o?s:l)*Math.cos(u),g=t*Math.sin(u),y=0===f&&0===g?0:g/Math.sqrt(f*f+g*g),v=0===f&&0===g?0:-f/Math.sqrt(f*f+g*g);f+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(f,g,f-y*a*r*m,g-v*a*r*m,f+y*a*r*m,g+v*a*r*m,e,!0),o=!o,u+=i*m}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,a=this.or.v,n=this.os.v,i=2*Math.PI*a/(4*t),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=a*Math.cos(o),c=a*Math.sin(o),h=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),d=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-h*i*n*s,c-d*i*n*s,l+h*i*n*s,c+d*i*n*s,e,!0),o+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,a=this.s.v[1]/2,n=bmMin(r,a,this.r.v),i=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-a+n,e+r,t-a+n,e+r,t-a+i,0,!0),this.v.setTripleAt(e+r,t+a-n,e+r,t+a-i,e+r,t+a-n,1,!0),0!==n?(this.v.setTripleAt(e+r-n,t+a,e+r-n,t+a,e+r-i,t+a,2,!0),this.v.setTripleAt(e-r+n,t+a,e-r+i,t+a,e-r+n,t+a,3,!0),this.v.setTripleAt(e-r,t+a-n,e-r,t+a-n,e-r,t+a-i,4,!0),this.v.setTripleAt(e-r,t-a+n,e-r,t-a+i,e-r,t-a+n,5,!0),this.v.setTripleAt(e-r+n,t-a,e-r+n,t-a,e-r+i,t-a,6,!0),this.v.setTripleAt(e+r-n,t-a,e+r-i,t-a,e+r-n,t-a,7,!0)):(this.v.setTripleAt(e-r,t+a,e-r+i,t+a,e-r,t+a,2),this.v.setTripleAt(e-r,t-a,e-r,t-a+i,e-r,t-a,3))):(this.v.setTripleAt(e+r,t-a+n,e+r,t-a+i,e+r,t-a+n,0,!0),0!==n?(this.v.setTripleAt(e+r-n,t-a,e+r-n,t-a,e+r-i,t-a,1,!0),this.v.setTripleAt(e-r+n,t-a,e-r+i,t-a,e-r+n,t-a,2,!0),this.v.setTripleAt(e-r,t-a+n,e-r,t-a+n,e-r,t-a+i,3,!0),this.v.setTripleAt(e-r,t+a-n,e-r,t+a-i,e-r,t+a-n,4,!0),this.v.setTripleAt(e-r+n,t+a,e-r+n,t+a,e-r+i,t+a,5,!0),this.v.setTripleAt(e+r-n,t+a,e+r-i,t+a,e+r-n,t+a,6,!0),this.v.setTripleAt(e+r,t+a-n,e+r,t+a-n,e+r,t+a-i,7,!0)):(this.v.setTripleAt(e-r,t-a,e-r+i,t-a,e-r,t-a,1,!0),this.v.setTripleAt(e-r,t+a,e-r,t+a-i,e-r,t+a,2,!0),this.v.setTripleAt(e+r,t+a,e+r-i,t+a,e+r,t+a,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],e),e}(),p={getShapeProp:function(e,t,r){var a;return 3===r||4===r?a=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new o(e,t,r):5===r?a=new d(e,t):6===r?a=new c(e,t):7===r&&(a=new h(e,t)),a.k&&e.addDynamicProperty(a),a},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}};return p}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,a=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function i(r){if(0===r)return this;var a=e(r),n=t(r);return this._t(a,-n,0,0,n,a,0,0,0,0,1,0,0,0,0,1)}function o(r){if(0===r)return this;var a=e(r),n=t(r);return this._t(1,0,0,0,0,a,-n,0,0,n,a,0,0,0,0,1)}function s(r){if(0===r)return this;var a=e(r),n=t(r);return this._t(a,0,n,0,0,1,0,0,-n,0,a,0,0,0,0,1)}function l(r){if(0===r)return this;var a=e(r),n=t(r);return this._t(a,-n,0,0,n,a,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function h(e,t){return this.shear(r(e),r(t))}function d(a,n){var i=e(n),o=t(n);return this._t(i,o,0,0,-o,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(a),1,0,0,0,0,1,0,0,0,0,1)._t(i,-o,0,0,o,i,0,0,0,0,1,0,0,0,0,1)}function p(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function u(e,t,r,a,n,i,o,s,l,c,h,d,p,u,m,f){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=a,this.props[4]=n,this.props[5]=i,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=h,this.props[11]=d,this.props[12]=p,this.props[13]=u,this.props[14]=m,this.props[15]=f,this}function m(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function f(e,t,r,a,n,i,o,s,l,c,h,d,p,u,m,f){var g=this.props;if(1===e&&0===t&&0===r&&0===a&&0===n&&1===i&&0===o&&0===s&&0===l&&0===c&&1===h&&0===d)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*i+g[15]*u,g[14]=g[14]*h+g[15]*m,g[15]*=f,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],E=g[4],S=g[5],k=g[6],_=g[7],T=g[8],P=g[9],A=g[10],C=g[11],w=g[12],I=g[13],D=g[14],M=g[15];return g[0]=y*e+v*n+b*l+x*p,g[1]=y*t+v*i+b*c+x*u,g[2]=y*r+v*o+b*h+x*m,g[3]=y*a+v*s+b*d+x*f,g[4]=E*e+S*n+k*l+_*p,g[5]=E*t+S*i+k*c+_*u,g[6]=E*r+S*o+k*h+_*m,g[7]=E*a+S*s+k*d+_*f,g[8]=T*e+P*n+A*l+C*p,g[9]=T*t+P*i+A*c+C*u,g[10]=T*r+P*o+A*h+C*m,g[11]=T*a+P*s+A*d+C*f,g[12]=w*e+I*n+D*l+M*p,g[13]=w*t+I*i+D*c+M*u,g[14]=w*r+I*o+D*h+M*m,g[15]=w*a+I*s+D*d+M*f,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function x(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function E(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function k(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function _(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function T(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,a=-this.props[4]/e,n=this.props[0]/e,i=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=a,s.props[5]=n,s.props[12]=i,s.props[13]=o,s}function P(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function A(e){var t,r=e.length,a=[];for(t=0;t<r;t+=1)a[t]=P(e[t]);return a}function C(e,t,r){var a=createTypedArray("float32",6);if(this.isIdentity())a[0]=e[0],a[1]=e[1],a[2]=t[0],a[3]=t[1],a[4]=r[0],a[5]=r[1];else{var n=this.props[0],i=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];a[0]=e[0]*n+e[1]*o+l,a[1]=e[0]*i+e[1]*s+c,a[2]=t[0]*n+t[1]*o+l,a[3]=t[0]*i+t[1]*s+c,a[4]=r[0]*n+r[1]*o+l,a[5]=r[0]*i+r[1]*s+c}return a}function w(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function I(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function D(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=a(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function M(e){return e<1e-6&&e>0||e>-1e-6&&e<0?a(1e4*e)/1e4:e}function R(){var e=this.props;return"matrix("+M(e[0])+","+M(e[1])+","+M(e[4])+","+M(e[5])+","+M(e[12])+","+M(e[13])+")"}return function(){this.reset=n,this.rotate=i,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=h,this.skewFromAxis=d,this.shear=c,this.scale=p,this.setTransform=u,this.translate=m,this.transform=f,this.multiply=g,this.applyToPoint=E,this.applyToX=S,this.applyToY=k,this.applyToZ=_,this.applyToPointArray=w,this.applyToTriplePoints=C,this.applyToPointStringified=I,this.toCSS=D,this.to2dCSS=R,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=A,this.inversePoint=P,this.getInverseMatrix=T,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var a=t[r].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,a){return new t[e](r,a)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,a,n){var i=[];t<=1?i.push({s:e,e:t}):e>=1?i.push({s:e-1,e:t-1}):(i.push({s:e,e:1}),i.push({s:0,e:t-1}));var o,s,l=[],c=i.length;for(o=0;o<c;o+=1){var h,d;(s=i[o]).e*n<a||s.s*n>a+r||(h=s.s*n<=a?0:(s.s*n-a)/r,d=s.e*n>=a+r?1:(s.e*n-a)/r,l.push([h,d]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,a,n;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),(t=this.s.v>1?1+i:this.s.v<0?0+i:this.s.v+i)>(r=this.e.v>1?1+i:this.e.v<0?0+i:this.e.v+i)){var o=t;t=r,r=o}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,l,c,h,d,p=this.shapes.length,u=0;if(r===t)for(n=0;n<p;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(n=0;n<p;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var m,f,g=[];for(n=0;n<p;n+=1)if((m=this.shapes[n]).shape._mdf||this._mdf||e||2===this.m){if(l=(a=m.shape.paths)._length,d=0,!m.shape._mdf&&m.pathsData.length)d=m.totalShapeLength;else{for(c=this.releasePathsData(m.pathsData),s=0;s<l;s+=1)h=bez.getSegmentsLength(a.shapes[s]),c.push(h),d+=h.totalLength;m.totalShapeLength=d,m.pathsData=c}u+=d,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var y,v=t,b=r,x=0;for(n=p-1;n>=0;n-=1)if((m=this.shapes[n]).shape._mdf){for((f=m.localShapeCollection).releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(t,r,m.totalShapeLength,x,u),x+=m.totalShapeLength):y=[[v,b]],l=y.length,s=0;s<l;s+=1){v=y[s][0],b=y[s][1],g.length=0,b<=1?g.push({s:m.totalShapeLength*v,e:m.totalShapeLength*b}):v>=1?g.push({s:m.totalShapeLength*(v-1),e:m.totalShapeLength*(b-1)}):(g.push({s:m.totalShapeLength*v,e:m.totalShapeLength}),g.push({s:0,e:m.totalShapeLength*(b-1)}));var E=this.addShapes(m,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var S=E.pop();this.addPaths(E,f),E=this.addShapes(m,g[1],S)}else this.addPaths(E,f),E=this.addShapes(m,g[1]);this.addPaths(E,f)}}m.shape.paths=f}}},TrimModifier.prototype.addPaths=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,a,n,i,o){n.setXYAt(t[0],t[1],"o",i),n.setXYAt(r[0],r[1],"i",i+1),o&&n.setXYAt(e[0],e[1],"v",i),n.setXYAt(a[0],a[1],"v",i+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,a){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),a&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var a,n,i,o,s,l,c,h,d=e.pathsData,p=e.shape.paths.shapes,u=e.shape.paths._length,m=0,f=[],g=!0;for(r?(s=r._length,h=r._length):(r=shapePool.newElement(),s=0,h=0),f.push(r),a=0;a<u;a+=1){for(l=d[a].lengths,r.c=p[a].c,i=p[a].c?l.length:l.length+1,n=1;n<i;n+=1)if(m+(o=l[n-1]).addedLength<t.s)m+=o.addedLength,r.c=!1;else{if(m>t.e){r.c=!1;break}t.s<=m&&t.e>=m+o.addedLength?(this.addSegment(p[a].v[n-1],p[a].o[n-1],p[a].i[n],p[a].v[n],r,s,g),g=!1):(c=bez.getNewSegment(p[a].v[n-1],p[a].v[n],p[a].o[n-1],p[a].i[n],(t.s-m)/o.addedLength,(t.e-m)/o.addedLength,l[n-1]),this.addSegmentFromArray(c,r,s,g),g=!1,r.c=!1),m+=o.addedLength,s+=1}if(p[a].c&&l.length){if(o=l[n-1],m<=t.e){var y=l[n-1].addedLength;t.s<=m&&t.e>=m+y?(this.addSegment(p[a].v[n-1],p[a].o[n-1],p[a].i[0],p[a].v[0],r,s,g),g=!1):(c=bez.getNewSegment(p[a].v[n-1],p[a].v[0],p[a].o[n-1],p[a].i[0],(t.s-m)/y,(t.e-m)/y,l[n-1]),this.addSegmentFromArray(c,r,s,g),g=!1,r.c=!1)}else r.c=!1;m+=o.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[h][0],r.v[h][1],"i",h),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>t.e)break;a<u-1&&(r=shapePool.newElement(),g=!0,f.push(r),s=0)}return f},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,a=[0,0],n=e._length,i=0;for(i=0;i<n;i+=1)a[0]+=e.v[i][0],a[1]+=e.v[i][1];a[0]/=n,a[1]/=n;var o,s,l,c,h,d,p=shapePool.newElement();for(p.c=e.c,i=0;i<n;i+=1)o=e.v[i][0]+(a[0]-e.v[i][0])*r,s=e.v[i][1]+(a[1]-e.v[i][1])*r,l=e.o[i][0]+(a[0]-e.o[i][0])*-r,c=e.o[i][1]+(a[1]-e.o[i][1])*-r,h=e.i[i][0]+(a[0]-e.i[i][0])*-r,d=e.i[i][1]+(a[1]-e.i[i][1])*-r,p.setTripleAt(o,s,l,c,h,d,i);return p},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,a,n,i,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(i=this.shapes[r]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,n=i.shape.paths._length,a=0;a<n;a+=1)o.addShape(this.processPath(t[a],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var a,n=t.or.k.length;for(a=0;a<n;a+=1)t.or.k[a].to=null,t.or.k[a].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var a,n;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(a=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(a=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(a=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){a=[],n=[];var i=this.px,o=this.py;i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(a[0]=i.getValueAtTime((i.keyframes[0].t+.01)/r,0),a[1]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[0]=i.getValueAtTime(i.keyframes[0].t/r,0),n[1]=o.getValueAtTime(o.keyframes[0].t/r,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(a[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/r,0),a[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/r,0),n[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0)):(a=[i.pv,o.pv],n[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/r,i.offsetTime),n[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime))}else a=n=e;this.v.rotate(-Math.atan2(a[1]-n[1],a[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,a){return new t(e,r,a)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var a=t*t-4*e*r;if(a<0)return[];var n=-t/(2*e);if(0===a)return[n];var i=Math.sqrt(a)/(2*e);return[n-i,n+i]}function polynomialCoefficients(e,t,r,a){return[3*t-e-3*r+a,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,a,n){n&&pointEqual(e,t)&&(t=lerpPoint(e,a,1/3)),n&&pointEqual(r,a)&&(r=lerpPoint(e,a,2/3));var i=polynomialCoefficients(e[0],t[0],r[0],a[0]),o=polynomialCoefficients(e[1],t[1],r[1],a[1]);this.a=[i[0],o[0]],this.b=[i[1],o[1]],this.c=[i[2],o[2]],this.d=[i[3],o[3]],this.points=[e,t,r,a]}function extrema(e,t){var r=e.points[0][t],a=e.points[e.points.length-1][t];if(r>a){var n=a;a=r,r=n}for(var i=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<i.length;o+=1)if(i[o]>0&&i[o]<1){var s=e.point(i[o])[t];s<r?r=s:s>a&&(a=s)}return{min:r,max:a}}function intersectData(e,t,r){var a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,a,n,i){if(boxIntersect(e,t))if(r>=i||e.width<=a&&e.height<=a&&t.width<=a&&t.height<=a)n.push([e.t,t.t]);else{var o=splitData(e),s=splitData(t);intersectsImpl(o[0],s[0],r+1,a,n,i),intersectsImpl(o[0],s[1],r+1,a,n,i),intersectsImpl(o[1],s[0],r+1,a,n,i),intersectsImpl(o[1],s[1],r+1,a,n,i)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,a){var n=[e[0],e[1],1],i=[t[0],t[1],1],o=[r[0],r[1],1],s=[a[0],a[1],1],l=crossProduct(crossProduct(n,i),crossProduct(o,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,a,n,i,o){var s=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*a*n,h=t[1]-Math.sin(r)*a*n;e.setTripleAt(c,h,c+Math.cos(s)*i,h-Math.sin(s)*i,c+Math.cos(l)*o,h-Math.sin(l)*o,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],a=.5*-Math.PI;return[Math.cos(a)*r[0]-Math.sin(a)*r[1],Math.sin(a)*r[0]+Math.cos(a)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,a=(t+1)%e.length(),n=getPerpendicularVector(e.v[r],e.v[a]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(e,t,r,a,n,i,o){var s=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[0===r?t._length-1:r-1],h=t.v[(r+1)%t._length],d=2===i?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,p=2===i?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0;setPoint(e,t.v[r%t._length],s,o,a,p/(2*(n+1)),d/(2*(n+1)))}function zigZagSegment(e,t,r,a,n,i){for(var o=0;o<a;o+=1){var s=(o+1)/(a+1),l=2===n?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);setPoint(e,t.point(s),c,i,r,l/(2*(a+1)),l/(2*(a+1))),i=-i}return i}function linearOffset(e,t,r){var a=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,a,r),polarOffset(t,a,r)]}function offsetSegment(e,t){var r,a,n,i,o,s,l;r=(l=linearOffset(e.points[0],e.points[1],t))[0],a=l[1],n=(l=linearOffset(e.points[1],e.points[2],t))[0],i=l[1],o=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(r,a,n,i);null===c&&(c=a);var h=lineIntersection(o,s,n,i);return null===h&&(h=o),new PolynomialBezier(r,c,h,s)}function joinLines(e,t,r,a,n){var i=t.points[3],o=r.points[0];if(3===a)return i;if(pointEqual(i,o))return i;if(2===a){var s=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(i,polarOffset(i,s+Math.PI/2,100),o,polarOffset(o,s+Math.PI/2,100)),h=c?pointDistance(c,i):pointDistance(i,o)/2,d=polarOffset(i,s,2*h*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(o,l,2*h*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],d[0],d[1],e.length()),o}var p=lineIntersection(pointEqual(i,t.points[2])?t.points[0]:t.points[2],i,o,pointEqual(o,r.points[1])?r.points[3]:r.points[1]);return p&&pointDistance(p,i)<n?(e.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],e.length()),p):i}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),a=t.slice(),n=getIntersection(e[e.length-1],t[0]);return n&&(r[e.length-1]=e[e.length-1].split(n[0])[0],a[0]=t[0].split(n[1])[1]),e.length>1&&t.length>1&&(n=getIntersection(e[0],t[t.length-1]))?[[e[0].split(n[0])[0]],[t[t.length-1].split(n[1])[1]]]:[r,a]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,a,n,i,o=e.inflectionPoints();if(0===o.length)return[offsetSegment(e,t)];if(1===o.length||floatEqual(o[1],1))return r=(n=e.split(o[0]))[0],a=n[1],[offsetSegment(r,t),offsetSegment(a,t)];r=(n=e.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return i=(n=n[1].split(s))[0],a=n[1],[offsetSegment(r,t),offsetSegment(i,t),offsetSegment(a,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",a="normal",n=t.length,i=0;i<n;i+=1)switch(t[i].toLowerCase()){case"italic":a="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:a,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,a,n,i){var o=i?-1:1,s=a.s.v[0]+(1-a.s.v[0])*(1-n),l=a.s.v[1]+(1-a.s.v[1])*(1-n);e.translate(a.p.v[0]*o*n,a.p.v[1]*o*n,a.p.v[2]),t.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),t.rotate(-a.r.v*o*n),t.translate(a.a.v[0],a.a.v[1],a.a.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.scale(i?1/s:s,i?1/l:l),r.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,a){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,a,n,i,o=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(i=0,a=0;a<=this._groups.length-1;a+=1){if(s=i<l,this._groups[a]._render=s,this.changeGroupRender(this._groups[a].it,s),!s){var h=this.elemsData[a].it,d=h[h.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}i+=1}this._currentCopies=l;var p=this.o.v,u=p%1,m=p>0?Math.floor(p):Math.ceil(p),f=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(p>0){for(;x<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),x+=u)}else if(p<0){for(;x>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),x-=u)}for(a=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,i=this._currentCopies;i;){if(b=(r=(t=this.elemsData[a].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),0!==x){for((0!==a&&1===n||a!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];x+=1,i-=1,a+=n}}else for(i=this._currentCopies,a=0,n=1;i;)r=(t=this.elemsData[a].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,i-=1,a+=n;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,a=shapePool.newElement();a.c=e.c;var n,i,o,s,l,c,h,d,p,u,m,f,g=e._length,y=0;for(r=0;r<g;r+=1)n=e.v[r],o=e.o[r],i=e.i[r],n[0]===o[0]&&n[1]===o[1]&&n[0]===i[0]&&n[1]===i[1]?0!==r&&r!==g-1||e.c?(s=0===r?e.v[g-1]:e.v[r-1],c=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,t)/l:0,h=m=n[0]+(s[0]-n[0])*c,d=f=n[1]-(n[1]-s[1])*c,p=h-(h-n[0])*roundCorner,u=d-(d-n[1])*roundCorner,a.setTripleAt(h,d,p,u,m,f,y),y+=1,s=r===g-1?e.v[0]:e.v[r+1],c=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,t)/l:0,h=p=n[0]+(s[0]-n[0])*c,d=u=n[1]+(s[1]-n[1])*c,m=h-(h-n[0])*roundCorner,f=d-(d-n[1])*roundCorner,a.setTripleAt(h,d,p,u,m,f,y),y+=1):(a.setTripleAt(n[0],n[1],o[0],o[1],i[0],i[1],y),y+=1):(a.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],y),y+=1);return a},RoundCornersModifier.prototype.processShapes=function(e){var t,r,a,n,i,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(i=this.shapes[r]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,n=i.shape.paths._length,a=0;a<n;a+=1)o.addShape(this.processPath(t[a],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var a=Math.sqrt(r);return floatZero(a)?a>0&&a<1?[t]:[]:[t-a,t+a].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),a=lerpPoint(this.points[2],this.points[3],e),n=lerpPoint(t,r,e),i=lerpPoint(r,a,e),o=lerpPoint(n,i,e);return[new PolynomialBezier(this.points[0],t,n,o,!0),new PolynomialBezier(o,i,a,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,a,r),a},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,a){var n=e._length,i=shapePool.newElement();if(i.c=e.c,e.c||(n-=1),0===n)return i;var o=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(i,e,0,t,r,a,o);for(var l=0;l<n;l+=1)o=zigZagSegment(i,s,t,r,a,-o),s=l!==n-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%n):null,zigZagCorner(i,e,l+1,t,r,a,o);return i},ZigZagModifier.prototype.processShapes=function(e){var t,r,a,n,i,o,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),h=this.pointsType.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(i=this.shapes[r]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,n=i.shape.paths._length,a=0;a<n;a+=1)o.addShape(this.processPath(t[a],l,c,h));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,a){var n=shapePool.newElement();n.c=e.c;var i,o,s,l=e.length();e.c||(l-=1);var c=[];for(i=0;i<l;i+=1)s=PolynomialBezier.shapeSegment(e,i),c.push(offsetSegmentSplit(s,t));if(!e.c)for(i=l-1;i>=0;i-=1)s=PolynomialBezier.shapeSegmentInverted(e,i),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var h=null,d=null;for(i=0;i<c.length;i+=1){var p=c[i];for(d&&(h=joinLines(n,d,p[0],r,a)),d=p[p.length-1],o=0;o<p.length;o+=1)s=p[o],h&&pointEqual(s.points[0],h)?n.setXYAt(s.points[1][0],s.points[1][1],"o",n.length()-1):n.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],n.length()),n.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],n.length()),h=s.points[3]}return c.length&&joinLines(n,d,c[0][0],r,a),n},OffsetPathModifier.prototype.processShapes=function(e){var t,r,a,n,i,o,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,h=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(o=(i=this.shapes[r]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,n=i.shape.paths._length,a=0;a<n;a+=1)o.addShape(this.processPath(t[a],l,h,c));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,a=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var a=createTag("span");a.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(a),document.body.appendChild(r);var n=a.offsetWidth;return a.style.fontFamily=function(e){var t,r=e.split(","),a=r.length,n=[];for(t=0;t<a;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&n.push(r[t]);return n.join(",")}(e)+", "+t,{node:a,w:n,parent:r}}function i(e,t){var r,a=document.body&&t?"svg":"canvas",n=getFontProperties(e);if("svg"===a){var i=createNS("text");i.style.fontSize="100px",i.setAttribute("font-family",e.fFamily),i.setAttribute("font-style",n.style),i.setAttribute("font-weight",n.weight),i.textContent="1",e.fClass?(i.style.fontFamily="inherit",i.setAttribute("class",e.fClass)):i.style.fontFamily=e.fFamily,t.appendChild(i),r=i}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=n.style+" "+n.weight+" 100px "+e.fFamily,r=o}return{measureText:function(e){return"svg"===a?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function o(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var a=e.charCodeAt(1);a>=56320&&a<=57343&&(t=1024*(r-55296)+a-56320+65536)}return t}function s(e){var t=o(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==a.indexOf(r)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var a=o(e.substr(t,2));if(a!==r)return!1;var n=0;for(t+=2;n<5;){if((a=o(e.substr(t,2)))<917601||a>917626)return!1;n+=1,t+=2}return 917631===o(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=r;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,a,n=e.length,i=this.chars.length;for(t=0;t<n;t+=1){for(r=0,a=!1;r<i;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(a=!0),r+=1;a||(this.chars.push(e[t]),i+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=i(e),e.cache={}})),void(this.fonts=e.list);var r,a=e.list,o=a.length,s=o;for(r=0;r<o;r+=1){var l,c,h=!0;if(a[r].loaded=!1,a[r].monoCase=n(a[r].fFamily,"monospace"),a[r].sansCase=n(a[r].fFamily,"sans-serif"),a[r].fPath){if("p"===a[r].fOrigin||3===a[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+a[r].fFamily+'"], style[f-origin="3"][f-family="'+a[r].fFamily+'"]')).length>0&&(h=!1),h){var d=createTag("style");d.setAttribute("f-forigin",a[r].fOrigin),d.setAttribute("f-origin",a[r].origin),d.setAttribute("f-family",a[r].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+a[r].fFamily+"; font-style: normal; src: url('"+a[r].fPath+"');}",t.appendChild(d)}}else if("g"===a[r].fOrigin||1===a[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(a[r].fPath)&&(h=!1);if(h){var p=createTag("link");p.setAttribute("f-forigin",a[r].fOrigin),p.setAttribute("f-origin",a[r].origin),p.type="text/css",p.rel="stylesheet",p.href=a[r].fPath,document.body.appendChild(p)}}else if("t"===a[r].fOrigin||2===a[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)a[r].fPath===l[c].src&&(h=!1);if(h){var u=createTag("link");u.setAttribute("f-forigin",a[r].fOrigin),u.setAttribute("f-origin",a[r].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",a[r].fPath),t.appendChild(u)}}}else a[r].loaded=!0,s-=1;a[r].helper=i(a[r],t),a[r].cache={},this.fonts.push(a[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,a){for(var n=0,i=this.chars.length;n<i;){if(this.chars[n].ch===t&&this.chars[n].style===r&&this.chars[n].fFamily===a)return this.chars[n];n+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,a)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var a=this.getFontByName(t),n=e;if(!a.cache[n]){var i=a.helper;if(" "===e){var o=i.measureText("|"+e+"|"),s=i.measureText("||");a.cache[n]=(o-s)/100}else a.cache[n]=i.measureText(e)/100}return a.cache[n]*r},checkLoadedFonts:function(){var e,t,r,a=this.fonts.length,n=a;for(e=0;e<a;e+=1)this.fonts[e].loaded?n-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(n-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(n-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,a=e.ef||[];this.effectElements=[];var n,i=a.length;for(r=0;r<i;r+=1)n=new GroupEffect(a[r],t),this.effectElements.push(n)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var a,n=this.data.ef.length,i=this.data.ef;for(r=0;r<n;r+=1){switch(a=null,i[r].ty){case 0:a=new SliderEffect(i[r],t,this);break;case 1:a=new AngleEffect(i[r],t,this);break;case 2:a=new ColorEffect(i[r],t,this);break;case 3:a=new PointEffect(i[r],t,this);break;case 4:case 7:a=new CheckboxEffect(i[r],t,this);break;case 10:a=new LayerIndexEffect(i[r],t,this);break;case 11:a=new MaskIndexEffect(i[r],t,this);break;case 5:a=new EffectsManager(i[r],t);break;default:a=new NoValueEffect(i[r])}a&&this.effectElements.push(a)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),a=e("shape"),n=e("text"),i=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=i(this):4===this.data.ty?(this.layerInterface.shapeInterface=a(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,a=this.dynamicProperties.length;for(r=0;r<a;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,a=this.layers.length;for(this.completeLayers=!0,t=a-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,a=e.length,n=this.layers.length;for(t=0;t<a;t+=1)for(r=0;r<n;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var a=this.elements,n=this.layers,i=0,o=n.length;i<o;)n[i].ind==t&&(a[i]&&!0!==a[i]?(r.push(a[i]),a[i].setAsParent(),void 0!==n[i].parent?this.buildElementParenting(e,n[i].parent,r):e.setHierarchy(r)):(this.buildItem(i),this.addPendingElement(e))),i+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var a=this.createComp(e[t]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var a,n=this.elements.length;for(a=0;a<n;a+=1)if(this.elements[a].data.nm===r){t=this.elements[a];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a,n,i=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,c,h,d,p,u=this.masksProperties,m=0,f=[],g=createElementID(),y="clipPath",v="clip-path";for(a=0;a<o;a+=1)if(("a"!==u[a].mode&&"n"!==u[a].mode||u[a].inv||100!==u[a].o.k||u[a].o.x)&&(y="mask",v="mask"),"s"!==u[a].mode&&"i"!==u[a].mode||0!==m?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),f.push(c)),n=createNS("path"),"n"===u[a].mode)this.viewData[a]={op:PropertyFactory.getProp(this.element,u[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[a],3),elem:n,lastPath:""},i.appendChild(n);else{var b;if(m+=1,n.setAttribute("fill","s"===u[a].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==u[a].x.k?(y="mask",v="mask",p=PropertyFactory.getProp(this.element,u[a].x,0,null,this.element),b=createElementID(),(h=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),h.appendChild(d),i.appendChild(h),n.setAttribute("stroke","s"===u[a].mode?"#000000":"#ffffff")):(d=null,p=null),this.storedData[a]={elem:n,x:p,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===u[a].mode){l=f.length;var x=createNS("g");for(s=0;s<l;s+=1)x.appendChild(f[s]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",g+"_"+m),E.appendChild(n),i.appendChild(E),x.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+m+")"),f.length=0,f.push(x)}else f.push(n);u[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,u[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[a],3),invRect:c},this.viewData[a].prop.k||this.drawPath(u[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(y),o=f.length,a=0;a<o;a+=1)this.maskElement.appendChild(f[a]);m>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<a;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<a;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var a=this.localTransforms[e].matrix;r.multiply(a)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)n*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,a=!0,n=this.comp;a;)n.finalTransform?(n.data.hasMask&&t.splice(0,0,n.finalTransform),n=n.comp):a=!1;var i,o=t.length;for(r=0;r<o;r+=1)i=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-i[0],e[1]-i[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,a=this.masksProperties.length;for(t=0;t<a;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var n=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),n.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var a,n,i=" M"+t.v[0][0]+","+t.v[0][1];for(n=t._length,a=1;a<n;a+=1)i+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[a][0]+","+t.i[a][1]+" "+t.v[a][0]+","+t.v[a][1];if(t.c&&n>1&&(i+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==i){var o="";r.elem&&(t.c&&(o=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",o)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,a="SourceGraphic",n=e.data.ef?e.data.ef.length:0,i=createElementID(),o=filtersFactory.createFilter(i,!0),s=0;for(this.filters=[],t=0;t<n;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(r=new(0,registeredEffects$1[l].effect)(o,e.effectsManager.effectElements[t],e,idPrefix+s,a),a=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,a=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&a.push(this.filters[t]);return a},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),a=createNS("path");a.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(r.setAttribute("id",n),r.appendChild(a),this.globalData.defs.appendChild(r),this.checkMasks()){var i=createNS("g");i.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),i.appendChild(this.layerElement),this.transformedElement=i,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,a,n,i=this.layerId+"_"+e;if(1===e||3===e){var o=createNS("mask");o.setAttribute("id",i),o.setAttribute("mask-type",3===e?"luminance":"alpha"),(a=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(a),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==e||(o.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(a),o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",i),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),r=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),r.appendChild(c);var h=createNS("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),c.appendChild(h),this.globalData.defs.appendChild(r);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(d),(a=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(a),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(d),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=i}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,a=t.length;r<a;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,a=r.length;a;)if(r[a-=1].elem===e)return void(r[a].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var a=0,n=e.length;a<n;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,a){var n;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var i,o=t.length||0;for(n=0;n<o;n+=1)i=PropertyFactory.getProp(e,t[n].v,0,0,this),this.k=i.k||this.k,this.dataProps[n]={n:t[n].n,p:i};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var a=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,a=this.o.length/2;r<a;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,a,n=4*this.data.p;for(t=0;t<n;t+=1)r=t%4==0?100:255,a=Math.round(this.prop.v[t]*r),this.c[t]!==a&&(this.c[t]=a,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,t=4*this.data.p;t<n;t+=1)r=t%2==0?100:1,a=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==a&&(this.o[t-4*this.data.p]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),a=createNS(1===t.t?"linearGradient":"radialGradient");a.setAttribute("id",r),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var n,i,o,s=[];for(o=4*t.g.p,i=0;i<o;i+=4)n=createNS("stop"),a.appendChild(n),s.push(n);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=a,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,a,n,i=createNS("mask"),o=createNS("path");i.appendChild(o);var s=createElementID(),l=createElementID();i.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),n=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var h=this.stops;for(a=4*e.g.p;a<n;a+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),h.push(r);o.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=i,this.ost=h,this.maskId=l,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,a){if(0===t)return"";var n,i=e.o,o=e.i,s=e.v,l=" M"+a.applyToPointStringified(s[0][0],s[0][1]);for(n=1;n<t;n+=1)l+=" C"+a.applyToPointStringified(i[n-1][0],i[n-1][1])+" "+a.applyToPointStringified(o[n][0],o[n][1])+" "+a.applyToPointStringified(s[n][0],s[n][1]);return r&&t&&(l+=" C"+a.applyToPointStringified(i[n-1][0],i[n-1][1])+" "+a.applyToPointStringified(o[0][0],o[0][1])+" "+a.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function a(){}function n(r,a,n){var i,o,s,l,c,h,d,p,u,m,f=a.styles.length,g=a.lvl;for(h=0;h<f;h+=1){if(l=a.sh._mdf||n,a.styles[h].lvl<g){for(p=t.reset(),u=g-a.styles[h].lvl,m=a.transformers.length-1;!l&&u>0;)l=a.transformers[m].mProps._mdf||l,u-=1,m-=1;if(l)for(u=g-a.styles[h].lvl,m=a.transformers.length-1;u>0;)p.multiply(a.transformers[m].mProps.v),u-=1,m-=1}else p=e;if(o=(d=a.sh.paths)._length,l){for(s="",i=0;i<o;i+=1)(c=d.shapes[i])&&c._length&&(s+=buildShapeString(c,c._length,c.c,p));a.caches[h]=s}else s=a.caches[h];a.styles[h].d+=!0===r.hd?"":s,a.styles[h]._mdf=l||a.styles[h]._mdf}}function i(e,t,r){var a=t.style;(t.c._mdf||r)&&a.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&a.pElem.setAttribute("fill-opacity",t.o.v)}function o(e,t,r){s(e,t,r),l(0,t,r)}function s(e,t,r){var a,n,i,o,s,l=t.gf,c=t.g._hasOpacity,h=t.s.v,d=t.e.v;if(t.o._mdf||r){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||r){var u=1===e.t?"x1":"cx",m="x1"===u?"y1":"cy";l.setAttribute(u,h[0]),l.setAttribute(m,h[1]),c&&!t.g._collapsable&&(t.of.setAttribute(u,h[0]),t.of.setAttribute(m,h[1]))}if(t.g._cmdf||r){a=t.cst;var f=t.g.c;for(i=a.length,n=0;n<i;n+=1)(o=a[n]).setAttribute("offset",f[4*n]+"%"),o.setAttribute("stop-color","rgb("+f[4*n+1]+","+f[4*n+2]+","+f[4*n+3]+")")}if(c&&(t.g._omdf||r)){var g=t.g.o;for(i=(a=t.g._collapsable?t.cst:t.ost).length,n=0;n<i;n+=1)o=a[n],t.g._collapsable||o.setAttribute("offset",g[2*n]+"%"),o.setAttribute("stop-opacity",g[2*n+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(h[0]-d[0],2)+Math.pow(h[1]-d[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(h[0]-d[0],2)+Math.pow(h[1]-d[1],2)));var y=Math.atan2(d[1]-h[1],d[0]-h[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,x=Math.cos(y+t.a.v)*b+h[0],E=Math.sin(y+t.a.v)*b+h[1];l.setAttribute("fx",x),l.setAttribute("fy",E),c&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",E))}}function l(e,t,r){var a=t.style,n=t.d;n&&(n._mdf||r)&&n.dashStr&&(a.pElem.setAttribute("stroke-dasharray",n.dashStr),a.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),t.c&&(t.c._mdf||r)&&a.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&a.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(a.pElem.setAttribute("stroke-width",t.w.v),a.msElem&&a.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return i;case"gf":return s;case"gs":return o;case"st":return l;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return a;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,a,n,i){this.o=e,this.sw=t,this.sc=r,this.fc=a,this.m=n,this.p=i,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!a,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,a,n=this.shapes.length,i=this.stylesList.length,o=[],s=!1;for(r=0;r<i;r+=1){for(a=this.stylesList[r],s=!1,o.length=0,e=0;e<n;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(a)&&(o.push(t),s=t._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,a=new SVGStyleData(e,t),n=a.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,a):"fl"===e.ty?r=new SVGFillStyleData(this,e,a):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,a),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,a)),"st"!==e.ty&&"gs"!==e.ty||(n.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),n.setAttribute("fill-opacity","0"),1===e.lj&&n.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&n.setAttribute("fill-rule","evenodd"),e.ln&&n.setAttribute("id",e.ln),e.cl&&n.setAttribute("class",e.cl),e.bm&&(n.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),a=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7);var n=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,a,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,a=this.animatedContents.length;r<a;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,a=this.stylesList.length;for(t=0;t<a;t+=1)-1!==r.indexOf(this.stylesList[t])||this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,a,n,i,o){var s,l,c,h,d,p,u=[].concat(i),m=e.length-1,f=[],g=[];for(s=m;s>=0;s-=1){if((p=this.searchProcessedElement(e[s]))?t[s]=r[p-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)p?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],n),e[s]._render&&t[s].style.pElem.parentNode!==a&&a.appendChild(t[s].style.pElem),f.push(t[s].style);else if("gr"===e[s].ty){if(p)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,n+1,u,o),e[s]._render&&t[s].gr.parentNode!==a&&a.appendChild(t[s].gr)}else"tr"===e[s].ty?(p||(t[s]=this.createTransformElement(e[s],a)),h=t[s].transform,u.push(h)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(p||(t[s]=this.createShapeElement(e[s],u,n)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(p?(d=t[s]).closed=!1:((d=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[s].ty&&(p?(d=t[s]).closed=!0:(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),o=!1),g.push(d));this.addProcessedElement(e[s],s+1)}for(m=f.length,s=0;s<m;s+=1)f[s].closed=!0;for(m=g.length,s=0;s<m;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,a,n,i){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,o=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,o=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,o=!0),!i.length||this.p[0]===i[0]&&this.p[1]===i[1]&&this.p[4]===i[4]&&this.p[5]===i[5]&&this.p[12]===i[12]&&this.p[13]===i[13]||(this.p=i,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var a;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,i=e||this.data.d.k[this.keysIndex].s;for(a=0;a<n;a+=1)i=r!==this.keysIndex?this.effectsSequence[a](i,i.t):this.effectsSequence[a](this.currentData,i.t);t!==i&&this.setCurrentData(i),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,a=e.length;r<=a-1&&!(r===a-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,a=[],n=0,i=e.length,o=!1,s=!1,l="";n<i;)o=s,s=!1,t=e.charCodeAt(n),l=e.charAt(n),FontManager.isCombinedCharacter(t)?o=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,n)?l=e.substr(n,14):(r=e.charCodeAt(n+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(l=e.substr(n,2),o=!0):l=FontManager.isFlagEmoji(e.substr(n,4))?e.substr(n,4):e.substr(n,2)):t>56319?(r=e.charCodeAt(n+1),FontManager.isVariationSelector(t)&&(o=!0)):FontManager.isZeroWidthJoiner(t)&&(o=!0,s=!0),o?(a[a.length-1]+=l,o=!1):a.push(l),n+=l.length;return a},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,a,n,i,o,s,l=this.elem.globalData.fontManager,c=this.data,h=[],d=0,p=c.m.g,u=0,m=0,f=0,g=[],y=0,v=0,b=l.getFontByName(e.f),x=0,E=getFontProperties(b);e.fWeight=E.weight,e.fStyle=E.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var S,k=e.tr/1e3*e.finalSize;if(e.sz)for(var _,T,P=!0,A=e.sz[0],C=e.sz[1];P;){_=0,y=0,r=(T=this.buildFinalText(e.t)).length,k=e.tr/1e3*e.finalSize;var w=-1;for(t=0;t<r;t+=1)S=T[t].charCodeAt(0),a=!1," "===T[t]?w=t:13!==S&&3!==S||(y=0,a=!0,_+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(T[t],b.fStyle,b.fFamily),x=a?0:s.w*e.finalSize/100):x=l.measureText(T[t],e.f,e.finalSize),y+x>A&&" "!==T[t]?(-1===w?r+=1:t=w,_+=e.finalLineHeight||1.2*e.finalSize,T.splice(t,w===t?1:0,"\r"),w=-1,y=0):(y+=x,y+=k);_+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&C<_?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=T,r=e.finalText.length,P=!1)}y=-k,x=0;var I,D=0;for(t=0;t<r;t+=1)if(a=!1,13===(S=(I=e.finalText[t]).charCodeAt(0))||3===S?(D=0,g.push(y),v=y>v?y:v,y=-2*k,n="",a=!0,f+=1):n=I,l.chars?(s=l.getCharData(I,b.fStyle,l.getFontByName(e.f).fFamily),x=a?0:s.w*e.finalSize/100):x=l.measureText(n,e.f,e.finalSize)," "===I?D+=x+k:(y+=x+k+D,D=0),h.push({l:x,an:x,add:u,n:a,anIndexes:[],val:n,line:f,animatorJustifyOffset:0}),2==p){if(u+=x,""===n||" "===n||t===r-1){for(""!==n&&" "!==n||(u-=x);m<=t;)h[m].an=u,h[m].ind=d,h[m].extra=x,m+=1;d+=1,u=0}}else if(3==p){if(u+=x,""===n||t===r-1){for(""===n&&(u-=x);m<=t;)h[m].an=u,h[m].ind=d,h[m].extra=x,m+=1;u=0,d+=1}}else h[d].ind=d,h[d].extra=0,d+=1;if(e.l=h,v=y>v?y:v,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var M,R,F,L,O=c.a;o=O.length;var N=[];for(i=0;i<o;i+=1){for((M=O[i]).a.sc&&(e.strokeColorAnim=!0),M.a.sw&&(e.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(e.fillColorAnim=!0),L=0,F=M.s.b,t=0;t<r;t+=1)(R=h[t]).anIndexes[i]=L,(1==F&&""!==R.val||2==F&&""!==R.val&&" "!==R.val||3==F&&(R.n||" "==R.val||t==r-1)||4==F&&(R.n||t==r-1))&&(1===M.s.rn&&N.push(L),L+=1);c.a[i].s.totalChars=L;var $,B=-1;if(1===M.s.rn)for(t=0;t<r;t+=1)B!=(R=h[t]).anIndexes[i]&&(B=R.anIndexes[i],$=N.splice(Math.floor(Math.random()*N.length),1)[0]),R.anIndexes[i]=$}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function a(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return a.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,i=0,o=1,s=1;this.ne.v>0?n=this.ne.v/100:i=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,i,o,s).get,c=0,h=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)c=l(c=d===h?a>=d?1:0:e(0,t(.5/(d-h)+(a-h)/(d-h),1)));else if(3===p)c=l(c=d===h?a>=d?0:1:1-e(0,t(.5/(d-h)+(a-h)/(d-h),1)));else if(4===p)d===h?c=0:(c=e(0,t(.5/(d-h)+(a-h)/(d-h),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===p){if(d===h)c=0;else{var u=d-h,m=-u/2+(a=t(e(0,a+.5-h),d-h)),f=u/2;c=Math.sqrt(1-m*m/(f*f))}c=l(c)}else 6===p?(d===h?c=0:(a=t(e(0,a+.5-h),d-h),c=(1+Math.cos(Math.PI+2*Math.PI*a/(d-h)))/2),c=l(c)):(a>=r(h)&&(c=e(0,t(a-h<0?t(d,1)-(h-a):d-a,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,a=this.s.v/t+r,n=this.e.v/t+r;if(a>n){var i=a;a=n,n=i}this.finalS=a,this.finalE=n}},extendPrototype([DynamicPropertyContainer],a),{getTextSelectorProp:function(e,t,r){return new a(e,t)}}}();function TextAnimatorDataProperty(e,t,r){var a={propType:!1},n=PropertyFactory.getProp,i=t.a;this.a={r:i.r?n(e,i.r,0,degToRads,r):a,rx:i.rx?n(e,i.rx,0,degToRads,r):a,ry:i.ry?n(e,i.ry,0,degToRads,r):a,sk:i.sk?n(e,i.sk,0,degToRads,r):a,sa:i.sa?n(e,i.sa,0,degToRads,r):a,s:i.s?n(e,i.s,1,.01,r):a,a:i.a?n(e,i.a,1,0,r):a,o:i.o?n(e,i.o,0,.01,r):a,p:i.p?n(e,i.p,1,0,r):a,sw:i.sw?n(e,i.sw,0,0,r):a,sc:i.sc?n(e,i.sc,1,0,r):a,fc:i.fc?n(e,i.fc,1,0,r):a,fh:i.fh?n(e,i.fh,0,0,r):a,fs:i.fs?n(e,i.fs,0,.01,r):a,fb:i.fb?n(e,i.fb,0,.01,r):a,t:i.t?n(e,i.t,0,0,r):a},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,a=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,a,n,i,o,s,l,c,h,d,p,u,m,f,g,y,v,b,x,E=this._moreOptions.alignment.v,S=this._animatorsData,k=this._textData,_=this.mHelper,T=this._renderType,P=this.renderedLetters.length,A=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var C,w=x.v;for(this._pathData.r.v&&(w=w.reverse()),o={tLength:0,segments:[]},i=w._length-1,y=0,n=0;n<i;n+=1)C=bez.buildBezierData(w.v[n],w.v[n+1],[w.o[n][0]-w.v[n][0],w.o[n][1]-w.v[n][1]],[w.i[n+1][0]-w.v[n+1][0],w.i[n+1][1]-w.v[n+1][1]]),o.tLength+=C.segmentLength,o.segments.push(C),y+=C.segmentLength;n=i,x.v.c&&(C=bez.buildBezierData(w.v[n],w.v[0],[w.o[n][0]-w.v[n][0],w.o[n][1]-w.v[n][1]],[w.i[0][0]-w.v[0][0],w.i[0][1]-w.v[0][1]]),o.tLength+=C.segmentLength,o.segments.push(C),y+=C.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,p=0,d=1,c=0,h=!0,f=o.segments,s<0&&x.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),d=(m=f[p=f.length-1].points).length-1;s<0;)s+=m[d].partialLength,(d-=1)<0&&(d=(m=f[p-=1].points).length-1);u=(m=f[p].points)[d-1],g=(l=m[d]).partialLength}i=A.length,r=0,a=0;var I,D,M,R,F,L=1.2*e.finalSize*.714,O=!0;M=S.length;var N,$,B,V,G,q,z,U,H,j,W,K,Y=-1,Q=s,J=p,X=d,Z=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ae=0,ne=2===e.j?-.5:-1,ie=0,oe=!0;for(n=0;n<i;n+=1)if(A[n].n){for(re&&(re+=ae);ie<n;)A[ie].animatorJustifyOffset=re,ie+=1;re=0,oe=!0}else{for(D=0;D<M;D+=1)(I=S[D].a).t.propType&&(oe&&2===e.j&&(ae+=I.t.v*ne),(F=S[D].s.getMult(A[n].anIndexes[D],k.a[D].s.totalChars)).length?re+=I.t.v*F[0]*ne:re+=I.t.v*F*ne);oe=!1}for(re&&(re+=ae);ie<n;)A[ie].animatorJustifyOffset=re,ie+=1}for(n=0;n<i;n+=1){if(_.reset(),V=1,A[n].n)r=0,a+=e.yOffset,a+=O?1:0,s=Q,O=!1,this._hasMaskedPath&&(d=X,u=(m=f[p=J].points)[d-1],g=(l=m[d]).partialLength,c=0),ee="",W="",H="",K="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==A[n].line){switch(e.j){case 1:s+=y-e.lineWidths[A[n].line];break;case 2:s+=(y-e.lineWidths[A[n].line])/2}Z=A[n].line}Y!==A[n].ind&&(A[Y]&&(s+=A[Y].extra),s+=A[n].an/2,Y=A[n].ind),s+=E[0]*A[n].an*.005;var se=0;for(D=0;D<M;D+=1)(I=S[D].a).p.propType&&((F=S[D].s.getMult(A[n].anIndexes[D],k.a[D].s.totalChars)).length?se+=I.p.v[0]*F[0]:se+=I.p.v[0]*F),I.a.propType&&((F=S[D].s.getMult(A[n].anIndexes[D],k.a[D].s.totalChars)).length?se+=I.a.v[0]*F[0]:se+=I.a.v[0]*F);for(h=!0,this._pathData.a.v&&(s=.5*A[0].an+(y-this._pathData.f.v-.5*A[0].an-.5*A[A.length-1].an)*Y/(i-1),s+=this._pathData.f.v);h;)c+g>=s+se||!m?(v=(s+se-c)/l.partialLength,$=u.point[0]+(l.point[0]-u.point[0])*v,B=u.point[1]+(l.point[1]-u.point[1])*v,_.translate(-E[0]*A[n].an*.005,-E[1]*L*.01),h=!1):m&&(c+=l.partialLength,(d+=1)>=m.length&&(d=0,f[p+=1]?m=f[p].points:x.v.c?(d=0,m=f[p=0].points):(c-=l.partialLength,m=null)),m&&(u=l,g=(l=m[d]).partialLength));N=A[n].an/2-A[n].add,_.translate(-N,0,0)}else N=A[n].an/2-A[n].add,_.translate(-N,0,0),_.translate(-E[0]*A[n].an*.005,-E[1]*L*.01,0);for(D=0;D<M;D+=1)(I=S[D].a).t.propType&&(F=S[D].s.getMult(A[n].anIndexes[D],k.a[D].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?F.length?s+=I.t.v*F[0]:s+=I.t.v*F:F.length?r+=I.t.v*F[0]:r+=I.t.v*F));for(e.strokeWidthAnim&&(q=e.sw||0),e.strokeColorAnim&&(G=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(z=[e.fc[0],e.fc[1],e.fc[2]]),D=0;D<M;D+=1)(I=S[D].a).a.propType&&((F=S[D].s.getMult(A[n].anIndexes[D],k.a[D].s.totalChars)).length?_.translate(-I.a.v[0]*F[0],-I.a.v[1]*F[1],I.a.v[2]*F[2]):_.translate(-I.a.v[0]*F,-I.a.v[1]*F,I.a.v[2]*F));for(D=0;D<M;D+=1)(I=S[D].a).s.propType&&((F=S[D].s.getMult(A[n].anIndexes[D],k.a[D].s.totalChars)).length?_.scale(1+(I.s.v[0]-1)*F[0],1+(I.s.v[1]-1)*F[1],1):_.scale(1+(I.s.v[0]-1)*F,1+(I.s.v[1]-1)*F,1));for(D=0;D<M;D+=1){if(I=S[D].a,F=S[D].s.getMult(A[n].anIndexes[D],k.a[D].s.totalChars),I.sk.propType&&(F.length?_.skewFromAxis(-I.sk.v*F[0],I.sa.v*F[1]):_.skewFromAxis(-I.sk.v*F,I.sa.v*F)),I.r.propType&&(F.length?_.rotateZ(-I.r.v*F[2]):_.rotateZ(-I.r.v*F)),I.ry.propType&&(F.length?_.rotateY(I.ry.v*F[1]):_.rotateY(I.ry.v*F)),I.rx.propType&&(F.length?_.rotateX(I.rx.v*F[0]):_.rotateX(I.rx.v*F)),I.o.propType&&(F.length?V+=(I.o.v*F[0]-V)*F[0]:V+=(I.o.v*F-V)*F),e.strokeWidthAnim&&I.sw.propType&&(F.length?q+=I.sw.v*F[0]:q+=I.sw.v*F),e.strokeColorAnim&&I.sc.propType)for(U=0;U<3;U+=1)F.length?G[U]+=(I.sc.v[U]-G[U])*F[0]:G[U]+=(I.sc.v[U]-G[U])*F;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(U=0;U<3;U+=1)F.length?z[U]+=(I.fc.v[U]-z[U])*F[0]:z[U]+=(I.fc.v[U]-z[U])*F;I.fh.propType&&(z=F.length?addHueToRGB(z,I.fh.v*F[0]):addHueToRGB(z,I.fh.v*F)),I.fs.propType&&(z=F.length?addSaturationToRGB(z,I.fs.v*F[0]):addSaturationToRGB(z,I.fs.v*F)),I.fb.propType&&(z=F.length?addBrightnessToRGB(z,I.fb.v*F[0]):addBrightnessToRGB(z,I.fb.v*F))}}for(D=0;D<M;D+=1)(I=S[D].a).p.propType&&(F=S[D].s.getMult(A[n].anIndexes[D],k.a[D].s.totalChars),this._hasMaskedPath?F.length?_.translate(0,I.p.v[1]*F[0],-I.p.v[2]*F[1]):_.translate(0,I.p.v[1]*F,-I.p.v[2]*F):F.length?_.translate(I.p.v[0]*F[0],I.p.v[1]*F[1],-I.p.v[2]*F[2]):_.translate(I.p.v[0]*F,I.p.v[1]*F,-I.p.v[2]*F));if(e.strokeWidthAnim&&(H=q<0?0:q),e.strokeColorAnim&&(j="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),e.fillColorAnim&&e.fc&&(W="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),this._hasMaskedPath){if(_.translate(0,-e.ls),_.translate(0,E[1]*L*.01+a,0),this._pathData.p.v){b=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<u.point[0]&&(le+=180),_.rotate(-le*Math.PI/180)}_.translate($,B,0),s-=E[0]*A[n].an*.005,A[n+1]&&Y!==A[n+1].ind&&(s+=A[n].an/2,s+=.001*e.tr*e.finalSize)}else{switch(_.translate(r,a,0),e.ps&&_.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:_.translate(A[n].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[A[n].line]),0,0);break;case 2:_.translate(A[n].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[A[n].line])/2,0,0)}_.translate(0,-e.ls),_.translate(N,0,0),_.translate(E[0]*A[n].an*.005,E[1]*L*.01,0),r+=A[n].l+.001*e.tr*e.finalSize}"html"===T?ee=_.toCSS():"svg"===T?ee=_.to2dCSS():te=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],K=V}P<=n?(R=new LetterProps(K,H,j,W,ee,te),this.renderedLetters.push(R),P+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[n],this.lettersChangedFlag=R.update(K,H,j,W,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,a,n=t.length,i="";for(r=0;r<n;r+=1)"sh"===t[r].ty&&(a=t[r].ks.k,i+=buildShapeString(a,a.i.length,!0,e));return i},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,a,n){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(a,n,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var a=createNS("title"),n=createElementID();a.setAttribute("id",n),a.textContent=t.title,this.svgElement.appendChild(a),r+=n}if(t&&t.description){var i=createNS("desc"),o=createElementID();i.setAttribute("id",o),i.textContent=t.description,this.svgElement.appendChild(i),r+=" "+o}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,a=[],n="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(a.push(n),n=""):n+=e[t],t+=1;return a.push(n),a},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var a=r.it[r.it.length-1];a.s&&(a.s.k[0]=t,a.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var a=this.globalData.fontManager.getFontByName(r.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var n=r.fWeight,i=r.fStyle;this.layerElement.setAttribute("font-style",i),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var o,s=r.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,h=this.data.singleShape,d=0,p=0,u=!0,m=.001*r.tr*r.finalSize;if(!h||l||r.sz){var f,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!h||0===e){if(o=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var y=createNS("g");o.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(c.reset(),h&&(s[e].n&&(d=-m,p+=r.yOffset,p+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,c,s[e].line,d,p),d+=s[e].l||0,d+=m),l){var v;if(1===(f=this.globalData.fontManager.getCharData(r.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(f.data,this.globalData,this);else{var b=emptyShapeData;f.data&&f.data.shapes&&(b=this.buildShapeData(f.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var x=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[e].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[e].childSpan.appendChild(v.layerElement),1===f.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else h&&o.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}h&&o&&o.setAttribute("d","")}else{var E=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}E.setAttribute("text-anchor",S),E.setAttribute("letter-spacing",m);var k=this.buildTextContents(r.finalText);for(t=k.length,p=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(o=this.textSpans[e].span||createNS("tspan")).textContent=k[e],o.setAttribute("x",0),o.setAttribute("y",p),o.style.display="inherit",E.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,p+=r.finalLineHeight;this.layerElement.appendChild(E)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,a,n,i=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(r=i[e],a=this.textSpans[e].span,(n=this.textSpans[e].glyph)&&n.renderFrame(),r._mdf.m&&a.setAttribute("transform",r.m),r._mdf.o&&a.setAttribute("opacity",r.o),r._mdf.sw&&a.setAttribute("stroke-width",r.sw),r._mdf.sc&&a.setAttribute("stroke",r.sc),r._mdf.fc&&a.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var a="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===a)return;if(this.elements[a]&&!0!==this.elements[a]){var n=t[a].getMatte(this.layers[e].tt);r.setMatte(n)}else this.buildItem(a),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var a="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,n=this.elements[a].getMatte(this.layers[t].tt);e.setMatte(n);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var a,n=0;n<t;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(a=this.elements[n].getBaseElement()),n+=1;a?this.layerElement.insertBefore(r,a):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,a="_";for(t=0;t<r;t+=1)a+=e[t].transform.key+"_";var n=this.sequences[a];return n||(n={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=n,this.sequenceList.push(n)),n},processSequence:function(e,t){for(var r=0,a=e.transforms.length,n=t;r<a&&!t;){if(e.transforms[r].transform.mProps._mdf){n=!0;break}r+=1}if(n)for(e.finalTransform.reset(),r=a-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=n},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,a=null;function n(){var n,i,o;t||(n=createNS("svg"),i=createNS("filter"),o=createNS("feColorMatrix"),i.setAttribute("id",e),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),i.appendChild(o),n.appendChild(i),n.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(n.style.display="none"),a=n,document.body.appendChild(a),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:n,get:function(a){return t||n(),t.width=a.width,t.height=a.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(e){var t,r,a=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<a;t+=1){r=null;var n=e.data.ef[t].ty;registeredEffects[n]&&(r=new(0,registeredEffects[n].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a=this.masksProperties.length,n=!1;for(r=0;r<a;r+=1)"n"!==this.masksProperties[r].mode&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,a=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&a.push(this.filters[t]);return a},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,a,n=this.element.finalTransform.mat,i=this.element.canvasContext,o=this.masksProperties.length;for(i.beginPath(),e=0;e<o;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0)),a=this.viewData[e].v,t=n.applyToPointArray(a.v[0][0],a.v[0][1],0),i.moveTo(t[0],t[1]);var l=a._length;for(s=1;s<l;s+=1)r=n.applyToTriplePoints(a.o[s-1],a.i[s],a.v[s]),i.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=n.applyToTriplePoints(a.o[s-1],a.i[0],a.v[0]),i.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),i.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,i,e);var o,s=r.length;for(n=0;n<s;n+=1)r[n].closed||(o={transforms:a.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(o),r[n].elements.push(o))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var n,i=e.ks.or.k.length;for(n=0;n<i;n+=1)e.ks.or.k[n].to=null,e.ks.or.k[n].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},a={};if("fl"===e.ty||"st"===e.ty?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(r.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(r.wi=a.w.v),e.d){var n=new DashProperty(this,e.d,"canvas",this);a.d=n,a.d.k||(r.da=a.d.dashArray,r.do=a.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),a.style=r,a},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,a,n){var i,o,s,l,c,h,d=e.length-1,p=[],u=[],m=[].concat(n);for(i=d;i>=0;i-=1){if((l=this.searchProcessedElement(e[i]))?t[i]=r[l-1]:e[i]._shouldRender=a,"fl"===e[i].ty||"st"===e[i].ty||"gf"===e[i].ty||"gs"===e[i].ty)l?t[i].style.closed=!1:t[i]=this.createStyleElement(e[i],m),p.push(t[i].style);else if("gr"===e[i].ty){if(l)for(s=t[i].it.length,o=0;o<s;o+=1)t[i].prevViewData[o]=t[i].it[o];else t[i]=this.createGroupElement(e[i]);this.searchShapes(e[i].it,t[i].it,t[i].prevViewData,a,m)}else"tr"===e[i].ty?(l||(h=this.createTransformElement(e[i]),t[i]=h),m.push(t[i]),this.addTransformToStyleList(t[i])):"sh"===e[i].ty||"rc"===e[i].ty||"el"===e[i].ty||"sr"===e[i].ty?l||(t[i]=this.createShapeElement(e[i])):"tm"===e[i].ty||"rd"===e[i].ty||"pb"===e[i].ty||"zz"===e[i].ty||"op"===e[i].ty?(l?(c=t[i]).closed=!1:((c=ShapeModifiers.getModifier(e[i].ty)).init(this,e[i]),t[i]=c,this.shapeModifiers.push(c)),u.push(c)):"rp"===e[i].ty&&(l?(c=t[i]).closed=!0:(c=ShapeModifiers.getModifier(e[i].ty),t[i]=c,c.init(this,e,i,t),this.shapeModifiers.push(c),a=!1),u.push(c));this.addProcessedElement(e[i],i+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),d=u.length,i=0;i<d;i+=1)u[i].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,a,n,i,o,s,l,c=this.stylesList.length,h=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(h.save(),i=l.elements,"st"===s||"gs"===s?(h.ctxStrokeStyle("st"===s?l.co:l.grd),h.ctxLineWidth(l.wi),h.ctxLineCap(l.lc),h.ctxLineJoin(l.lj),h.ctxMiterLimit(l.ml||0)):h.ctxFillStyle("fl"===s?l.co:l.grd),h.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),h.ctxTransform(l.preTransforms.finalTransform.props),r=i.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l.do)),n=(o=i[t].trNodes).length,a=0;a<n;a+=1)"m"===o[a].t?d.moveTo(o[a].p[0],o[a].p[1]):"c"===o[a].t?d.bezierCurveTo(o[a].pts[0],o[a].pts[1],o[a].pts[2],o[a].pts[3],o[a].pts[4],o[a].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(h.ctxStroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),h.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,a){var n,i;for(i=e,n=t.length-1;n>=0;n-=1)"tr"===t[n].ty?(i=r[n].transform,this.renderShapeTransform(e,i)):"sh"===t[n].ty||"el"===t[n].ty||"rc"===t[n].ty||"sr"===t[n].ty?this.renderPath(t[n],r[n]):"fl"===t[n].ty?this.renderFill(t[n],r[n],i):"st"===t[n].ty?this.renderStroke(t[n],r[n],i):"gf"===t[n].ty||"gs"===t[n].ty?this.renderGradientFill(t[n],r[n],i):"gr"===t[n].ty?this.renderShape(i,t[n].it,r[n].it):t[n].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,a,n,i=e.trNodes,o=t.paths,s=o._length;i.length=0;var l=e.transforms.finalTransform;for(n=0;n<s;n+=1){var c=o.shapes[n];if(c&&c.v){for(a=c._length,r=1;r<a;r+=1)1===r&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),i.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[r],c.v[r])});1===a&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&a&&(i.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[0],c.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,a=t.styledShapes.length;for(r=0;r<a;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var a=t.style;(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var a,n=t.style;if(!n.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var i,o=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)a=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),h=Math.atan2(l[1]-s[1],l[0]-s[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var p=c*d,u=Math.cos(h+t.a.v)*p+s[0],m=Math.sin(h+t.a.v)*p+s[1];a=o.createRadialGradient(u,m,0,s[0],s[1],c)}var f=e.g.p,g=t.g.c,y=1;for(i=0;i<f;i+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*i+1]),a.addColorStop(g[4*i]/100,"rgba("+g[4*i+1]+","+g[4*i+2]+","+g[4*i+3]+","+y+")");n.grd=a}n.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var a=t.style,n=t.d;n&&(n._mdf||this._isFirstFrame)&&(a.da=n.dashArray,a.do=n.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(a.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var a,n,i,o,s,l,c,h,d,p,u,m,f=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,n=e.finalText.length;var v=this.data.singleShape,b=.001*e.tr*e.finalSize,x=0,E=0,S=!0,k=0;for(a=0;a<n;a+=1){o=(i=this.globalData.fontManager.getCharData(e.finalText[a],f.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&i.data||{},y.reset(),v&&g[a].n&&(x=-b,E+=e.yOffset,E+=S?1:0,S=!1),d=(c=o.shapes?o.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,y,g[a].line,x,E),u=createSizedArray(d-1);var _=0;for(h=0;h<d;h+=1)if("sh"===c[h].ty){for(l=c[h].ks.k.i.length,p=c[h].ks.k,m=[],s=1;s<l;s+=1)1===s&&m.push(y.applyToX(p.v[0][0],p.v[0][1],0),y.applyToY(p.v[0][0],p.v[0][1],0)),m.push(y.applyToX(p.o[s-1][0],p.o[s-1][1],0),y.applyToY(p.o[s-1][0],p.o[s-1][1],0),y.applyToX(p.i[s][0],p.i[s][1],0),y.applyToY(p.i[s][0],p.i[s][1],0),y.applyToX(p.v[s][0],p.v[s][1],0),y.applyToY(p.v[s][0],p.v[s][1],0));m.push(y.applyToX(p.o[s-1][0],p.o[s-1][1],0),y.applyToY(p.o[s-1][0],p.o[s-1][1],0),y.applyToX(p.i[0][0],p.i[0][1],0),y.applyToY(p.i[0][0],p.i[0][1],0),y.applyToX(p.v[0][0],p.v[0][1],0),y.applyToY(p.v[0][0],p.v[0][1],0)),u[_]=m,_+=1}v&&(x+=g[a].l,x+=b),this.textSpans[k]?this.textSpans[k].elem=u:this.textSpans[k]={elem:u},k+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,a,n,i;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,h,d=null,p=null,u=null,m=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((o=s[e])&&(m.save(),m.ctxTransform(o.p),m.ctxOpacity(o.o)),this.fill){for(o&&o.fc?d!==o.fc&&(m.ctxFillStyle(o.fc),d=o.fc):d!==this.values.fill&&(d=this.values.fill,m.ctxFillStyle(this.values.fill)),a=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<a;r+=1)for(i=(h=c[r]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),n=2;n<i;n+=6)this.globalData.canvasContext.bezierCurveTo(h[n],h[n+1],h[n+2],h[n+3],h[n+4],h[n+5]);this.globalData.canvasContext.closePath(),m.ctxFill()}if(this.stroke){for(o&&o.sw?u!==o.sw&&(u=o.sw,m.ctxLineWidth(o.sw)):u!==this.values.sWidth&&(u=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),o&&o.sc?p!==o.sc&&(p=o.sc,m.ctxStrokeStyle(o.sc)):p!==this.values.stroke&&(p=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),a=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<a;r+=1)for(i=(h=c[r]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),n=2;n<i;n+=6)this.globalData.canvasContext.bezierCurveTo(h[n],h[n+1],h[n+2],h[n+3],h[n+4],h[n+5]);this.globalData.canvasContext.closePath(),m.ctxStroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,a=e.getContext("2d"),n=this.img.width,i=this.img.height,o=n/i,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>s&&"xMidYMid slice"===l||o<s&&"xMidYMid slice"!==l?t=(r=i)*s:r=(t=n)/s,a.drawImage(this.img,(n-t)/2,(i-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,a){this.canvasContext.fillRect(e,t,r,a)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,a,n,i;if(this.reset(),e?(r=e,a=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=a):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,a=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=a*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),s=o[1]||"meet",l=o[0]||"xMidYMid",c=l.substr(0,4),h=l.substr(4);n=r/a,(i=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===s||i<n&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(i<n&&"meet"===s||i>n&&"slice"===s)?(r-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(i<n&&"meet"===s||i>n&&"slice"===s)?(r-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===h&&(i>n&&"meet"===s||i<n&&"slice"===s)?(a-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===h&&(i>n&&"meet"===s||i<n&&"slice"===s)?(a-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var a=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],a=r.transform,n=this.cTr.props;for(t=0;t<16;t+=1)n[t]=a[t];if(e){this.nativeContext.restore();var i=this.stack[this.cArrPos+1];this.appliedFillStyle=i.fillStyle,this.appliedStrokeStyle=i.strokeStyle,this.appliedLineWidth=i.lineWidth,this.appliedLineCap=i.lineCap,this.appliedLineJoin=i.lineJoin,this.appliedMiterLimit=i.miterLimit}this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,a=this.stack[this.cArrPos];for(r=0;r<16;r+=1)a.transform[r]=t[r];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=a.opacity,n.fillStyle=a.fillStyle,n.strokeStyle=a.strokeStyle,n.lineWidth=a.lineWidth,n.lineCap=a.lineCap,n.lineJoin=a.lineJoin,n.miterLimit=a.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,a){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,a)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,a,n,i,o,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(r=0;r<c-1;r+=1)a=this.getTransformedPoint(l,s.v[r]),n=this.getTransformedPoint(l,s.o[r]),i=this.getTransformedPoint(l,s.i[r+1]),o=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(a,n,i,o,t);s.c&&(a=this.getTransformedPoint(l,s.v[r]),n=this.getTransformedPoint(l,s.o[r]),i=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(a,n,i,o,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,a,n){this.getBoundsOfCurve(e,t,r,a);var i=this.shapeBoundingBox;n.x=bmMin(i.left,n.x),n.xMax=bmMax(i.right,n.xMax),n.y=bmMin(i.top,n.y),n.yMax=bmMax(i.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,a){for(var n,i,o,s,l,c,h,d=[[e[0],a[0]],[e[1],a[1]]],p=0;p<2;++p)i=6*e[p]-12*t[p]+6*r[p],n=-3*e[p]+9*t[p]-9*r[p]+3*a[p],o=3*t[p]-3*e[p],i|=0,o|=0,0==(n|=0)&&0===i||(0===n?(s=-o/i)>0&&s<1&&d[p].push(this.calculateF(s,e,t,r,a,p)):(l=i*i-4*o*n)>=0&&((c=(-i+bmSqrt(l))/(2*n))>0&&c<1&&d[p].push(this.calculateF(c,e,t,r,a,p)),(h=(-i-bmSqrt(l))/(2*n))>0&&h<1&&d[p].push(this.calculateF(h,e,t,r,a,p))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,r,a,n,i){return bmPow(1-e,3)*t[i]+3*bmPow(1-e,2)*e*r[i]+3*(1-e)*bmPow(e,2)*a[i]+bmPow(e,3)*n[i]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var a=0;a<e.keyframes.length;a+=1){var n=e.keyframes[a].s;n>r&&(r=n)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=n,a.webkitTransform=n}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var a,n,i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var o=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=o}var l,c,h,d=e.l;n=d.length;var p,u=this.mHelper,m="",f=0;for(a=0;a<n;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[f]?l=this.textPaths[f]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?h=(c=this.textSpans[f]).children[0]:((c=createTag("div")).style.lineHeight=0,(h=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[f]?this.textPaths[f]:createNS("text"):this.textSpans[f]?(c=this.textSpans[f],l=this.textPaths[f]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,u.reset(),g&&g.shapes&&g.shapes.length&&(p=g.shapes[0].it,u.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(u,p),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(h);var v=h.getBBox();h.setAttribute("width",v.width+2),h.setAttribute("height",v.height+2),h.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=h.style,x="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=x,b.webkitTransform=x,d[a].yOffset=v.y-1}else h.setAttribute("width",1),h.setAttribute("height",1);c.appendChild(h)}}else if(l.textContent=d[a].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var E=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=S,E.webkitTransform=S}this.isMasked?this.textSpans[f]=l:this.textSpans[f]=c,this.textSpans[f].style.display="block",this.textPaths[f]=l,f+=1}for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,a,n,i,o,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(a=c.length,r=0;r<a;r+=1)c[r].n?s+=1:(i=this.textSpans[r],o=this.textPaths[r],n=l[s],s+=1,n._mdf.m&&(this.isMasked?i.setAttribute("transform",n.m):(i.style.webkitTransform=n.m,i.style.transform=n.m)),i.style.opacity=n.o,n.sw&&n._mdf.sw&&o.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&o.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(o.setAttribute("fill",n.fc),o.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var h=this.innerElem.getBBox();if(this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height)),this.currentBBox.w!==h.width+2||this.currentBBox.h!==h.height+2||this.currentBBox.x!==h.x-1||this.currentBBox.y!==h.y-1){this.currentBBox.w=h.width+2,this.currentBBox.h=h.height+2,this.currentBBox.x=h.x-1,this.currentBBox.y=h.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,a,n=this.comp.threeDElements.length;for(e=0;e<n;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,a=t.container.style;var i=this.pe.v+"px",o="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=i,r.webkitPerspective=i,a.transformOrigin=o,a.mozTransformOrigin=o,a.webkitTransformOrigin=o,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var a=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n;n=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var i=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),o=[n[0]/i,n[1]/i,n[2]/i],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],s),c=Math.atan2(o[0],-o[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){var d,p,u;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(h){var m=this.mat.toCSS();(u=d.container.style).transform=m,u.webkitTransform=m}this.pe._mdf&&((p=d.perspectiveElem.style).perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var a=this.layers[t];if(a.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var n,i,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o],n=(this.layers[o].ddd?this.getThreeDContainerByPos(o):i.getBaseElement())||n),o+=1;n?a.ddd&&this.supports3d||this.layerElement.insertBefore(r,n):a.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,a,n=createTag("div");styleDiv(n);var i=createTag("div");if(styleDiv(i),"3d"===t){(r=n.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var o="50% 50%";r.webkitTransformOrigin=o,r.mozTransformOrigin=o,r.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(a=i.style).transform=s,a.webkitTransform=s}n.appendChild(i);var l={container:i,perspectiveElem:n,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,a="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==a&&(a="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==a&&(a="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,a=this.threeDElements.length;r<a;){if(t<=this.threeDElements[r].endPos){for(var n,i=this.threeDElements[r].startPos;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(n=this.elements[i].getBaseElement()),i+=1;n?this.threeDElements[r].container.insertBefore(e,n):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,a=t.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=t,styleDiv(t),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),a.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var i=createNS("defs");n.appendChild(i),this.data=e,this.setupGlobalData(e,n),this.globalData.defs=i,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,a,n=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,o=n/i;this.globalData.compSize.w/this.globalData.compSize.h>o?(e=n/this.globalData.compSize.w,t=n/this.globalData.compSize.w,r=0,a=(i-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(e=i/this.globalData.compSize.h,t=i/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,a=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+a+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,a=this.threeDElements.length;for(e=0;e<a;e+=1){var n=this.threeDElements[e].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,a=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t],a,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,a=0;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(r=this.elements[a].getBaseElement()),a+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,a=e.layers.length;r<a;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}function seedRandom(e,t){var r=this,a=256,n="random",i=t.pow(a,6),o=t.pow(2,52),s=2*o,l=255;function c(e){var t,r=e.length,n=this,i=0,o=n.i=n.j=0,s=n.S=[];for(r||(e=[r++]);i<a;)s[i]=i++;for(i=0;i<a;i++)s[i]=s[o=l&o+e[i%r]+(t=s[i])],s[o]=t;n.g=function(e){for(var t,r=0,i=n.i,o=n.j,s=n.S;e--;)t=s[i=l&i+1],r=r*a+s[l&(s[i]=s[o=l&o+t])+(s[o]=t)];return n.i=i,n.j=o,r}}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function d(e,t){var r,a=[],n=_typeof$2(e);if(t&&"object"==n)for(r in e)try{a.push(d(e[r],t-1))}catch(e){}return a.length?a:"string"==n?e:e+"\0"}function p(e,t){for(var r,a=e+"",n=0;n<a.length;)t[l&n]=l&(r^=19*t[l&n])+a.charCodeAt(n++);return u(t)}function u(e){return String.fromCharCode.apply(0,e)}t["seed"+n]=function(l,m,f){var g=[],y=p(d((m=!0===m?{entropy:!0}:m||{}).entropy?[l,u(e)]:null===l?function(){try{var t=new Uint8Array(a);return(r.crypto||r.msCrypto).getRandomValues(t),u(t)}catch(t){var n=r.navigator,i=n&&n.plugins;return[+new Date,r,i,r.screen,u(e)]}}():l,3),g),v=new c(g),b=function(){for(var e=v.g(6),t=i,r=0;e<o;)e=(e+r)*a,t*=a,r=v.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return b.int32=function(){return 0|v.g(4)},b.quick=function(){return v.g(4)/4294967296},b.double=b,p(u(v.S),e),(m.pass||f||function(e,r,a,i){return i&&(i.S&&h(i,v),e.state=function(){return h(v,{})}),a?(t[n]=e,r):e})(b,y,"global"in m?m.global:this==t,m.state)},p(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,a=e.length,n=[];for(r=0;r<a;r+=1)n[r]=-e[r];return n}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),a=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(a,t)||"string"===r||"string"===a)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,i=e.length,o=t.length,s=[];n<i||n<o;)("number"==typeof e[n]||e[n]instanceof Number)&&("number"==typeof t[n]||t[n]instanceof Number)?s[n]=e[n]+t[n]:s[n]=void 0===t[n]?e[n]:e[n]||t[n],n+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),a=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(a,t))return"string"===r&&(e=parseInt(e,10)),"string"===a&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,i=e.length,o=t.length,s=[];n<i||n<o;)("number"==typeof e[n]||e[n]instanceof Number)&&("number"==typeof t[n]||t[n]instanceof Number)?s[n]=e[n]-t[n]:s[n]=void 0===t[n]?e[n]:e[n]||t[n],n+=1;return s}return 0}function mul(e,t){var r,a,n,i=_typeof$1(e),o=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(o,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(n=e.length,r=createTypedArray("float32",n),a=0;a<n;a+=1)r[a]=e[a]*t;return r}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(n=t.length,r=createTypedArray("float32",n),a=0;a<n;a+=1)r[a]=e*t[a];return r}return 0}function div(e,t){var r,a,n,i=_typeof$1(e),o=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(o,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(n=e.length,r=createTypedArray("float32",n),a=0;a<n;a+=1)r[a]=e[a]/t;return r}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(n=t.length,r=createTypedArray("float32",n),a=0;a<n;a+=1)r[a]=e/t[a];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var a=r;r=t,t=a}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var a=Math.min(e.length,t.length),n=0;for(r=0;r<a;r+=1)n+=Math.pow(t[r]-e[r],2);return Math.sqrt(n)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,a=e[0],n=e[1],i=e[2],o=Math.max(a,n,i),s=Math.min(a,n,i),l=(o+s)/2;if(o===s)t=0,r=0;else{var c=o-s;switch(r=l>.5?c/(2-o-s):c/(o+s),o){case a:t=(n-i)/c+(n<i?6:0);break;case n:t=(i-a)/c+2;break;case i:t=(a-n)/c+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,a,n=e[0],i=e[1],o=e[2];if(0===i)t=o,a=o,r=o;else{var s=o<.5?o*(1+i):o+i-o*i,l=2*o-s;t=hue2rgb(l,s,n+1/3),r=hue2rgb(l,s,n),a=hue2rgb(l,s,n-1/3)}return[t,r,a,e[3]]}function linear(e,t,r,a,n){if(void 0!==a&&void 0!==n||(a=t,n=r,t=0,r=1),r<t){var i=r;r=t,t=i}if(e<=t)return a;if(e>=r)return n;var o,s=r===t?0:(e-t)/(r-t);if(!a.length)return a+(n-a)*s;var l=a.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=a[o]+(n[o]-a[o])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,a=t.length;e||(e=createTypedArray("float32",a));var n=createTypedArray("float32",a),i=BMMath.random();for(r=0;r<a;r+=1)n[r]=e[r]+i*(t[r]-e[r]);return n}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,a){var n,i=e.length,o=shapePool.newElement();o.setPathData(!!a,i);var s,l,c=[0,0];for(n=0;n<i;n+=1)s=t&&t[n]?t[n]:c,l=r&&r[n]?r[n]:c,o.setTripleAt(e[n][0],e[n][1],l[0]+e[n][0],l[1]+e[n][1],s[0]+e[n][0],s[1]+e[n][1],n,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,a,n=this.pv.length?this.pv.length:1,i=createTypedArray("float32",n),o=Math.floor(5*time);for(r=0,a=0;r<o;){for(a=0;a<n;a+=1)i[a]+=-t+2*t*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",n);if(n>1){for(a=0;a<n;a+=1)c[a]=this.pv[a]+i[a]+(-t+2*t*BMMath.random())*l;return c}return this.pv+i[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],a=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,a,0]}function easeOut(e,t,r,a,n){return applyEase(easeOutBez,e,t,r,a,n)}function easeIn(e,t,r,a,n){return applyEase(easeInBez,e,t,r,a,n)}function ease(e,t,r,a,n){return applyEase(easeInOutBez,e,t,r,a,n)}function applyEase(e,t,r,a,n,i){void 0===n?(n=r,i=a):t=(t-r)/(a-r),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(n)){var s,l=n.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(i[s]-n[s])*o+n[s];return c}return(i-n)*o+n}function nearestKey(e){var t,r,a,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,a=data.k[0].t;else{for(t=0;t<n-1;t+=1){if(e===data.k[t].t){r=t+1,a=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,a=data.k[t+1].t):(r=t+1,a=data.k[t].t);break}}-1===r&&(r=t+1,a=data.k[t].t)}else r=0,a=0;var i={};return i.index=r,i.time=a/elem.comp.globalData.frameRate,i}function key(e){var t,r,a;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=n.length,r=0;r<a;r+=1)t[r]=n[r],t.value[r]=n[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,a=createSizedArray(t.viewData.length),n=t.viewData.length;for(r=0;r<n;r+=1)a[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<n;){if(t.masksProperties[r].nm===e)return a[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(a){if(!e.numKeys)return 0;var n="";n="s"in t.keyframes[a-1]?t.keyframes[a-1].s:"e"in t.keyframes[a-2]?t.keyframes[a-2].e:t.keyframes[a-2].s;var i="unidimensional"===r?new Number(n):Object.assign({},n);return i.time=t.keyframes[a-1].t/t.elem.comp.globalData.frameRate,i.value="unidimensional"===r?n[0]:n,i},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function a(){return e}return function(n){return n?"unidimensional"===n.propType?function(t){t&&"pv"in t||(t=e);var a=1/t.mult,n=t.pv*a,i=new Number(n);return i.value=n,r(i,t,"unidimensional"),function(){return t.k&&t.getValue(),n=t.v*a,i.value!==n&&((i=new Number(n)).value=n,i[0]=n,r(i,t,"unidimensional")),i}}(n):function(e){e&&"pv"in e||(e=t);var a=1/e.mult,n=e.data&&e.data.l||e.pv.length,i=createTypedArray("float32",n),o=createTypedArray("float32",n);return i.value=o,r(i,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<n;t+=1)o[t]=e.v[t]*a,i[t]=o[t];return i}}(n):a}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,a,n,i;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?i=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(n=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?i():[r(),a(),n?n():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function a(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function i(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var h;function d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return h;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=o,d.applyPoint=i,d.toWorld=r,d.toWorldVec=t,d.fromWorld=n,d.fromWorldVec=a,d.toComp=r,d.fromComp=s,d.sampleImage=l,d.sourceRectAtTime=c.sourceRectAtTime.bind(c),d._elem=c;var p=getDescriptor(h=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return h}},active:{get:function(){return c.isInRange}}}),d.startTime=c.data.st,d.index=c.data.ind,d.source=c.data.refId,d.height=0===c.data.ty?c.data.h:100,d.width=0===c.data.ty?c.data.w:100,d.inPoint=c.data.ip/c.comp.globalData.frameRate,d.outPoint=c.data.op/c.comp.globalData.frameRate,d._name=c.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,c)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){var e={createEffectsInterface:function(e,r){if(e.effectsManager){var a,n=[],i=e.data.ef,o=e.effectsManager.effectElements.length;for(a=0;a<o;a+=1)n.push(t(i[a],e.effectsManager.effectElements[a],r,e));var s=e.data.ef||[],l=function(e){for(a=0,o=s.length;a<o;){if(e===s[a].nm||e===s[a].mn||e===s[a].ix)return n[a];a+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function t(e,a,n,i){function o(t){for(var r=e.ef,a=0,n=r.length;a<n;){if(t===r[a].nm||t===r[a].mn||t===r[a].ix)return 5===r[a].ty?c[a]:c[a]();a+=1}throw new Error}var s,l=propertyGroupFactory(o,n),c=[],h=e.ef.length;for(s=0;s<h;s+=1)5===e.ef[s].ty?c.push(t(e.ef[s],a.effectElements[s],a.effectElements[s].propertyGroup,i)):c.push(r(a.effectElements[s],e.ef[s].ty,i,l));return"ADBE Color Control"===e.mn&&Object.defineProperty(o,"color",{get:function(){return c[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:l}}),o.enabled=0!==e.en,o.active=o.enabled,o}function r(e,t,r,a){var n=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",a)),function(){return 10===t?r.comp.compInterface(e.p.v):n()}}return e}(),ShapePathInterface=function(e,t,r){var a=t.sh;function n(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?n.path:null}var i=propertyGroupFactory(n,r);return a.setGroupProperty(PropertyInterface("Path",i)),Object.defineProperties(n,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),n},ShapeExpressionInterface=function(){function e(e,o,p){var u,m=[],f=e?e.length:0;for(u=0;u<f;u+=1)"gr"===e[u].ty?m.push(t(e[u],o[u],p)):"fl"===e[u].ty?m.push(r(e[u],o[u],p)):"st"===e[u].ty?m.push(n(e[u],o[u],p)):"tm"===e[u].ty?m.push(i(e[u],o[u],p)):"tr"===e[u].ty||("el"===e[u].ty?m.push(s(e[u],o[u],p)):"sr"===e[u].ty?m.push(l(e[u],o[u],p)):"sh"===e[u].ty?m.push(ShapePathInterface(e[u],o[u],p)):"rc"===e[u].ty?m.push(c(e[u],o[u],p)):"rd"===e[u].ty?m.push(h(e[u],o[u],p)):"rp"===e[u].ty?m.push(d(e[u],o[u],p)):"gf"===e[u].ty?m.push(a(e[u],o[u],p)):m.push((e[u],o[u],function(){return null})));return m}function t(t,r,a){var n=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,a);var i=function(t,r,a){var n,i=function(e){for(var t=0,r=n.length;t<r;){if(n[t]._name===e||n[t].mn===e||n[t].propertyIndex===e||n[t].ix===e||n[t].ind===e)return n[t];t+=1}return"number"==typeof e?n[e-1]:null};i.propertyGroup=propertyGroupFactory(i,a),n=e(t.it,r.it,i.propertyGroup),i.numProperties=n.length;var s=o(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.transform=s,i.propertyIndex=t.cix,i._name=t.nm,i}(t,r,n.propertyGroup),s=o(t.it[t.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.content=i,n.transform=s,Object.defineProperty(n,"_name",{get:function(){return t.nm}}),n.numProperties=t.np,n.propertyIndex=t.ix,n.nm=t.nm,n.mn=t.mn,n}function r(e,t,r){function a(e){return"Color"===e||"color"===e?a.color:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),a}function a(e,t,r){function a(e){return"Start Point"===e||"start point"===e?a.startPoint:"End Point"===e||"end point"===e?a.endPoint:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),a}function n(e,t,r){var a,n=propertyGroupFactory(c,r),i=propertyGroupFactory(l,n);function o(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,l={};for(a=0;a<s;a+=1)o(a),t.d.dataProps[a].p.setGroupProperty(i);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),t.w.setGroupProperty(PropertyInterface("Stroke Width",n)),c}function i(e,t,r){function a(t){return t===e.e.ix||"End"===t||"end"===t?a.end:t===e.s.ix?a.start:t===e.o.ix?a.offset:null}var n=propertyGroupFactory(a,r);return a.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",n)),t.e.setGroupProperty(PropertyInterface("End",n)),t.o.setGroupProperty(PropertyInterface("Offset",n)),a.propertyIndex=e.ix,a.propertyGroup=r,Object.defineProperties(a,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),a.mn=e.mn,a}function o(e,t,r){function a(t){return e.a.ix===t||"Anchor Point"===t?a.anchorPoint:e.o.ix===t||"Opacity"===t?a.opacity:e.p.ix===t||"Position"===t?a.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?a.rotation:e.s.ix===t||"Scale"===t?a.scale:e.sk&&e.sk.ix===t||"Skew"===t?a.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?a.skewAxis:null}var n=propertyGroupFactory(a,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(a,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),a.ty="tr",a.mn=e.mn,a.propertyGroup=r,a}function s(e,t,r){function a(t){return e.p.ix===t?a.position:e.s.ix===t?a.size:null}var n=propertyGroupFactory(a,r);a.propertyIndex=e.ix;var i="tm"===t.sh.ty?t.sh.prop:t.sh;return i.s.setGroupProperty(PropertyInterface("Size",n)),i.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(a,{size:{get:ExpressionPropertyInterface(i.s)},position:{get:ExpressionPropertyInterface(i.p)},_name:{value:e.nm}}),a.mn=e.mn,a}function l(e,t,r){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.rotation:e.pt.ix===t?a.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?a.outerRadius:e.os.ix===t?a.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?a.innerRoundness:null:a.innerRadius}var n=propertyGroupFactory(a,r),i="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,i.or.setGroupProperty(PropertyInterface("Outer Radius",n)),i.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),i.pt.setGroupProperty(PropertyInterface("Points",n)),i.p.setGroupProperty(PropertyInterface("Position",n)),i.r.setGroupProperty(PropertyInterface("Rotation",n)),e.ir&&(i.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),i.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(i.p)},rotation:{get:ExpressionPropertyInterface(i.r)},points:{get:ExpressionPropertyInterface(i.pt)},outerRadius:{get:ExpressionPropertyInterface(i.or)},outerRoundness:{get:ExpressionPropertyInterface(i.os)},innerRadius:{get:ExpressionPropertyInterface(i.ir)},innerRoundness:{get:ExpressionPropertyInterface(i.is)},_name:{value:e.nm}}),a.mn=e.mn,a}function c(e,t,r){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?a.size:null}var n=propertyGroupFactory(a,r),i="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,i.p.setGroupProperty(PropertyInterface("Position",n)),i.s.setGroupProperty(PropertyInterface("Size",n)),i.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(i.p)},roundness:{get:ExpressionPropertyInterface(i.r)},size:{get:ExpressionPropertyInterface(i.s)},_name:{value:e.nm}}),a.mn=e.mn,a}function h(e,t,r){function a(t){return e.r.ix===t||"Round Corners 1"===t?a.radius:null}var n=propertyGroupFactory(a,r),i=t;return a.propertyIndex=e.ix,i.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(a,{radius:{get:ExpressionPropertyInterface(i.rd)},_name:{value:e.nm}}),a.mn=e.mn,a}function d(e,t,r){function a(t){return e.c.ix===t||"Copies"===t?a.copies:e.o.ix===t||"Offset"===t?a.offset:null}var n=propertyGroupFactory(a,r),i=t;return a.propertyIndex=e.ix,i.c.setGroupProperty(PropertyInterface("Copies",n)),i.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(a,{copies:{get:ExpressionPropertyInterface(i.c)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:e.nm}}),a.mn=e.mn,a}return function(t,r,a){var n;function i(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?a:n[e-1];for(var t=0,r=n.length;t<r;){if(n[t]._name===e)return n[t];t+=1}return null}return i.propertyGroup=propertyGroupFactory(i,(function(){return a})),n=e(t,r,i.propertyGroup),i.numProperties=n.length,i._name="Contents",i}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function a(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?a:r;var n=e.indexOf(t);if(-1!==n){var i=parseInt(e.substr(n+t.length),10);return"object"===_typeof(r=r[i])?a:r}return""}return function(){return t="",r=e.getFootageData(),a}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),a=0;if(t.length){var n;for(n=0;n<t.length;n+=1)a+=Math.pow(r[n]-t[n],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,a=-.001,n=this.getValueAtTime(e),i=this.getValueAtTime(e+a);if(n.length)for(t=createTypedArray("float32",n.length),r=0;r<n.length;r+=1)t[r]=(i[r]-n[r])/a;else t=(i-n)/a;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var a,n,i,o,s,l=this.comp.renderedFrame,c=this.keyframes,h=c[c.length-1].t;if(l<=h)return this.pv;if(r?n=h-(a=t?Math.abs(h-this.elem.comp.globalData.frameRate*t):Math.max(0,h-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),a=h-(n=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-n)/a)%2!=0)return this.getValueAtTime((a-(l-n)%a+n)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(n/this.comp.globalData.frameRate,0),p=this.getValueAtTime(h/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((l-n)%a+n)/this.comp.globalData.frameRate,0),m=Math.floor((l-n)/a);if(this.pv.length){for(o=(s=new Array(d.length)).length,i=0;i<o;i+=1)s[i]=(p[i]-d[i])*m+u[i];return s}return(p-d)*m+u}if("continue"===e){var f=this.getValueAtTime(h/this.comp.globalData.frameRate,0),g=this.getValueAtTime((h-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(f.length)).length,i=0;i<o;i+=1)s[i]=f[i]+(f[i]-g[i])*((l-h)/this.comp.globalData.frameRate)/5e-4;return s}return f+(l-h)/.001*(f-g)}}return this.getValueAtTime(((l-n)%a+n)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var a,n,i,o,s,l=this.comp.renderedFrame,c=this.keyframes,h=c[0].t;if(l>=h)return this.pv;if(r?n=h+(a=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-h)):((!t||t>c.length-1)&&(t=c.length-1),a=(n=c[t].t)-h),"pingpong"===e){if(Math.floor((h-l)/a)%2==0)return this.getValueAtTime(((h-l)%a+h)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(h/this.comp.globalData.frameRate,0),p=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime((a-(h-l)%a+h)/this.comp.globalData.frameRate,0),m=Math.floor((h-l)/a)+1;if(this.pv.length){for(o=(s=new Array(d.length)).length,i=0;i<o;i+=1)s[i]=u[i]-(p[i]-d[i])*m;return s}return u-(p-d)*m}if("continue"===e){var f=this.getValueAtTime(h/this.comp.globalData.frameRate,0),g=this.getValueAtTime((h+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(f.length)).length,i=0;i<o;i+=1)s[i]=f[i]+(f[i]-g[i])*(h-l)/.001;return s}return f+(f-g)*(h-l)/.001}}return this.getValueAtTime((a-((h-l)%a+h))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,a,n=this.comp.renderedFrame/this.comp.globalData.frameRate,i=n-e,o=t>1?(n+e-i)/(t-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(a=this.getValueAtTime(i+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=a[l];else r+=a;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function a(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var a=this.s.getValueAtTime(e);t.scale(a[0]*this.s.mult,a[1]*this.s.mult,a[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(e),i=this.sa.getValueAtTime(e);t.skewFromAxis(-n*this.sk.mult,i*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(e);t.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),h=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-h[2]*this.or.mult).rotateY(h[1]*this.or.mult).rotateX(h[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),p=this.py.getValueAtTime(e);if(this.data.p.z){var u=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,p*this.py.mult,-u*this.pz.mult)}else t.translate(d*this.px.mult,p*this.py.mult,0)}else{var m=this.p.getValueAtTime(e);t.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return t}function n(){return this.v.clone(new Matrix)}var i=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var o=i(e,t,r);return o.dynamicProperties.length?o.getValueAtTime=a.bind(o):o.getValueAtTime=n.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(a,n,i,s,l){var c=o(a,n,i,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=r,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===n.a?n.k.length:0,c.propertyIndex=n.ix;var h=0;return 0!==i&&(h=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:h},expressionHelpers.searchExpressions(a,n,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var r,a=this.v;void 0!==t&&(a=this.getValueAtTime(t,0));var n=a._length,i=a[e],o=a.v,s=createSizedArray(n);for(r=0;r<n;r+=1)s[r]="i"===e||"o"===e?[i[r][0]-o[r][0],i[r][1]-o[r][1]]:[i[r][0],i[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var a,n=this._segmentsLength,i=n.lengths,o=n.totalLength*e,s=0,l=i.length,c=0;s<l;){if(c+i[s].addedLength>o){var h=s,d=r.c&&s===l-1?0:s+1,p=(o-c)/i[s].addedLength;a=bez.getPointInSegment(r.v[h],r.v[d],r.o[h],r.i[d],p,i[s]);break}c+=i[s].addedLength,s+=1}return a||(a=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),a},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var a=this.pointOnPath(e,t),n=this.pointOnPath(e+.001,t),i=n[0]-a[0],o=n[1]-a[1],s=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===r?[i/s,o/s]:[-o/s,i/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,a,n){var i=h(e,t,r,a,n);return i.propertyIndex=t.ix,i.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,i):4===r&&expressionHelpers.searchExpressions(e,t.ks,i),i.k&&e.addDynamicProperty(i),i}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var a={};return this.copyData(a,e),a.t=r.toString(),a.__complete=!1,a}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,a,n=createNS("feMerge");for(n.setAttribute("result",e),a=0;a<t.length;a+=1)(r=createNS("feMergeNode")).setAttribute("in",t[a]),n.appendChild(r),n.appendChild(r);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,a,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=i,i.setAttribute("result",a+"_tint_1"),e.appendChild(i),(i=createNS("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",a+"_tint_2"),e.appendChild(i),this.matrixFilter=i;var o=this.createMergeNode(a,[n,a+"_tint_1",a+"_tint_2"]);e.appendChild(o)}function SVGFillFilter(e,t,r,a){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",a),e.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,a){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(n);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",a),this.matrixFilter=i;var o=createNS("feFuncR");o.setAttribute("type","table"),i.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),i.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),i.appendChild(l),this.feFuncB=l,e.appendChild(i)}function SVGProLevelsFilter(e,t,r,a){this.filterManager=t;var n=this.filterManager.effectElements,i=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(i)),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&((i=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",a),e.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(e,t,r,a,n){var i=t.container.globalData.renderConfig.filterSize,o=t.data.fs||i;e.setAttribute("x",o.x||i.x),e.setAttribute("y",o.y||i.y),e.setAttribute("width",o.width||i.width),e.setAttribute("height",o.height||i.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",a+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",a+"_drop_shadow_1"),l.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var h=createNS("feComposite");h.setAttribute("in",a+"_drop_shadow_3"),h.setAttribute("in2",a+"_drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(h);var d=this.createMergeNode(a,[a+"_drop_shadow_4",n]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+a+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,a,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(a=this.elem.maskManager.masksProperties.length,r=0):a=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<a;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var i=createNS("mask"),o=createElementID();i.setAttribute("id",o),i.setAttribute("mask-type","alpha"),i.appendChild(t),this.elem.globalData.defs.appendChild(i);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");n[0];)s.appendChild(n[0]);this.elem.layerElement.appendChild(s),this.masker=i,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,a,n=this.paths.length;for(t=0;t<n;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],a=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&a.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var i;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=a.getTotalLength();i="0 0 0 "+l*o+" ";var c,h=l*(s-o),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(h/d);for(c=0;c<p;c+=1)i+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";i+="0 "+10*l+" 0 0"}else i="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",i)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,n=a[0]+" "+r[0]+" "+t[0],i=a[1]+" "+r[1]+" "+t[1],o=a[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",i),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,a,n){for(var i,o,s=0,l=Math.min(e,t),c=Math.max(e,t),h=Array.call(null,{length:256}),d=0,p=n-a,u=t-e;s<=256;)o=(i=s/256)<=l?u<0?n:a:i>=c?u<0?a:n:a+p*Math.pow((i-e)/u,1/r),h[d]=o,d+=1,s+=256/255;return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(a),i=r*Math.sin(a);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",i)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var n=createNS("feGaussianBlur");n.setAttribute("result",a),e.appendChild(n),this.feGaussianBlur=n}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var a,n=r.children,i=0,o=n.length;i<o&&n[i]!==e.layerElement;)i+=1;i<=o-2&&(a=n[i+1]);var s=createNS("use");s.setAttribute("href","#"+t),a?r.insertBefore(s,a):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),a=createNS("mask");a.setAttribute("id",t.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var n=e.globalData.defs;n.appendChild(a);var i=createNS("symbol");i.setAttribute("id",r),this.replaceInParent(t,r),i.appendChild(t.layerElement),n.appendChild(i);var o=createNS("use");o.setAttribute("href","#"+r),a.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,a=t.length;r<a;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=3==r?0:t,n=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+n);var i=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,a=t[1].p.v,n=1===t[2].p.v,i=t[3].p.v,o=n?i:t[4].p.v,s=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*o,.01*i,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(a[0],a[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())}(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie(),lottie=getDefaultExportFromCjs(lottieExports);const qontoLottiePlayerStyles=i$4`
182
+ */const e$1=()=>new h$3;let h$3=class{};const o$2=new WeakMap,n$1=e$2(class extends f{render(e){return E}update(e,[t]){const r=t!==this.G;return r&&void 0!==this.G&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),E}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){const t=this.ht??globalThis;let r=o$2.get(t);void 0===r&&(r=new WeakMap,o$2.set(t,r)),void 0!==r.get(this.G)&&this.G.call(this.ht,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return"function"==typeof this.G?o$2.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,function(module,exports){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n,i=e.length;for(r=0;r<i;r+=1)for(var a in n=e[r].prototype)Object.prototype.hasOwnProperty.call(n,a)&&(t.prototype[a]=n[a])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,n=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),n=e.length;for(t=0;t<n;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var n,i,a,o,s,l,c,d;switch(l=r*(1-t),c=r*(1-(s=6*e-(o=Math.floor(6*e)))*t),d=r*(1-(1-s)*t),o%6){case 0:n=r,i=d,a=l;break;case 1:n=c,i=r,a=l;break;case 2:n=l,i=r,a=d;break;case 3:n=l,i=c,a=r;break;case 4:n=d,i=l,a=r;break;case 5:n=r,i=l,a=c}return[n,i,a]}function RGBtoHSV(e,t,r){var n,i=Math.max(e,t,r),a=Math.min(e,t,r),o=i-a,s=0===i?0:o/i,l=i/255;switch(i){case a:n=0;break;case e:n=t-r+o*(t<r?6:0),n/=6*o;break;case t:n=r-e+2*o,n/=6*o;break;case r:n=e-t+4*o,n/=6*o}return[n,s,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,n){return e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),"#"+r[e]+r[t]+r[n]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,r=1,n=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){i.onmessage({data:e})}};function o(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return e=t,i}((function(e){if(a.dataManager||(a.dataManager=function(){function e(i,a){var o,s,l,c,d,p,h=i.length;for(s=0;s<h;s+=1)if("ks"in(o=i[s])&&!o.completed){if(o.completed=!0,o.hasMask){var f=o.masksProperties;for(c=f.length,l=0;l<c;l+=1)if(f[l].pt.k.i)n(f[l].pt.k);else for(p=f[l].pt.k.length,d=0;d<p;d+=1)f[l].pt.k[d].s&&n(f[l].pt.k[d].s[0]),f[l].pt.k[d].e&&n(f[l].pt.k[d].e[0])}0===o.ty?(o.layers=t(o.refId,a),e(o.layers,a)):4===o.ty?r(o.shapes):5===o.ty&&u(o)}}function t(e,t){var r=function(e,t){for(var r=0,n=t.length;r<n;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,a;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)n(e[t].ks.k);else for(a=e[t].ks.k.length,i=0;i<a;i+=1)e[t].ks.k[i].s&&n(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&n(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function n(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var a,o=function(){var e=[4,4,14];function t(e){var t,r,n,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(n=void 0,n=(r=e[t]).t.d,r.t.d={k:[{s:n,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,a=r.assets.length;for(n=0;n<a;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),s=(a=[4,7,99],function(e){if(e.chars&&!i(a,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var o=e.chars[t];o.data&&o.data.shapes&&(r(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,r,n=e.length;for(t=0;t<n;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,a=r.assets.length;for(n=0;n<a;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var r,n,i,a=e.length;for(r=0;r<a;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,n=0;n<i;n+=1)e[r].c.k[n].s&&(e[r].c.k[n].s[0]/=255,e[r].c.k[n].s[1]/=255,e[r].c.k[n].s[2]/=255,e[r].c.k[n].s[3]/=255),e[r].c.k[n].e&&(e[r].c.k[n].e[0]/=255,e[r].c.k[n].e[1]/=255,e[r].c.k[n].e[2]/=255,e[r].c.k[n].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,a=t.assets.length;for(n=0;n<a;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),d=function(){var e=[4,4,18];function t(e){var r,n,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,n=0;n<i;n+=1)e[r].ks.k[n].s&&(e[r].ks.k[n].s[0].c=e[r].closed),e[r].ks.k[n].e&&(e[r].ks.k[n].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,n,i,a,o,s,l=e.length;for(n=0;n<l;n+=1){if((r=e[n]).hasMask){var c=r.masksProperties;for(a=c.length,i=0;i<a;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(s=c[i].pt.k.length,o=0;o<s;o+=1)c[i].pt.k[o].s&&(c[i].pt.k[o].s[0].c=c[i].cl),c[i].pt.k[o].e&&(c[i].pt.k[o].e[0].c=c[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,a=t.assets.length;for(n=0;n<a;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}();function u(e){0===e.t.a.length&&e.t.p}var p={completeData:function(r){r.__complete||(c(r),o(r),s(r),l(r),d(r),e(r.layers,r.assets),function(r,n){if(r){var i=0,a=r.length;for(i=0;i<a;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,n),e(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return p.checkColors=c,p.checkChars=s,p.checkPathProperties=l,p.checkShapes=d,p.completeLayers=e,p}()),a.assetLoader||(a.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,n,i){var a,o=new XMLHttpRequest;try{o.responseType="json"}catch(e){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)a=e(o),n(a);else try{a=e(o),n(a)}catch(e){i&&i(e)}};try{o.open(["G","E","T"].join(""),t,!0)}catch(e){o.open(["G","E","T"].join(""),r+"/"+t,!0)}o.send()}}}()),"loadAnimation"===e.data.type)a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=n[r];n[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(r+=1);return n[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,n){o();var i=s(r,n);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,r,n){o();var i=s(r,n);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,n){o();var i=s(r,n);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(e,t,r){var n="";if(e.e)n=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=t+i}else n=r,n+=e.u?e.u:"",n+=e.p;return n}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function a(e){var t={assetData:e},r=n(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function o(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var n=e.length;for(r=0;r<n;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=n(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var a={img:i,assetData:t};return a},createImageData:function(t){var r=n(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var a={img:i,assetData:t};return a},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],n=0;n<r.length;n+=1)r[n](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,n=this._cbs[e].length;r<n;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,n-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),n={},i=0,a=0;a<r.length;a+=1)2===(t=r[a].split(":")).length&&(n[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var i=t[n],a={time:i.tm,duration:i.dr};try{a.payload=JSON.parse(t[n].cm)}catch(r){try{a.payload=e(t[n].cm)}catch(e){a.payload={name:t[n].cm}}}r.push(a)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var a=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==a,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,i=n.length,a=e.layers,o=a.length;for(r=0;r<o;r+=1)for(t=0;t<i;){if(n[t].id===a[r].id){n[t]=a[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,n="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,n=e.length;for(r=0;r<n;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,n=0,i=0,a=!0,o=!1;function s(e){for(var r=0,i=e.target;r<n;)t[r].animation===i&&(t.splice(r,1),r-=1,n-=1,i.isPaused||d()),r+=1}function l(e,r){if(!e)return null;for(var i=0;i<n;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var a=new AnimationItem;return u(a,e),a.setData(e,r),a}function c(){i+=1,f()}function d(){i-=1}function u(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",d),t.push({elem:r,animation:e}),n+=1}function p(e){var s,l=e-r;for(s=0;s<n;s+=1)t[s].animation.advanceTime(l);r=e,i&&!o?window.requestAnimationFrame(p):a=!0}function h(e){r=e,window.requestAnimationFrame(p)}function f(){!o&&i&&a&&(window.requestAnimationFrame(h),a=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return u(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=i.length;for(n=0;n<a;n+=1)r&&i[n].setAttribute("data-bm-type",r),l(i[n],e);if(t&&0===a){r||(r="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),o.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<n;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var a;for(a=0;a<n;a+=1)t[a].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=n-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){o=!0},e.unfreeze=function(){o=!1,f()},e.setVolume=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n.push(t[e].animation);return n},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,n,i,a){var o=a||("bez_"+e+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(t[o])return t[o];var s=new d([e,r,n,i]);return t[o]=s,s}},t={},r=11,n=1/(r-1),i="function"==typeof Float32Array;function a(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((a(t,r)*e+o(t,r))*e+s(t))*e}function c(e,t,r){return 3*a(t,r)*e*e+2*o(t,r)*e+s(t)}function d(e){this._p=e,this._mSampleValues=i?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return d.prototype={get:function(e){var t=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&n===i?e:0===e?0:1===e?1:l(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,e===t&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],i=0;i<r;++i)this._mSampleValues[i]=l(i*n,e,t)},_getTForX:function(e){for(var t=this._p[0],i=this._p[2],a=this._mSampleValues,o=0,s=1,d=r-1;s!==d&&a[s]<=e;++s)o+=n;var u=o+(e-a[--s])/(a[s+1]-a[s])*n,p=c(u,t,i);return p>=.001?function(e,t,r,n){for(var i=0;i<4;++i){var a=c(t,r,n);if(0===a)return t;t-=(l(t,r,n)-e)/a}return t}(e,u,t,i):0===p?u:function(e,t,r,n,i){var a,o,s=0;do{(a=l(o=t+(r-t)/2,n,i)-e)>0?r=o:t=o}while(Math.abs(a)>1e-7&&++s<10);return o}(e,o,o+n,t,i)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var n=0,i=e,a=createSizedArray(i);return{newElement:function(){return n?a[n-=1]:t()},release:function(e){n===i&&(a=pooling.double(a),i*=2),r&&r(e),a[n]=e,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,n,i,a){var o=e*n+t*i+r*a-i*n-a*e-r*t;return o>-.001&&o<.001}var r=function(e,t,r,n){var i,a,o,s,l,c,d=getDefaultCurveSegments(),u=0,p=[],h=[],f=bezierLengthPool.newElement();for(o=r.length,i=0;i<d;i+=1){for(l=i/(d-1),c=0,a=0;a<o;a+=1)s=bmPow(1-l,3)*e[a]+3*bmPow(1-l,2)*l*r[a]+3*(1-l)*bmPow(l,2)*n[a]+bmPow(l,3)*t[a],p[a]=s,null!==h[a]&&(c+=bmPow(p[a]-h[a],2)),h[a]=p[a];c&&(u+=c=bmSqrt(c)),f.percents[i]=l,f.lengths[i]=u}return f.addedLength=u,f};function n(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var a,o=(a={},function(e,r,o,s){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!a[l]){var c,d,u,p,h,f,m,g=getDefaultCurveSegments(),y=0,v=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+o[0],e[1]+o[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(g=2);var b=new n(g);for(u=o.length,c=0;c<g;c+=1){for(m=createSizedArray(u),h=c/(g-1),f=0,d=0;d<u;d+=1)p=bmPow(1-h,3)*e[d]+3*bmPow(1-h,2)*h*(e[d]+o[d])+3*(1-h)*bmPow(h,2)*(r[d]+s[d])+bmPow(h,3)*r[d],m[d]=p,null!==v&&(f+=bmPow(m[d]-v[d],2));y+=f=bmSqrt(f),b.points[c]=new i(f,m),v=m}b.segmentLength=y,a[l]=b}return a[l]});function s(e,t){var r=t.percents,n=t.lengths,i=r.length,a=bmFloor((i-1)*e),o=e*t.addedLength,s=0;if(a===i-1||0===a||o===n[a])return r[a];for(var l=n[a]>o?-1:1,c=!0;c;)if(n[a]<=o&&n[a+1]>o?(s=(o-n[a])/(n[a+1]-n[a]),c=!1):a+=l,a<0||a>=i-1){if(a===i-1)return r[a];c=!1}return r[a]+(r[a+1]-r[a])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,n=segmentsLengthPool.newElement(),i=e.c,a=e.v,o=e.o,s=e.i,l=e._length,c=n.lengths,d=0;for(t=0;t<l-1;t+=1)c[t]=r(a[t],a[t+1],o[t],s[t+1]),d+=c[t].addedLength;return i&&l&&(c[t]=r(a[t],a[0],o[t],s[0]),d+=c[t].addedLength),n.totalLength=d,n},getNewSegment:function(t,r,n,i,a,o,c){a<0?a=0:a>1&&(a=1);var d,u=s(a,c),p=s(o=o>1?1:o,c),h=t.length,f=1-u,m=1-p,g=f*f*f,y=u*f*f*3,v=u*u*f*3,b=u*u*u,E=f*f*m,_=u*f*m+f*u*m+f*f*p,S=u*u*m+f*u*p+u*f*p,x=u*u*p,T=f*m*m,k=u*m*m+f*p*m+f*m*p,A=u*p*m+f*p*p+u*m*p,P=u*p*p,I=m*m*m,C=p*m*m+m*p*m+m*m*p,w=p*p*m+m*p*p+p*m*p,D=p*p*p;for(d=0;d<h;d+=1)l[4*d]=e.round(1e3*(g*t[d]+y*n[d]+v*i[d]+b*r[d]))/1e3,l[4*d+1]=e.round(1e3*(E*t[d]+_*n[d]+S*i[d]+x*r[d]))/1e3,l[4*d+2]=e.round(1e3*(T*t[d]+k*n[d]+A*i[d]+P*r[d]))/1e3,l[4*d+3]=e.round(1e3*(I*t[d]+C*n[d]+w*i[d]+D*r[d]))/1e3;return l},getPointInSegment:function(t,r,n,i,a,o){var l=s(a,o),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*n[0]+(l*l*c+c*l*l+l*c*l)*i[0]+l*l*l*r[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*n[1]+(l*l*c+c*l*l+l*c*l)*i[1]+l*l*l*r[1]))/1e3]},buildBezierData:o,pointOnLine2D:t,pointOnLine3D:function(r,n,i,a,o,s,l,c,d){if(0===i&&0===s&&0===d)return t(r,n,a,o,l,c);var u,p=e.sqrt(e.pow(a-r,2)+e.pow(o-n,2)+e.pow(s-i,2)),h=e.sqrt(e.pow(l-r,2)+e.pow(c-n,2)+e.pow(d-i,2)),f=e.sqrt(e.pow(l-a,2)+e.pow(c-o,2)+e.pow(d-s,2));return(u=p>h?p>f?p-h-f:f-h-p:f>h?f-h-p:h-p-f)>-1e-4&&u<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var i,a,o,s,l,c,d,u,p,h=t.lastIndex,f=h,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[f],a=this.keyframes[f+1],f===m-1&&e>=a.t-n){i.h&&(i=a),h=0;break}if(a.t-n>e){h=f;break}f<m-1?f+=1:(h=0,g=!1)}o=this.keyframesMetadata[f]||{};var y,v=a.t-n,b=i.t-n;if(i.to){o.bezierData||(o.bezierData=bez.buildBezierData(i.s,a.s||i.e,i.to,i.ti));var E=o.bezierData;if(e>=v||e<b){var _=e>=v?E.points.length-1:0;for(l=E.points[_].point.length,s=0;s<l;s+=1)r[s]=E.points[_].point[s]}else{o.__fnct?p=o.__fnct:(p=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,o.__fnct=p),c=p((e-b)/(v-b));var S,x=E.segmentLength*c,T=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(u=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,d=E.points.length;g;){if(T+=E.points[u].partialLength,0===x||0===c||u===E.points.length-1){for(l=E.points[u].point.length,s=0;s<l;s+=1)r[s]=E.points[u].point[s];break}if(x>=T&&x<T+E.points[u+1].partialLength){for(S=(x-T)/E.points[u+1].partialLength,l=E.points[u].point.length,s=0;s<l;s+=1)r[s]=E.points[u].point[s]+(E.points[u+1].point[s]-E.points[u].point[s])*S;break}u<d-1?u+=1:g=!1}t._lastPoint=u,t._lastAddedLength=T-E.points[u].partialLength,t._lastKeyframeIndex=f}}else{var k,A,P,I,C;if(m=i.s.length,y=a.s||i.e,this.sh&&1!==i.h)e>=v?(r[0]=y[0],r[1]=y[1],r[2]=y[2]):e<=b?(r[0]=i.s[0],r[1]=i.s[1],r[2]=i.s[2]):quaternionToEuler(r,slerp(createQuaternion(i.s),createQuaternion(y),(e-b)/(v-b)));else for(f=0;f<m;f+=1)1!==i.h&&(e>=v?c=1:e<b?c=0:(i.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?p=o.__fnct[f]:(k=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],A=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],P=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],I=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],p=BezierFactory.getBezierEasing(k,A,P,I).get,o.__fnct[f]=p)):o.__fnct?p=o.__fnct:(k=i.o.x,A=i.o.y,P=i.i.x,I=i.i.y,p=BezierFactory.getBezierEasing(k,A,P,I).get,i.keyframeMetadata=p),c=p((e-b)/(v-b)))),y=a.s||i.e,C=1===i.h?i.s[f]:i.s[f]+(y[f]-i.s[f])*c,"multidimensional"===this.propType?r[f]=C:r=C}return t.lastIndex=h,r}function slerp(e,t,r){var n,i,a,o,s,l=[],c=e[0],d=e[1],u=e[2],p=e[3],h=t[0],f=t[1],m=t[2],g=t[3];return(i=c*h+d*f+u*m+p*g)<0&&(i=-i,h=-h,f=-f,m=-m,g=-g),1-i>1e-6?(n=Math.acos(i),a=Math.sin(n),o=Math.sin((1-r)*n)/a,s=Math.sin(r*n)/a):(o=1-r,s=r),l[0]=o*c+s*h,l[1]=o*d+s*f,l[2]=o*u+s*m,l[3]=o*p+s*g,l}function quaternionToEuler(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=Math.atan2(2*n*a-2*r*i,1-2*n*n-2*i*i),s=Math.asin(2*r*n+2*i*a),l=Math.atan2(2*r*a-2*n*i,1-2*r*r-2*i*i);e[0]=o/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,i=Math.cos(t/2),a=Math.cos(r/2),o=Math.cos(n/2),s=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(n/2);return[s*l*o+i*a*c,s*a*o+i*l*c,i*l*o-s*a*c,i*a*o-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),i=0;i<a;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){var i;this.propType="multidimensional";var a,o,s,l,c=t.k.length;for(i=0;i<c-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(a=t.k[i].s,o=t.k[i+1].s,s=t.k[i].to,l=t.k[i].ti,(2===a.length&&(a[0]!==o[0]||a[1]!==o[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],a[0]+s[0],a[1]+s[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===a.length&&(a[0]!==o[0]||a[1]!==o[1]||a[2]!==o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],a[0]+s[0],a[1]+s[1],a[2]+s[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(t.k[i].to=null,t.k[i].ti=null),a[0]===o[0]&&a[1]===o[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===a.length||a[2]===o[2]&&0===s[2]&&0===l[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var d=t.k[0].s.length;for(this.v=createTypedArray("float32",d),this.pv=createTypedArray("float32",d),i=0;i<d;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",d)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(e,t,r,n,i){var a;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])a=new MultiDimensionalProperty(e,t,n,i);else switch(r){case 0:a=new KeyframedValueProperty(e,t,n,i);break;case 1:a=new KeyframedMultidimensionalProperty(e,t,n,i)}else a=new ValueProperty(e,t,n,i);return a.effectsSequence.length&&i.addDynamicProperty(a),a}},ob),ob;function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,n,i){var a;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[n]||a[n]&&!i)&&(a[n]=pointPool.newElement()),a[n][0]=e,a[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,i,a,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(r,n,"o",o,s),this.setXYAt(i,a,"i",o,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var a,o=this._length-1,s=this._length;for(a=i;a<s;a+=1)e.setTripleAt(t[o][0],t[o][1],n[o][0],n[o][1],r[o][0],r[o][1],a,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),n=void 0===e._length?e.v.length:e._length;for(r.setLength(n),r.c=e.c,t=0;t<n;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:function(){return t?n[t-=1]:new ShapeCollection},release:function(e){var i,a=e._length;for(i=0;i<a;i+=1)shapePool.release(e.shapes[i]);e._length=0,t===r&&(n=pooling.double(n),r*=2),n[t]=e,t+=1}},t=0,r=4,n=createSizedArray(r);return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var n,i,a,o,s,l,c,d,u,p=r.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)n=h[0].s[0],a=!0,p=0;else if(e>=h[h.length-1].t-this.offsetTime)n=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],a=!0;else{for(var f,m,g,y=p,v=h.length-1,b=!0;b&&(f=h[y],!((m=h[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},p=y,!(a=1===f.h)){if(e>=m.t-this.offsetTime)d=1;else if(e<f.t-this.offsetTime)d=0;else{var E;g.__fnct?E=g.__fnct:(E=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=E),d=E((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}n=f.s[0]}for(l=t._length,c=n.i[0].length,r.lastIndex=p,o=0;o<l;o+=1)for(s=0;s<c;s+=1)u=a?n.i[o][s]:n.i[o][s]+(i.i[o][s]-n.i[o][s])*d,t.i[o][s]=u,u=a?n.o[o][s]:n.o[o][s]+(i.o[o][s]-n.o[o][s])*d,t.o[o][s]=u,u=a?n.v[o][s]:n.v[o][s]+(i.v[o][s]-n.v[o][s])*d,t.v[o][s]=u}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>n&&t>n)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function n(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,n=e._length;for(r=0;r<n;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,a){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===a?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}o.prototype.interpolateShape=t,o.prototype.getValue=a,o.prototype.setVValue=i,o.prototype.addEffect=s,l.prototype.getValue=a,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=s;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,a=3!==this.d,o=this.v;o.v[0][0]=t,o.v[0][1]=r-i,o.v[1][0]=a?t+n:t-n,o.v[1][1]=r,o.v[2][0]=t,o.v[2][1]=r+i,o.v[3][0]=a?t-n:t+n,o.v[3][1]=r,o.i[0][0]=a?t-n*e:t+n*e,o.i[0][1]=r-i,o.i[1][0]=a?t+n:t-n,o.i[1][1]=r-i*e,o.i[2][0]=a?t+n*e:t-n*e,o.i[2][1]=r+i,o.i[3][0]=a?t-n:t+n,o.i[3][1]=r+i*e,o.o[0][0]=a?t+n*e:t-n*e,o.o[0][1]=r-i,o.o[1][0]=a?t+n:t-n,o.o[1][1]=r+i*e,o.o[2][0]=a?t-n*e:t+n*e,o.o[2][1]=r+i,o.o[3][0]=a?t-n:t+n,o.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,n,i=2*Math.floor(this.pt.v),a=2*Math.PI/i,o=!0,s=this.or.v,l=this.ir.v,c=this.os.v,d=this.is.v,u=2*Math.PI*s/(2*i),p=2*Math.PI*l/(2*i),h=-Math.PI/2;h+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=o?c:d,n=o?u:p;var m=(t=o?s:l)*Math.cos(h),g=t*Math.sin(h),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*n*r*f,g-v*n*r*f,m+y*n*r*f,g+v*n*r*f,e,!0),o=!o,h+=a*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,n=this.or.v,i=this.os.v,a=2*Math.PI*n/(4*t),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=n*Math.cos(o),c=n*Math.sin(o),d=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),u=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-d*a*i*s,c-u*a*i*s,l+d*a*i*s,c+u*a*i*s,e,!0),o+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),a=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+i,e+r,t-n+a,0,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-a,e+r,t+n-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+n,e+r-i,t+n,e+r-a,t+n,2,!0),this.v.setTripleAt(e-r+i,t+n,e-r+a,t+n,e-r+i,t+n,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-i,e-r,t+n-a,4,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+a,e-r,t-n+i,5,!0),this.v.setTripleAt(e-r+i,t-n,e-r+i,t-n,e-r+a,t-n,6,!0),this.v.setTripleAt(e+r-i,t-n,e+r-a,t-n,e+r-i,t-n,7,!0)):(this.v.setTripleAt(e-r,t+n,e-r+a,t+n,e-r,t+n,2),this.v.setTripleAt(e-r,t-n,e-r,t-n+a,e-r,t-n,3))):(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+a,e+r,t-n+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-n,e+r-i,t-n,e+r-a,t-n,1,!0),this.v.setTripleAt(e-r+i,t-n,e-r+a,t-n,e-r+i,t-n,2,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+i,e-r,t-n+a,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-a,e-r,t+n-i,4,!0),this.v.setTripleAt(e-r+i,t+n,e-r+i,t+n,e-r+a,t+n,5,!0),this.v.setTripleAt(e+r-i,t+n,e+r-a,t+n,e+r-i,t+n,6,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-i,e+r,t+n-a,7,!0)):(this.v.setTripleAt(e-r,t-n,e-r+a,t-n,e-r,t-n,1,!0),this.v.setTripleAt(e-r,t+n,e-r,t+n-a,e-r,t+n,2,!0),this.v.setTripleAt(e+r,t+n,e+r-a,t+n,e+r,t+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}(),p={getShapeProp:function(e,t,r){var n;return 3===r||4===r?n=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new o(e,t,r):5===r?n=new u(e,t):6===r?n=new c(e,t):7===r&&(n=new d(e,t)),n.k&&e.addDynamicProperty(n),n},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}};return p}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function o(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function l(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function d(e,t){return this.shear(r(e),r(t))}function u(n,i){var a=e(i),o=t(i);return this._t(a,o,0,0,-o,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(a,-o,0,0,o,a,0,0,0,0,1,0,0,0,0,1)}function p(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function h(e,t,r,n,i,a,o,s,l,c,d,u,p,h,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=a,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=d,this.props[11]=u,this.props[12]=p,this.props[13]=h,this.props[14]=f,this.props[15]=m,this}function f(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,n,i,a,o,s,l,c,d,u,p,h,f,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===a&&0===o&&0===s&&0===l&&0===c&&1===d&&0===u)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*a+g[15]*h,g[14]=g[14]*d+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],E=g[3],_=g[4],S=g[5],x=g[6],T=g[7],k=g[8],A=g[9],P=g[10],I=g[11],C=g[12],w=g[13],D=g[14],R=g[15];return g[0]=y*e+v*i+b*l+E*p,g[1]=y*t+v*a+b*c+E*h,g[2]=y*r+v*o+b*d+E*f,g[3]=y*n+v*s+b*u+E*m,g[4]=_*e+S*i+x*l+T*p,g[5]=_*t+S*a+x*c+T*h,g[6]=_*r+S*o+x*d+T*f,g[7]=_*n+S*s+x*u+T*m,g[8]=k*e+A*i+P*l+I*p,g[9]=k*t+A*a+P*c+I*h,g[10]=k*r+A*o+P*d+I*f,g[11]=k*n+A*s+P*u+I*m,g[12]=C*e+w*i+D*l+R*p,g[13]=C*t+w*a+D*c+R*h,g[14]=C*r+w*o+D*d+R*f,g[15]=C*n+w*s+D*u+R*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function E(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function _(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function x(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function T(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function k(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,n=-this.props[4]/e,i=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=n,s.props[5]=i,s.props[12]=a,s.props[13]=o,s}function A(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function P(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=A(e[t]);return n}function I(e,t,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=e[0],n[1]=e[1],n[2]=t[0],n[3]=t[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],a=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];n[0]=e[0]*i+e[1]*o+l,n[1]=e[0]*a+e[1]*s+c,n[2]=t[0]*i+t[1]*o+l,n[3]=t[0]*a+t[1]*s+c,n[4]=r[0]*i+r[1]*o+l,n[5]=r[0]*a+r[1]*s+c}return n}function C(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function w(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function D(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=n(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function R(e){return e<1e-6&&e>0||e>-1e-6&&e<0?n(1e4*e)/1e4:e}function L(){var e=this.props;return"matrix("+R(e[0])+","+R(e[1])+","+R(e[4])+","+R(e[5])+","+R(e[12])+","+R(e[13])+")"}return function(){this.reset=i,this.rotate=a,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=d,this.skewFromAxis=u,this.shear=c,this.scale=p,this.setTransform=h,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=_,this.applyToX=S,this.applyToY=x,this.applyToZ=T,this.applyToPointArray=C,this.applyToTriplePoints=I,this.applyToPointStringified=w,this.toCSS=D,this.to2dCSS=L,this.clone=b,this.cloneFromProps=E,this.equals=v,this.inversePoints=P,this.inversePoint=A,this.getInverseMatrix=k,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,n){return new t[e](r,n)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,n,i){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o,s,l=[],c=a.length;for(o=0;o<c;o+=1){var d,u;(s=a[o]).e*i<n||s.s*i>n+r||(d=s.s*i<=n?0:(s.s*i-n)/r,u=s.e*i>=n+r?1:(s.e*i-n)/r,l.push([d,u]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,n,i;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),(t=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(r=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var o=t;t=r,r=o}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,l,c,d,u,p=this.shapes.length,h=0;if(r===t)for(i=0;i<p;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<p;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(n=f.shape.paths)._length,u=0,!f.shape._mdf&&f.pathsData.length)u=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)d=bez.getSegmentsLength(n.shapes[s]),c.push(d),u+=d.totalLength;f.totalShapeLength=u,f.pathsData=c}h+=u,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=t,b=r,E=0;for(i=p-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(t,r,f.totalShapeLength,E,h),E+=f.totalShapeLength):y=[[v,b]],l=y.length,s=0;s<l;s+=1){v=y[s][0],b=y[s][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*b}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var _=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var S=_.pop();this.addPaths(_,m),_=this.addShapes(f,g[1],S)}else this.addPaths(_,m),_=this.addShapes(f,g[1]);this.addPaths(_,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,i,a,o){i.setXYAt(t[0],t[1],"o",a),i.setXYAt(r[0],r[1],"i",a+1),o&&i.setXYAt(e[0],e[1],"v",a),i.setXYAt(n[0],n[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var n,i,a,o,s,l,c,d,u=e.pathsData,p=e.shape.paths.shapes,h=e.shape.paths._length,f=0,m=[],g=!0;for(r?(s=r._length,d=r._length):(r=shapePool.newElement(),s=0,d=0),m.push(r),n=0;n<h;n+=1){for(l=u[n].lengths,r.c=p[n].c,a=p[n].c?l.length:l.length+1,i=1;i<a;i+=1)if(f+(o=l[i-1]).addedLength<t.s)f+=o.addedLength,r.c=!1;else{if(f>t.e){r.c=!1;break}t.s<=f&&t.e>=f+o.addedLength?(this.addSegment(p[n].v[i-1],p[n].o[i-1],p[n].i[i],p[n].v[i],r,s,g),g=!1):(c=bez.getNewSegment(p[n].v[i-1],p[n].v[i],p[n].o[i-1],p[n].i[i],(t.s-f)/o.addedLength,(t.e-f)/o.addedLength,l[i-1]),this.addSegmentFromArray(c,r,s,g),g=!1,r.c=!1),f+=o.addedLength,s+=1}if(p[n].c&&l.length){if(o=l[i-1],f<=t.e){var y=l[i-1].addedLength;t.s<=f&&t.e>=f+y?(this.addSegment(p[n].v[i-1],p[n].o[i-1],p[n].i[0],p[n].v[0],r,s,g),g=!1):(c=bez.getNewSegment(p[n].v[i-1],p[n].v[0],p[n].o[i-1],p[n].i[0],(t.s-f)/y,(t.e-f)/y,l[i-1]),this.addSegmentFromArray(c,r,s,g),g=!1,r.c=!1)}else r.c=!1;f+=o.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[d][0],r.v[d][1],"i",d),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>t.e)break;n<h-1&&(r=shapePool.newElement(),g=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,n=[0,0],i=e._length,a=0;for(a=0;a<i;a+=1)n[0]+=e.v[a][0],n[1]+=e.v[a][1];n[0]/=i,n[1]/=i;var o,s,l,c,d,u,p=shapePool.newElement();for(p.c=e.c,a=0;a<i;a+=1)o=e.v[a][0]+(n[0]-e.v[a][0])*r,s=e.v[a][1]+(n[1]-e.v[a][1])*r,l=e.o[a][0]+(n[0]-e.o[a][0])*-r,c=e.o[a][1]+(n[1]-e.o[a][1])*-r,d=e.i[a][0]+(n[0]-e.i[a][0])*-r,u=e.i[a][1]+(n[1]-e.i[a][1])*-r,p.setTripleAt(o,s,l,c,d,u,a);return p},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n,i,a,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,n=0;n<i;n+=1)o.addShape(this.processPath(t[n],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var n,i=t.or.k.length;for(n=0;n<i;n+=1)t.or.k[n].to=null,t.or.k[n].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(n[0]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[1]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),i[0]=a.getValueAtTime(a.keyframes[0].t/r,0),i[1]=o.getValueAtTime(o.keyframes[0].t/r,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(n[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),i[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0),i[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0)):(n=[a.pv,o.pv],i[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime),i[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime))}else n=i=e;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,n){return new t(e,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var n=t*t-4*e*r;if(n<0)return[];var i=-t/(2*e);if(0===n)return[i];var a=Math.sqrt(n)/(2*e);return[i-a,i+a]}function polynomialCoefficients(e,t,r,n){return[3*t-e-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var a=polynomialCoefficients(e[0],t[0],r[0],n[0]),o=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var i=n;n=r,r=i}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var s=e.point(a[o])[t];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,n,i,a){if(boxIntersect(e,t))if(r>=a||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n)i.push([e.t,t.t]);else{var o=splitData(e),s=splitData(t);intersectsImpl(o[0],s[0],r+1,n,i,a),intersectsImpl(o[0],s[1],r+1,n,i,a),intersectsImpl(o[1],s[0],r+1,n,i,a),intersectsImpl(o[1],s[1],r+1,n,i,a)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var i=[e[0],e[1],1],a=[t[0],t[1],1],o=[r[0],r[1],1],s=[n[0],n[1],1],l=crossProduct(crossProduct(i,a),crossProduct(o,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,i,a,o){var s=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*n*i,d=t[1]-Math.sin(r)*n*i;e.setTripleAt(c,d,c+Math.cos(s)*a,d-Math.sin(s)*a,c+Math.cos(l)*o,d-Math.sin(l)*o,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,n=(t+1)%e.length(),i=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,n,i,a,o){var s=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[0===r?t._length-1:r-1],d=t.v[(r+1)%t._length],u=2===a?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,p=2===a?Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)):0;setPoint(e,t.v[r%t._length],s,o,n,p/(2*(i+1)),u/(2*(i+1)))}function zigZagSegment(e,t,r,n,i,a){for(var o=0;o<n;o+=1){var s=(o+1)/(n+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);setPoint(e,t.point(s),c,a,r,l/(2*(n+1)),l/(2*(n+1))),a=-a}return a}function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,i,a,o,s,l;r=(l=linearOffset(e.points[0],e.points[1],t))[0],n=l[1],i=(l=linearOffset(e.points[1],e.points[2],t))[0],a=l[1],o=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(r,n,i,a);null===c&&(c=n);var d=lineIntersection(o,s,i,a);return null===d&&(d=o),new PolynomialBezier(r,c,d,s)}function joinLines(e,t,r,n,i){var a=t.points[3],o=r.points[0];if(3===n)return a;if(pointEqual(a,o))return a;if(2===n){var s=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(a,polarOffset(a,s+Math.PI/2,100),o,polarOffset(o,s+Math.PI/2,100)),d=c?pointDistance(c,a):pointDistance(a,o)/2,u=polarOffset(a,s,2*d*roundCorner);return e.setXYAt(u[0],u[1],"o",e.length()-1),u=polarOffset(o,l,2*d*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],u[0],u[1],e.length()),o}var p=lineIntersection(pointEqual(a,t.points[2])?t.points[0]:t.points[2],a,o,pointEqual(o,r.points[1])?r.points[3]:r.points[1]);return p&&pointDistance(p,a)<i?(e.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],e.length()),p):a}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(r[e.length-1]=e[e.length-1].split(i[0])[0],n[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,i,a,o=e.inflectionPoints();if(0===o.length)return[offsetSegment(e,t)];if(1===o.length||floatEqual(o[1],1))return r=(i=e.split(o[0]))[0],n=i[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(i=e.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return a=(i=i[1].split(s))[0],n=i[1],[offsetSegment(r,t),offsetSegment(a,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",i=t.length,a=0;a<i;a+=1)switch(t[a].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,n,i,a){var o=a?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-i),l=n.s.v[1]+(1-n.s.v[1])*(1-i);e.translate(n.p.v[0]*o*i,n.p.v[1]*o*i,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*o*i),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(a?1/s:s,a?1/l:l),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,i,a,o=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(a=0,n=0;n<=this._groups.length-1;n+=1){if(s=a<l,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var d=this.elemsData[n].it,u=d[d.length-1];0!==u.transform.op.v?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}a+=1}this._currentCopies=l;var p=this.o.v,h=p%1,f=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,E=0;if(p>0){for(;E<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),E+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),E+=h)}else if(p<0){for(;E>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),E-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),E-=h)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==E){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];E+=1,a-=1,n+=i}}else for(a=this._currentCopies,n=0,i=1;a;)r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,n+=i;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,n=shapePool.newElement();n.c=e.c;var i,a,o,s,l,c,d,u,p,h,f,m,g=e._length,y=0;for(r=0;r<g;r+=1)i=e.v[r],o=e.o[r],a=e.i[r],i[0]===o[0]&&i[1]===o[1]&&i[0]===a[0]&&i[1]===a[1]?0!==r&&r!==g-1||e.c?(s=0===r?e.v[g-1]:e.v[r-1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=f=i[0]+(s[0]-i[0])*c,u=m=i[1]-(i[1]-s[1])*c,p=d-(d-i[0])*roundCorner,h=u-(u-i[1])*roundCorner,n.setTripleAt(d,u,p,h,f,m,y),y+=1,s=r===g-1?e.v[0]:e.v[r+1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=p=i[0]+(s[0]-i[0])*c,u=h=i[1]+(s[1]-i[1])*c,f=d-(d-i[0])*roundCorner,m=u-(u-i[1])*roundCorner,n.setTripleAt(d,u,p,h,f,m,y),y+=1):(n.setTripleAt(i[0],i[1],o[0],o[1],a[0],a[1],y),y+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],y),y+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n,i,a,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,n=0;n<i;n+=1)o.addShape(this.processPath(t[n],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,r,e),a=lerpPoint(r,n,e),o=lerpPoint(i,a,e);return[new PolynomialBezier(this.points[0],t,i,o,!0),new PolynomialBezier(o,a,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,n){var i=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(i-=1),0===i)return a;var o=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,r,n,o);for(var l=0;l<i;l+=1)o=zigZagSegment(a,s,t,r,n,-o),s=l!==i-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%i):null,zigZagCorner(a,e,l+1,t,r,n,o);return a},ZigZagModifier.prototype.processShapes=function(e){var t,r,n,i,a,o,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),d=this.pointsType.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,n=0;n<i;n+=1)o.addShape(this.processPath(t[n],l,c,d));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var i=shapePool.newElement();i.c=e.c;var a,o,s,l=e.length();e.c||(l-=1);var c=[];for(a=0;a<l;a+=1)s=PolynomialBezier.shapeSegment(e,a),c.push(offsetSegmentSplit(s,t));if(!e.c)for(a=l-1;a>=0;a-=1)s=PolynomialBezier.shapeSegmentInverted(e,a),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var d=null,u=null;for(a=0;a<c.length;a+=1){var p=c[a];for(u&&(d=joinLines(i,u,p[0],r,n)),u=p[p.length-1],o=0;o<p.length;o+=1)s=p[o],d&&pointEqual(s.points[0],d)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),d=s.points[3]}return c.length&&joinLines(i,u,c[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n,i,a,o,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,d=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,n=0;n<i;n+=1)o.addShape(this.processPath(t[n],l,d,c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(e){var t,r=e.split(","),n=r.length,i=[];for(t=0;t<n;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:n,w:i,parent:r}}function a(e,t){var r,n=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===n){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",e.fFamily),a.setAttribute("font-style",i.style),a.setAttribute("font-weight",i.weight),a.textContent="1",e.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",e.fClass)):a.style.fontFamily=e.fFamily,t.appendChild(a),r=a}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=o}return{measureText:function(e){return"svg"===n?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function o(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var n=e.charCodeAt(1);n>=56320&&n<=57343&&(t=1024*(r-55296)+n-56320+65536)}return t}function s(e){var t=o(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var n=o(e.substr(t,2));if(n!==r)return!1;var i=0;for(t+=2;i<5;){if((n=o(e.substr(t,2)))<917601||n>917626)return!1;i+=1,t+=2}return 917631===o(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=r;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,n,i=e.length,a=this.chars.length;for(t=0;t<i;t+=1){for(r=0,n=!1;r<a;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(n=!0),r+=1;n||(this.chars.push(e[t]),a+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=a(e),e.cache={}})),void(this.fonts=e.list);var r,n=e.list,o=n.length,s=o;for(r=0;r<o;r+=1){var l,c,d=!0;if(n[r].loaded=!1,n[r].monoCase=i(n[r].fFamily,"monospace"),n[r].sansCase=i(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(d=!1),d){var u=createTag("style");u.setAttribute("f-forigin",n[r].fOrigin),u.setAttribute("f-origin",n[r].origin),u.setAttribute("f-family",n[r].fFamily),u.type="text/css",u.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",t.appendChild(u)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(n[r].fPath)&&(d=!1);if(d){var p=createTag("link");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.type="text/css",p.rel="stylesheet",p.href=n[r].fPath,document.body.appendChild(p)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)n[r].fPath===l[c].src&&(d=!1);if(d){var h=createTag("link");h.setAttribute("f-forigin",n[r].fOrigin),h.setAttribute("f-origin",n[r].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",n[r].fPath),t.appendChild(h)}}}else n[r].loaded=!0,s-=1;n[r].helper=a(n[r],t),n[r].cache={},this.fonts.push(n[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,n){for(var i=0,a=this.chars.length;i<a;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,n)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var n=this.getFontByName(t),i=e;if(!n.cache[i]){var a=n.helper;if(" "===e){var o=a.measureText("|"+e+"|"),s=a.measureText("||");n.cache[i]=(o-s)/100}else n.cache[i]=a.measureText(e)/100}return n.cache[i]*r},checkLoadedFonts:function(){var e,t,r,n=this.fonts.length,i=n;for(e=0;e<n;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,n=e.ef||[];this.effectElements=[];var i,a=n.length;for(r=0;r<a;r+=1)i=new GroupEffect(n[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,a=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,a[r].ty){case 0:n=new SliderEffect(a[r],t,this);break;case 1:n=new AngleEffect(a[r],t,this);break;case 2:n=new ColorEffect(a[r],t,this);break;case 3:n=new PointEffect(a[r],t,this);break;case 4:case 7:n=new CheckboxEffect(a[r],t,this);break;case 10:n=new LayerIndexEffect(a[r],t,this);break;case 11:n=new MaskIndexEffect(a[r],t,this);break;case 5:n=new EffectsManager(a[r],t);break;default:n=new NoValueEffect(a[r])}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),n=e("shape"),i=e("text"),a=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=a(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,n=this.layers.length;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,n=e.length,i=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var n=this.elements,i=this.layers,a=0,o=i.length;a<o;)i[a].ind==t&&(n[a]&&!0!==n[a]?(r.push(n[a]),n[a].setAsParent(),void 0!==i[a].parent?this.buildElementParenting(e,i[a].parent,r):e.setHierarchy(r)):(this.buildItem(a),this.addPendingElement(e))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){t=this.elements[n];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,c,d,u,p,h=this.masksProperties,f=0,m=[],g=createElementID(),y="clipPath",v="clip-path";for(n=0;n<o;n+=1)if(("a"!==h[n].mode&&"n"!==h[n].mode||h[n].inv||100!==h[n].o.k||h[n].o.x)&&(y="mask",v="mask"),"s"!==h[n].mode&&"i"!==h[n].mode||0!==f?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),i=createNS("path"),"n"===h[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),elem:i,lastPath:""},a.appendChild(i);else{var b;if(f+=1,i.setAttribute("fill","s"===h[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==h[n].x.k?(y="mask",v="mask",p=PropertyFactory.getProp(this.element,h[n].x,0,null,this.element),b=createElementID(),(d=createNS("filter")).setAttribute("id",b),(u=createNS("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),d.appendChild(u),a.appendChild(d),i.setAttribute("stroke","s"===h[n].mode?"#000000":"#ffffff")):(u=null,p=null),this.storedData[n]={elem:i,x:p,expan:u,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===h[n].mode){l=m.length;var E=createNS("g");for(s=0;s<l;s+=1)E.appendChild(m[s]);var _=createNS("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",g+"_"+f),_.appendChild(i),a.appendChild(_),E.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(E)}else m.push(i);h[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),invRect:c},this.viewData[n].prop.k||this.drawPath(h[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(y),o=m.length,n=0;n<o;n+=1)this.maskElement.appendChild(m[n]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<n;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var n=this.localTransforms[e].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):n=!1;var a,o=t.length;for(r=0;r<o;r+=1)a=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-a[0],e[1]-a[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(t=0;t<n;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var n,i,a=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,n=1;n<i;n+=1)a+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&i>1&&(a+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==a){var o="";r.elem&&(t.c&&(o=e.inv?this.solidPath+a:a),r.elem.setAttribute("d",o)),r.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(r=new(0,registeredEffects$1[l].effect)(o,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),a.appendChild(this.layerElement),this.transformedElement=a,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,n,i,a=this.layerId+"_"+e;if(1===e||3===e){var o=createNS("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===e?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(n),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==e||(o.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),o.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",a),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),r=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),r.appendChild(c);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),c.appendChild(d),this.globalData.defs.appendChild(r);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(u),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),l.appendChild(u),i.appendChild(this.layerElement),l.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=a}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,n=t.length;r<n;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===e)return void(r[n].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var n=0,i=e.length;n<i;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,n){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var a,o=t.length||0;for(i=0;i<o;i+=1)a=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=a.k||this.k,this.dataProps[i]={n:t[i].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var n=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,n,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,n=Math.round(this.prop.v[t]*r),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,n=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==n&&(this.o[t-4*this.data.p]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),n=createNS(1===t.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,a,o,s=[];for(o=4*t.g.p,a=0;a<o;a+=4)i=createNS("stop"),n.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,a=createNS("mask"),o=createNS("path");a.appendChild(o);var s=createElementID(),l=createElementID();a.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(n=4*e.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),d.push(r);o.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=a,this.ost=d,this.maskId=l,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,n){if(0===t)return"";var i,a=e.o,o=e.i,s=e.v,l=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+n.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+n.applyToPointStringified(o[i][0],o[i][1])+" "+n.applyToPointStringified(s[i][0],s[i][1]);return r&&t&&(l+=" C"+n.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+n.applyToPointStringified(o[0][0],o[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function n(){}function i(r,n,i){var a,o,s,l,c,d,u,p,h,f,m=n.styles.length,g=n.lvl;for(d=0;d<m;d+=1){if(l=n.sh._mdf||i,n.styles[d].lvl<g){for(p=t.reset(),h=g-n.styles[d].lvl,f=n.transformers.length-1;!l&&h>0;)l=n.transformers[f].mProps._mdf||l,h-=1,f-=1;if(l)for(h=g-n.styles[d].lvl,f=n.transformers.length-1;h>0;)p.multiply(n.transformers[f].mProps.v),h-=1,f-=1}else p=e;if(o=(u=n.sh.paths)._length,l){for(s="",a=0;a<o;a+=1)(c=u.shapes[a])&&c._length&&(s+=buildShapeString(c,c._length,c.c,p));n.caches[d]=s}else s=n.caches[d];n.styles[d].d+=!0===r.hd?"":s,n.styles[d]._mdf=l||n.styles[d]._mdf}}function a(e,t,r){var n=t.style;(t.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",t.o.v)}function o(e,t,r){s(e,t,r),l(0,t,r)}function s(e,t,r){var n,i,a,o,s,l=t.gf,c=t.g._hasOpacity,d=t.s.v,u=t.e.v;if(t.o._mdf||r){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||r){var h=1===e.t?"x1":"cx",f="x1"===h?"y1":"cy";l.setAttribute(h,d[0]),l.setAttribute(f,d[1]),c&&!t.g._collapsable&&(t.of.setAttribute(h,d[0]),t.of.setAttribute(f,d[1]))}if(t.g._cmdf||r){n=t.cst;var m=t.g.c;for(a=n.length,i=0;i<a;i+=1)(o=n[i]).setAttribute("offset",m[4*i]+"%"),o.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(c&&(t.g._omdf||r)){var g=t.g.o;for(a=(n=t.g._collapsable?t.cst:t.ost).length,i=0;i<a;i+=1)o=n[i],t.g._collapsable||o.setAttribute("offset",g[2*i]+"%"),o.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",u[0]),l.setAttribute("y2",u[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",u[0]),t.of.setAttribute("y2",u[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(d[0]-u[0],2)+Math.pow(d[1]-u[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(d[0]-u[0],2)+Math.pow(d[1]-u[1],2)));var y=Math.atan2(u[1]-d[1],u[0]-d[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,E=Math.cos(y+t.a.v)*b+d[0],_=Math.sin(y+t.a.v)*b+d[1];l.setAttribute("fx",E),l.setAttribute("fy",_),c&&!t.g._collapsable&&(t.of.setAttribute("fx",E),t.of.setAttribute("fy",_))}}function l(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",t.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return s;case"gs":return o;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,n,i,a){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=i,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,n,i=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(r=0;r<a;r+=1){for(n=this.stylesList[r],s=!1,o.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(n)&&(o.push(t),s=t._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),i=n.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,n):"fl"===e.ty?r=new SVGFillStyleData(this,e,n):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,n)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,n=this.stylesList.length;for(t=0;t<n;t+=1)-1!==r.indexOf(this.stylesList[t])||this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,n,i,a,o){var s,l,c,d,u,p,h=[].concat(a),f=e.length-1,m=[],g=[];for(s=f;s>=0;s-=1){if((p=this.searchProcessedElement(e[s]))?t[s]=r[p-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)p?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==n&&n.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(p)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,h,o),e[s]._render&&t[s].gr.parentNode!==n&&n.appendChild(t[s].gr)}else"tr"===e[s].ty?(p||(t[s]=this.createTransformElement(e[s],n)),d=t[s].transform,h.push(d)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(p||(t[s]=this.createShapeElement(e[s],h,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(p?(u=t[s]).closed=!1:((u=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=u,this.shapeModifiers.push(u)),g.push(u)):"rp"===e[s].ty&&(p?(u=t[s]).closed=!0:(u=ShapeModifiers.getModifier(e[s].ty),t[s]=u,u.init(this,e,s,t),this.shapeModifiers.push(u),o=!1),g.push(u));this.addProcessedElement(e[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,n,i,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,o=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,o=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,o=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)a=r!==this.keysIndex?this.effectsSequence[n](a,a.t):this.effectsSequence[n](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,n=e.length;r<=n-1&&!(r===n-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,n=[],i=0,a=e.length,o=!1,s=!1,l="";i<a;)o=s,s=!1,t=e.charCodeAt(i),l=e.charAt(i),FontManager.isCombinedCharacter(t)?o=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(r=e.charCodeAt(i+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(l=e.substr(i,2),o=!0):l=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(r=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(o=!0)):FontManager.isZeroWidthJoiner(t)&&(o=!0,s=!0),o?(n[n.length-1]+=l,o=!1):n.push(l),i+=l.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,n,i,a,o,s,l=this.elem.globalData.fontManager,c=this.data,d=[],u=0,p=c.m.g,h=0,f=0,m=0,g=[],y=0,v=0,b=l.getFontByName(e.f),E=0,_=getFontProperties(b);e.fWeight=_.weight,e.fStyle=_.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var S,x=e.tr/1e3*e.finalSize;if(e.sz)for(var T,k,A=!0,P=e.sz[0],I=e.sz[1];A;){T=0,y=0,r=(k=this.buildFinalText(e.t)).length,x=e.tr/1e3*e.finalSize;var C=-1;for(t=0;t<r;t+=1)S=k[t].charCodeAt(0),n=!1," "===k[t]?C=t:13!==S&&3!==S||(y=0,n=!0,T+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(k[t],b.fStyle,b.fFamily),E=n?0:s.w*e.finalSize/100):E=l.measureText(k[t],e.f,e.finalSize),y+E>P&&" "!==k[t]?(-1===C?r+=1:t=C,T+=e.finalLineHeight||1.2*e.finalSize,k.splice(t,C===t?1:0,"\r"),C=-1,y=0):(y+=E,y+=x);T+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&I<T?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=k,r=e.finalText.length,A=!1)}y=-x,E=0;var w,D=0;for(t=0;t<r;t+=1)if(n=!1,13===(S=(w=e.finalText[t]).charCodeAt(0))||3===S?(D=0,g.push(y),v=y>v?y:v,y=-2*x,i="",n=!0,m+=1):i=w,l.chars?(s=l.getCharData(w,b.fStyle,l.getFontByName(e.f).fFamily),E=n?0:s.w*e.finalSize/100):E=l.measureText(i,e.f,e.finalSize)," "===w?D+=E+x:(y+=E+x+D,D=0),d.push({l:E,an:E,add:h,n:n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==p){if(h+=E,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(h-=E);f<=t;)d[f].an=h,d[f].ind=u,d[f].extra=E,f+=1;u+=1,h=0}}else if(3==p){if(h+=E,""===i||t===r-1){for(""===i&&(h-=E);f<=t;)d[f].an=h,d[f].ind=u,d[f].extra=E,f+=1;h=0,u+=1}}else d[u].ind=u,d[u].extra=0,u+=1;if(e.l=d,v=y>v?y:v,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var R,L,O,M,N=c.a;o=N.length;var F=[];for(a=0;a<o;a+=1){for((R=N[a]).a.sc&&(e.strokeColorAnim=!0),R.a.sw&&(e.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(e.fillColorAnim=!0),M=0,O=R.s.b,t=0;t<r;t+=1)(L=d[t]).anIndexes[a]=M,(1==O&&""!==L.val||2==O&&""!==L.val&&" "!==L.val||3==O&&(L.n||" "==L.val||t==r-1)||4==O&&(L.n||t==r-1))&&(1===R.s.rn&&F.push(M),M+=1);c.a[a].s.totalChars=M;var $,B=-1;if(1===R.s.rn)for(t=0;t<r;t+=1)B!=(L=d[t]).anIndexes[a]&&(B=L.anIndexes[a],$=F.splice(Math.floor(Math.random()*F.length),1)[0]),L.anIndexes[a]=$}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function n(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,a=0,o=1,s=1;this.ne.v>0?i=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,a,o,s).get,c=0,d=this.finalS,u=this.finalE,p=this.data.sh;if(2===p)c=l(c=u===d?n>=u?1:0:e(0,t(.5/(u-d)+(n-d)/(u-d),1)));else if(3===p)c=l(c=u===d?n>=u?0:1:1-e(0,t(.5/(u-d)+(n-d)/(u-d),1)));else if(4===p)u===d?c=0:(c=e(0,t(.5/(u-d)+(n-d)/(u-d),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===p){if(u===d)c=0;else{var h=u-d,f=-h/2+(n=t(e(0,n+.5-d),u-d)),m=h/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===p?(u===d?c=0:(n=t(e(0,n+.5-d),u-d),c=(1+Math.cos(Math.PI+2*Math.PI*n/(u-d)))/2),c=l(c)):(n>=r(d)&&(c=e(0,t(n-d<0?t(u,1)-(d-n):u-n,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,n=this.s.v/t+r,i=this.e.v/t+r;if(n>i){var a=n;n=i,i=a}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(e,t,r){return new n(e,t)}}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},i=PropertyFactory.getProp,a=t.a;this.a={r:a.r?i(e,a.r,0,degToRads,r):n,rx:a.rx?i(e,a.rx,0,degToRads,r):n,ry:a.ry?i(e,a.ry,0,degToRads,r):n,sk:a.sk?i(e,a.sk,0,degToRads,r):n,sa:a.sa?i(e,a.sa,0,degToRads,r):n,s:a.s?i(e,a.s,1,.01,r):n,a:a.a?i(e,a.a,1,0,r):n,o:a.o?i(e,a.o,0,.01,r):n,p:a.p?i(e,a.p,1,0,r):n,sw:a.sw?i(e,a.sw,0,0,r):n,sc:a.sc?i(e,a.sc,1,0,r):n,fc:a.fc?i(e,a.fc,1,0,r):n,fh:a.fh?i(e,a.fh,0,0,r):n,fs:a.fs?i(e,a.fs,0,.01,r):n,fb:a.fb?i(e,a.fb,0,.01,r):n,t:a.t?i(e,a.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,n=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,a,o,s,l,c,d,u,p,h,f,m,g,y,v,b,E,_=this._moreOptions.alignment.v,S=this._animatorsData,x=this._textData,T=this.mHelper,k=this._renderType,A=this.renderedLetters.length,P=e.l;if(this._hasMaskedPath){if(E=this._pathData.m,!this._pathData.n||this._pathData._mdf){var I,C=E.v;for(this._pathData.r.v&&(C=C.reverse()),o={tLength:0,segments:[]},a=C._length-1,y=0,i=0;i<a;i+=1)I=bez.buildBezierData(C.v[i],C.v[i+1],[C.o[i][0]-C.v[i][0],C.o[i][1]-C.v[i][1]],[C.i[i+1][0]-C.v[i+1][0],C.i[i+1][1]-C.v[i+1][1]]),o.tLength+=I.segmentLength,o.segments.push(I),y+=I.segmentLength;i=a,E.v.c&&(I=bez.buildBezierData(C.v[i],C.v[0],[C.o[i][0]-C.v[i][0],C.o[i][1]-C.v[i][1]],[C.i[0][0]-C.v[0][0],C.i[0][1]-C.v[0][1]]),o.tLength+=I.segmentLength,o.segments.push(I),y+=I.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,p=0,u=1,c=0,d=!0,m=o.segments,s<0&&E.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),u=(f=m[p=m.length-1].points).length-1;s<0;)s+=f[u].partialLength,(u-=1)<0&&(u=(f=m[p-=1].points).length-1);h=(f=m[p].points)[u-1],g=(l=f[u]).partialLength}a=P.length,r=0,n=0;var w,D,R,L,O,M=1.2*e.finalSize*.714,N=!0;R=S.length;var F,$,B,V,U,G,q,z,H,j,W,K,Y=-1,X=s,J=p,Q=u,Z=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ne=0,ie=2===e.j?-.5:-1,ae=0,oe=!0;for(i=0;i<a;i+=1)if(P[i].n){for(re&&(re+=ne);ae<i;)P[ae].animatorJustifyOffset=re,ae+=1;re=0,oe=!0}else{for(D=0;D<R;D+=1)(w=S[D].a).t.propType&&(oe&&2===e.j&&(ne+=w.t.v*ie),(O=S[D].s.getMult(P[i].anIndexes[D],x.a[D].s.totalChars)).length?re+=w.t.v*O[0]*ie:re+=w.t.v*O*ie);oe=!1}for(re&&(re+=ne);ae<i;)P[ae].animatorJustifyOffset=re,ae+=1}for(i=0;i<a;i+=1){if(T.reset(),V=1,P[i].n)r=0,n+=e.yOffset,n+=N?1:0,s=X,N=!1,this._hasMaskedPath&&(u=Q,h=(f=m[p=J].points)[u-1],g=(l=f[u]).partialLength,c=0),ee="",W="",H="",K="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==P[i].line){switch(e.j){case 1:s+=y-e.lineWidths[P[i].line];break;case 2:s+=(y-e.lineWidths[P[i].line])/2}Z=P[i].line}Y!==P[i].ind&&(P[Y]&&(s+=P[Y].extra),s+=P[i].an/2,Y=P[i].ind),s+=_[0]*P[i].an*.005;var se=0;for(D=0;D<R;D+=1)(w=S[D].a).p.propType&&((O=S[D].s.getMult(P[i].anIndexes[D],x.a[D].s.totalChars)).length?se+=w.p.v[0]*O[0]:se+=w.p.v[0]*O),w.a.propType&&((O=S[D].s.getMult(P[i].anIndexes[D],x.a[D].s.totalChars)).length?se+=w.a.v[0]*O[0]:se+=w.a.v[0]*O);for(d=!0,this._pathData.a.v&&(s=.5*P[0].an+(y-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*Y/(a-1),s+=this._pathData.f.v);d;)c+g>=s+se||!f?(v=(s+se-c)/l.partialLength,$=h.point[0]+(l.point[0]-h.point[0])*v,B=h.point[1]+(l.point[1]-h.point[1])*v,T.translate(-_[0]*P[i].an*.005,-_[1]*M*.01),d=!1):f&&(c+=l.partialLength,(u+=1)>=f.length&&(u=0,m[p+=1]?f=m[p].points:E.v.c?(u=0,f=m[p=0].points):(c-=l.partialLength,f=null)),f&&(h=l,g=(l=f[u]).partialLength));F=P[i].an/2-P[i].add,T.translate(-F,0,0)}else F=P[i].an/2-P[i].add,T.translate(-F,0,0),T.translate(-_[0]*P[i].an*.005,-_[1]*M*.01,0);for(D=0;D<R;D+=1)(w=S[D].a).t.propType&&(O=S[D].s.getMult(P[i].anIndexes[D],x.a[D].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?O.length?s+=w.t.v*O[0]:s+=w.t.v*O:O.length?r+=w.t.v*O[0]:r+=w.t.v*O));for(e.strokeWidthAnim&&(G=e.sw||0),e.strokeColorAnim&&(U=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(q=[e.fc[0],e.fc[1],e.fc[2]]),D=0;D<R;D+=1)(w=S[D].a).a.propType&&((O=S[D].s.getMult(P[i].anIndexes[D],x.a[D].s.totalChars)).length?T.translate(-w.a.v[0]*O[0],-w.a.v[1]*O[1],w.a.v[2]*O[2]):T.translate(-w.a.v[0]*O,-w.a.v[1]*O,w.a.v[2]*O));for(D=0;D<R;D+=1)(w=S[D].a).s.propType&&((O=S[D].s.getMult(P[i].anIndexes[D],x.a[D].s.totalChars)).length?T.scale(1+(w.s.v[0]-1)*O[0],1+(w.s.v[1]-1)*O[1],1):T.scale(1+(w.s.v[0]-1)*O,1+(w.s.v[1]-1)*O,1));for(D=0;D<R;D+=1){if(w=S[D].a,O=S[D].s.getMult(P[i].anIndexes[D],x.a[D].s.totalChars),w.sk.propType&&(O.length?T.skewFromAxis(-w.sk.v*O[0],w.sa.v*O[1]):T.skewFromAxis(-w.sk.v*O,w.sa.v*O)),w.r.propType&&(O.length?T.rotateZ(-w.r.v*O[2]):T.rotateZ(-w.r.v*O)),w.ry.propType&&(O.length?T.rotateY(w.ry.v*O[1]):T.rotateY(w.ry.v*O)),w.rx.propType&&(O.length?T.rotateX(w.rx.v*O[0]):T.rotateX(w.rx.v*O)),w.o.propType&&(O.length?V+=(w.o.v*O[0]-V)*O[0]:V+=(w.o.v*O-V)*O),e.strokeWidthAnim&&w.sw.propType&&(O.length?G+=w.sw.v*O[0]:G+=w.sw.v*O),e.strokeColorAnim&&w.sc.propType)for(z=0;z<3;z+=1)O.length?U[z]+=(w.sc.v[z]-U[z])*O[0]:U[z]+=(w.sc.v[z]-U[z])*O;if(e.fillColorAnim&&e.fc){if(w.fc.propType)for(z=0;z<3;z+=1)O.length?q[z]+=(w.fc.v[z]-q[z])*O[0]:q[z]+=(w.fc.v[z]-q[z])*O;w.fh.propType&&(q=O.length?addHueToRGB(q,w.fh.v*O[0]):addHueToRGB(q,w.fh.v*O)),w.fs.propType&&(q=O.length?addSaturationToRGB(q,w.fs.v*O[0]):addSaturationToRGB(q,w.fs.v*O)),w.fb.propType&&(q=O.length?addBrightnessToRGB(q,w.fb.v*O[0]):addBrightnessToRGB(q,w.fb.v*O))}}for(D=0;D<R;D+=1)(w=S[D].a).p.propType&&(O=S[D].s.getMult(P[i].anIndexes[D],x.a[D].s.totalChars),this._hasMaskedPath?O.length?T.translate(0,w.p.v[1]*O[0],-w.p.v[2]*O[1]):T.translate(0,w.p.v[1]*O,-w.p.v[2]*O):O.length?T.translate(w.p.v[0]*O[0],w.p.v[1]*O[1],-w.p.v[2]*O[2]):T.translate(w.p.v[0]*O,w.p.v[1]*O,-w.p.v[2]*O));if(e.strokeWidthAnim&&(H=G<0?0:G),e.strokeColorAnim&&(j="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),e.fillColorAnim&&e.fc&&(W="rgb("+Math.round(255*q[0])+","+Math.round(255*q[1])+","+Math.round(255*q[2])+")"),this._hasMaskedPath){if(T.translate(0,-e.ls),T.translate(0,_[1]*M*.01+n,0),this._pathData.p.v){b=(l.point[1]-h.point[1])/(l.point[0]-h.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<h.point[0]&&(le+=180),T.rotate(-le*Math.PI/180)}T.translate($,B,0),s-=_[0]*P[i].an*.005,P[i+1]&&Y!==P[i+1].ind&&(s+=P[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(T.translate(r,n,0),e.ps&&T.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:T.translate(P[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[i].line]),0,0);break;case 2:T.translate(P[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[i].line])/2,0,0)}T.translate(0,-e.ls),T.translate(F,0,0),T.translate(_[0]*P[i].an*.005,_[1]*M*.01,0),r+=P[i].l+.001*e.tr*e.finalSize}"html"===k?ee=T.toCSS():"svg"===k?ee=T.to2dCSS():te=[T.props[0],T.props[1],T.props[2],T.props[3],T.props[4],T.props[5],T.props[6],T.props[7],T.props[8],T.props[9],T.props[10],T.props[11],T.props[12],T.props[13],T.props[14],T.props[15]],K=V}A<=i?(L=new LetterProps(K,H,j,W,ee,te),this.renderedLetters.push(L),A+=1,this.lettersChangedFlag=!0):(L=this.renderedLetters[i],this.lettersChangedFlag=L.update(K,H,j,W,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,n,i=t.length,a="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(n=t[r].ks.k,a+=buildShapeString(n,n.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,n,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(n,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=t.title,this.svgElement.appendChild(n),r+=i}if(t&&t.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),r+=" "+o}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(i),i=""):i+=e[t],t+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var o,s=r.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,d=this.data.singleShape,u=0,p=0,h=!0,f=.001*r.tr*r.finalSize;if(!d||l||r.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||0===e){if(o=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var y=createNS("g");o.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(c.reset(),d&&(s[e].n&&(u=-f,p+=r.yOffset,p+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(r,c,s[e].line,u,p),u+=s[e].l||0,u+=f),l){var v;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var E=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(E.layerElement),E.destroy()}this.textSpans[e].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[e].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else d&&o.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&o&&o.setAttribute("d","")}else{var _=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}_.setAttribute("text-anchor",S),_.setAttribute("letter-spacing",f);var x=this.buildTextContents(r.finalText);for(t=x.length,p=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(o=this.textSpans[e].span||createNS("tspan")).textContent=x[e],o.setAttribute("x",0),o.setAttribute("y",p),o.style.display="inherit",_.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,p+=r.finalLineHeight;this.layerElement.appendChild(_)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,n,i,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(r=a[e],n=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=t[n].getMatte(this.layers[e].tt);r.setMatte(i)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[n].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var n,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,n="_";for(t=0;t<r;t+=1)n+=e[t].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r=0,n=e.transforms.length,i=t;r<n&&!t;){if(e.transforms[r].transform.mProps._mdf){i=!0;break}r+=1}if(i)for(e.finalTransform.reset(),r=n-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,n=null;function i(){var i,a,o;t||(i=createNS("svg"),a=createNS("filter"),o=createNS("feColorMatrix"),a.setAttribute("id",e),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),a.appendChild(o),i.appendChild(a),i.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),n=i,document.body.appendChild(n),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:i,get:function(n){return t||i(),t.width=n.width,t.height=n.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(e){var t,r,n=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<n;t+=1){r=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(r=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,n,i=this.element.finalTransform.mat,a=this.element.canvasContext,o=this.masksProperties.length;for(a.beginPath(),e=0;e<o;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),n=this.viewData[e].v,t=i.applyToPointArray(n.v[0][0],n.v[0][1],0),a.moveTo(t[0],t[1]);var l=n._length;for(s=1;s<l;s+=1)r=i.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,a=4;"rc"===t.ty?a=5:"el"===t.ty?a=6:"sr"===t.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,a,e);var o,s=r.length;for(i=0;i<s;i+=1)r[i].closed||(o={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(o),r[i].elements.push(o))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,a=e.ks.or.k.length;for(i=0;i<a;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},n={};if("fl"===e.ty||"st"===e.ty?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,n,i){var a,o,s,l,c,d,u=e.length-1,p=[],h=[],f=[].concat(i);for(a=u;a>=0;a-=1){if((l=this.searchProcessedElement(e[a]))?t[a]=r[l-1]:e[a]._shouldRender=n,"fl"===e[a].ty||"st"===e[a].ty||"gf"===e[a].ty||"gs"===e[a].ty)l?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],f),p.push(t[a].style);else if("gr"===e[a].ty){if(l)for(s=t[a].it.length,o=0;o<s;o+=1)t[a].prevViewData[o]=t[a].it[o];else t[a]=this.createGroupElement(e[a]);this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,n,f)}else"tr"===e[a].ty?(l||(d=this.createTransformElement(e[a]),t[a]=d),f.push(t[a]),this.addTransformToStyleList(t[a])):"sh"===e[a].ty||"rc"===e[a].ty||"el"===e[a].ty||"sr"===e[a].ty?l||(t[a]=this.createShapeElement(e[a])):"tm"===e[a].ty||"rd"===e[a].ty||"pb"===e[a].ty||"zz"===e[a].ty||"op"===e[a].ty?(l?(c=t[a]).closed=!1:((c=ShapeModifiers.getModifier(e[a].ty)).init(this,e[a]),t[a]=c,this.shapeModifiers.push(c)),h.push(c)):"rp"===e[a].ty&&(l?(c=t[a]).closed=!0:(c=ShapeModifiers.getModifier(e[a].ty),t[a]=c,c.init(this,e,a,t),this.shapeModifiers.push(c),n=!1),h.push(c));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),u=h.length,a=0;a<u;a+=1)h[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,n,i,a,o,s,l,c=this.stylesList.length,d=this.globalData.renderer,u=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(d.save(),a=l.elements,"st"===s||"gs"===s?(d.ctxStrokeStyle("st"===s?l.co:l.grd),d.ctxLineWidth(l.wi),d.ctxLineCap(l.lc),d.ctxLineJoin(l.lj),d.ctxMiterLimit(l.ml||0)):d.ctxFillStyle("fl"===s?l.co:l.grd),d.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&u.beginPath(),d.ctxTransform(l.preTransforms.finalTransform.props),r=a.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(u.beginPath(),l.da&&(u.setLineDash(l.da),u.lineDashOffset=l.do)),i=(o=a[t].trNodes).length,n=0;n<i;n+=1)"m"===o[n].t?u.moveTo(o[n].p[0],o[n].p[1]):"c"===o[n].t?u.bezierCurveTo(o[n].pts[0],o[n].pts[1],o[n].pts[2],o[n].pts[3],o[n].pts[4],o[n].pts[5]):u.closePath();"st"!==s&&"gs"!==s||(d.ctxStroke(),l.da&&u.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),d.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var i,a;for(a=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(a=r[i].transform,this.renderShapeTransform(e,a)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],a):"st"===t[i].ty?this.renderStroke(t[i],r[i],a):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],a):"gr"===t[i].ty?this.renderShape(a,t[i].it,r[i].it):t[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,i,a=e.trNodes,o=t.paths,s=o._length;a.length=0;var l=e.transforms.finalTransform;for(i=0;i<s;i+=1){var c=o.shapes[i];if(c&&c.v){for(n=c._length,r=1;r<n;r+=1)1===r&&a.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),a.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[r],c.v[r])});1===n&&a.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&n&&(a.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[0],c.v[0])}),a.push({t:"z"}))}}e.trNodes=a}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var a,o=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)n=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),d=Math.atan2(l[1]-s[1],l[0]-s[0]),u=t.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var p=c*u,h=Math.cos(d+t.a.v)*p+s[0],f=Math.sin(d+t.a.v)*p+s[1];n=o.createRadialGradient(h,f,0,s[0],s[1],c)}var m=e.g.p,g=t.g.c,y=1;for(a=0;a<m;a+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*a+1]),n.addColorStop(g[4*a]/100,"rgba("+g[4*a+1]+","+g[4*a+2]+","+g[4*a+3]+","+y+")");i.grd=n}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n,i,a,o,s,l,c,d,u,p,h,f,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var v=this.data.singleShape,b=.001*e.tr*e.finalSize,E=0,_=0,S=!0,x=0;for(n=0;n<i;n+=1){o=(a=this.globalData.fontManager.getCharData(e.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&a.data||{},y.reset(),v&&g[n].n&&(E=-b,_+=e.yOffset,_+=S?1:0,S=!1),u=(c=o.shapes?o.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,y,g[n].line,E,_),h=createSizedArray(u-1);var T=0;for(d=0;d<u;d+=1)if("sh"===c[d].ty){for(l=c[d].ks.k.i.length,p=c[d].ks.k,f=[],s=1;s<l;s+=1)1===s&&f.push(y.applyToX(p.v[0][0],p.v[0][1],0),y.applyToY(p.v[0][0],p.v[0][1],0)),f.push(y.applyToX(p.o[s-1][0],p.o[s-1][1],0),y.applyToY(p.o[s-1][0],p.o[s-1][1],0),y.applyToX(p.i[s][0],p.i[s][1],0),y.applyToY(p.i[s][0],p.i[s][1],0),y.applyToX(p.v[s][0],p.v[s][1],0),y.applyToY(p.v[s][0],p.v[s][1],0));f.push(y.applyToX(p.o[s-1][0],p.o[s-1][1],0),y.applyToY(p.o[s-1][0],p.o[s-1][1],0),y.applyToX(p.i[0][0],p.i[0][1],0),y.applyToY(p.i[0][0],p.i[0][1],0),y.applyToX(p.v[0][0],p.v[0][1],0),y.applyToY(p.v[0][0],p.v[0][1],0)),h[T]=f,T+=1}v&&(E+=g[n].l,E+=b),this.textSpans[x]?this.textSpans[x].elem=h:this.textSpans[x]={elem:h},x+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,n,i,a;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,d,u=null,p=null,h=null,f=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((o=s[e])&&(f.save(),f.ctxTransform(o.p),f.ctxOpacity(o.o)),this.fill){for(o&&o.fc?u!==o.fc&&(f.ctxFillStyle(o.fc),u=o.fc):u!==this.values.fill&&(u=this.values.fill,f.ctxFillStyle(this.values.fill)),n=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(a=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),i=2;i<a;i+=6)this.globalData.canvasContext.bezierCurveTo(d[i],d[i+1],d[i+2],d[i+3],d[i+4],d[i+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(o&&o.sw?h!==o.sw&&(h=o.sw,f.ctxLineWidth(o.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),o&&o.sc?p!==o.sc&&(p=o.sc,f.ctxStrokeStyle(o.sc)):p!==this.values.stroke&&(p=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),n=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(a=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),i=2;i<a;i+=6)this.globalData.canvasContext.bezierCurveTo(d[i],d[i+1],d[i+2],d[i+3],d[i+4],d[i+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,n=e.getContext("2d"),i=this.img.width,a=this.img.height,o=i/a,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>s&&"xMidYMid slice"===l||o<s&&"xMidYMid slice"!==l?t=(r=a)*s:r=(t=i)/s,n.drawImage(this.img,(i-t)/2,(a-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,n,i,a;if(this.reset(),e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),s=o[1]||"meet",l=o[0]||"xMidYMid",c=l.substr(0,4),d=l.substr(4);i=r/n,(a=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||a<i&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(a<i&&"meet"===s||a>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(a<i&&"meet"===s||a>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===d&&(a>i&&"meet"===s||a<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===d&&(a>i&&"meet"===s||a<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],n=r.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=n[t];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=n.opacity,i.fillStyle=n.fillStyle,i.strokeStyle=n.strokeStyle,i.lineWidth=n.lineWidth,i.lineCap=n.lineCap,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,n,i,a,o,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(r=0;r<c-1;r+=1)n=this.getTransformedPoint(l,s.v[r]),i=this.getTransformedPoint(l,s.o[r]),a=this.getTransformedPoint(l,s.i[r+1]),o=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(n,i,a,o,t);s.c&&(n=this.getTransformedPoint(l,s.v[r]),i=this.getTransformedPoint(l,s.o[r]),a=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(n,i,a,o,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,i){this.getBoundsOfCurve(e,t,r,n);var a=this.shapeBoundingBox;i.x=bmMin(a.left,i.x),i.xMax=bmMax(a.right,i.xMax),i.y=bmMin(a.top,i.y),i.yMax=bmMax(a.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,n){for(var i,a,o,s,l,c,d,u=[[e[0],n[0]],[e[1],n[1]]],p=0;p<2;++p)a=6*e[p]-12*t[p]+6*r[p],i=-3*e[p]+9*t[p]-9*r[p]+3*n[p],o=3*t[p]-3*e[p],a|=0,o|=0,0==(i|=0)&&0===a||(0===i?(s=-o/a)>0&&s<1&&u[p].push(this.calculateF(s,e,t,r,n,p)):(l=a*a-4*o*i)>=0&&((c=(-a+bmSqrt(l))/(2*i))>0&&c<1&&u[p].push(this.calculateF(c,e,t,r,n,p)),(d=(-a-bmSqrt(l))/(2*i))>0&&d<1&&u[p].push(this.calculateF(d,e,t,r,n,p))));this.shapeBoundingBox.left=bmMin.apply(null,u[0]),this.shapeBoundingBox.top=bmMin.apply(null,u[1]),this.shapeBoundingBox.right=bmMax.apply(null,u[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,u[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,i,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*r[a]+3*(1-e)*bmPow(e,2)*n[a]+bmPow(e,3)*i[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var i=e.keyframes[n].s;i>r&&(r=i)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n,i,a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{t.fontFamily=a.fFamily;var o=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=o}var l,c,d,u=e.l;i=u.length;var p,h=this.mHelper,f="",m=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?d=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(d=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[n],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,h.reset(),g&&g.shapes&&g.shapes.length&&(p=g.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(h,p),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(d);var v=d.getBBox();d.setAttribute("width",v.width+2),d.setAttribute("height",v.height+2),d.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=d.style,E="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=E,b.webkitTransform=E,u[n].yOffset=v.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);c.appendChild(d)}}else if(l.textContent=u[n].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var _=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";_.transform=S,_.webkitTransform=S}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,i,a,o,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(n=c.length,r=0;r<n;r+=1)c[r].n?s+=1:(a=this.textSpans[r],o=this.textPaths[r],i=l[s],s+=1,i._mdf.m&&(this.isMasked?a.setAttribute("transform",i.m):(a.style.webkitTransform=i.m,a.style.transform=i.m)),a.style.opacity=i.o,i.sw&&i._mdf.sw&&o.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&o.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(o.setAttribute("fill",i.fc),o.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var d=this.innerElem.getBBox();if(this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height)),this.currentBBox.w!==d.width+2||this.currentBBox.h!==d.height+2||this.currentBBox.x!==d.x-1||this.currentBBox.y!==d.y-1){this.currentBBox.w=d.width+2,this.currentBBox.h=d.height+2,this.currentBBox.x=d.x-1,this.currentBBox.y=d.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var u="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=u,e.webkitTransform=u}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,n,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,n=t.container.style;var a=this.pe.v+"px",o="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=a,r.webkitPerspective=a,n.transformOrigin=o,n.mozTransformOrigin=o,n.webkitTransformOrigin=o,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),o=[i[0]/a,i[1]/a,i[2]/a],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],s),c=Math.atan2(o[0],-o[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){var u,p,h;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(u=this.comp.threeDElements[e]).type){if(d){var f=this.mat.toCSS();(h=u.container.style).transform=f,h.webkitTransform=f}this.pe._mdf&&((p=u.perspectiveElem.style).perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var n=this.layers[t];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,a,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(a=this.elements[o],i=(this.layers[o].ddd?this.getThreeDContainerByPos(o):a.getBaseElement())||i),o+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,n,i=createTag("div");styleDiv(i);var a=createTag("div");if(styleDiv(a),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var o="50% 50%";r.webkitTransformOrigin=o,r.mozTransformOrigin=o,r.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=a.style).transform=s,n.webkitTransform=s}i.appendChild(a);var l={container:a,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,n="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==n&&(n="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==n&&(n="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var i,a=this.threeDElements[r].startPos;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(i=this.elements[a].getBaseElement()),a+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var a=createNS("defs");i.appendChild(a),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,n,i=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,o=i/a;this.globalData.compSize.w/this.globalData.compSize.h>o?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,n=(a-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=a/this.globalData.compSize.h,t=a/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(e=0;e<n;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,n=0;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,n=e.layers.length;r<n;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}function seedRandom(e,t){var r=this,n=256,i="random",a=t.pow(n,6),o=t.pow(2,52),s=2*o,l=255;function c(e){var t,r=e.length,i=this,a=0,o=i.i=i.j=0,s=i.S=[];for(r||(e=[r++]);a<n;)s[a]=a++;for(a=0;a<n;a++)s[a]=s[o=l&o+e[a%r]+(t=s[a])],s[o]=t;i.g=function(e){for(var t,r=0,a=i.i,o=i.j,s=i.S;e--;)t=s[a=l&a+1],r=r*n+s[l&(s[a]=s[o=l&o+t])+(s[o]=t)];return i.i=a,i.j=o,r}}function d(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function u(e,t){var r,n=[],i=_typeof$2(e);if(t&&"object"==i)for(r in e)try{n.push(u(e[r],t-1))}catch(e){}return n.length?n:"string"==i?e:e+"\0"}function p(e,t){for(var r,n=e+"",i=0;i<n.length;)t[l&i]=l&(r^=19*t[l&i])+n.charCodeAt(i++);return h(t)}function h(e){return String.fromCharCode.apply(0,e)}t["seed"+i]=function(l,f,m){var g=[],y=p(u((f=!0===f?{entropy:!0}:f||{}).entropy?[l,h(e)]:null===l?function(){try{var t=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(t),h(t)}catch(t){var i=r.navigator,a=i&&i.plugins;return[+new Date,r,a,r.screen,h(e)]}}():l,3),g),v=new c(g),b=function(){for(var e=v.g(6),t=a,r=0;e<o;)e=(e+r)*n,t*=n,r=v.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return b.int32=function(){return 0|v.g(4)},b.quick=function(){return v.g(4)/4294967296},b.double=b,p(h(v.S),e),(f.pass||m||function(e,r,n,a){return a&&(a.S&&d(a,v),e.state=function(){return d(v,{})}),n?(t[i]=e,r):e})(b,y,"global"in f?f.global:this==t,f.state)},p(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||"string"===r||"string"===n)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,a=e.length,o=t.length,s=[];i<a||i<o;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return"string"===r&&(e=parseInt(e,10)),"string"===n&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,a=e.length,o=t.length,s=[];i<a||i<o;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var r,n,i,a=_typeof$1(e),o=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(o,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]*t;return r}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e*t[n];return r}return 0}function div(e,t){var r,n,i,a=_typeof$1(e),o=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(o,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]/t;return r}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e/t[n];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var n=Math.min(e.length,t.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,n=e[0],i=e[1],a=e[2],o=Math.max(n,i,a),s=Math.min(n,i,a),l=(o+s)/2;if(o===s)t=0,r=0;else{var c=o-s;switch(r=l>.5?c/(2-o-s):c/(o+s),o){case n:t=(i-a)/c+(i<a?6:0);break;case i:t=(a-n)/c+2;break;case a:t=(n-i)/c+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,n,i=e[0],a=e[1],o=e[2];if(0===a)t=o,n=o,r=o;else{var s=o<.5?o*(1+a):o+a-o*a,l=2*o-s;t=hue2rgb(l,s,i+1/3),r=hue2rgb(l,s,i),n=hue2rgb(l,s,i-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,i){if(void 0!==n&&void 0!==i||(n=t,i=r,t=0,r=1),r<t){var a=r;r=t,t=a}if(e<=t)return n;if(e>=r)return i;var o,s=r===t?0:(e-t)/(r-t);if(!n.length)return n+(i-n)*s;var l=n.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=n[o]+(i[o]-n[o])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var i=createTypedArray("float32",n),a=BMMath.random();for(r=0;r<n;r+=1)i[r]=e[r]+a*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,n){var i,a=e.length,o=shapePool.newElement();o.setPathData(!!n,a);var s,l,c=[0,0];for(i=0;i<a;i+=1)s=t&&t[i]?t[i]:c,l=r&&r[i]?r[i]:c,o.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,n,i=this.pv.length?this.pv.length:1,a=createTypedArray("float32",i),o=Math.floor(5*time);for(r=0,n=0;r<o;){for(n=0;n<i;n+=1)a[n]+=-t+2*t*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)c[n]=this.pv[n]+a[n]+(-t+2*t*BMMath.random())*l;return c}return this.pv+a[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(e,t,r,n,i){return applyEase(easeOutBez,e,t,r,n,i)}function easeIn(e,t,r,n,i){return applyEase(easeInBez,e,t,r,n,i)}function ease(e,t,r,n,i){return applyEase(easeInOutBez,e,t,r,n,i)}function applyEase(e,t,r,n,i,a){void 0===i?(i=r,a=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(i)){var s,l=i.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(a[s]-i[s])*o+i[s];return c}return(a-i)*o+i}function nearestKey(e){var t,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,n=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}-1===r&&(r=t+1,n=data.k[t].t)}else r=0,n=0;var a={};return a.index=r,a.time=n/elem.comp.globalData.frameRate,a}function key(e){var t,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=i.length,r=0;r<n;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,n=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)n[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(n){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[n-1]?t.keyframes[n-1].s:"e"in t.keyframes[n-2]?t.keyframes[n-2].e:t.keyframes[n-2].s;var a="unidimensional"===r?new Number(i):Object.assign({},i);return a.time=t.keyframes[n-1].t/t.elem.comp.globalData.frameRate,a.value="unidimensional"===r?i[0]:i,a},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function n(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.pv*n,a=new Number(i);return a.value=i,r(a,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*n,a.value!==i&&((a=new Number(i)).value=i,a[0]=i,r(a,t,"unidimensional")),a}}(i):function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.data&&e.data.l||e.pv.length,a=createTypedArray("float32",i),o=createTypedArray("float32",i);return a.value=o,r(a,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)o[t]=e.v[t]*n,a[t]=o[t];return a}}(i):n}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,n,i,a;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?a=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[r(),n(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var d;function u(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return u.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return d;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return u.effect;case"ADBE Text Properties":return u.textInterface;default:return null}}u.getMatrix=e,u.invertPoint=o,u.applyPoint=a,u.toWorld=r,u.toWorldVec=t,u.fromWorld=i,u.fromWorldVec=n,u.toComp=r,u.fromComp=s,u.sampleImage=l,u.sourceRectAtTime=c.sourceRectAtTime.bind(c),u._elem=c;var p=getDescriptor(d=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(u,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(d,"rotation"),scale:getDescriptor(d,"scale"),position:getDescriptor(d,"position"),opacity:getDescriptor(d,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return d}},active:{get:function(){return c.isInRange}}}),u.startTime=c.data.st,u.index=c.data.ind,u.source=c.data.refId,u.height=0===c.data.ty?c.data.h:100,u.width=0===c.data.ty?c.data.w:100,u.inPoint=c.data.ip/c.comp.globalData.frameRate,u.outPoint=c.data.op/c.comp.globalData.frameRate,u._name=c.data.nm,u.registerMaskInterface=function(e){u.mask=new MaskManagerInterface(e,c)},u.registerEffectsInterface=function(e){u.effect=e},u}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){var e={createEffectsInterface:function(e,r){if(e.effectsManager){var n,i=[],a=e.data.ef,o=e.effectsManager.effectElements.length;for(n=0;n<o;n+=1)i.push(t(a[n],e.effectsManager.effectElements[n],r,e));var s=e.data.ef||[],l=function(e){for(n=0,o=s.length;n<o;){if(e===s[n].nm||e===s[n].mn||e===s[n].ix)return i[n];n+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function t(e,n,i,a){function o(t){for(var r=e.ef,n=0,i=r.length;n<i;){if(t===r[n].nm||t===r[n].mn||t===r[n].ix)return 5===r[n].ty?c[n]:c[n]();n+=1}throw new Error}var s,l=propertyGroupFactory(o,i),c=[],d=e.ef.length;for(s=0;s<d;s+=1)5===e.ef[s].ty?c.push(t(e.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,a)):c.push(r(n.effectElements[s],e.ef[s].ty,a,l));return"ADBE Color Control"===e.mn&&Object.defineProperty(o,"color",{get:function(){return c[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:l}}),o.enabled=0!==e.en,o.active=o.enabled,o}function r(e,t,r,n){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return e}(),ShapePathInterface=function(e,t,r){var n=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var a=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,o,p){var h,f=[],m=e?e.length:0;for(h=0;h<m;h+=1)"gr"===e[h].ty?f.push(t(e[h],o[h],p)):"fl"===e[h].ty?f.push(r(e[h],o[h],p)):"st"===e[h].ty?f.push(i(e[h],o[h],p)):"tm"===e[h].ty?f.push(a(e[h],o[h],p)):"tr"===e[h].ty||("el"===e[h].ty?f.push(s(e[h],o[h],p)):"sr"===e[h].ty?f.push(l(e[h],o[h],p)):"sh"===e[h].ty?f.push(ShapePathInterface(e[h],o[h],p)):"rc"===e[h].ty?f.push(c(e[h],o[h],p)):"rd"===e[h].ty?f.push(d(e[h],o[h],p)):"rp"===e[h].ty?f.push(u(e[h],o[h],p)):"gf"===e[h].ty?f.push(n(e[h],o[h],p)):f.push((e[h],o[h],function(){return null})));return f}function t(t,r,n){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,n);var a=function(t,r,n){var i,a=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};a.propertyGroup=propertyGroupFactory(a,n),i=e(t.it,r.it,a.propertyGroup),a.numProperties=i.length;var s=o(t.it[t.it.length-1],r.it[r.it.length-1],a.propertyGroup);return a.transform=s,a.propertyIndex=t.cix,a._name=t.nm,a}(t,r,i.propertyGroup),s=o(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=a,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function n(e){return"Color"===e||"color"===e?n.color:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(e,t,r){function n(e){return"Start Point"===e||"start point"===e?n.startPoint:"End Point"===e||"end point"===e?n.endPoint:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function i(e,t,r){var n,i=propertyGroupFactory(c,r),a=propertyGroupFactory(l,i);function o(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,l={};for(n=0;n<s;n+=1)o(n),t.d.dataProps[n].p.setGroupProperty(a);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),c}function a(e,t,r){function n(t){return t===e.e.ix||"End"===t||"end"===t?n.end:t===e.s.ix?n.start:t===e.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=e.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),n.mn=e.mn,n}function o(e,t,r){function n(t){return e.a.ix===t||"Anchor Point"===t?n.anchorPoint:e.o.ix===t||"Opacity"===t?n.opacity:e.p.ix===t||"Position"===t?n.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?n.rotation:e.s.ix===t||"Scale"===t?n.scale:e.sk&&e.sk.ix===t||"Skew"===t?n.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?n.skewAxis:null}var i=propertyGroupFactory(n,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),n.ty="tr",n.mn=e.mn,n.propertyGroup=r,n}function s(e,t,r){function n(t){return e.p.ix===t?n.position:e.s.ix===t?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=e.ix;var a="tm"===t.sh.ty?t.sh.prop:t.sh;return a.s.setGroupProperty(PropertyInterface("Size",i)),a.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:e.nm}}),n.mn=e.mn,n}function l(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.rotation:e.pt.ix===t?n.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?n.outerRadius:e.os.ix===t?n.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),a="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",i)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),a.pt.setGroupProperty(PropertyInterface("Points",i)),a.p.setGroupProperty(PropertyInterface("Position",i)),a.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:e.nm}}),n.mn=e.mn,n}function c(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?n.size:null}var i=propertyGroupFactory(n,r),a="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,a.p.setGroupProperty(PropertyInterface("Position",i)),a.s.setGroupProperty(PropertyInterface("Size",i)),a.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:e.nm}}),n.mn=e.mn,n}function d(e,t,r){function n(t){return e.r.ix===t||"Round Corners 1"===t?n.radius:null}var i=propertyGroupFactory(n,r),a=t;return n.propertyIndex=e.ix,a.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:e.nm}}),n.mn=e.mn,n}function u(e,t,r){function n(t){return e.c.ix===t||"Copies"===t?n.copies:e.o.ix===t||"Offset"===t?n.offset:null}var i=propertyGroupFactory(n,r),a=t;return n.propertyIndex=e.ix,a.c.setGroupProperty(PropertyInterface("Copies",i)),a.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:e.nm}}),n.mn=e.mn,n}return function(t,r,n){var i;function a(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?n:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return a.propertyGroup=propertyGroupFactory(a,(function(){return n})),i=e(t,r,a.propertyGroup),a.numProperties=i.length,a._name="Contents",a}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function n(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?n:r;var i=e.indexOf(t);if(-1!==i){var a=parseInt(e.substr(i+t.length),10);return"object"===_typeof(r=r[a])?n:r}return""}return function(){return t="",r=e.getFootageData(),n}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),n=0;if(t.length){var i;for(i=0;i<t.length;i+=1)n+=Math.pow(r[i]-t[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,n=-.001,i=this.getValueAtTime(e),a=this.getValueAtTime(e+n);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(a[r]-i[r])/n;else t=(a-i)/n;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var n,i,a,o,s,l=this.comp.renderedFrame,c=this.keyframes,d=c[c.length-1].t;if(l<=d)return this.pv;if(r?i=d-(n=t?Math.abs(d-this.elem.comp.globalData.frameRate*t):Math.max(0,d-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),n=d-(i=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/n)%2!=0)return this.getValueAtTime((n-(l-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var u=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime(d/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0),f=Math.floor((l-i)/n);if(this.pv.length){for(o=(s=new Array(u.length)).length,a=0;a<o;a+=1)s[a]=(p[a]-u[a])*f+h[a];return s}return(p-u)*f+h}if("continue"===e){var m=this.getValueAtTime(d/this.comp.globalData.frameRate,0),g=this.getValueAtTime((d-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-g[a])*((l-d)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-d)/.001*(m-g)}}return this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var n,i,a,o,s,l=this.comp.renderedFrame,c=this.keyframes,d=c[0].t;if(l>=d)return this.pv;if(r?i=d+(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-d)):((!t||t>c.length-1)&&(t=c.length-1),n=(i=c[t].t)-d),"pingpong"===e){if(Math.floor((d-l)/n)%2==0)return this.getValueAtTime(((d-l)%n+d)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var u=this.getValueAtTime(d/this.comp.globalData.frameRate,0),p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),h=this.getValueAtTime((n-(d-l)%n+d)/this.comp.globalData.frameRate,0),f=Math.floor((d-l)/n)+1;if(this.pv.length){for(o=(s=new Array(u.length)).length,a=0;a<o;a+=1)s[a]=h[a]-(p[a]-u[a])*f;return s}return h-(p-u)*f}if("continue"===e){var m=this.getValueAtTime(d/this.comp.globalData.frameRate,0),g=this.getValueAtTime((d+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-g[a])*(d-l)/.001;return s}return m+(m-g)*(d-l)/.001}}return this.getValueAtTime((n-((d-l)%n+d))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,a=i-e,o=t>1?(i+e-a)/(t-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(n=this.getValueAtTime(a+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=n[l];else r+=n;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function n(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(e);t.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),a=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(e);t.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),d=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-d[2]*this.or.mult).rotateY(d[1]*this.or.mult).rotateX(d[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var u=this.px.getValueAtTime(e),p=this.py.getValueAtTime(e);if(this.data.p.z){var h=this.pz.getValueAtTime(e);t.translate(u*this.px.mult,p*this.py.mult,-h*this.pz.mult)}else t.translate(u*this.px.mult,p*this.py.mult,0)}else{var f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var o=a(e,t,r);return o.dynamicProperties.length?o.getValueAtTime=n.bind(o):o.getValueAtTime=i.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,a,s,l){var c=o(n,i,a,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=r,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===i.a?i.k.length:0,c.propertyIndex=i.ix;var d=0;return 0!==a&&(d=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(n,i,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var r,n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0));var i=n._length,a=n[e],o=n.v,s=createSizedArray(i);for(r=0;r<i;r+=1)s[r]="i"===e||"o"===e?[a[r][0]-o[r][0],a[r][1]-o[r][1]]:[a[r][0],a[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,a=i.lengths,o=i.totalLength*e,s=0,l=a.length,c=0;s<l;){if(c+a[s].addedLength>o){var d=s,u=r.c&&s===l-1?0:s+1,p=(o-c)/a[s].addedLength;n=bez.getPointInSegment(r.v[d],r.v[u],r.o[d],r.i[u],p,a[s]);break}c+=a[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var n=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),a=i[0]-n[0],o=i[1]-n[1],s=Math.sqrt(Math.pow(a,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===r?[a/s,o/s]:[-o/s,a/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,i){var a=d(e,t,r,n,i);return a.propertyIndex=t.ix,a.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,a):4===r&&expressionHelpers.searchExpressions(e,t.ks,a),a.k&&e.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,i=createNS("feMerge");for(i.setAttribute("result",e),n=0;n<t.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",t[n]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,i){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",n+"_tint_1"),e.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",n+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);e.appendChild(o)}function SVGFillFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),a.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),a.appendChild(l),this.feFuncB=l,e.appendChild(a)}function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var i=this.filterManager.effectElements,a=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(e,t,r,n,i){var a=t.container.globalData.renderConfig.filterSize,o=t.data.fs||a;e.setAttribute("x",o.x||a.x),e.setAttribute("y",o.y||a.y),e.setAttribute("width",o.width||a.width),e.setAttribute("height",o.height||a.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",n+"_drop_shadow_1"),l.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var d=createNS("feComposite");d.setAttribute("in",n+"_drop_shadow_3"),d.setAttribute("in2",n+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(d);var u=this.createMergeNode(n,[n+"_drop_shadow_4",i]);e.appendChild(u)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<n;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(t),this.elem.globalData.defs.appendChild(a);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=a,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,n,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=n.getTotalLength();a="0 0 0 "+l*o+" ";var c,d=l*(s-o),u=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(d/u);for(c=0;c<p;c+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*l+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*h[0])+","+bmFloor(255*h[1])+","+bmFloor(255*h[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+t[0],a=n[1]+" "+r[1]+" "+t[1],o=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,n,i){for(var a,o,s=0,l=Math.min(e,t),c=Math.max(e,t),d=Array.call(null,{length:256}),u=0,p=i-n,h=t-e;s<=256;)o=(a=s/256)<=l?h<0?i:n:a>=c?h<0?n:i:n+p*Math.pow((a-e)/h,1/r),d[u]=o,u+=1,s+=256/255;return d.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),a=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",n),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var n,i=r.children,a=0,o=i.length;a<o&&i[a]!==e.layerElement;)a+=1;a<=o-2&&(n=i[a+1]);var s=createNS("use");s.setAttribute("href","#"+t),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(n);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(t,r),a.appendChild(t.layerElement),i.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+r),n.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,i=1===t[2].p.v,a=t[3].p.v,o=i?a:t[4].p.v,s=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*o,.01*a,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())}(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie(),lottie=getDefaultExportFromCjs(lottieExports);const qontoLottiePlayerStyles=i$4`
184
183
  :host {
185
184
  display: block;
186
185
  }
@@ -189,7 +188,7 @@ const t$1=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t
189
188
  width: 100%;
190
189
  height: 100%;
191
190
  }
192
- `;function styleInject(e,t){void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var css_248z='@font-face{font-display:swap;font-family:PolySans;font-style:normal;font-weight:500 900;src:url(/fonts/polysans-median.woff2) format("woff2"),url(/fonts/polysans-median.woff) format("woff")}@font-face{font-display:swap;font-family:PolySans;font-style:normal;font-weight:400;src:url(/fonts/polysans-neutral.woff2) format("woff2"),url(/fonts/polysans-neutral.woff) format("woff")}@font-face{font-display:swap;font-family:PolySans;font-style:normal;font-weight:100 300;src:url(/fonts/polysans-slim.woff2) format("woff2"),url(/fonts/polysans-slim.woff) format("woff")}:root *{--default-font-family:PolySans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-family:var(--qonto-font-family,var(--default-font-family))}:root{--font-weight-median:600;--font-weight-neutral:400;--font-weight-slim:300;--title-1-font-size:32px;--title-1-font-weight:var(--font-weight-median);--title-1-line-height:40px;--title-2-font-size:24px;--title-2-font-weight:var(--font-weight-median);--title-2-line-height:32px;--title-3-font-size:20px;--title-3-font-weight:var(--font-weight-neutral);--title-3-line-height:32px;--title-4-font-size:16px;--title-4-font-weight:var(--font-weight-neutral);--title-4-line-height:24px;--body-1-font-size:14px;--body-1-font-weight:var(--font-weight-neutral);--body-1-line-height:24px;--body-2-font-size:14px;--body-2-font-weight:var(--font-weight-slim);--body-2-line-height:24px;--body-link-font-size:14px;--body-link-font-weight:var(--font-weight-neutral);--body-link-line-height:24px;--caption-font-size:12px;--caption-font-weight:var(--font-weight-neutral);--caption-line-height:16px;--caption-bold-font-size:12px;--caption-bold-font-weight:var(--font-weight-median);--caption-bold-line-height:16px;--caption-link-font-size:12px;--caption-link-font-weight:var(--font-weight-neutral);--caption-link-line-height:16px;--primary-black:#050505;--primary-white:#fff;--plum1000:#461068;--plum900:#7b4db8;--plum800:#a585db;--plum100:#bfa6ea;--plum50:#d5c8ff;--sakura1000:#7e0f4c;--sakura900:#c24b89;--sakura800:#e975b2;--sakura100:#ffacd6;--sakura50:#ffdfea;--mint1000:#0d5563;--mint900:#2f95a0;--mint800:#66c8c8;--mint100:#9be5da;--mint50:#c8ffec;--blueberry1000:#093b75;--blueberry900:#3275c4;--blueberry800:#71a5e0;--blueberry100:#9bc5ea;--blueberry50:#c6e6fb;--mustard1000:#705208;--mustard900:#c5a635;--mustard800:#f0e060;--mustard100:#f5f596;--mustard50:#faffa4;--peach1000:#7a250c;--peach900:#ce6033;--peach800:#ff9e75;--peach100:#ffb590;--peach50:#ffc9a6;--gray900:#1a1a1a;--gray800:#262626;--gray700:#3d3d3d;--gray600:#616161;--gray500:#8f8f8f;--gray400:#b8b8b8;--gray300:#ccc;--gray200:#e0e0e0;--gray100:#e8e8e8;--gray50:#f5f5f5;--gray25:#f9f9f9;--success1000:#0f7a3d;--success800:#2bad5f;--success400:#66db7c;--success300:#a5f2a3;--success50:#e6ffe4;--warning1000:#b04e10;--warning800:#dc9433;--warning400:#ffd870;--warning300:#ffe5aa;--warning50:#fff2d9;--error1000:#b81818;--error800:#e04545;--error400:#ff8585;--error300:#ffbabe;--error50:#ffe8e8;--elevation-default:var(--primary-white);--elevation-low:var(--gray25);--elevation-mid:var(--primary-white);--elevation-high:var(--primary-white);--background-primary:var(--qonto-color-primary,var(--primary-black));--background-secondary:var(--gray100);--background-tertiary:var(--gray50);--background-accent-low:var(--blueberry50);--background-accent-high:var(--blueberry900);--background-accent-static:var(--blueberry800);--background-success-low:var(--success50);--background-success-high:var(--success800);--background-warning-low:var(--warning50);--background-warning-high:var(--warning800);--background-error-low:var(--error50);--background-error-high:var(--error800);--background-modal-overlay:#61616199;--background-panel-overlay:#6161611a;--background-toggle:var(--gray400);--background-toggle-button:var(--primary-white);--background-skeleton-shimmer:var(--gray200);--background-feature-discoverability:var(--mustard50);--background-free-trial:var(--mint50);--background-upgrade-low:var(--peach50);--background-upgrade-high:var(--peach1000);--background-activate:var(--plum50);--background-splitscreen-peach:var(--peach50);--content-primary-a:var(--qonto-content-color-primary,var(--primary-black));--content-primary-b:var(--primary-white);--content-secondary:var(--gray600);--content-tertiary:var(--gray500);--content-accent:var(--blueberry900);--content-success:var(--success1000);--content-warning:var(--warning1000);--content-error:var(--error1000);--content-primary-a-static:var(--primary-black);--content-primary-b-static:var(--primary-white);--border-primary:var(--primary-black);--border-secondary:var(--gray300);--border-tertiary:var(--gray100);--border-avatar:#05050533;--border-accent-low:var(--blueberry50);--border-accent-high:var(--blueberry900);--border-accent-static:var(--blueberry100);--border-success:var(--success800);--border-warning:var(--warning800);--border-error:var(--error800);--border-upsell:var(--mint800);--dataviz-balance:var(--blueberry800);--dataviz-change:var(--warning800);--dataviz-inflows:var(--success400);--dataviz-outflows:var(--error400);--dataviz-slice-1:var(--plum800);--dataviz-slice-2:var(--mint800);--dataviz-slice-3:var(--blueberry800);--dataviz-slice-4:var(--mustard800);--dataviz-slice-5:var(--peach800);--dataviz-slice-6:var(--plum50);--dataviz-slice-7:var(--sakura800);--dataviz-other:var(--gray400);--dataviz-uncategorized:var(--gray200);--dataviz-empty:var(--gray50);--analytic-label-cat-1:var(--error800);--analytic-label-cat-2:var(--success800);--analytic-label-cat-3:var(--warning800);--analytic-label-cat-4:var(--mint800);--analytic-label-cat-5:var(--mustard800);--analytic-label-cat-6:var(--peach800);--analytic-label-cat-7:var(--blueberry800);--analytic-label-cat-8:var(--plum800);--analytic-label-cat-9:var(--sakura800);--analytic-label-cat10:var(--plum50);--category-purple:var(--plum100);--category-mint:var(--mint100);--category-mustard:var(--mustard100);--category-peach:var(--peach100);--category-blue:var(--blueberry100);--category-green:var(--success300);--category-pink:var(--sakura100);--category-gray:var(--gray100);--shadow-color-low:#0505050f;--shadow-color-high:#0505051f;--state-selected:var(--gray50);--state-primary-a-hover:#05050514;--state-disabled:#f5f5f573;--state-primary-a-pressed:#0505051f;--state-primary-b-hover:#ffffff14;--state-primary-b-pressed:#ffffff1f}:root .dark-theme{--elevation-default:var(--primary-black);--elevation-low:var(--gray900);--elevation-mid:var(--gray900);--elevation-high:var(--gray800);--background-primary:var(--gray25);--background-secondary:var(--gray600);--background-tertiary:var(--gray700);--background-accent-low:var(--blueberry1000);--background-accent-high:var(--blueberry900);--background-accent-static:var(--blueberry800);--background-success-low:var(--success1000);--background-success-high:var(--success800);--background-warning-low:var(--warning1000);--background-warning-high:var(--warning300);--background-error-low:var(--error1000);--background-error-high:var(--error800);--background-modal-overlay:#05050599;--background-panel-overlay:#05050566;--background-toggle:var(--gray600);--background-toggle-button:var(--gray300);--background-skeleton-shimmer:var(--gray700);--background-feature-discoverability:var(--mustard1000);--background-free-trial:var(--mint900);--background-upgrade-low:var(--peach900);--background-upgrade-high:var(--peach50);--background-activate:var(--plum900);--background-splitscreen-peach:var(--peach900);--content-primary-a:var(--gray25);--content-primary-b:var(--primary-black);--content-secondary:var(--gray300);--content-tertiary:var(--gray500);--content-accent:var(--blueberry800);--content-success:var(--success400);--content-warning:var(--warning400);--content-error:var(--error400);--content-primary-a-static:var(--primary-black);--content-primary-b-static:var(--primary-white);--border-primary:var(--gray25);--border-secondary:var(--gray500);--border-tertiary:#ffffff29;--border-avatar:#ffffff40;--border-accent-low:var(--blueberry1000);--border-accent-high:var(--blueberry800);--border-accent-static:var(--blueberry100);--border-success:var(--success400);--border-warning:var(--warning800);--border-error:var(--error400);--border-upsell:var(--mint100);--dataviz-balance:var(--blueberry800);--dataviz-change:var(--warning800);--dataviz-inflows:var(--success800);--dataviz-outflows:var(--error800);--dataviz-slice-1:var(--plum800);--dataviz-slice-2:var(--mint800);--dataviz-slice-3:var(--blueberry800);--dataviz-slice-4:var(--mustard800);--dataviz-slice-5:var(--peach800);--dataviz-slice-6:var(--plum50);--dataviz-slice-7:var(--sakura800);--dataviz-other:var(--gray400);--dataviz-uncategorized:var(--gray600);--dataviz-empty:var(--gray700);--category-purple:var(--plum100);--category-mint:var(--mint100);--category-mustard:var(--mustard100);--category-peach:var(--peach100);--category-blue:var(--blueberry100);--category-green:var(--success300);--category-pink:var(--sakura100);--category-gray:var(--gray100);--shadow-color-low:#05050552;--shadow-color-high:#050505a3;--state-selected:var(--gray700);--state-primary-a-hover:#ffffff14;--state-disabled:#f5f5f573;--state-primary-a-pressed:#ffffff1f;--state-primary-b-hover:#05050514;--state-primary-b-pressed:#0505051f;color-scheme:dark}:root,:root .dark-theme{--separator-bottom:inset 0 -1px 0 0 var(--border-tertiary);--shadow-low:0 3px 3px 0 var(--shadow-color-low);--shadow-high:0 3px 12px 0 var(--shadow-color-high);--background-placeholder:linear-gradient(to right,var(--background-secondary) 8%,var(--background-skeleton-shimmer) 18%,var(--background-secondary) 33%);--gradient-50:linear-gradient(90deg,var(--plum50),var(--blueberry50),var(--mint50));--gradient-800:linear-gradient(90deg,var(--plum800),var(--blueberry800),var(--mint800));--gradient-900:linear-gradient(90deg,var(--plum900),var(--blueberry900),var(--mint800));--gradient-1000:linear-gradient(90deg,var(--plum1000),var(--blueberry1000),var(--mint1000));--qonto-intelligence-gradient-content:var(--gradient-900);--qonto-intelligence-gradient-stroke:var(--gradient-900);--qonto-intelligence-gradient-background-high:var(--gradient-1000);--qonto-intelligence-gradient-background-low:var(--gradient-50);--qintelligence50:linear-gradient(90deg,var(--plum50) 0%,var(--blueberry50) 50%,var(--mint50) 100%);--qintelligence100:linear-gradient(90deg,var(--plum800) 0%,var(--blueberry800) 51.92%,var(--mint800) 100%);--qintelligence800:linear-gradient(90deg,var(--plum900) 0%,var(--blueberry900) 47.6%,var(--mint800) 100%);--qintelligence1000:linear-gradient(90deg,var(--plum1000) 0%,var(--blueberry1000) 50%,var(--mint900) 100%);--qintelligence-border:linear-gradient(90deg,var(--plum900) 0%,var(--blueberry900) 50%,var(--mint800) 100%)}:root{--overlay-primary-a-color:var(--primary-black);--overlay-primary-b-color:var(--primary-white);--qintelligence-low:var(--qintelligence50);--qintelligence-high:var(--qintelligence1000)}:root .dark-theme{--overlay-primary-a-color:var(--primary-white);--overlay-primary-b-color:var(--primary-black);--qintelligence-low:var(--qintelligence1000);--qintelligence-high:var(--qintelligence50)}:root{--overlay-opacity:0;--hover-opacity:0.08;--pressed-opacity:0.12;--disabled-opacity:0.45}.overlay{position:relative;&:after{background-color:var(--overlay-primary-a-color);content:"";height:100%;left:0;opacity:var(--overlay-opacity);pointer-events:none;position:absolute;top:0;width:100%}&:hover:after{--overlay-opacity:var(--hover-opacity)}&:active:after{--overlay-opacity:var(--pressed-opacity)}&[disabled]{cursor:not-allowed;&:after{--overlay-primary-a-color:var(--primary-white);--overlay-opacity:var(--disabled-opacity);cursor:not-allowed}}}';styleInject(css_248z);let QontoLottiePlayer=class extends i$1{constructor(){super(...arguments),this.containerRef=e$1()}firstUpdated(){this.loadAnimation()}updated(e){e.has("animationData")&&this.loadAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}loadAnimation(){this.containerRef.value&&(this.destroyAnimation(),this.animationData&&this.renderAnimation(this.animationData))}renderAnimation(e){this.containerRef.value&&(this.animation=lottie.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:!0,autoplay:!0,animationData:e}))}destroyAnimation(){this.animation&&(this.animation.destroy(),this.animation=void 0)}render(){return x`<div ${n$1(this.containerRef)} data-lottie-container></div>`}};QontoLottiePlayer.styles=qontoLottiePlayerStyles,__decorate([n$3({type:Object})],QontoLottiePlayer.prototype,"animationData",void 0),QontoLottiePlayer=__decorate([t$1("qonto-lottie-player")],QontoLottiePlayer);const qontoButtonStyles=i$4`
191
+ `;function styleInject(e,t){void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var css_248z='@font-face{font-display:swap;font-family:PolySans;font-style:normal;font-weight:500 900;src:url(/fonts/polysans-median.woff2) format("woff2"),url(/fonts/polysans-median.woff) format("woff")}@font-face{font-display:swap;font-family:PolySans;font-style:normal;font-weight:400;src:url(/fonts/polysans-neutral.woff2) format("woff2"),url(/fonts/polysans-neutral.woff) format("woff")}@font-face{font-display:swap;font-family:PolySans;font-style:normal;font-weight:100 300;src:url(/fonts/polysans-slim.woff2) format("woff2"),url(/fonts/polysans-slim.woff) format("woff")}:root *{--default-font-family:PolySans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-family:var(--qonto-font-family,var(--default-font-family))}:root{--font-weight-median:600;--font-weight-neutral:400;--font-weight-slim:300;--title-1-font-size:32px;--title-1-font-weight:var(--font-weight-median);--title-1-line-height:40px;--title-2-font-size:24px;--title-2-font-weight:var(--font-weight-median);--title-2-line-height:32px;--title-3-font-size:20px;--title-3-font-weight:var(--font-weight-neutral);--title-3-line-height:32px;--title-4-font-size:16px;--title-4-font-weight:var(--font-weight-neutral);--title-4-line-height:24px;--body-1-font-size:14px;--body-1-font-weight:var(--font-weight-neutral);--body-1-line-height:24px;--body-2-font-size:14px;--body-2-font-weight:var(--font-weight-slim);--body-2-line-height:24px;--body-link-font-size:14px;--body-link-font-weight:var(--font-weight-neutral);--body-link-line-height:24px;--caption-font-size:12px;--caption-font-weight:var(--font-weight-neutral);--caption-line-height:16px;--caption-bold-font-size:12px;--caption-bold-font-weight:var(--font-weight-median);--caption-bold-line-height:16px;--caption-link-font-size:12px;--caption-link-font-weight:var(--font-weight-neutral);--caption-link-line-height:16px;--primary-black:#050505;--primary-white:#fff;--plum1000:#461068;--plum900:#7b4db8;--plum800:#a585db;--plum100:#bfa6ea;--plum50:#d5c8ff;--sakura1000:#7e0f4c;--sakura900:#c24b89;--sakura800:#e975b2;--sakura100:#ffacd6;--sakura50:#ffdfea;--mint1000:#0d5563;--mint900:#2f95a0;--mint800:#66c8c8;--mint100:#9be5da;--mint50:#c8ffec;--blueberry1000:#093b75;--blueberry900:#3275c4;--blueberry800:#71a5e0;--blueberry100:#9bc5ea;--blueberry50:#c6e6fb;--mustard1000:#705208;--mustard900:#c5a635;--mustard800:#f0e060;--mustard100:#f5f596;--mustard50:#faffa4;--peach1000:#7a250c;--peach900:#ce6033;--peach800:#ff9e75;--peach100:#ffb590;--peach50:#ffc9a6;--gray900:#1a1a1a;--gray800:#262626;--gray700:#3d3d3d;--gray600:#616161;--gray500:#8f8f8f;--gray400:#b8b8b8;--gray300:#ccc;--gray200:#e0e0e0;--gray100:#e8e8e8;--gray50:#f5f5f5;--gray25:#f9f9f9;--success1000:#0f7a3d;--success800:#2bad5f;--success400:#66db7c;--success300:#a5f2a3;--success50:#e6ffe4;--warning1000:#b04e10;--warning800:#dc9433;--warning400:#ffd870;--warning300:#ffe5aa;--warning50:#fff2d9;--error1000:#b81818;--error800:#e04545;--error400:#ff8585;--error300:#ffbabe;--error50:#ffe8e8;--elevation-default:var(--primary-white);--elevation-low:var(--gray25);--elevation-mid:var(--primary-white);--elevation-high:var(--primary-white);--background-primary:var(--qonto-color-primary,var(--primary-black));--background-secondary:var(--gray100);--background-tertiary:var(--gray50);--background-accent-low:var(--blueberry50);--background-accent-high:var(--blueberry900);--background-accent-static:var(--blueberry800);--background-success-low:var(--success50);--background-success-high:var(--success800);--background-warning-low:var(--warning50);--background-warning-high:var(--warning800);--background-error-low:var(--error50);--background-error-high:var(--error800);--background-modal-overlay:#61616199;--background-panel-overlay:#6161611a;--background-toggle:var(--gray400);--background-toggle-button:var(--primary-white);--background-skeleton-shimmer:var(--gray200);--background-feature-discoverability:var(--mustard50);--background-free-trial:var(--mint50);--background-upgrade-low:var(--peach50);--background-upgrade-high:var(--peach1000);--background-activate:var(--plum50);--background-splitscreen-peach:var(--peach50);--content-primary-a:var(--qonto-content-color-primary,var(--primary-black));--content-primary-b:var(--primary-white);--content-secondary:var(--gray600);--content-tertiary:var(--gray500);--content-accent:var(--blueberry900);--content-success:var(--success1000);--content-warning:var(--warning1000);--content-error:var(--error1000);--content-primary-a-static:var(--primary-black);--content-primary-b-static:var(--primary-white);--border-primary:var(--primary-black);--border-secondary:var(--gray300);--border-tertiary:var(--gray100);--border-avatar:#05050533;--border-accent-low:var(--blueberry50);--border-accent-high:var(--blueberry900);--border-accent-static:var(--blueberry100);--border-success:var(--success800);--border-warning:var(--warning800);--border-error:var(--error800);--border-upsell:var(--mint800);--dataviz-balance:var(--blueberry800);--dataviz-change:var(--warning800);--dataviz-inflows:var(--success400);--dataviz-outflows:var(--error400);--dataviz-slice-1:var(--plum800);--dataviz-slice-2:var(--mint800);--dataviz-slice-3:var(--blueberry800);--dataviz-slice-4:var(--mustard800);--dataviz-slice-5:var(--peach800);--dataviz-slice-6:var(--plum50);--dataviz-slice-7:var(--sakura800);--dataviz-other:var(--gray400);--dataviz-uncategorized:var(--gray200);--dataviz-empty:var(--gray50);--analytic-label-cat-1:var(--error800);--analytic-label-cat-2:var(--success800);--analytic-label-cat-3:var(--warning800);--analytic-label-cat-4:var(--mint800);--analytic-label-cat-5:var(--mustard800);--analytic-label-cat-6:var(--peach800);--analytic-label-cat-7:var(--blueberry800);--analytic-label-cat-8:var(--plum800);--analytic-label-cat-9:var(--sakura800);--analytic-label-cat10:var(--plum50);--category-purple:var(--plum100);--category-mint:var(--mint100);--category-mustard:var(--mustard100);--category-peach:var(--peach100);--category-blue:var(--blueberry100);--category-green:var(--success300);--category-pink:var(--sakura100);--category-gray:var(--gray100);--shadow-color-low:#0505050f;--shadow-color-high:#0505051f;--state-selected:var(--gray50);--state-primary-a-hover:#05050514;--state-disabled:#f5f5f573;--state-primary-a-pressed:#0505051f;--state-primary-b-hover:#ffffff14;--state-primary-b-pressed:#ffffff1f}:root .dark-theme{--elevation-default:var(--primary-black);--elevation-low:var(--gray900);--elevation-mid:var(--gray900);--elevation-high:var(--gray800);--background-primary:var(--gray25);--background-secondary:var(--gray600);--background-tertiary:var(--gray700);--background-accent-low:var(--blueberry1000);--background-accent-high:var(--blueberry900);--background-accent-static:var(--blueberry800);--background-success-low:var(--success1000);--background-success-high:var(--success800);--background-warning-low:var(--warning1000);--background-warning-high:var(--warning300);--background-error-low:var(--error1000);--background-error-high:var(--error800);--background-modal-overlay:#05050599;--background-panel-overlay:#05050566;--background-toggle:var(--gray600);--background-toggle-button:var(--gray300);--background-skeleton-shimmer:var(--gray700);--background-feature-discoverability:var(--mustard1000);--background-free-trial:var(--mint900);--background-upgrade-low:var(--peach900);--background-upgrade-high:var(--peach50);--background-activate:var(--plum900);--background-splitscreen-peach:var(--peach900);--content-primary-a:var(--gray25);--content-primary-b:var(--primary-black);--content-secondary:var(--gray300);--content-tertiary:var(--gray500);--content-accent:var(--blueberry800);--content-success:var(--success400);--content-warning:var(--warning400);--content-error:var(--error400);--content-primary-a-static:var(--primary-black);--content-primary-b-static:var(--primary-white);--border-primary:var(--gray25);--border-secondary:var(--gray500);--border-tertiary:#ffffff29;--border-avatar:#ffffff40;--border-accent-low:var(--blueberry1000);--border-accent-high:var(--blueberry800);--border-accent-static:var(--blueberry100);--border-success:var(--success400);--border-warning:var(--warning800);--border-error:var(--error400);--border-upsell:var(--mint100);--dataviz-balance:var(--blueberry800);--dataviz-change:var(--warning800);--dataviz-inflows:var(--success800);--dataviz-outflows:var(--error800);--dataviz-slice-1:var(--plum800);--dataviz-slice-2:var(--mint800);--dataviz-slice-3:var(--blueberry800);--dataviz-slice-4:var(--mustard800);--dataviz-slice-5:var(--peach800);--dataviz-slice-6:var(--plum50);--dataviz-slice-7:var(--sakura800);--dataviz-other:var(--gray400);--dataviz-uncategorized:var(--gray600);--dataviz-empty:var(--gray700);--category-purple:var(--plum100);--category-mint:var(--mint100);--category-mustard:var(--mustard100);--category-peach:var(--peach100);--category-blue:var(--blueberry100);--category-green:var(--success300);--category-pink:var(--sakura100);--category-gray:var(--gray100);--shadow-color-low:#05050552;--shadow-color-high:#050505a3;--state-selected:var(--gray700);--state-primary-a-hover:#ffffff14;--state-disabled:#f5f5f573;--state-primary-a-pressed:#ffffff1f;--state-primary-b-hover:#05050514;--state-primary-b-pressed:#0505051f;color-scheme:dark}:root,:root .dark-theme{--separator-bottom:inset 0 -1px 0 0 var(--border-tertiary);--shadow-low:0 3px 3px 0 var(--shadow-color-low);--shadow-high:0 3px 12px 0 var(--shadow-color-high);--background-placeholder:linear-gradient(to right,var(--background-secondary) 8%,var(--background-skeleton-shimmer) 18%,var(--background-secondary) 33%);--gradient-50:linear-gradient(90deg,var(--plum50),var(--blueberry50),var(--mint50));--gradient-800:linear-gradient(90deg,var(--plum800),var(--blueberry800),var(--mint800));--gradient-900:linear-gradient(90deg,var(--plum900),var(--blueberry900),var(--mint800));--gradient-1000:linear-gradient(90deg,var(--plum1000),var(--blueberry1000),var(--mint1000));--qonto-intelligence-gradient-content:var(--gradient-900);--qonto-intelligence-gradient-stroke:var(--gradient-900);--qonto-intelligence-gradient-background-high:var(--gradient-1000);--qonto-intelligence-gradient-background-low:var(--gradient-50);--qintelligence50:linear-gradient(90deg,var(--plum50) 0%,var(--blueberry50) 50%,var(--mint50) 100%);--qintelligence100:linear-gradient(90deg,var(--plum800) 0%,var(--blueberry800) 51.92%,var(--mint800) 100%);--qintelligence800:linear-gradient(90deg,var(--plum900) 0%,var(--blueberry900) 47.6%,var(--mint800) 100%);--qintelligence1000:linear-gradient(90deg,var(--plum1000) 0%,var(--blueberry1000) 50%,var(--mint900) 100%);--qintelligence-border:linear-gradient(90deg,var(--plum900) 0%,var(--blueberry900) 50%,var(--mint800) 100%)}:root{--overlay-primary-a-color:var(--primary-black);--overlay-primary-b-color:var(--primary-white);--qintelligence-low:var(--qintelligence50);--qintelligence-high:var(--qintelligence1000)}:root .dark-theme{--overlay-primary-a-color:var(--primary-white);--overlay-primary-b-color:var(--primary-black);--qintelligence-low:var(--qintelligence1000);--qintelligence-high:var(--qintelligence50)}:root{--overlay-opacity:0;--hover-opacity:0.08;--pressed-opacity:0.12;--disabled-opacity:0.45}.overlay{position:relative;&:after{background-color:var(--overlay-primary-a-color);content:"";height:100%;left:0;opacity:var(--overlay-opacity);pointer-events:none;position:absolute;top:0;width:100%}&:hover:after{--overlay-opacity:var(--hover-opacity)}&:active:after{--overlay-opacity:var(--pressed-opacity)}&[disabled]{cursor:not-allowed;&:after{--overlay-primary-a-color:var(--primary-white);--overlay-opacity:var(--disabled-opacity);cursor:not-allowed}}}';styleInject(css_248z);let QontoLottiePlayer=class extends i$1{constructor(){super(...arguments),this.containerRef=e$1()}firstUpdated(){this.loadAnimation()}updated(e){e.has("animationData")&&this.loadAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}loadAnimation(){this.containerRef.value&&(this.destroyAnimation(),this.animationData&&this.renderAnimation(this.animationData))}renderAnimation(e){this.containerRef.value&&(this.animation=lottie.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:!0,autoplay:!0,animationData:e}))}destroyAnimation(){this.animation&&(this.animation.destroy(),this.animation=void 0)}render(){return x`<div ${n$1(this.containerRef)} data-lottie-container></div>`}};QontoLottiePlayer.styles=qontoLottiePlayerStyles,__decorate([n$3({type:Object})],QontoLottiePlayer.prototype,"animationData",void 0),QontoLottiePlayer=__decorate([t$1("qonto-lottie-player")],QontoLottiePlayer);const qontoButtonStyles=i$4`
193
192
  button {
194
193
  --focus-outline-color: var(--border-accent-low);
195
194
  --bg-color: var(--qonto-embed-color-primary, var(--background-primary));
@@ -352,7 +351,7 @@ const t$1=e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t
352
351
  * Copyright 2020 Google LLC
353
352
  * SPDX-License-Identifier: BSD-3-Clause
354
353
  */
355
- const a=Symbol.for(""),o$1=e=>{if(e?.r===a)return e?._$litStatic$},s=e=>({_$litStatic$:e,r:a}),l=new Map,n=e=>(t,...r)=>{const a=r.length;let n,i;const o=[],s=[];let c,h=0,d=!1;for(;h<a;){for(c=t[h];h<a&&void 0!==(i=r[h],n=o$1(i));)c+=n+t[++h],d=!0;h!==a&&s.push(i),o.push(c),h++}if(h===a&&o.push(t[a]),d){const e=o.join("$$lit$$");void 0===(t=l.get(e))&&(o.raw=o,l.set(e,t=o)),r=s}return e(t,...r)},u=n(x),qontoTextHeadingStyles=i$4`
354
+ const a=Symbol.for(""),o$1=e=>{if(e?.r===a)return e?._$litStatic$},s=e=>({_$litStatic$:e,r:a}),l=new Map,n=e=>(t,...r)=>{const n=r.length;let i,a;const o=[],s=[];let c,d=0,u=!1;for(;d<n;){for(c=t[d];d<n&&void 0!==(a=r[d],i=o$1(a));)c+=i+t[++d],u=!0;d!==n&&s.push(a),o.push(c),d++}if(d===n&&o.push(t[n]),u){const e=o.join("$$lit$$");void 0===(t=l.get(e))&&(o.raw=o,l.set(e,t=o)),r=s}return e(t,...r)},u=n(x),qontoTextHeadingStyles=i$4`
356
355
  :is(h1, h2, h3, h4, h5, h6) {
357
356
  --heading-line-height: var(
358
357
  --qonto-embed-content-line-height,
@@ -448,7 +447,7 @@ const a=Symbol.for(""),o$1=e=>{if(e?.r===a)return e?._$litStatic$},s=e=>({_$litS
448
447
  data-display-level=${this.displayLevel}
449
448
  >
450
449
  <slot></slot>
451
- </p>`}};QontoTextBody.styles=qontoTextBodyStyles,__decorate([n$3({type:String,attribute:"data-variant"})],QontoTextBody.prototype,"variant",void 0),__decorate([n$3({type:String,attribute:"data-display-level"})],QontoTextBody.prototype,"displayLevel",void 0),QontoTextBody=__decorate([t$1("qonto-text-body")],QontoTextBody);var v$2="4.8.0",meta={g:"LottieFiles AE ",a:"",k:"",d:"",tc:""},fr$3=30,ip$2=0,op$2=105,w$2=200,h$2=200,nm$2="PHONE_SCA_AUTHENTIFICATION_APPROVAL_200x200",ddd$2=0,assets$2=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:3,nm:"Nul 1",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.71,y:.898},o:{x:.16,y:.266},t:5.507,s:[518,547.895,0],to:[0,-1.317,0],ti:[0,0,0]},{i:{x:.71,y:.856},o:{x:.16,y:.374},t:7.152,s:[518,539.995,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.71,y:.893},o:{x:.16,y:.277},t:9.295,s:[518,547.895,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.71,y:.856},o:{x:.16,y:.374},t:11.507,s:[518,539.995,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.71,y:.893},o:{x:.16,y:.277},t:13.647,s:[518,547.895,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.71,y:.856},o:{x:.16,y:.374},t:15.86,s:[518,539.995,0],to:[0,0,0],ti:[0,-1.317,0]},{t:18,s:[518,547.895,0]}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:105,st:-8,bm:0},{ddd:0,ind:2,ty:4,nm:"Success_Check",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[115.902,-10.881,0],ix:2},a:{a:0,k:[115.902,-10.881,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.667,y:1},o:{x:.167,y:.167},t:37,s:[{i:[[.015,-.97],[4.185,-.118],[0,0],[1.521,.93],[-.228,1.272],[0,0],[-4.17,-.256],[.437,-2.405],[0,0],[0,0]],o:[[-.905,2.25],[0,0],[-2.216,.062],[-1.526,-.93],[0,0],[.437,-2.405],[4.165,.256],[0,0],[0,0],[-.273,1.441]],v:[[87.11,-22.155],[80.166,-18.066],[80.156,-18.008],[74.266,-19.375],[72.224,-22.846],[72.408,-24.968],[80.743,-28.86],[87.499,-24.042],[87.364,-23.882],[87.523,-23.941]],c:!0}]},{i:{x:.065,y:1},o:{x:.333,y:0},t:43.111,s:[{i:[[.64,-2.345],[4.185,-.118],[0,0],[1.521,.93],[-.228,1.272],[0,0],[-4.17,-.256],[.437,-2.405],[0,0],[0,0]],o:[[-.639,2.34],[0,0],[-2.216,.062],[-1.526,-.93],[0,0],[.437,-2.405],[4.165,.256],[0,0],[0,0],[-.273,1.441]],v:[[82.36,2.97],[75.416,7.059],[75.406,7.117],[69.516,5.75],[67.474,2.279],[72.408,-24.968],[80.743,-28.86],[87.499,-24.042],[83.489,-1.882],[83.648,-1.941]],c:!0}]},{i:{x:.32,y:1},o:{x:.333,y:0},t:52,s:[{i:[[-.209,-2.417],[4.185,-.118],[0,0],[1.521,.93],[-.228,1.272],[0,0],[-4.17,-.256],[.437,-2.405],[0,0],[0,0]],o:[[.214,2.416],[0,0],[-2.216,.062],[-1.526,-.93],[0,0],[.437,-2.405],[4.165,.256],[0,0],[0,0],[4.185,-.118]],v:[[164.36,.22],[157.166,4.809],[75.406,7.117],[69.516,5.75],[67.474,2.279],[72.408,-24.968],[80.743,-28.86],[87.499,-24.042],[83.489,-1.882],[156.398,-3.941]],c:!0}]},{i:{x:.32,y:1},o:{x:.68,y:0},t:82.25,s:[{i:[[-.209,-2.417],[4.185,-.118],[0,0],[1.521,.93],[-.228,1.272],[0,0],[-4.17,-.256],[.437,-2.405],[0,0],[0,0]],o:[[.214,2.416],[0,0],[-2.216,.062],[-1.526,-.93],[0,0],[.437,-2.405],[4.165,.256],[0,0],[0,0],[4.185,-.118]],v:[[164.36,.22],[157.166,4.809],[75.406,7.117],[69.516,5.75],[67.474,2.279],[72.408,-24.968],[80.743,-28.86],[87.499,-24.042],[83.489,-1.882],[156.398,-3.941]],c:!0}]},{i:{x:.96,y:1},o:{x:.68,y:0},t:88.5,s:[{i:[[-.209,-2.417],[4.185,-.118],[0,0],[1.521,.93],[-.228,1.272],[0,0],[-4.17,.26],[-2.499,.042],[0,0],[0,0]],o:[[.214,2.416],[0,0],[-2.216,.062],[-1.526,-.93],[0,0],[-.158,-1.782],[4.257,-.265],[0,0],[0,0],[4.185,-.118]],v:[[164.36,.22],[157.166,4.809],[75.406,7.117],[69.516,5.75],[67.474,2.279],[67.658,2.157],[73.493,-1.735],[83.499,-2.042],[83.489,-1.882],[156.398,-3.941]],c:!0}]},{t:92.25,s:[{i:[[-.15,-2.416],[2.928,-.118],[0,0],[1.065,.928],[-.16,1.272],[0,0],[-2.923,.045],[-1.748,.042],[0,0],[0,0]],o:[[.15,2.416],[0,0],[-1.551,.062],[-1.068,-.93],[0,0],[-.11,-1.782],[.967,-.015],[0,0],[0,0],[2.928,-.118]],v:[[164.424,.22],[159.392,4.809],[160.084,4.867],[155.963,3.5],[154.535,.029],[154.663,-.093],[158.745,-3.985],[158.75,-3.792],[158.743,-3.632],[158.854,-3.941]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:37,op:92.25,st:17.25,bm:0},{ddd:0,ind:4,ty:4,nm:"Success_Rond",parent:8,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[105.341,-7.997,0],ix:2},a:{a:0,k:[105.341,-7.997,0],ix:1},s:{a:1,k:[{i:{x:[.119,.119,.22],y:[1,1,1]},o:{x:[.573,.573,.72],y:[0,0,0]},t:19.75,s:[0,0,100]},{i:{x:[.119,.119,.22],y:[1,1,1]},o:{x:[.167,.167,.167],y:[0,0,0]},t:41,s:[100,100,100]},{i:{x:[.427,.427,.28],y:[1,1,1]},o:{x:[.881,.881,.78],y:[0,0,0]},t:82.25,s:[100,100,100]},{t:99.75,s:[0,0,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-39.256,-22.663],[39.256,-22.663],[39.256,22.663],[-39.256,22.663]],o:[[39.256,22.663],[-39.256,22.663],[-39.256,-22.663],[39.256,-22.663]],v:[[176.42,-49.032],[176.42,33.038],[34.261,33.038],[34.261,-49.032]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.690196096897,.941176474094,.854901969433,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:19.75,op:99.75,st:17.25,bm:0},{ddd:0,ind:7,ty:4,nm:"Touche telephone",parent:8,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-238.471,198.015,0],ix:2},a:{a:0,k:[-238.471,198.015,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[-13.539,-7.218],[12.932,-8.115],[13.544,7.213],[-12.932,8.115]],o:[[13.544,7.217],[-12.932,8.115],[-13.544,-7.217],[12.932,-8.115]],v:[[-212.213,181.421],[-211.107,209.181],[-259.048,210.814],[-260.149,183.054]],c:!0}]},{t:70.75,s:[{i:[[-13.539,-7.218],[12.932,-8.115],[13.544,7.213],[-12.932,8.115]],o:[[13.544,7.217],[-12.932,8.115],[-13.544,-7.217],[12.932,-8.115]],v:[[-212.213,181.421],[-211.107,209.181],[-259.048,210.814],[-260.149,183.054]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:105,st:7,bm:0},{ddd:0,ind:8,ty:4,nm:"Telephone",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-251.922,144.89,0],ix:2},a:{a:0,k:[-233.922,192.89,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[-2.074,-1.197],[2.074,-1.197],[2.074,1.197],[-2.074,1.197]],o:[[2.074,1.197],[-2.074,1.197],[-2.074,-1.197],[2.074,-1.197]],v:[[319.873,-84.824],[319.873,-80.489],[312.364,-80.489],[312.364,-84.824]],c:!0}]},{t:70.75,s:[{i:[[-2.074,-1.197],[2.074,-1.197],[2.074,1.197],[-2.074,1.197]],o:[[2.074,1.197],[-2.074,1.197],[-2.074,-1.197],[2.074,-1.197]],v:[[319.873,-84.824],[319.873,-80.489],[312.364,-80.489],[312.364,-84.824]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[-2.074,-1.197],[0,0],[2.074,-1.197],[0,0],[2.074,1.197],[0,0],[-2.074,1.197],[0,0]],o:[[0,0],[2.074,1.197],[0,0],[-2.074,1.197],[0,0],[-2.074,-1.197],[0,0],[2.074,-1.197]],v:[[251.775,-124.147],[304.856,-93.501],[304.856,-89.166],[304.856,-89.166],[297.347,-89.166],[244.266,-119.812],[244.266,-124.147],[244.266,-124.147]],c:!0}]},{t:70.75,s:[{i:[[-2.074,-1.197],[0,0],[2.074,-1.197],[0,0],[2.074,1.197],[0,0],[-2.074,1.197],[0,0]],o:[[0,0],[2.074,1.197],[0,0],[-2.074,1.197],[0,0],[-2.074,-1.197],[0,0],[2.074,-1.197]],v:[[251.775,-124.147],[304.856,-93.501],[304.856,-89.166],[304.856,-89.166],[297.347,-89.166],[244.266,-119.812],[244.266,-124.147],[244.266,-124.147]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 2",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 3",np:1,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[0,0],[.04,3.179],[.759,1.414],[1.306,.928],[0,0],[-.041,-3.179],[-.76,-1.414],[-1.313,-.919]],o:[[2.431,1.385],[-.053,-1.604],[-.759,-1.414],[0,0],[-2.391,-1.385],[.043,1.609],[.76,1.414],[0,0]],v:[[-290.638,265.475],[-286.262,262.296],[-287.497,257.708],[-290.638,254.15],[-323.617,235.006],[-327.953,238.184],[-326.73,242.782],[-323.577,246.33]],c:!0}]},{t:70.75,s:[{i:[[0,0],[.04,3.179],[.759,1.414],[1.306,.928],[0,0],[-.041,-3.179],[-.76,-1.414],[-1.313,-.919]],o:[[2.431,1.385],[-.053,-1.604],[-.759,-1.414],[0,0],[-2.391,-1.385],[.043,1.609],[.76,1.414],[0,0]],v:[[-290.638,265.475],[-286.262,262.296],[-287.497,257.708],[-290.638,254.15],[-323.617,235.006],[-327.953,238.184],[-326.73,242.782],[-323.577,246.33]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[1.95,1.4],[0,0],[0,-4.685],[-1.139,-2.119],[-1.963,-1.385],[0,0],[0,4.685],[1.138,2.119]],o:[[0,0],[-3.606,-2.114],[.075,2.406],[1.139,2.119],[0,0],[3.647,2.119],[-.093,-2.406],[-1.138,-2.114]],v:[[-290.638,251.22],[-323.617,232.114],[-330.141,236.843],[-328.294,243.73],[-323.577,249.062],[-290.638,268.163],[-284.074,263.438],[-285.946,256.561]],c:!0}]},{t:70.75,s:[{i:[[1.95,1.4],[0,0],[0,-4.685],[-1.139,-2.119],[-1.963,-1.385],[0,0],[0,4.685],[1.138,2.119]],o:[[0,0],[-3.606,-2.114],[.075,2.406],[1.139,2.119],[0,0],[3.647,2.119],[-.093,-2.406],[-1.138,-2.114]],v:[[-290.638,251.22],[-323.617,232.114],[-330.141,236.843],[-328.294,243.73],[-323.577,249.062],[-290.638,268.163],[-284.074,263.438],[-285.946,256.561]],c:!0}]}],ix:2},nm:"Path 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 4",np:3,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[0,0],[0,0],[-6.002,.185],[-5.183,3.047],[0,0],[12.394,7.454],[0,0],[0,0],[5.084,-.219],[4.646,2.09],[0,0],[-8.71,5.051],[0,0],[0,0],[5.9,-.185],[5.098,-2.994],[0,0],[1.24,-2.284],[-.094,-2.605],[-1.425,-2.197],[-2.337,-1.157]],o:[[0,0],[5.359,2.722],[6.002,-.185],[0,0],[8.792,-5.906],[0,0],[0,0],[-4.452,2.482],[-5.084,.219],[0,0],[-7.495,-4.318],[0,0],[0,0],[-5.278,-2.669],[-5.9,.185],[0,0],[-2.227,1.332],[-1.24,2.289],[.116,2.615],[1.425,2.192],[0,0]],v:[[-409.307,163.491],[-170.263,301.981],[-152.951,305.85],[-135.906,300.921],[408.265,-14.552],[405.388,-39.562],[356.765,-67.708],[349.353,-63.39],[334.855,-59.283],[320.06,-62.127],[212.084,-124.571],[214.193,-141.556],[221.566,-145.874],[166.426,-177.727],[149.395,-181.513],[132.632,-176.668],[-410.279,138.193],[-415.577,143.719],[-417.329,151.19],[-414.974,158.538],[-409.226,163.652]],c:!0}]},{t:70.75,s:[{i:[[0,0],[0,0],[-6.002,.185],[-5.183,3.047],[0,0],[12.394,7.454],[0,0],[0,0],[5.084,-.219],[4.646,2.09],[0,0],[-8.71,5.051],[0,0],[0,0],[5.9,-.185],[5.098,-2.994],[0,0],[1.24,-2.284],[-.094,-2.605],[-1.425,-2.197],[-2.337,-1.157]],o:[[0,0],[5.359,2.722],[6.002,-.185],[0,0],[8.792,-5.906],[0,0],[0,0],[-4.452,2.482],[-5.084,.219],[0,0],[-7.495,-4.318],[0,0],[0,0],[-5.278,-2.669],[-5.9,.185],[0,0],[-2.227,1.332],[-1.24,2.289],[.116,2.615],[1.425,2.192],[0,0]],v:[[-409.307,163.491],[-170.263,301.981],[-152.951,305.85],[-135.906,300.921],[408.265,-14.552],[405.388,-39.562],[356.765,-67.708],[349.353,-63.39],[334.855,-59.283],[320.06,-62.127],[212.084,-124.571],[214.193,-141.556],[221.566,-145.874],[166.426,-177.727],[149.395,-181.513],[132.632,-176.668],[-410.279,138.193],[-415.577,143.719],[-417.329,151.19],[-414.974,158.538],[-409.226,163.652]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 5",np:3,cix:2,bm:0,ix:5,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[9.154,.039],[7.189,3.636],[0,0],[.203,7.781],[-1.697,3.004],[-2.95,1.774],[0,0],[-8.671,.27],[-7.757,-3.907],[0,0],[-1.92,-3.777],[.058,-4.242],[1.73,-2.812],[2.882,-1.566],[0,0]],o:[[-8.047,.019],[0,0],[-8.711,-5.254],[.003,-3.456],[1.697,-3.004],[0,0],[7.5,-4.383],[8.671,-.27],[0,0],[3.456,2.434],[1.92,3.777],[-.156,3.304],[-1.745,2.787],[0,0],[-7.9,4.651]],v:[[-153.526,319.862],[-176.701,314.365],[-423.605,170.577],[-437.421,150.577],[-434.827,140.721],[-427.737,133.429],[127.816,-188.073],[152.457,-195.163],[177.488,-189.621],[424.635,-45.55],[432.824,-36.092],[435.658,-23.88],[432.78,-14.553],[425.728,-7.913],[-127.474,312.814]],c:!0}]},{t:70.75,s:[{i:[[9.154,.039],[7.189,3.636],[0,0],[.203,7.781],[-1.697,3.004],[-2.95,1.774],[0,0],[-8.671,.27],[-7.757,-3.907],[0,0],[-1.92,-3.777],[.058,-4.242],[1.73,-2.812],[2.882,-1.566],[0,0]],o:[[-8.047,.019],[0,0],[-8.711,-5.254],[.003,-3.456],[1.697,-3.004],[0,0],[7.5,-4.383],[8.671,-.27],[0,0],[3.456,2.434],[1.92,3.777],[-.156,3.304],[-1.745,2.787],[0,0],[-7.9,4.651]],v:[[-153.526,319.862],[-176.701,314.365],[-423.605,170.577],[-437.421,150.577],[-434.827,140.721],[-427.737,133.429],[127.816,-188.073],[152.457,-195.163],[177.488,-189.621],[424.635,-45.55],[432.824,-36.092],[435.658,-23.88],[432.78,-14.553],[425.728,-7.913],[-127.474,312.814]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.874509811401,.976470589638,.941176474094,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 6",np:3,cix:2,bm:0,ix:6,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[.233,-.255],[0,0],[.71,-1.331],[.034,-1.517],[-.204,-.489],[-.389,-.362],[-.36,.08],[-.301,.211],[0,0],[-.685,1.337],[-.034,1.504],[.122,.523],[.233,.253],[.331,.092],[.33,-.095]],o:[[0,0],[-1.21,.896],[-.69,1.351],[-.044,.528],[.194,.497],[.36,.08],[.365,-.057],[0,0],[1.21,-.887],[.685,-1.338],[.122,-.523],[-.068,-.339],[-.233,-.253],[-.33,-.093],[-.331,.095]],v:[[351.992,45.605],[315.526,66.663],[312.609,70.044],[311.516,74.403],[311.759,75.95],[312.648,77.254],[313.742,77.254],[314.758,76.846],[351.22,55.788],[354.097,52.407],[355.19,48.089],[355.19,46.501],[354.729,45.595],[353.864,45.066],[352.853,45.069]],c:!0}]},{t:70.75,s:[{i:[[.233,-.255],[0,0],[.71,-1.331],[.034,-1.517],[-.204,-.489],[-.389,-.362],[-.36,.08],[-.301,.211],[0,0],[-.685,1.337],[-.034,1.504],[.122,.523],[.233,.253],[.331,.092],[.33,-.095]],o:[[0,0],[-1.21,.896],[-.69,1.351],[-.044,.528],[.194,.497],[.36,.08],[.365,-.057],[0,0],[1.21,-.887],[.685,-1.338],[.122,-.523],[-.068,-.339],[-.233,-.253],[-.33,-.093],[-.331,.095]],v:[[351.992,45.605],[315.526,66.663],[312.609,70.044],[311.516,74.403],[311.759,75.95],[312.648,77.254],[313.742,77.254],[314.758,76.846],[351.22,55.788],[354.097,52.407],[355.19,48.089],[355.19,46.501],[354.729,45.595],[353.864,45.066],[352.853,45.069]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[.758,.047],[.467,.24],[.345,.734],[-.083,.793],[-.821,1.583],[-1.463,1.015],[0,0],[-.646,.043],[-.569,-.307],[-.33,-.742],[.068,-.81],[.807,-1.578],[1.473,-1.046],[0,0]],o:[[-.525,0],[-.637,-.499],[-.321,-.729],[0,-1.787],[.826,-1.582],[0,0],[.52,-.381],[.642,-.043],[.651,.487],[.34,.739],[-.049,1.774],[-.792,1.627],[0,0],[-.671,.366]],v:[[313.3,78.965],[311.798,78.598],[310.301,76.724],[309.936,74.403],[311.19,69.274],[314.675,65.319],[351.142,44.301],[352.93,43.652],[354.787,44.057],[356.284,45.93],[356.692,48.293],[355.395,53.384],[351.949,57.458],[315.487,78.476]],c:!0}]},{t:70.75,s:[{i:[[.758,.047],[.467,.24],[.345,.734],[-.083,.793],[-.821,1.583],[-1.463,1.015],[0,0],[-.646,.043],[-.569,-.307],[-.33,-.742],[.068,-.81],[.807,-1.578],[1.473,-1.046],[0,0]],o:[[-.525,0],[-.637,-.499],[-.321,-.729],[0,-1.787],[.826,-1.582],[0,0],[.52,-.381],[.642,-.043],[.651,.487],[.34,.739],[-.049,1.774],[-.792,1.627],[0,0],[-.671,.366]],v:[[313.3,78.965],[311.798,78.598],[310.301,76.724],[309.936,74.403],[311.19,69.274],[314.675,65.319],[351.142,44.301],[352.93,43.652],[354.787,44.057],[356.284,45.93],[356.692,48.293],[355.395,53.384],[351.949,57.458],[315.487,78.476]],c:!0}]}],ix:2},nm:"Path 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 7",np:3,cix:2,bm:0,ix:7,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[2.391,-1.466],[0,0],[0,0],[0,0],[.787,-1.446],[.005,-1.648],[-2.43,1.385],[0,0],[0,0],[0,0],[-.778,1.435],[0,1.661]],o:[[0,0],[0,0],[0,0],[-1.327,.968],[-.763,1.456],[0,3.34],[0,0],[0,0],[0,0],[1.303,-.981],[.773,-1.468],[0,-3.258]],v:[[351.54,44.948],[340.44,51.384],[340.075,51.384],[315.117,65.885],[311.914,69.551],[310.743,74.276],[315.117,77.616],[326.301,71.099],[326.583,71.099],[351.54,56.638],[354.7,52.973],[355.876,48.207]],c:!0}]},{t:70.75,s:[{i:[[2.391,-1.466],[0,0],[0,0],[0,0],[.787,-1.446],[.005,-1.648],[-2.43,1.385],[0,0],[0,0],[0,0],[-.778,1.435],[0,1.661]],o:[[0,0],[0,0],[0,0],[-1.327,.968],[-.763,1.456],[0,3.34],[0,0],[0,0],[0,0],[1.303,-.981],[.773,-1.468],[0,-3.258]],v:[[351.54,44.948],[340.44,51.384],[340.075,51.384],[315.117,65.885],[311.914,69.551],[310.743,74.276],[315.117,77.616],[326.301,71.099],[326.583,71.099],[351.54,56.638],[354.7,52.973],[355.876,48.207]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.874509811401,.976470589638,.941176474094,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 8",np:2,cix:2,bm:0,ix:8,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[-.199,.546],[-.753,1.458],[-1.327,.958],[0,0],[-.52,-.001],[-.447,-.288],[0,0],[0,0],[.603,0],[.471,-.37],[0,0],[.753,-1.464],[.034,-1.635],[-.141,-.561],[-.413,-.404],[0,0],[.18,.609]],o:[[.019,-1.642],[.753,-1.458],[0,0],[.428,-.293],[.53,.005],[0,0],[0,0],[-.476,-.37],[-.598,0],[0,0],[-1.322,.974],[-.768,1.444],[-.141,.561],[.165,.557],[0,0],[-.433,-.462],[-.068,-.578]],v:[[310.782,74.321],[311.953,69.606],[315.117,65.93],[351.584,44.993],[353.042,44.546],[354.539,44.993],[350.491,42.102],[350.082,41.857],[348.42,41.286],[346.763,41.857],[310.296,62.753],[307.137,66.46],[305.922,71.144],[305.922,72.855],[306.811,74.321],[311.511,77.661],[310.578,76.032]],c:!0}]},{t:70.75,s:[{i:[[-.199,.546],[-.753,1.458],[-1.327,.958],[0,0],[-.52,-.001],[-.447,-.288],[0,0],[0,0],[.603,0],[.471,-.37],[0,0],[.753,-1.464],[.034,-1.635],[-.141,-.561],[-.413,-.404],[0,0],[.18,.609]],o:[[.019,-1.642],[.753,-1.458],[0,0],[.428,-.293],[.53,.005],[0,0],[0,0],[-.476,-.37],[-.598,0],[0,0],[-1.322,.974],[-.768,1.444],[-.141,.561],[.165,.557],[0,0],[-.433,-.462],[-.068,-.578]],v:[[310.782,74.321],[311.953,69.606],[315.117,65.93],[351.584,44.993],[353.042,44.546],[354.539,44.993],[350.491,42.102],[350.082,41.857],[348.42,41.286],[346.763,41.857],[310.296,62.753],[307.137,66.46],[305.922,71.144],[305.922,72.855],[306.811,74.321],[311.511,77.661],[310.578,76.032]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.690196096897,.941176474094,.854901969433,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 10",np:3,cix:2,bm:0,ix:9,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[0,0],[0,0],[.224,.653],[-.063,.688],[-.807,1.578],[-1.473,1.056],[0,0],[-.729,0],[-.588,-.436],[0,0],[0,0],[.379,0],[.335,-.186],[0,0],[.685,-1.346],[.034,-1.503],[-.122,-.495],[-.369,-.35]],o:[[0,0],[-.471,-.502],[-.224,-.653],[.049,-1.774],[.817,-1.62],[0,0],[.588,-.436],[.729,0],[0,0],[0,0],[-.335,-.186],[-.384,0],[0,0],[-1.23,.874],[-.685,1.338],[-.122,.495],[.165,.479],[0,0]],v:[[311.156,78.027],[306.456,74.931],[305.402,73.178],[305.159,71.143],[306.456,66.051],[309.941,61.978],[346.403,40.837],[348.43,40.166],[350.457,40.837],[354.87,43.974],[354.063,45.237],[352.969,44.954],[351.876,45.237],[315.044,65.888],[312.128,69.269],[311.035,73.587],[311.035,75.094],[311.846,76.357]],c:!0}]},{t:70.75,s:[{i:[[0,0],[0,0],[.224,.653],[-.063,.688],[-.807,1.578],[-1.473,1.056],[0,0],[-.729,0],[-.588,-.436],[0,0],[0,0],[.379,0],[.335,-.186],[0,0],[.685,-1.346],[.034,-1.503],[-.122,-.495],[-.369,-.35]],o:[[0,0],[-.471,-.502],[-.224,-.653],[.049,-1.774],[.817,-1.62],[0,0],[.588,-.436],[.729,0],[0,0],[0,0],[-.335,-.186],[-.384,0],[0,0],[-1.23,.874],[-.685,1.338],[-.122,.495],[.165,.479],[0,0]],v:[[311.156,78.027],[306.456,74.931],[305.402,73.178],[305.159,71.143],[306.456,66.051],[309.941,61.978],[346.403,40.837],[348.43,40.166],[350.457,40.837],[354.87,43.974],[354.063,45.237],[352.969,44.954],[351.876,45.237],[315.044,65.888],[312.128,69.269],[311.035,73.587],[311.035,75.094],[311.846,76.357]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 11",np:2,cix:2,bm:0,ix:10,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[5.152,2.931],[0,0],[0,0],[8.559,-.263],[7.397,-4.333],[0,0],[.829,-.783],[-21.473,-12.627],[0,0],[0,0],[0,0],[-8.422,.272],[-7.298,4.238],[0,0],[-.904,.748],[-2.654,5.32],[.248,5.948],[3.086,5.078]],o:[[0,0],[0,0],[-7.65,-3.871],[-8.564,.263],[0,0],[-.95,.627],[-18.961,14.741],[0,0],[0,0],[0,0],[7.531,3.801],[8.423,-.282],[0,0],[1.011,-.58],[4.889,-3.354],[2.659,-5.32],[-.248,-5.947],[-3.091,-5.079]],v:[[425.038,-44.139],[424.27,-44.791],[177.08,-188.699],[152.38,-194.196],[128.059,-187.192],[-427.213,134.596],[-429.887,136.716],[-424.62,195.409],[-424.215,195.409],[-423.526,195.9],[-176.785,339.561],[-152.475,344.941],[-128.531,338.054],[424.635,17.285],[427.512,15.29],[439.016,2.065],[442.691,-15.115],[437.607,-31.926]],c:!0}]},{t:70.75,s:[{i:[[5.152,2.931],[0,0],[0,0],[8.559,-.263],[7.397,-4.333],[0,0],[.829,-.783],[-21.473,-12.627],[0,0],[0,0],[0,0],[-8.422,.272],[-7.298,4.238],[0,0],[-.904,.748],[-2.654,5.32],[.248,5.948],[3.086,5.078]],o:[[0,0],[0,0],[-7.65,-3.871],[-8.564,.263],[0,0],[-.95,.627],[-18.961,14.741],[0,0],[0,0],[0,0],[7.531,3.801],[8.423,-.282],[0,0],[1.011,-.58],[4.889,-3.354],[2.659,-5.32],[-.248,-5.947],[-3.091,-5.079]],v:[[425.038,-44.139],[424.27,-44.791],[177.08,-188.699],[152.38,-194.196],[128.059,-187.192],[-427.213,134.596],[-429.887,136.716],[-424.62,195.409],[-424.215,195.409],[-423.526,195.9],[-176.785,339.561],[-152.475,344.941],[-128.531,338.054],[424.635,17.285],[427.512,15.29],[439.016,2.065],[442.691,-15.115],[437.607,-31.926]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 12",np:3,cix:2,bm:0,ix:11,mn:"ADBE Vector Group",hd:!1}],ip:0,op:105,st:7,bm:0}]}],layers$2=[{ddd:0,ind:1,ty:0,nm:"PHONE_SCA_AUTHENTIFICATION_APPROVAL_1000x1000",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[100,100,0],ix:2},a:{a:0,k:[500,500,0],ix:1},s:{a:0,k:[20,20,100],ix:6}},ao:0,w:1e3,h:1e3,ip:0,op:105,st:0,bm:0}],markers$2=[],scaApprovalAnimation={v:v$2,meta:meta,fr:fr$3,ip:ip$2,op:op$2,w:w$2,h:h$2,nm:nm$2,ddd:ddd$2,assets:assets$2,layers:layers$2,markers:markers$2};function prepareScaPollingCall({scaSessionToken:e,stagingToken:t}){return{path:`/v2/sca_sessions/${encodeURIComponent(e)}`,options:{method:"GET",headers:{stagingToken:t,scaSessionToken:e}}}}const SCA_POLLING_RESULTS={WAITING:"waiting"};function serializeScaPollingResponse(e){return{result:e.result,canceledAt:e.canceled_at}}function serializePreconditionRequiredResponse(e){return{message:e.message,code:e.code,scaSessionToken:e.sca_session_token,actionType:e.action_type}}async function*pollScaSession({scaSettings:e,operationSettings:t}){if(!e||!e.scaSessionToken)throw new InvalidParametersError("scaSettings with scaSessionToken is required to poll SCA session.");if(!t?.proxyRequestFunction)throw new InvalidParametersError("operationSettings with proxyRequestFunction is required to poll SCA session.");const r=prepareScaPollingCall({scaSessionToken:e.scaSessionToken,stagingToken:t.stagingToken});let a;do{a&&(yield a);a=serializeScaPollingResponse((await callProxyFunction({proxyFunction:t.proxyRequestFunction,networkCallDescriptor:r})).body)}while(a.result===SCA_POLLING_RESULTS.WAITING);return a}let isLinkCopied=!1;function getScaTestingUrl(e,t){return`${environmentManager.getEnvironmentUrls().EMBED_BASE_URL}/passkey/identification/${e}#staging_token=${t}`}function getShortenDisplayUrl(e){return`${environmentManager.getEnvironmentUrls().EMBED_BASE_URL}/.../${e?.slice(-4)}`}async function copyLinkToClipboard(e){try{await navigator.clipboard.writeText(e),isLinkCopied=!0}catch(e){isLinkCopied=!1,console.error("Could not copy the link to the clipboard:",e)}}function renderTestingScaHelper(e){const t=getScaTestingUrl(e?.options.headers.scaSessionToken),r=getShortenDisplayUrl(e?.options.headers.scaSessionToken);return x`<div data-testing-wrapper>
450
+ </p>`}};QontoTextBody.styles=qontoTextBodyStyles,__decorate([n$3({type:String,attribute:"data-variant"})],QontoTextBody.prototype,"variant",void 0),__decorate([n$3({type:String,attribute:"data-display-level"})],QontoTextBody.prototype,"displayLevel",void 0),QontoTextBody=__decorate([t$1("qonto-text-body")],QontoTextBody);var v$2="4.8.0",meta={g:"LottieFiles AE ",a:"",k:"",d:"",tc:""},fr$3=30,ip$2=0,op$2=105,w$2=200,h$2=200,nm$2="PHONE_SCA_AUTHENTIFICATION_APPROVAL_200x200",ddd$2=0,assets$2=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:3,nm:"Nul 1",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.71,y:.898},o:{x:.16,y:.266},t:5.507,s:[518,547.895,0],to:[0,-1.317,0],ti:[0,0,0]},{i:{x:.71,y:.856},o:{x:.16,y:.374},t:7.152,s:[518,539.995,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.71,y:.893},o:{x:.16,y:.277},t:9.295,s:[518,547.895,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.71,y:.856},o:{x:.16,y:.374},t:11.507,s:[518,539.995,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.71,y:.893},o:{x:.16,y:.277},t:13.647,s:[518,547.895,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.71,y:.856},o:{x:.16,y:.374},t:15.86,s:[518,539.995,0],to:[0,0,0],ti:[0,-1.317,0]},{t:18,s:[518,547.895,0]}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:105,st:-8,bm:0},{ddd:0,ind:2,ty:4,nm:"Success_Check",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[115.902,-10.881,0],ix:2},a:{a:0,k:[115.902,-10.881,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.667,y:1},o:{x:.167,y:.167},t:37,s:[{i:[[.015,-.97],[4.185,-.118],[0,0],[1.521,.93],[-.228,1.272],[0,0],[-4.17,-.256],[.437,-2.405],[0,0],[0,0]],o:[[-.905,2.25],[0,0],[-2.216,.062],[-1.526,-.93],[0,0],[.437,-2.405],[4.165,.256],[0,0],[0,0],[-.273,1.441]],v:[[87.11,-22.155],[80.166,-18.066],[80.156,-18.008],[74.266,-19.375],[72.224,-22.846],[72.408,-24.968],[80.743,-28.86],[87.499,-24.042],[87.364,-23.882],[87.523,-23.941]],c:!0}]},{i:{x:.065,y:1},o:{x:.333,y:0},t:43.111,s:[{i:[[.64,-2.345],[4.185,-.118],[0,0],[1.521,.93],[-.228,1.272],[0,0],[-4.17,-.256],[.437,-2.405],[0,0],[0,0]],o:[[-.639,2.34],[0,0],[-2.216,.062],[-1.526,-.93],[0,0],[.437,-2.405],[4.165,.256],[0,0],[0,0],[-.273,1.441]],v:[[82.36,2.97],[75.416,7.059],[75.406,7.117],[69.516,5.75],[67.474,2.279],[72.408,-24.968],[80.743,-28.86],[87.499,-24.042],[83.489,-1.882],[83.648,-1.941]],c:!0}]},{i:{x:.32,y:1},o:{x:.333,y:0},t:52,s:[{i:[[-.209,-2.417],[4.185,-.118],[0,0],[1.521,.93],[-.228,1.272],[0,0],[-4.17,-.256],[.437,-2.405],[0,0],[0,0]],o:[[.214,2.416],[0,0],[-2.216,.062],[-1.526,-.93],[0,0],[.437,-2.405],[4.165,.256],[0,0],[0,0],[4.185,-.118]],v:[[164.36,.22],[157.166,4.809],[75.406,7.117],[69.516,5.75],[67.474,2.279],[72.408,-24.968],[80.743,-28.86],[87.499,-24.042],[83.489,-1.882],[156.398,-3.941]],c:!0}]},{i:{x:.32,y:1},o:{x:.68,y:0},t:82.25,s:[{i:[[-.209,-2.417],[4.185,-.118],[0,0],[1.521,.93],[-.228,1.272],[0,0],[-4.17,-.256],[.437,-2.405],[0,0],[0,0]],o:[[.214,2.416],[0,0],[-2.216,.062],[-1.526,-.93],[0,0],[.437,-2.405],[4.165,.256],[0,0],[0,0],[4.185,-.118]],v:[[164.36,.22],[157.166,4.809],[75.406,7.117],[69.516,5.75],[67.474,2.279],[72.408,-24.968],[80.743,-28.86],[87.499,-24.042],[83.489,-1.882],[156.398,-3.941]],c:!0}]},{i:{x:.96,y:1},o:{x:.68,y:0},t:88.5,s:[{i:[[-.209,-2.417],[4.185,-.118],[0,0],[1.521,.93],[-.228,1.272],[0,0],[-4.17,.26],[-2.499,.042],[0,0],[0,0]],o:[[.214,2.416],[0,0],[-2.216,.062],[-1.526,-.93],[0,0],[-.158,-1.782],[4.257,-.265],[0,0],[0,0],[4.185,-.118]],v:[[164.36,.22],[157.166,4.809],[75.406,7.117],[69.516,5.75],[67.474,2.279],[67.658,2.157],[73.493,-1.735],[83.499,-2.042],[83.489,-1.882],[156.398,-3.941]],c:!0}]},{t:92.25,s:[{i:[[-.15,-2.416],[2.928,-.118],[0,0],[1.065,.928],[-.16,1.272],[0,0],[-2.923,.045],[-1.748,.042],[0,0],[0,0]],o:[[.15,2.416],[0,0],[-1.551,.062],[-1.068,-.93],[0,0],[-.11,-1.782],[.967,-.015],[0,0],[0,0],[2.928,-.118]],v:[[164.424,.22],[159.392,4.809],[160.084,4.867],[155.963,3.5],[154.535,.029],[154.663,-.093],[158.745,-3.985],[158.75,-3.792],[158.743,-3.632],[158.854,-3.941]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:37,op:92.25,st:17.25,bm:0},{ddd:0,ind:4,ty:4,nm:"Success_Rond",parent:8,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[105.341,-7.997,0],ix:2},a:{a:0,k:[105.341,-7.997,0],ix:1},s:{a:1,k:[{i:{x:[.119,.119,.22],y:[1,1,1]},o:{x:[.573,.573,.72],y:[0,0,0]},t:19.75,s:[0,0,100]},{i:{x:[.119,.119,.22],y:[1,1,1]},o:{x:[.167,.167,.167],y:[0,0,0]},t:41,s:[100,100,100]},{i:{x:[.427,.427,.28],y:[1,1,1]},o:{x:[.881,.881,.78],y:[0,0,0]},t:82.25,s:[100,100,100]},{t:99.75,s:[0,0,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-39.256,-22.663],[39.256,-22.663],[39.256,22.663],[-39.256,22.663]],o:[[39.256,22.663],[-39.256,22.663],[-39.256,-22.663],[39.256,-22.663]],v:[[176.42,-49.032],[176.42,33.038],[34.261,33.038],[34.261,-49.032]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.690196096897,.941176474094,.854901969433,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:19.75,op:99.75,st:17.25,bm:0},{ddd:0,ind:7,ty:4,nm:"Touche telephone",parent:8,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-238.471,198.015,0],ix:2},a:{a:0,k:[-238.471,198.015,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[-13.539,-7.218],[12.932,-8.115],[13.544,7.213],[-12.932,8.115]],o:[[13.544,7.217],[-12.932,8.115],[-13.544,-7.217],[12.932,-8.115]],v:[[-212.213,181.421],[-211.107,209.181],[-259.048,210.814],[-260.149,183.054]],c:!0}]},{t:70.75,s:[{i:[[-13.539,-7.218],[12.932,-8.115],[13.544,7.213],[-12.932,8.115]],o:[[13.544,7.217],[-12.932,8.115],[-13.544,-7.217],[12.932,-8.115]],v:[[-212.213,181.421],[-211.107,209.181],[-259.048,210.814],[-260.149,183.054]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:105,st:7,bm:0},{ddd:0,ind:8,ty:4,nm:"Telephone",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[-251.922,144.89,0],ix:2},a:{a:0,k:[-233.922,192.89,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[-2.074,-1.197],[2.074,-1.197],[2.074,1.197],[-2.074,1.197]],o:[[2.074,1.197],[-2.074,1.197],[-2.074,-1.197],[2.074,-1.197]],v:[[319.873,-84.824],[319.873,-80.489],[312.364,-80.489],[312.364,-84.824]],c:!0}]},{t:70.75,s:[{i:[[-2.074,-1.197],[2.074,-1.197],[2.074,1.197],[-2.074,1.197]],o:[[2.074,1.197],[-2.074,1.197],[-2.074,-1.197],[2.074,-1.197]],v:[[319.873,-84.824],[319.873,-80.489],[312.364,-80.489],[312.364,-84.824]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[-2.074,-1.197],[0,0],[2.074,-1.197],[0,0],[2.074,1.197],[0,0],[-2.074,1.197],[0,0]],o:[[0,0],[2.074,1.197],[0,0],[-2.074,1.197],[0,0],[-2.074,-1.197],[0,0],[2.074,-1.197]],v:[[251.775,-124.147],[304.856,-93.501],[304.856,-89.166],[304.856,-89.166],[297.347,-89.166],[244.266,-119.812],[244.266,-124.147],[244.266,-124.147]],c:!0}]},{t:70.75,s:[{i:[[-2.074,-1.197],[0,0],[2.074,-1.197],[0,0],[2.074,1.197],[0,0],[-2.074,1.197],[0,0]],o:[[0,0],[2.074,1.197],[0,0],[-2.074,1.197],[0,0],[-2.074,-1.197],[0,0],[2.074,-1.197]],v:[[251.775,-124.147],[304.856,-93.501],[304.856,-89.166],[304.856,-89.166],[297.347,-89.166],[244.266,-119.812],[244.266,-124.147],[244.266,-124.147]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 2",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 3",np:1,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[0,0],[.04,3.179],[.759,1.414],[1.306,.928],[0,0],[-.041,-3.179],[-.76,-1.414],[-1.313,-.919]],o:[[2.431,1.385],[-.053,-1.604],[-.759,-1.414],[0,0],[-2.391,-1.385],[.043,1.609],[.76,1.414],[0,0]],v:[[-290.638,265.475],[-286.262,262.296],[-287.497,257.708],[-290.638,254.15],[-323.617,235.006],[-327.953,238.184],[-326.73,242.782],[-323.577,246.33]],c:!0}]},{t:70.75,s:[{i:[[0,0],[.04,3.179],[.759,1.414],[1.306,.928],[0,0],[-.041,-3.179],[-.76,-1.414],[-1.313,-.919]],o:[[2.431,1.385],[-.053,-1.604],[-.759,-1.414],[0,0],[-2.391,-1.385],[.043,1.609],[.76,1.414],[0,0]],v:[[-290.638,265.475],[-286.262,262.296],[-287.497,257.708],[-290.638,254.15],[-323.617,235.006],[-327.953,238.184],[-326.73,242.782],[-323.577,246.33]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[1.95,1.4],[0,0],[0,-4.685],[-1.139,-2.119],[-1.963,-1.385],[0,0],[0,4.685],[1.138,2.119]],o:[[0,0],[-3.606,-2.114],[.075,2.406],[1.139,2.119],[0,0],[3.647,2.119],[-.093,-2.406],[-1.138,-2.114]],v:[[-290.638,251.22],[-323.617,232.114],[-330.141,236.843],[-328.294,243.73],[-323.577,249.062],[-290.638,268.163],[-284.074,263.438],[-285.946,256.561]],c:!0}]},{t:70.75,s:[{i:[[1.95,1.4],[0,0],[0,-4.685],[-1.139,-2.119],[-1.963,-1.385],[0,0],[0,4.685],[1.138,2.119]],o:[[0,0],[-3.606,-2.114],[.075,2.406],[1.139,2.119],[0,0],[3.647,2.119],[-.093,-2.406],[-1.138,-2.114]],v:[[-290.638,251.22],[-323.617,232.114],[-330.141,236.843],[-328.294,243.73],[-323.577,249.062],[-290.638,268.163],[-284.074,263.438],[-285.946,256.561]],c:!0}]}],ix:2},nm:"Path 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 4",np:3,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[0,0],[0,0],[-6.002,.185],[-5.183,3.047],[0,0],[12.394,7.454],[0,0],[0,0],[5.084,-.219],[4.646,2.09],[0,0],[-8.71,5.051],[0,0],[0,0],[5.9,-.185],[5.098,-2.994],[0,0],[1.24,-2.284],[-.094,-2.605],[-1.425,-2.197],[-2.337,-1.157]],o:[[0,0],[5.359,2.722],[6.002,-.185],[0,0],[8.792,-5.906],[0,0],[0,0],[-4.452,2.482],[-5.084,.219],[0,0],[-7.495,-4.318],[0,0],[0,0],[-5.278,-2.669],[-5.9,.185],[0,0],[-2.227,1.332],[-1.24,2.289],[.116,2.615],[1.425,2.192],[0,0]],v:[[-409.307,163.491],[-170.263,301.981],[-152.951,305.85],[-135.906,300.921],[408.265,-14.552],[405.388,-39.562],[356.765,-67.708],[349.353,-63.39],[334.855,-59.283],[320.06,-62.127],[212.084,-124.571],[214.193,-141.556],[221.566,-145.874],[166.426,-177.727],[149.395,-181.513],[132.632,-176.668],[-410.279,138.193],[-415.577,143.719],[-417.329,151.19],[-414.974,158.538],[-409.226,163.652]],c:!0}]},{t:70.75,s:[{i:[[0,0],[0,0],[-6.002,.185],[-5.183,3.047],[0,0],[12.394,7.454],[0,0],[0,0],[5.084,-.219],[4.646,2.09],[0,0],[-8.71,5.051],[0,0],[0,0],[5.9,-.185],[5.098,-2.994],[0,0],[1.24,-2.284],[-.094,-2.605],[-1.425,-2.197],[-2.337,-1.157]],o:[[0,0],[5.359,2.722],[6.002,-.185],[0,0],[8.792,-5.906],[0,0],[0,0],[-4.452,2.482],[-5.084,.219],[0,0],[-7.495,-4.318],[0,0],[0,0],[-5.278,-2.669],[-5.9,.185],[0,0],[-2.227,1.332],[-1.24,2.289],[.116,2.615],[1.425,2.192],[0,0]],v:[[-409.307,163.491],[-170.263,301.981],[-152.951,305.85],[-135.906,300.921],[408.265,-14.552],[405.388,-39.562],[356.765,-67.708],[349.353,-63.39],[334.855,-59.283],[320.06,-62.127],[212.084,-124.571],[214.193,-141.556],[221.566,-145.874],[166.426,-177.727],[149.395,-181.513],[132.632,-176.668],[-410.279,138.193],[-415.577,143.719],[-417.329,151.19],[-414.974,158.538],[-409.226,163.652]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 5",np:3,cix:2,bm:0,ix:5,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[9.154,.039],[7.189,3.636],[0,0],[.203,7.781],[-1.697,3.004],[-2.95,1.774],[0,0],[-8.671,.27],[-7.757,-3.907],[0,0],[-1.92,-3.777],[.058,-4.242],[1.73,-2.812],[2.882,-1.566],[0,0]],o:[[-8.047,.019],[0,0],[-8.711,-5.254],[.003,-3.456],[1.697,-3.004],[0,0],[7.5,-4.383],[8.671,-.27],[0,0],[3.456,2.434],[1.92,3.777],[-.156,3.304],[-1.745,2.787],[0,0],[-7.9,4.651]],v:[[-153.526,319.862],[-176.701,314.365],[-423.605,170.577],[-437.421,150.577],[-434.827,140.721],[-427.737,133.429],[127.816,-188.073],[152.457,-195.163],[177.488,-189.621],[424.635,-45.55],[432.824,-36.092],[435.658,-23.88],[432.78,-14.553],[425.728,-7.913],[-127.474,312.814]],c:!0}]},{t:70.75,s:[{i:[[9.154,.039],[7.189,3.636],[0,0],[.203,7.781],[-1.697,3.004],[-2.95,1.774],[0,0],[-8.671,.27],[-7.757,-3.907],[0,0],[-1.92,-3.777],[.058,-4.242],[1.73,-2.812],[2.882,-1.566],[0,0]],o:[[-8.047,.019],[0,0],[-8.711,-5.254],[.003,-3.456],[1.697,-3.004],[0,0],[7.5,-4.383],[8.671,-.27],[0,0],[3.456,2.434],[1.92,3.777],[-.156,3.304],[-1.745,2.787],[0,0],[-7.9,4.651]],v:[[-153.526,319.862],[-176.701,314.365],[-423.605,170.577],[-437.421,150.577],[-434.827,140.721],[-427.737,133.429],[127.816,-188.073],[152.457,-195.163],[177.488,-189.621],[424.635,-45.55],[432.824,-36.092],[435.658,-23.88],[432.78,-14.553],[425.728,-7.913],[-127.474,312.814]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.874509811401,.976470589638,.941176474094,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 6",np:3,cix:2,bm:0,ix:6,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[.233,-.255],[0,0],[.71,-1.331],[.034,-1.517],[-.204,-.489],[-.389,-.362],[-.36,.08],[-.301,.211],[0,0],[-.685,1.337],[-.034,1.504],[.122,.523],[.233,.253],[.331,.092],[.33,-.095]],o:[[0,0],[-1.21,.896],[-.69,1.351],[-.044,.528],[.194,.497],[.36,.08],[.365,-.057],[0,0],[1.21,-.887],[.685,-1.338],[.122,-.523],[-.068,-.339],[-.233,-.253],[-.33,-.093],[-.331,.095]],v:[[351.992,45.605],[315.526,66.663],[312.609,70.044],[311.516,74.403],[311.759,75.95],[312.648,77.254],[313.742,77.254],[314.758,76.846],[351.22,55.788],[354.097,52.407],[355.19,48.089],[355.19,46.501],[354.729,45.595],[353.864,45.066],[352.853,45.069]],c:!0}]},{t:70.75,s:[{i:[[.233,-.255],[0,0],[.71,-1.331],[.034,-1.517],[-.204,-.489],[-.389,-.362],[-.36,.08],[-.301,.211],[0,0],[-.685,1.337],[-.034,1.504],[.122,.523],[.233,.253],[.331,.092],[.33,-.095]],o:[[0,0],[-1.21,.896],[-.69,1.351],[-.044,.528],[.194,.497],[.36,.08],[.365,-.057],[0,0],[1.21,-.887],[.685,-1.338],[.122,-.523],[-.068,-.339],[-.233,-.253],[-.33,-.093],[-.331,.095]],v:[[351.992,45.605],[315.526,66.663],[312.609,70.044],[311.516,74.403],[311.759,75.95],[312.648,77.254],[313.742,77.254],[314.758,76.846],[351.22,55.788],[354.097,52.407],[355.19,48.089],[355.19,46.501],[354.729,45.595],[353.864,45.066],[352.853,45.069]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[.758,.047],[.467,.24],[.345,.734],[-.083,.793],[-.821,1.583],[-1.463,1.015],[0,0],[-.646,.043],[-.569,-.307],[-.33,-.742],[.068,-.81],[.807,-1.578],[1.473,-1.046],[0,0]],o:[[-.525,0],[-.637,-.499],[-.321,-.729],[0,-1.787],[.826,-1.582],[0,0],[.52,-.381],[.642,-.043],[.651,.487],[.34,.739],[-.049,1.774],[-.792,1.627],[0,0],[-.671,.366]],v:[[313.3,78.965],[311.798,78.598],[310.301,76.724],[309.936,74.403],[311.19,69.274],[314.675,65.319],[351.142,44.301],[352.93,43.652],[354.787,44.057],[356.284,45.93],[356.692,48.293],[355.395,53.384],[351.949,57.458],[315.487,78.476]],c:!0}]},{t:70.75,s:[{i:[[.758,.047],[.467,.24],[.345,.734],[-.083,.793],[-.821,1.583],[-1.463,1.015],[0,0],[-.646,.043],[-.569,-.307],[-.33,-.742],[.068,-.81],[.807,-1.578],[1.473,-1.046],[0,0]],o:[[-.525,0],[-.637,-.499],[-.321,-.729],[0,-1.787],[.826,-1.582],[0,0],[.52,-.381],[.642,-.043],[.651,.487],[.34,.739],[-.049,1.774],[-.792,1.627],[0,0],[-.671,.366]],v:[[313.3,78.965],[311.798,78.598],[310.301,76.724],[309.936,74.403],[311.19,69.274],[314.675,65.319],[351.142,44.301],[352.93,43.652],[354.787,44.057],[356.284,45.93],[356.692,48.293],[355.395,53.384],[351.949,57.458],[315.487,78.476]],c:!0}]}],ix:2},nm:"Path 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 7",np:3,cix:2,bm:0,ix:7,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[2.391,-1.466],[0,0],[0,0],[0,0],[.787,-1.446],[.005,-1.648],[-2.43,1.385],[0,0],[0,0],[0,0],[-.778,1.435],[0,1.661]],o:[[0,0],[0,0],[0,0],[-1.327,.968],[-.763,1.456],[0,3.34],[0,0],[0,0],[0,0],[1.303,-.981],[.773,-1.468],[0,-3.258]],v:[[351.54,44.948],[340.44,51.384],[340.075,51.384],[315.117,65.885],[311.914,69.551],[310.743,74.276],[315.117,77.616],[326.301,71.099],[326.583,71.099],[351.54,56.638],[354.7,52.973],[355.876,48.207]],c:!0}]},{t:70.75,s:[{i:[[2.391,-1.466],[0,0],[0,0],[0,0],[.787,-1.446],[.005,-1.648],[-2.43,1.385],[0,0],[0,0],[0,0],[-.778,1.435],[0,1.661]],o:[[0,0],[0,0],[0,0],[-1.327,.968],[-.763,1.456],[0,3.34],[0,0],[0,0],[0,0],[1.303,-.981],[.773,-1.468],[0,-3.258]],v:[[351.54,44.948],[340.44,51.384],[340.075,51.384],[315.117,65.885],[311.914,69.551],[310.743,74.276],[315.117,77.616],[326.301,71.099],[326.583,71.099],[351.54,56.638],[354.7,52.973],[355.876,48.207]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.874509811401,.976470589638,.941176474094,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 8",np:2,cix:2,bm:0,ix:8,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[-.199,.546],[-.753,1.458],[-1.327,.958],[0,0],[-.52,-.001],[-.447,-.288],[0,0],[0,0],[.603,0],[.471,-.37],[0,0],[.753,-1.464],[.034,-1.635],[-.141,-.561],[-.413,-.404],[0,0],[.18,.609]],o:[[.019,-1.642],[.753,-1.458],[0,0],[.428,-.293],[.53,.005],[0,0],[0,0],[-.476,-.37],[-.598,0],[0,0],[-1.322,.974],[-.768,1.444],[-.141,.561],[.165,.557],[0,0],[-.433,-.462],[-.068,-.578]],v:[[310.782,74.321],[311.953,69.606],[315.117,65.93],[351.584,44.993],[353.042,44.546],[354.539,44.993],[350.491,42.102],[350.082,41.857],[348.42,41.286],[346.763,41.857],[310.296,62.753],[307.137,66.46],[305.922,71.144],[305.922,72.855],[306.811,74.321],[311.511,77.661],[310.578,76.032]],c:!0}]},{t:70.75,s:[{i:[[-.199,.546],[-.753,1.458],[-1.327,.958],[0,0],[-.52,-.001],[-.447,-.288],[0,0],[0,0],[.603,0],[.471,-.37],[0,0],[.753,-1.464],[.034,-1.635],[-.141,-.561],[-.413,-.404],[0,0],[.18,.609]],o:[[.019,-1.642],[.753,-1.458],[0,0],[.428,-.293],[.53,.005],[0,0],[0,0],[-.476,-.37],[-.598,0],[0,0],[-1.322,.974],[-.768,1.444],[-.141,.561],[.165,.557],[0,0],[-.433,-.462],[-.068,-.578]],v:[[310.782,74.321],[311.953,69.606],[315.117,65.93],[351.584,44.993],[353.042,44.546],[354.539,44.993],[350.491,42.102],[350.082,41.857],[348.42,41.286],[346.763,41.857],[310.296,62.753],[307.137,66.46],[305.922,71.144],[305.922,72.855],[306.811,74.321],[311.511,77.661],[310.578,76.032]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.690196096897,.941176474094,.854901969433,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 10",np:3,cix:2,bm:0,ix:9,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[0,0],[0,0],[.224,.653],[-.063,.688],[-.807,1.578],[-1.473,1.056],[0,0],[-.729,0],[-.588,-.436],[0,0],[0,0],[.379,0],[.335,-.186],[0,0],[.685,-1.346],[.034,-1.503],[-.122,-.495],[-.369,-.35]],o:[[0,0],[-.471,-.502],[-.224,-.653],[.049,-1.774],[.817,-1.62],[0,0],[.588,-.436],[.729,0],[0,0],[0,0],[-.335,-.186],[-.384,0],[0,0],[-1.23,.874],[-.685,1.338],[-.122,.495],[.165,.479],[0,0]],v:[[311.156,78.027],[306.456,74.931],[305.402,73.178],[305.159,71.143],[306.456,66.051],[309.941,61.978],[346.403,40.837],[348.43,40.166],[350.457,40.837],[354.87,43.974],[354.063,45.237],[352.969,44.954],[351.876,45.237],[315.044,65.888],[312.128,69.269],[311.035,73.587],[311.035,75.094],[311.846,76.357]],c:!0}]},{t:70.75,s:[{i:[[0,0],[0,0],[.224,.653],[-.063,.688],[-.807,1.578],[-1.473,1.056],[0,0],[-.729,0],[-.588,-.436],[0,0],[0,0],[.379,0],[.335,-.186],[0,0],[.685,-1.346],[.034,-1.503],[-.122,-.495],[-.369,-.35]],o:[[0,0],[-.471,-.502],[-.224,-.653],[.049,-1.774],[.817,-1.62],[0,0],[.588,-.436],[.729,0],[0,0],[0,0],[-.335,-.186],[-.384,0],[0,0],[-1.23,.874],[-.685,1.338],[-.122,.495],[.165,.479],[0,0]],v:[[311.156,78.027],[306.456,74.931],[305.402,73.178],[305.159,71.143],[306.456,66.051],[309.941,61.978],[346.403,40.837],[348.43,40.166],[350.457,40.837],[354.87,43.974],[354.063,45.237],[352.969,44.954],[351.876,45.237],[315.044,65.888],[312.128,69.269],[311.035,73.587],[311.035,75.094],[311.846,76.357]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 11",np:2,cix:2,bm:0,ix:10,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.17,y:1},o:{x:.167,y:0},t:29.5,s:[{i:[[5.152,2.931],[0,0],[0,0],[8.559,-.263],[7.397,-4.333],[0,0],[.829,-.783],[-21.473,-12.627],[0,0],[0,0],[0,0],[-8.422,.272],[-7.298,4.238],[0,0],[-.904,.748],[-2.654,5.32],[.248,5.948],[3.086,5.078]],o:[[0,0],[0,0],[-7.65,-3.871],[-8.564,.263],[0,0],[-.95,.627],[-18.961,14.741],[0,0],[0,0],[0,0],[7.531,3.801],[8.423,-.282],[0,0],[1.011,-.58],[4.889,-3.354],[2.659,-5.32],[-.248,-5.947],[-3.091,-5.079]],v:[[425.038,-44.139],[424.27,-44.791],[177.08,-188.699],[152.38,-194.196],[128.059,-187.192],[-427.213,134.596],[-429.887,136.716],[-424.62,195.409],[-424.215,195.409],[-423.526,195.9],[-176.785,339.561],[-152.475,344.941],[-128.531,338.054],[424.635,17.285],[427.512,15.29],[439.016,2.065],[442.691,-15.115],[437.607,-31.926]],c:!0}]},{t:70.75,s:[{i:[[5.152,2.931],[0,0],[0,0],[8.559,-.263],[7.397,-4.333],[0,0],[.829,-.783],[-21.473,-12.627],[0,0],[0,0],[0,0],[-8.422,.272],[-7.298,4.238],[0,0],[-.904,.748],[-2.654,5.32],[.248,5.948],[3.086,5.078]],o:[[0,0],[0,0],[-7.65,-3.871],[-8.564,.263],[0,0],[-.95,.627],[-18.961,14.741],[0,0],[0,0],[0,0],[7.531,3.801],[8.423,-.282],[0,0],[1.011,-.58],[4.889,-3.354],[2.659,-5.32],[-.248,-5.947],[-3.091,-5.079]],v:[[425.038,-44.139],[424.27,-44.791],[177.08,-188.699],[152.38,-194.196],[128.059,-187.192],[-427.213,134.596],[-429.887,136.716],[-424.62,195.409],[-424.215,195.409],[-423.526,195.9],[-176.785,339.561],[-152.475,344.941],[-128.531,338.054],[424.635,17.285],[427.512,15.29],[439.016,2.065],[442.691,-15.115],[437.607,-31.926]],c:!0}]}],ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.5,ix:5},lc:1,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.113725490868,.113725490868,.105882354081,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformer "}],nm:"Group 12",np:3,cix:2,bm:0,ix:11,mn:"ADBE Vector Group",hd:!1}],ip:0,op:105,st:7,bm:0}]}],layers$2=[{ddd:0,ind:1,ty:0,nm:"PHONE_SCA_AUTHENTIFICATION_APPROVAL_1000x1000",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[100,100,0],ix:2},a:{a:0,k:[500,500,0],ix:1},s:{a:0,k:[20,20,100],ix:6}},ao:0,w:1e3,h:1e3,ip:0,op:105,st:0,bm:0}],markers$2=[],scaApprovalAnimation={v:v$2,meta:meta,fr:fr$3,ip:ip$2,op:op$2,w:w$2,h:h$2,nm:nm$2,ddd:ddd$2,assets:assets$2,layers:layers$2,markers:markers$2};function prepareScaPollingCall({scaSessionToken:e,stagingToken:t}){return{path:`/v2/sca_sessions/${encodeURIComponent(e)}`,options:{method:"GET",headers:{stagingToken:t,scaSessionToken:e}}}}const SCA_POLLING_RESULTS={WAITING:"waiting"};function serializeScaPollingResponse(e){return{result:e.result,canceledAt:e.canceled_at}}function serializePreconditionRequiredResponse(e){return{message:e.message,code:e.code,scaSessionToken:e.sca_session_token,actionType:e.action_type}}async function*pollScaSession({scaSettings:e,operationSettings:t}){if(!e||!e.scaSessionToken)throw new InvalidParametersError("scaSettings with scaSessionToken is required to poll SCA session.");if(!t?.proxyRequestFunction)throw new InvalidParametersError("operationSettings with proxyRequestFunction is required to poll SCA session.");const r=prepareScaPollingCall({scaSessionToken:e.scaSessionToken,stagingToken:t.stagingToken});let n;do{n&&(yield n);n=serializeScaPollingResponse((await callProxyFunction({proxyFunction:t.proxyRequestFunction,networkCallDescriptor:r})).body)}while(n.result===SCA_POLLING_RESULTS.WAITING);return n}let isLinkCopied=!1;function getScaTestingUrl(e,t){return`${environmentManager.getEnvironmentUrls().EMBED_BASE_URL}/passkey/identification/${e}#staging_token=${t}`}function getShortenDisplayUrl(e){return`${environmentManager.getEnvironmentUrls().EMBED_BASE_URL}/.../${e?.slice(-4)}`}async function copyLinkToClipboard(e){try{await navigator.clipboard.writeText(e),isLinkCopied=!0}catch(e){isLinkCopied=!1,console.error("Could not copy the link to the clipboard:",e)}}function renderTestingScaHelper(e){const t=getScaTestingUrl(e?.options.headers.scaSessionToken),r=getShortenDisplayUrl(e?.options.headers.scaSessionToken);return x`<div data-testing-wrapper>
452
451
  <qonto-text-heading level="2"
453
452
  >Almost there: What's next?</qonto-text-heading
454
453
  >
@@ -514,7 +513,7 @@ const a=Symbol.for(""),o$1=e=>{if(e?.r===a)return e?._$litStatic$},s=e=>({_$litS
514
513
  </qonto-button>
515
514
  </div>
516
515
  ${environmentManager.isProductionEnvironment()?null:renderTestingScaHelper(this.networkCallDescriptor)}
517
- `}};async function getSepaTransfers(e){const{stagingToken:t,proxyRequestFunction:r,accessToken:a,paginationSettings:n}=validateOperationSettingsParams(e?.operationSettings||{});if(r){const e=prepareGetSepaTransfersCall({paginationSettings:n}),t=await callProxyFunction({proxyFunction:r,networkCallDescriptor:e}),a=t.body.transfers.map(serializeSepaTransfer),i=serializePaginationResponse(t.body.meta);return{transfers:a,...i?{meta:i}:{}}}{const e=a||validatePresenceOfAuthToken(),r=await getSepaTransfers$1({accessToken:e,stagingToken:t,paginationSettings:n}),i=r.transfers.map(serializeSepaTransfer),o=serializePaginationResponse(r.meta);return{transfers:i,...o?{meta:o}:{}}}}async function getSepaTransfer({sepaTransferSettings:e,operationSettings:t}){const r=validateGetSepaTransferParams(e?.sepaTransferId),{proxyRequestFunction:a,accessToken:n,stagingToken:i}=validateOperationSettingsParams(t||{});if(a){const e=prepareGetSepaTransferCall({sepaTransferId:r});return serializeSepaTransfer((await callProxyFunction({proxyFunction:a,networkCallDescriptor:e})).body.transfer)}{const e=n||validatePresenceOfAuthToken();return serializeSepaTransfer(await getSepaTransfer$1({sepaTransferId:r,accessToken:e,stagingToken:i}))}}async function*createSepaTransfer({sepaTransferSettings:e,operationSettings:t}){const{proxyRequestFunction:r,proxyEndpointDescriptor:a,accessToken:n,stagingToken:i}=validateOperationSettingsParams(t||{}),o=i||authManager.getStagingToken(),s=t?.idempotencyKey||v4();let l;validateTransferBeneficiaryParams(e);const c=await findBeneficiary({sepaTransferSettings:e,operationSettings:t}),h={name:c.name,iban:c.iban},d=await verifySepaPayee({sepaPayee:h,operationSettings:t}),p=yield serializeToVopVerificationResult(d);let u;if("string"==typeof p){if(p===VOP_DECISIONS.REJECT)return}else{if(p.vopDecision===VOP_DECISIONS.REJECT)return;u=p.sepaTransferSettings}const m={...e,...u};validateCreateSepaTransferParams(m);const f={...m,beneficiary:c};if(f.beneficiary?.trusted)if(r||a){const e=prepareCreateSepaTransferCall({transfer:f,vopProofToken:d.proof_token.token,idempotencyKey:s});l=(await callProxyFunction({proxyFunction:r,networkCallDescriptor:e,proxyEndpointDescriptor:a})).body.transfer}else{const e=n||validatePresenceOfAuthToken();l=await createSepaTransfer$1({transfer:f,vopProofToken:d.proof_token.token,accessToken:e,stagingToken:o||void 0,idempotencyKey:s})}else{if(!isRunningInBrowser())throw new InvalidRuntimeError(RUNTIME_ENVIRONMENT.BROWSER);const{uiParentElementId:e,proxyEndpointDescriptor:r,proxyRequestFunction:a,locale:i}=validateOperationSettingsParams(t,{requiresUI:!0}),c=n||validatePresenceOfAuthToken(),h=prepareCreateSepaTransferCall({transfer:f,vopProofToken:d.proof_token.token,accessToken:c,stagingToken:o||void 0,idempotencyKey:s});let p;try{if(a||r){l=(await callProxyFunction({proxyFunction:a,networkCallDescriptor:h,proxyEndpointDescriptor:r})).body.transfer}else l=await makeNetworkCall(h)}catch(e){if(!(e instanceof EmbedApiError&&e.code===HTTP_CODES.PRECONDITION_REQUIRED))throw e;p=serializePreconditionRequiredResponse(e.data.body).scaSessionToken}const u=createSepaTransferScaElement({networkCallDescriptor:h,scaSessionToken:p,operationSettings:{uiParentElementId:e,proxyRequestFunction:a,locale:i}});try{l=await waitForSepaTransferScaResult(u)}finally{u.remove()}}return serializeSepaTransfer(l)}async function cancelSepaTransfer({sepaTransferSettings:e,operationSettings:t}){const r=validateCancelSepaTransferParams(e?.sepaTransferId),{proxyRequestFunction:a,accessToken:n,stagingToken:i}=validateOperationSettingsParams(t||{});if(a){const e=prepareCancelSepaTransferCall({sepaTransferId:r});await callProxyFunction({proxyFunction:a,networkCallDescriptor:e})}else{const e=n||validatePresenceOfAuthToken();await cancelSepaTransfer$1({sepaTransferId:r,accessToken:e,stagingToken:i})}}async function verifySepaPayee({sepaPayee:e,operationSettings:t}){const{proxyRequestFunction:r,accessToken:a,stagingToken:n}=validateOperationSettingsParams(t||{});if(r){const t=prepareVerifySepaPayeeCall({sepaPayee:e});return(await callProxyFunction({proxyFunction:r,networkCallDescriptor:t})).body}{const t=a||validatePresenceOfAuthToken();return await verifySepaPayee$1({sepaPayee:e,accessToken:t,stagingToken:n})}}async function getSepaTransferCreationFlowLink({sepaTransferSettings:e,operationSettings:t}){const r=validateGetSepaTransferCreationFlowLinkParams(e),{proxyRequestFunction:a,stagingToken:n,accessToken:i}=validateOperationSettingsParams(t||{}),o=a?{proxyRequestFunction:a}:{stagingToken:n,accessToken:i||validatePresenceOfAuthToken()},s=await authLinks.request({requestSettings:{action:AUTH_LINK_ACTIONS.SEPA_TRANSFER_CREATE,callbackUrl:r},operationSettings:o});return{...s,url:decorateUrlWithExtraParams(s.url,t)}}QontoScaPasskeyWaiting.styles=qontoScaPasskeyWaitingStyles,__decorate([n$3({type:String})],QontoScaPasskeyWaiting.prototype,"phoneLast4Digits",void 0),__decorate([n$3({type:Object})],QontoScaPasskeyWaiting.prototype,"networkCallDescriptor",void 0),__decorate([n$3({type:Object})],QontoScaPasskeyWaiting.prototype,"operationSettings",void 0),__decorate([r$1()],QontoScaPasskeyWaiting.prototype,"isResending",void 0),__decorate([r$1()],QontoScaPasskeyWaiting.prototype,"isLinkCopied",void 0),QontoScaPasskeyWaiting=__decorate([localized(),t$1("qonto-sca-passkey-waiting")],QontoScaPasskeyWaiting);const sepaTransfers$1={getSepaTransfers:getSepaTransfers,getSepaTransfer:getSepaTransfer,createSepaTransfer:createSepaTransfer,cancelSepaTransfer:cancelSepaTransfer,getSepaTransferCreationFlowLink:getSepaTransferCreationFlowLink,bulkTransfers:{getBulkTransfers:getBulkTransfers,getBulkTransfer:getBulkTransfer,createBulkTransfer:createBulkTransfer}},sepaTransfers=sepaTransfers$1,LINK_TYPES={GOOD:"good",SERVICE:"service"},CURRENCIES={AED:"AED",AUD:"AUD",BGN:"BGN",CAD:"CAD",CHF:"CHF",CNY:"CNY",CZK:"CZK",DKK:"DKK",EUR:"EUR",GBP:"GBP",GHS:"GHS",HKD:"HKD",HUF:"HUF",ILS:"ILS",INR:"INR",MXN:"MXN",NOK:"NOK",NZD:"NZD",PEN:"PEN",PLN:"PLN",RON:"RON",RSD:"RSD",SAR:"SAR",SEK:"SEK",SGD:"SGD",TRY:"TRY",USD:"USD",ZAR:"ZAR",ZMW:"ZMW"},isValidCurrency=e=>Object.values(CURRENCIES).includes(e),validateCurrency=e=>{if(!isValidCurrency(e))throw new InvalidParametersError(`currency ${e} is not valid, valid currencies are ${Object.values(CURRENCIES).join(", ")}`)},UNITS={UNIT:"unit",HOUR:"hour",DAY:"day",MONTH:"month",GRAM:"gram",KILOGRAM:"kilogram",LITER:"liter",METER:"meter",SQUARE_METER:"square_meter",CUBIC_METER:"cubic_meter",AMPERE:"ampere",NUMBER_OF_ARTICLES:"number_of_articles",CENTIMETER:"centimeter",CUBIC_METER_PER_HOUR:"cubic_meter_per_hour",GIGAJOULE:"gigajoule",GIGAWATT:"gigawatt",GIGAWATT_HOUR:"gigawatt_hour",HALF_YEAR:"half_year",JOULE:"joule",KILOJOULE:"kilojoule",KILOVAR:"kilovar",KILOWATT:"kilowatt",KILOWATT_HOUR:"kilowatt_hour",MEGAJOULE:"megajoule",MEGAWATT:"megawatt",MEGAWATT_HOUR:"megawatt_hour",MILLIGRAM:"milligram",MILLILITER:"milliliter",MILLIMETER:"millimeter",MINUTE:"minute",PAIR:"pair",QUARTER:"quarter",SECOND:"second",SET:"set",TON:"ton",TWO_WEEK:"two_week",WATT_HOUR:"watt_hour",WEEK:"week",YEAR:"year"},isValidUnit=e=>Object.values(UNITS).includes(e),validateUnit=e=>{if(!isValidUnit(e))throw new InvalidParametersError(`unit ${e} is not valid, valid units are ${Object.values(UNITS).join(", ")}`)},requiredCreatePaymentLinkParams=[{name:"id"},{name:"title"},{name:"type"},{name:"quantity"},{name:"measureUnit"},{name:"unitPrice"},{name:"vatRate"}],requiredPriceParams=[{name:"currency"},{name:"value"}];function validateItems(e){if(!e||!Array.isArray(e))return[];e.forEach((e=>{validatePresenceOfRequiredParams(e,requiredCreatePaymentLinkParams),validatePresenceOfRequiredParams(e.unitPrice,requiredPriceParams);const t=[...validateExpectedStringValues({id:e.id,title:e.title,vatRate:e.vatRate,currency:e.unitPrice.currency,measureUnit:e.measureUnit,unitPrice:e.unitPrice.value,...e.description?{description:e.description}:{}}),...validateExpectedNumericValues({quantity:e.quantity})].flat();if(t.length>0)throw new InvalidParametersError(t);validateType(e.type),validateCurrency(e.unitPrice.currency),validateUnit(e.measureUnit)}))}const validateType=e=>{if(!Object.values(LINK_TYPES).includes(e))throw new InvalidParametersError(`type ${e} is not valid, valid types are ${Object.values(LINK_TYPES).join(", ")}`)};function validatePaymentLinkCreationFlowParams(e){if(!e?.callbackUrl)throw new InvalidParametersError("callbackUrl parameter is required for the payment link creation flow");if("string"!=typeof e.callbackUrl)throw new InvalidParametersError("callbackUrl must be a string");if(""===e.callbackUrl.trim())throw new InvalidParametersError("callbackUrl cannot be empty");return e.callbackUrl}const getPaymentLinkCreationFlowUrl=async({paymentLinkSettings:e,operationSettings:t})=>{const{items:r}=e;validateItems(r);const a=validatePaymentLinkCreationFlowParams(e),n=await request({requestSettings:{action:AUTH_LINK_ACTIONS.PAYMENT_LINK_CREATE,callbackUrl:a},operationSettings:t}),i=new URLSearchParams({...r?{items:JSON.stringify(r)}:{}});return i.toString()?`${n.url}?${i.toString()}`:n.url},paymentLinks$1={getPaymentLinkCreationFlowUrl:getPaymentLinkCreationFlowUrl},paymentLinks=paymentLinks$1,ORGANIZATION_ENDPOINT="/v2/organization/",BANK_ACCOUNTS_ENDPOINT="/v2/bank_accounts/",prepareGetOrganization=({accessToken:e,stagingToken:t})=>({path:`${ORGANIZATION_ENDPOINT}`,options:{method:"GET",headers:{accessToken:e,stagingToken:t}}}),getOrganization$1=async({accessToken:e,stagingToken:t})=>{const r=prepareGetOrganization({accessToken:e,stagingToken:t});return await makeNetworkCall(r)},prepareGetBankAccounts=({accessToken:e,stagingToken:t})=>({path:`${BANK_ACCOUNTS_ENDPOINT}`,options:{method:"GET",headers:{accessToken:e,stagingToken:t}}}),getBankAccounts$1=async({accessToken:e,stagingToken:t})=>{const r=prepareGetBankAccounts({accessToken:e,stagingToken:t});return await makeNetworkCall(r)},serializeOrganization=e=>({id:e.id,slug:e.slug,legalName:e.legal_name,legalNumber:e.legal_number,legalSector:e.legal_sector,legalRegistrationDate:e.legal_registration_date,legalAddress:e.legal_address,legalForm:e.legal_form,legalCountry:e.legal_country,legalShareCapital:e.legal_share_capital,locale:e.locale,contractSignedAt:e.contract_signed_at,bankAccounts:e.bank_accounts.map(serializeBankAccount)}),serializeBankAccount=e=>({id:e?.id,slug:e.slug,iban:e.iban,bic:e.bic,currency:e.currency,balance:parseFloat(e.balance),balanceCents:e.balance_cents,authorizedBalance:e.authorized_balance,authorizedBalanceCents:e.authorized_balance_cents,name:e.name,updatedAt:new Date(e.updated_at),status:e.status,main:e.main}),getOrganization=async e=>{const{stagingToken:t,proxyRequestFunction:r}=validateOperationSettingsParams(e);if(r){const e=prepareGetOrganization({stagingToken:t}),a=await callProxyFunction({proxyFunction:r,networkCallDescriptor:e});return serializeOrganization(a.body.organization)}{const r=e.accessToken||validatePresenceOfAuthToken(),a=await getOrganization$1({accessToken:r,stagingToken:t});return serializeOrganization(a.organization)}},getBankAccounts=async e=>{const{stagingToken:t,proxyRequestFunction:r}=validateOperationSettingsParams(e);if(r){const e=prepareGetBankAccounts({stagingToken:t});return(await callProxyFunction({proxyFunction:r,networkCallDescriptor:e})).body.bank_accounts.map(serializeBankAccount)}{const r=e.accessToken||validatePresenceOfAuthToken();return(await getBankAccounts$1({accessToken:r,stagingToken:t})).bank_accounts.map(serializeBankAccount)}},organizations$1={getOrganization:getOrganization,getBankAccounts:getBankAccounts},organizations=organizations$1,TRANSACTIONS_ENDPOINT="/v2/transactions";function prepareGetTransactionsCall({bankAccountId:e,iban:t,status:r,updatedAtFrom:a,updatedAtTo:n,emittedAtFrom:i,emittedAtTo:o,settledAtFrom:s,settledAtTo:l,side:c,operationType:h,withAttachments:d,paginationSettings:p,accessToken:u,stagingToken:m}){const f={method:"GET",headers:{accessToken:u,stagingToken:m}},g=new URLSearchParams;e&&g.append("bank_account_id",e),t&&g.append("iban",t),r&&g.append("status",r),a&&g.append("updated_at_from",a),n&&g.append("updated_at_to",n),i&&g.append("emitted_at_from",i),o&&g.append("emitted_at_to",o),s&&g.append("settled_at_from",s),l&&g.append("settled_at_to",l),c&&g.append("side",c),h&&g.append("operation_type",h),void 0!==d&&g.append("with_attachments",String(d));const y=buildPaginationParams(p);for(const[e,t]of y)g.append(e,t);const v=g.toString();return{path:`${TRANSACTIONS_ENDPOINT}${v?`?${v}`:""}`,options:f}}async function getTransactions$1(e){const t=prepareGetTransactionsCall(e),{transactions:r,meta:a}=await makeNetworkCall(t);return{transactions:r,meta:a}}function prepareGetTransactionCall({transactionId:e,accessToken:t,stagingToken:r}){return{path:`${TRANSACTIONS_ENDPOINT}/${e}`,options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}async function getTransaction$1(e){const t=prepareGetTransactionCall(e),{transaction:r}=await makeNetworkCall(t);return r}function serializeTransaction(e){return{transactionId:e.transaction_id,amount:e.amount,amountCents:e.amount_cents,settledBalance:e.settled_balance,settledBalanceCents:e.settled_balance_cents,attachmentIds:e.attachment_ids,localAmount:e.local_amount,localAmountCents:e.local_amount_cents,side:e.side,operationType:e.operation_type,currency:e.currency,localCurrency:e.local_currency,label:e.label,settledAt:new Date(e.settled_at),emittedAt:new Date(e.emitted_at),updatedAt:new Date(e.updated_at),status:e.status,note:e.note,reference:e.reference,vatAmount:e.vat_amount,vatAmountCents:e.vat_amount_cents,vatRate:e.vat_rate,initiatorId:e.initiator_id,labelIds:e.label_ids,attachmentLost:e.attachment_lost,attachmentRequired:e.attachment_required,cardLastDigits:e.card_last_digits,category:e.category,cashflowCategory:{name:e.cashflow_category?.name||""},cashflowSubcategory:{name:e.cashflow_subcategory?.name||""},id:e.id,subjectType:e.subject_type,...e.transfer?{transfer:{counterpartyAccountNumber:e.transfer.counterparty_account_number,counterpartyName:e.transfer.counterparty_name,counterpartyBic:e.transfer.counterparty_bic,counterpartyIban:e.transfer.counterparty_iban}}:{}}}function validateGetTransactionParams(e){if(!e)throw new InvalidParametersError("transactionSettings parameter is required for the called function");if(!e.transactionId)throw new InvalidParametersError("transactionSettings.transactionId parameter is required for the called function");if(e.transactionId&&"string"!=typeof e.transactionId)throw new InvalidParametersError("transactionSettings.transactionId must be a string.");return e}async function getTransactions(e){const{stagingToken:t,proxyRequestFunction:r,accessToken:a,paginationSettings:n}=validateOperationSettingsParams(e?.operationSettings||{}),i={...e?.transactionSettings||{},paginationSettings:n};if(r){const e=prepareGetTransactionsCall(i),t=await callProxyFunction({proxyFunction:r,networkCallDescriptor:e});return{transactions:t.body.transactions.map(serializeTransaction),meta:t.body.meta}}{const e=a||validatePresenceOfAuthToken(),r=await getTransactions$1({...i,accessToken:e,stagingToken:t});return{transactions:r.transactions.map(serializeTransaction),meta:r.meta}}}async function getTransaction({transactionSettings:e,operationSettings:t}){const{proxyRequestFunction:r,accessToken:a,stagingToken:n}=validateOperationSettingsParams(t||{}),{transactionId:i}=validateGetTransactionParams(e);if(r){const e=prepareGetTransactionCall({transactionId:i});return serializeTransaction((await callProxyFunction({proxyFunction:r,networkCallDescriptor:e})).body.transaction)}{const e=a||validatePresenceOfAuthToken();return serializeTransaction(await getTransaction$1({transactionId:i,accessToken:e,stagingToken:n}))}}const transactions$1={getTransactions:getTransactions,getTransaction:getTransaction},transactions=transactions$1,UI_ELEMENT_NAMES={TRANSFER_LIST:"transfer-list",SEPA_TRANSFER_CREATION:"sepa-transfer-creation"};function validateCreateUIElementParams(e){if(!e?.uiElementName)throw new InvalidParametersError("uiElementSettings.uiElementName is required when calling createUIElement");const t=Object.values(UI_ELEMENT_NAMES);if(!t.includes(e?.uiElementName))throw new InvalidParametersError(`uiElementSettings.uiElementName must be one of ${t.join(", ")}`);return{uiElementName:e.uiElementName}}const transferListStyles=i$4`
516
+ `}};async function getSepaTransfers$1(e){const{proxyRequestFunction:t,proxyEndpointDescriptor:r,paginationSettings:n}=validateClientOperationSettings(e?.operationSettings,'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. If you need to use accessToken, import from "@qonto/embed-sdk/sepa-transfers/server".'),i=prepareGetSepaTransfersCall({paginationSettings:n}),a=await callProxyFunction({proxyFunction:t,proxyEndpointDescriptor:r,networkCallDescriptor:i}),o=a.body.transfers.map(serializeSepaTransfer),s=serializePaginationResponse(a.body.meta);return{transfers:o,...s?{meta:s}:{}}}async function getSepaTransfer({sepaTransferSettings:e,operationSettings:t}){const r=validateGetSepaTransferParams(e?.sepaTransferId),{proxyRequestFunction:n,proxyEndpointDescriptor:i}=validateClientOperationSettings(t,'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. If you need to use accessToken, import from "@qonto/embed-sdk/sepa-transfers/server".'),a=prepareGetSepaTransferCall({sepaTransferId:r});return serializeSepaTransfer((await callProxyFunction({proxyFunction:n,proxyEndpointDescriptor:i,networkCallDescriptor:a})).body.transfer)}async function*createSepaTransfer({sepaTransferSettings:e,operationSettings:t}){const{proxyRequestFunction:r,proxyEndpointDescriptor:n,uiParentElementId:i,locale:a}=validateClientOperationSettings(t),o=authManager.getStagingToken(),s=t?.idempotencyKey||v4();let l;validateTransferBeneficiaryParams(e);const c=await findBeneficiary({sepaTransferSettings:e,operationSettings:t}),d={name:c.name,iban:c.iban},u=await verifySepaPayee({sepaPayee:d,operationSettings:t}),p=yield serializeToVopVerificationResult(u);let h;if("string"==typeof p){if(p===VOP_DECISIONS.REJECT)return}else{if(p.vopDecision===VOP_DECISIONS.REJECT)return;h=p.sepaTransferSettings}const f={...e,...h};validateCreateSepaTransferParams(f);const m={...f,beneficiary:c};if(m.beneficiary?.trusted){const e=prepareCreateSepaTransferCall({transfer:m,vopProofToken:u.proof_token.token,idempotencyKey:s});l=(await callProxyFunction({proxyFunction:r,proxyEndpointDescriptor:n,networkCallDescriptor:e})).body.transfer}else{if(!isRunningInBrowser())throw new InvalidRuntimeError(RUNTIME_ENVIRONMENT.BROWSER);if(!i)throw new InvalidParametersError("operationSettings.uiParentElementId is required for creating transfers to untrusted beneficiaries. This operation requires UI interaction for SCA.");const e=prepareCreateSepaTransferCall({transfer:m,vopProofToken:u.proof_token.token,stagingToken:o||void 0,idempotencyKey:s});let t;try{l=(await callProxyFunction({proxyFunction:r,proxyEndpointDescriptor:n,networkCallDescriptor:e})).body.transfer}catch(e){if(!(e instanceof EmbedApiError&&e.code===HTTP_CODES.PRECONDITION_REQUIRED))throw e;t=serializePreconditionRequiredResponse(e.data.body).scaSessionToken}const c=createSepaTransferScaElement({networkCallDescriptor:e,scaSessionToken:t,operationSettings:{uiParentElementId:i,proxyRequestFunction:r,locale:a}});try{l=await waitForSepaTransferScaResult(c)}finally{c.remove()}}return{transfer:serializeSepaTransfer(l),meta:{idempotencyKey:s}}}async function cancelSepaTransfer({sepaTransferSettings:e,operationSettings:t}){const r=validateCancelSepaTransferParams(e?.sepaTransferId),{proxyRequestFunction:n,proxyEndpointDescriptor:i}=validateClientOperationSettings(t,'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. If you need to use accessToken, import from "@qonto/embed-sdk/sepa-transfers/server".'),a=prepareCancelSepaTransferCall({sepaTransferId:r});await callProxyFunction({proxyFunction:n,proxyEndpointDescriptor:i,networkCallDescriptor:a})}async function verifySepaPayee({sepaPayee:e,operationSettings:t}){const{proxyRequestFunction:r,proxyEndpointDescriptor:n}=validateClientOperationSettings(t,'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. If you need to use accessToken, import from "@qonto/embed-sdk/sepa-transfers/server".'),i=prepareVerifySepaPayeeCall({sepaPayee:e});return(await callProxyFunction({proxyFunction:r,proxyEndpointDescriptor:n,networkCallDescriptor:i})).body}async function getSepaTransferCreationFlowLink({sepaTransferSettings:e,operationSettings:t}){const r=validateGetSepaTransferCreationFlowLinkParams(e),{proxyRequestFunction:n,proxyEndpointDescriptor:i}=validateClientOperationSettings(t,'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. If you need to use accessToken, import from "@qonto/embed-sdk/sepa-transfers/server".'),a=await authLinks.request({requestSettings:{action:AUTH_LINK_ACTIONS.SEPA_TRANSFER_CREATE,callbackUrl:r},operationSettings:{proxyRequestFunction:n,proxyEndpointDescriptor:i}});return{...a,url:decorateUrlWithExtraParams(a.url,t)}}function serializeBulkTransfer(e){return{id:e.id,initiatorId:e.initiator_id,createdAt:new Date(e.created_at),updatedAt:new Date(e.updated_at),totalCount:Number(e.total_count),completedCount:Number(e.completed_count),failedCount:Number(e.failed_count),pendingCount:Number(e.pending_count),results:e.results.map((e=>({clientTransferId:e.client_transfer_id,transferId:e.transfer_id??null,errors:e.errors||null,status:e.status})))}}function serializeToNewBulkTransferDataObject(e){return{beneficiary_id:e.beneficiaryId||e.beneficiary?.id,client_transfer_id:e.clientTransferId,amount:e.amount.toString(),reference:e.reference,...e.note?{note:e.note}:{},...e.scheduledDate?{scheduled_date:e.scheduledDate.toISOString().split("T")[0]}:{},...e.attachmentsIds?{attachment_ids:e.attachmentsIds}:{}}}function serializeToBulkVopVerificationResult(e){return{id:e.id,response:{matchResult:e.response.match_result,matchedName:e.response.matched_name}}}QontoScaPasskeyWaiting.styles=qontoScaPasskeyWaitingStyles,__decorate([n$3({type:String})],QontoScaPasskeyWaiting.prototype,"phoneLast4Digits",void 0),__decorate([n$3({type:Object})],QontoScaPasskeyWaiting.prototype,"networkCallDescriptor",void 0),__decorate([n$3({type:Object})],QontoScaPasskeyWaiting.prototype,"operationSettings",void 0),__decorate([r$1()],QontoScaPasskeyWaiting.prototype,"isResending",void 0),__decorate([r$1()],QontoScaPasskeyWaiting.prototype,"isLinkCopied",void 0),QontoScaPasskeyWaiting=__decorate([localized(),t$1("qonto-sca-passkey-waiting")],QontoScaPasskeyWaiting);const BULK_TRANSFERS_ENDPOINT="/v2/sepa/bulk_transfers";function prepareGetBulkTransfersCall({paginationSettings:e,accessToken:t,stagingToken:r}){const n={method:"GET",headers:{accessToken:t,stagingToken:r}},i=buildPaginationParams(e),a=i.size?`?${i.toString()}`:"";return{path:`${BULK_TRANSFERS_ENDPOINT}${a}`,options:n}}function prepareGetBulkTransferCall({bulkTransferId:e,accessToken:t,stagingToken:r}){return{path:`${BULK_TRANSFERS_ENDPOINT}/${e}`,options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}function prepareVerifySepaPayeesCall({sepaPayees:e,accessToken:t,stagingToken:r}){return{path:`${SEPA_ENDPOINT}/bulk_verify_payee`,options:{method:"POST",headers:{accessToken:t,stagingToken:r},body:{requests:e.map(serializeToSepaPayeeDataObject)}}}}async function verifySepaPayees({sepaPayees:e,accessToken:t,stagingToken:r}){const n=prepareVerifySepaPayeesCall({sepaPayees:e,accessToken:t,stagingToken:r});return await makeNetworkCall(n)}function validateBulkTransferParams(e){if(!e)throw new InvalidParametersError("bulkTransferId parameter is required for the called function.");if("string"!=typeof e)throw new InvalidParametersError("bulkTransferId must be a string.");return e}function validateCreateBulkTransferParams(e){if(!e)throw new InvalidParametersError("bulkTransferSettings parameter is required for the called function.");if(!e.bankAccountId)throw new InvalidParametersError("bankAccountId is required");if(!Array.isArray(e.bulkTransfers))throw new InvalidParametersError("bulkTransfers must be an array");if(e.bulkTransfers.length>400)throw new InvalidParametersError("Maximum of 400 bulk transfers allowed");return e.bulkTransfers.forEach(((e,t)=>{validateSingleBulkTransfer(e,t)})),e}function validateSingleBulkTransfer(e,t){if(!e)throw new InvalidParametersError(`Invalid bulkTransfer at index ${t}: bulkTransfer object is required`);if(!e.beneficiary)throw new InvalidParametersError(`Invalid bulkTransfer at index ${t}: Beneficiary details must be provided in the bulkTransferSettings.beneficiary field`);if(!e.beneficiary.iban)throw new InvalidParametersError(`Invalid bulkTransfer at index ${t}: IBAN is required as part of the beneficiary details`);if(!e.beneficiary.name)throw new InvalidParametersError(`Invalid bulkTransfer at index ${t}: Beneficiary name is required as part of the beneficiary details`);const r=[...validateExpectedStringValues({reference:e.reference,clientTransferId:e.clientTransferId,note:e.note}),...validateExpectedNumericValues({amount:e.amount})].flat();if(r.length>0)throw new InvalidParametersError(r);if(e.amount>AMOUNT_REQUIRING_ATTACHMENTS&&(!e.attachmentsIds||0===e.attachmentsIds.length))throw new InvalidParametersError(`Invalid bulkTransfer at index ${t}: Attachments are required for transfers over €${AMOUNT_REQUIRING_ATTACHMENTS}`)}async function getBulkTransfers(e){const{proxyRequestFunction:t,proxyEndpointDescriptor:r,paginationSettings:n}=validateClientOperationSettings(e?.operationSettings,'Client-side bulk transfer operations require either proxyRequestFunction or proxyEndpointDescriptor. If you need to use accessToken, import from "@qonto/embed-sdk/sepa-transfers/bulk-transfers/server".'),i=prepareGetBulkTransfersCall({paginationSettings:n}),a=await callProxyFunction({proxyFunction:t,proxyEndpointDescriptor:r,networkCallDescriptor:i}),o=a.body.bulk_transfers.map(serializeBulkTransfer),s=serializePaginationResponse(a.body.meta);return{bulkTransfers:o,...s?{meta:s}:{}}}async function getBulkTransfer({bulkTransferSettings:e,operationSettings:t}){const r=validateBulkTransferParams(e?.bulkTransferId),{proxyRequestFunction:n,proxyEndpointDescriptor:i}=validateClientOperationSettings(t,'Client-side bulk transfer operations require either proxyRequestFunction or proxyEndpointDescriptor. If you need to use accessToken, import from "@qonto/embed-sdk/sepa-transfers/bulk-transfers/server".'),a=prepareGetBulkTransferCall({bulkTransferId:r});return serializeBulkTransfer((await callProxyFunction({proxyFunction:n,proxyEndpointDescriptor:i,networkCallDescriptor:a})).body.bulk_transfer)}async function*createBulkTransfer({bulkTransferSettings:e,operationSettings:t}){const r=t?.accessToken||validatePresenceOfAuthToken(),n=t?.stagingToken||authManager.getStagingToken(),i=t?.idempotencyKey||v4();validateCreateBulkTransferParams(e);const{uiParentElementId:a,debugMode:o}=validateOperationSettingsParams(t,{requiresUI:!0});if(!isRunningInBrowser())throw new InvalidRuntimeError(RUNTIME_ENVIRONMENT.BROWSER);const s=new Map;for(const t of e.bulkTransfers){const e=t.beneficiary.iban;e&&!s.has(e)&&s.set(e,{name:t.beneficiary.name,iban:e})}const l=Array.from(s.values()),c=await verifySepaPayees({sepaPayees:l,accessToken:r,stagingToken:n||void 0});if((yield c.requests.map(serializeToBulkVopVerificationResult))===VOP_DECISIONS.REJECT)return;let d,u;try{const t=buildIframeUrl({accessToken:r,stagingToken:n||void 0,debugMode:o});u=await createIframe({iframeUrl:t,parentElementId:a});const s={bankAccountId:e.bankAccountId,bulkTransfers:e.bulkTransfers.map((e=>serializeToNewBulkTransferDataObject(e)))};d=await u.postMessage(buildIframeMessage({actionId:ACTIONS.TRANSFER_BULK_CREATE,actionData:{body:s,idempotencyKey:i}}))}finally{u?.destroy()}return{bulkTransfer:serializeBulkTransfer(d),meta:{idempotencyKey:i}}}const bulkTransfers={getBulkTransfers:getBulkTransfers,getBulkTransfer:getBulkTransfer,createBulkTransfer:createBulkTransfer},sepaTransfers={getSepaTransfers:getSepaTransfers$1,getSepaTransfer:getSepaTransfer,createSepaTransfer:createSepaTransfer,cancelSepaTransfer:cancelSepaTransfer,getSepaTransferCreationFlowLink:getSepaTransferCreationFlowLink,bulkTransfers:bulkTransfers},LINK_TYPES={GOOD:"good",SERVICE:"service"},CURRENCIES={AED:"AED",AUD:"AUD",BGN:"BGN",CAD:"CAD",CHF:"CHF",CNY:"CNY",CZK:"CZK",DKK:"DKK",EUR:"EUR",GBP:"GBP",GHS:"GHS",HKD:"HKD",HUF:"HUF",ILS:"ILS",INR:"INR",MXN:"MXN",NOK:"NOK",NZD:"NZD",PEN:"PEN",PLN:"PLN",RON:"RON",RSD:"RSD",SAR:"SAR",SEK:"SEK",SGD:"SGD",TRY:"TRY",USD:"USD",ZAR:"ZAR",ZMW:"ZMW"},isValidCurrency=e=>Object.values(CURRENCIES).includes(e),validateCurrency=e=>{if(!isValidCurrency(e))throw new InvalidParametersError(`currency ${e} is not valid, valid currencies are ${Object.values(CURRENCIES).join(", ")}`)},UNITS={UNIT:"unit",HOUR:"hour",DAY:"day",MONTH:"month",GRAM:"gram",KILOGRAM:"kilogram",LITER:"liter",METER:"meter",SQUARE_METER:"square_meter",CUBIC_METER:"cubic_meter",AMPERE:"ampere",NUMBER_OF_ARTICLES:"number_of_articles",CENTIMETER:"centimeter",CUBIC_METER_PER_HOUR:"cubic_meter_per_hour",GIGAJOULE:"gigajoule",GIGAWATT:"gigawatt",GIGAWATT_HOUR:"gigawatt_hour",HALF_YEAR:"half_year",JOULE:"joule",KILOJOULE:"kilojoule",KILOVAR:"kilovar",KILOWATT:"kilowatt",KILOWATT_HOUR:"kilowatt_hour",MEGAJOULE:"megajoule",MEGAWATT:"megawatt",MEGAWATT_HOUR:"megawatt_hour",MILLIGRAM:"milligram",MILLILITER:"milliliter",MILLIMETER:"millimeter",MINUTE:"minute",PAIR:"pair",QUARTER:"quarter",SECOND:"second",SET:"set",TON:"ton",TWO_WEEK:"two_week",WATT_HOUR:"watt_hour",WEEK:"week",YEAR:"year"},isValidUnit=e=>Object.values(UNITS).includes(e),validateUnit=e=>{if(!isValidUnit(e))throw new InvalidParametersError(`unit ${e} is not valid, valid units are ${Object.values(UNITS).join(", ")}`)},requiredCreatePaymentLinkParams=[{name:"id"},{name:"title"},{name:"type"},{name:"quantity"},{name:"measureUnit"},{name:"unitPrice"},{name:"vatRate"}],requiredPriceParams=[{name:"currency"},{name:"value"}];function validateItems(e){if(!e||!Array.isArray(e))return[];e.forEach((e=>{validatePresenceOfRequiredParams(e,requiredCreatePaymentLinkParams),validatePresenceOfRequiredParams(e.unitPrice,requiredPriceParams);const t=[...validateExpectedStringValues({id:e.id,title:e.title,vatRate:e.vatRate,currency:e.unitPrice.currency,measureUnit:e.measureUnit,unitPrice:e.unitPrice.value,...e.description?{description:e.description}:{}}),...validateExpectedNumericValues({quantity:e.quantity})].flat();if(t.length>0)throw new InvalidParametersError(t);validateType(e.type),validateCurrency(e.unitPrice.currency),validateUnit(e.measureUnit)}))}const validateType=e=>{if(!Object.values(LINK_TYPES).includes(e))throw new InvalidParametersError(`type ${e} is not valid, valid types are ${Object.values(LINK_TYPES).join(", ")}`)};function validatePaymentLinkCreationFlowParams(e){if(!e?.callbackUrl)throw new InvalidParametersError("callbackUrl parameter is required for the payment link creation flow");if("string"!=typeof e.callbackUrl)throw new InvalidParametersError("callbackUrl must be a string");if(""===e.callbackUrl.trim())throw new InvalidParametersError("callbackUrl cannot be empty");return e.callbackUrl}const getPaymentLinkCreationFlowUrl=async({paymentLinkSettings:e,operationSettings:t})=>{const{items:r}=e;validateItems(r);const n=validatePaymentLinkCreationFlowParams(e),i=await request({requestSettings:{action:AUTH_LINK_ACTIONS.PAYMENT_LINK_CREATE,callbackUrl:n},operationSettings:t}),a=new URLSearchParams({...r?{items:JSON.stringify(r)}:{}});return a.toString()?`${i.url}?${a.toString()}`:i.url},paymentLinks$1={getPaymentLinkCreationFlowUrl:getPaymentLinkCreationFlowUrl},paymentLinks=paymentLinks$1,ORGANIZATION_ENDPOINT="/v2/organization/",BANK_ACCOUNTS_ENDPOINT="/v2/bank_accounts/",prepareGetOrganization=({accessToken:e,stagingToken:t})=>({path:`${ORGANIZATION_ENDPOINT}`,options:{method:"GET",headers:{accessToken:e,stagingToken:t}}}),getOrganization$1=async({accessToken:e,stagingToken:t})=>{const r=prepareGetOrganization({accessToken:e,stagingToken:t});return await makeNetworkCall(r)},prepareGetBankAccounts=({accessToken:e,stagingToken:t})=>({path:`${BANK_ACCOUNTS_ENDPOINT}`,options:{method:"GET",headers:{accessToken:e,stagingToken:t}}}),getBankAccounts$1=async({accessToken:e,stagingToken:t})=>{const r=prepareGetBankAccounts({accessToken:e,stagingToken:t});return await makeNetworkCall(r)},serializeOrganization=e=>({id:e.id,slug:e.slug,legalName:e.legal_name,legalNumber:e.legal_number,legalSector:e.legal_sector,legalRegistrationDate:e.legal_registration_date,legalAddress:e.legal_address,legalForm:e.legal_form,legalCountry:e.legal_country,legalShareCapital:e.legal_share_capital,locale:e.locale,contractSignedAt:e.contract_signed_at,bankAccounts:e.bank_accounts.map(serializeBankAccount)}),serializeBankAccount=e=>({id:e?.id,slug:e.slug,iban:e.iban,bic:e.bic,currency:e.currency,balance:parseFloat(e.balance),balanceCents:e.balance_cents,authorizedBalance:e.authorized_balance,authorizedBalanceCents:e.authorized_balance_cents,name:e.name,updatedAt:new Date(e.updated_at),status:e.status,main:e.main}),getOrganization=async e=>{const{stagingToken:t,proxyRequestFunction:r}=validateOperationSettingsParams(e);if(r){const e=prepareGetOrganization({stagingToken:t}),n=await callProxyFunction({proxyFunction:r,networkCallDescriptor:e});return serializeOrganization(n.body.organization)}{const r=e.accessToken||validatePresenceOfAuthToken(),n=await getOrganization$1({accessToken:r,stagingToken:t});return serializeOrganization(n.organization)}},getBankAccounts=async e=>{const{stagingToken:t,proxyRequestFunction:r}=validateOperationSettingsParams(e);if(r){const e=prepareGetBankAccounts({stagingToken:t});return(await callProxyFunction({proxyFunction:r,networkCallDescriptor:e})).body.bank_accounts.map(serializeBankAccount)}{const r=e.accessToken||validatePresenceOfAuthToken();return(await getBankAccounts$1({accessToken:r,stagingToken:t})).bank_accounts.map(serializeBankAccount)}},organizations$1={getOrganization:getOrganization,getBankAccounts:getBankAccounts},organizations=organizations$1,TRANSACTIONS_ENDPOINT="/v2/transactions";function prepareGetTransactionsCall({bankAccountId:e,iban:t,status:r,updatedAtFrom:n,updatedAtTo:i,emittedAtFrom:a,emittedAtTo:o,settledAtFrom:s,settledAtTo:l,side:c,operationType:d,withAttachments:u,paginationSettings:p,accessToken:h,stagingToken:f}){const m={method:"GET",headers:{accessToken:h,stagingToken:f}},g=new URLSearchParams;e&&g.append("bank_account_id",e),t&&g.append("iban",t),r&&g.append("status",r),n&&g.append("updated_at_from",n),i&&g.append("updated_at_to",i),a&&g.append("emitted_at_from",a),o&&g.append("emitted_at_to",o),s&&g.append("settled_at_from",s),l&&g.append("settled_at_to",l),c&&g.append("side",c),d&&g.append("operation_type",d),void 0!==u&&g.append("with_attachments",String(u));const y=buildPaginationParams(p);for(const[e,t]of y)g.append(e,t);const v=g.toString();return{path:`${TRANSACTIONS_ENDPOINT}${v?`?${v}`:""}`,options:m}}async function getTransactions$1(e){const t=prepareGetTransactionsCall(e),{transactions:r,meta:n}=await makeNetworkCall(t);return{transactions:r,meta:n}}function prepareGetTransactionCall({transactionId:e,accessToken:t,stagingToken:r}){return{path:`${TRANSACTIONS_ENDPOINT}/${e}`,options:{method:"GET",headers:{accessToken:t,stagingToken:r}}}}async function getTransaction$1(e){const t=prepareGetTransactionCall(e),{transaction:r}=await makeNetworkCall(t);return r}function serializeTransaction(e){return{transactionId:e.transaction_id,amount:e.amount,amountCents:e.amount_cents,settledBalance:e.settled_balance,settledBalanceCents:e.settled_balance_cents,attachmentIds:e.attachment_ids,localAmount:e.local_amount,localAmountCents:e.local_amount_cents,side:e.side,operationType:e.operation_type,currency:e.currency,localCurrency:e.local_currency,label:e.label,settledAt:new Date(e.settled_at),emittedAt:new Date(e.emitted_at),updatedAt:new Date(e.updated_at),status:e.status,note:e.note,reference:e.reference,vatAmount:e.vat_amount,vatAmountCents:e.vat_amount_cents,vatRate:e.vat_rate,initiatorId:e.initiator_id,labelIds:e.label_ids,attachmentLost:e.attachment_lost,attachmentRequired:e.attachment_required,cardLastDigits:e.card_last_digits,category:e.category,cashflowCategory:{name:e.cashflow_category?.name||""},cashflowSubcategory:{name:e.cashflow_subcategory?.name||""},id:e.id,subjectType:e.subject_type,...e.transfer?{transfer:{counterpartyAccountNumber:e.transfer.counterparty_account_number,counterpartyName:e.transfer.counterparty_name,counterpartyBic:e.transfer.counterparty_bic,counterpartyIban:e.transfer.counterparty_iban}}:{}}}function validateGetTransactionParams(e){if(!e)throw new InvalidParametersError("transactionSettings parameter is required for the called function");if(!e.transactionId)throw new InvalidParametersError("transactionSettings.transactionId parameter is required for the called function");if(e.transactionId&&"string"!=typeof e.transactionId)throw new InvalidParametersError("transactionSettings.transactionId must be a string.");return e}async function getTransactions(e){const{stagingToken:t,proxyRequestFunction:r,accessToken:n,paginationSettings:i}=validateOperationSettingsParams(e?.operationSettings||{}),a={...e?.transactionSettings||{},paginationSettings:i};if(r){const e=prepareGetTransactionsCall(a),t=await callProxyFunction({proxyFunction:r,networkCallDescriptor:e});return{transactions:t.body.transactions.map(serializeTransaction),meta:t.body.meta}}{const e=n||validatePresenceOfAuthToken(),r=await getTransactions$1({...a,accessToken:e,stagingToken:t});return{transactions:r.transactions.map(serializeTransaction),meta:r.meta}}}async function getTransaction({transactionSettings:e,operationSettings:t}){const{proxyRequestFunction:r,accessToken:n,stagingToken:i}=validateOperationSettingsParams(t||{}),{transactionId:a}=validateGetTransactionParams(e);if(r){const e=prepareGetTransactionCall({transactionId:a});return serializeTransaction((await callProxyFunction({proxyFunction:r,networkCallDescriptor:e})).body.transaction)}{const e=n||validatePresenceOfAuthToken();return serializeTransaction(await getTransaction$1({transactionId:a,accessToken:e,stagingToken:i}))}}const transactions$1={getTransactions:getTransactions,getTransaction:getTransaction},transactions=transactions$1,UI_ELEMENT_NAMES={TRANSFER_LIST:"transfer-list",SEPA_TRANSFER_CREATION:"sepa-transfer-creation"};function validateCreateUIElementParams(e){if(!e?.uiElementName)throw new InvalidParametersError("uiElementSettings.uiElementName is required when calling createUIElement");const t=Object.values(UI_ELEMENT_NAMES);if(!t.includes(e?.uiElementName))throw new InvalidParametersError(`uiElementSettings.uiElementName must be one of ${t.join(", ")}`);return{uiElementName:e.uiElementName}}const transferListStyles=i$4`
518
517
  :host {
519
518
  --default-table-border: 1px solid var(--border-tertiary);
520
519
 
@@ -673,7 +672,7 @@ const a=Symbol.for(""),o$1=e=>{if(e?.r===a)return e?._$litStatic$},s=e=>({_$litS
673
672
  display: flex;
674
673
  gap: 8px;
675
674
  }
676
- `,LOCALES_DEFINITION={EN:{name:"English",code:"en",locale:"en-US"},FR:{name:"Français",code:"fr",locale:"fr-FR"},IT:{name:"Italiano",code:"it",locale:"it-IT"},DE:{name:"Deutsch",code:"de",locale:"de-DE"},ES:{name:"Español",code:"es",locale:"es-ES"},PT:{name:"Português",code:"pt",locale:"pt-PT"},NL:{name:"Nederlands",code:"nl",locale:"nl-NL"}},LOCALES=Object.values(LOCALES_DEFINITION),LOCALE_CODES=LOCALES.map((e=>e.code)),FORMAT_OPTIONS={compact:{day:"2-digit",month:"2-digit",year:"numeric"},"date-s":{month:"short",day:"2-digit"},"month-year-l":{month:"long",year:"numeric"},"month-year-s":{month:"short",year:"numeric"},"date-year-s":{day:"2-digit",month:"short",year:"numeric"},"date-year-l":{day:"2-digit",month:"long",year:"numeric"},"week-date-l":{month:"long",weekday:"long",day:"2-digit"},"date-time-l":{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"},"date-time-s":{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"},"time-hm":{hour:"2-digit",minute:"2-digit"}},LOCALE_CUSTOM_FORMATS$1={en:{compact:([e,,t,,r])=>`${t?.value}-${e?.value}-${r?.value}`,"date-time-l":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},fr:{"date-time-l":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},de:{"date-time-l":e=>e.map((({value:e},t)=>[3,5].includes(t)?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},it:{"date-time-l":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},es:{compact:e=>e.map((({type:e,value:t})=>"literal"===e?"-":t)).join(""),"week-date-l":e=>e.map((({value:e},t)=>1===t?" ":e)).join("")},pt:{"date-s":e=>e.map((({value:e,type:t})=>"literal"===t?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join(""),"month-year-s":e=>e.map((({value:e,type:t})=>"literal"===t?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join(""),"date-year-s":e=>e.map((({value:e,type:t})=>"literal"===t?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join(""),"date-time-l":e=>e.map((({value:e,type:t})=>"literal"===t&&" às "===e?", ":e)).join(""),"date-time-s":e=>e.map((({value:e,type:t})=>"literal"===t&&" às "===e?", ":"literal"===t&&" de "===e?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join("")},nl:{"date-s":e=>e.map((({value:e,type:t})=>"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).reverse().join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-l":e=>e.map((({value:e,type:t})=>"literal"===t&&" om "===e?", ":e)).join(""),"week-date-l":e=>e.map((({value:e,type:t},r)=>1===r&&"literal"===t?", ":e)).join("")}},isLocaleCode=e=>LOCALE_CODES.includes(e),formatDate=({date:e,locale:t,token:r="compact"})=>{const a=Array.isArray(t)?t[0].toLocaleLowerCase():t.toLocaleLowerCase();if(!isLocaleCode(a))return"";const n=FORMAT_OPTIONS[r],i=LOCALE_CUSTOM_FORMATS$1[a][r],o=new Intl.DateTimeFormat(t,n);try{return i?.(o.formatToParts(new Date(e)))??o.format(new Date(e))}catch{return""}},MONEY_TOKENS={ISO:"money-iso",ISO_COMPACT:"money-iso-compact",ISO_SIGN_COMPACT:"money-iso-sign-compact",ISO_SIGN_DECIMAL:"money-iso-sign-decimal",SYMBOL:"money-symbol",SYMBOL_COMPACT:"money-symbol-compact",SYMBOL_SIGN_COMPACT:"money-symbol-sign-compact",SYMBOL_SIGN_DECIMAL:"money-symbol-sign-decimal"},MONEY_TOKEN_RULES={[MONEY_TOKENS.ISO]:{useSymbol:!1,sign:"auto",decimals:"always"},[MONEY_TOKENS.ISO_COMPACT]:{useSymbol:!1,sign:"auto",decimals:"if-needed"},[MONEY_TOKENS.ISO_SIGN_COMPACT]:{useSymbol:!1,sign:"always",decimals:"if-needed"},[MONEY_TOKENS.ISO_SIGN_DECIMAL]:{useSymbol:!1,sign:"always",decimals:"always"},[MONEY_TOKENS.SYMBOL]:{useSymbol:!0,sign:"auto",decimals:"always"},[MONEY_TOKENS.SYMBOL_COMPACT]:{useSymbol:!0,sign:"auto",decimals:"if-needed"},[MONEY_TOKENS.SYMBOL_SIGN_COMPACT]:{useSymbol:!0,sign:"always",decimals:"if-needed"},[MONEY_TOKENS.SYMBOL_SIGN_DECIMAL]:{useSymbol:!0,sign:"always",decimals:"always"}},LOCALE_CUSTOM_FORMATS={"pt-PT":(e,{amount:t})=>e.map((({type:e,value:r})=>"group"===e?Math.abs(t)>=1e4?r.replace(/\s/g,"."):r.replace(/\s/g,""):r)).join(""),"en-US":(e,{useSymbol:t})=>e.map((({type:e,value:r})=>t&&"literal"===e?r.replace(/\s/g,""):r)).join(""),"es-ES":e=>{const t=[];for(const r of e)if("integer"===r.type){const e=r.value.replace(/\B(?=(?:\d{3})+(?!\d))/g,".");t.push(e)}else t.push(r.value);return t.join("")},"it-IT":e=>{const t=[];for(const r of e)if("integer"===r.type){const e=r.value.replace(/\B(?=(?:\d{3})+(?!\d))/g,".");t.push(e)}else t.push(r.value);return t.join("")}};function formatMoney({amount:e,locale:t="en-US",currency:r="EUR",token:a=MONEY_TOKENS.ISO,placeholder:n="--",overrides:i={}}){const o=Number(e);if(!Number.isFinite(o))return n;const s=_normalizeLocale(t),{useSymbol:l,sign:c,decimals:h}=MONEY_TOKEN_RULES[a],d={style:"currency",currency:r,currencyDisplay:l?"symbol":"code",signDisplay:"always"===c&&0===o?"exceptZero":c,..."if-needed"!==h||o%1!=0?{}:{minimumFractionDigits:0,maximumFractionDigits:0},...i},p=new Intl.NumberFormat(s,d),u=LOCALE_CUSTOM_FORMATS[s];if(u){return u(p.formatToParts(o),{amount:o,useSymbol:l})}return p.format(o)}function _normalizeLocale(e){const t=LOCALES.find((t=>t.code===e));return t?.locale||e}class TransferSelectedEvent extends CustomEvent{constructor(e){super("transfer-selected",{detail:e,bubbles:!0,composed:!0})}}const iconInProgress=b`<svg
675
+ `,LOCALES_DEFINITION={EN:{name:"English",code:"en",locale:"en-US"},FR:{name:"Français",code:"fr",locale:"fr-FR"},IT:{name:"Italiano",code:"it",locale:"it-IT"},DE:{name:"Deutsch",code:"de",locale:"de-DE"},ES:{name:"Español",code:"es",locale:"es-ES"},PT:{name:"Português",code:"pt",locale:"pt-PT"},NL:{name:"Nederlands",code:"nl",locale:"nl-NL"}},LOCALES=Object.values(LOCALES_DEFINITION),LOCALE_CODES=LOCALES.map((e=>e.code)),FORMAT_OPTIONS={compact:{day:"2-digit",month:"2-digit",year:"numeric"},"date-s":{month:"short",day:"2-digit"},"month-year-l":{month:"long",year:"numeric"},"month-year-s":{month:"short",year:"numeric"},"date-year-s":{day:"2-digit",month:"short",year:"numeric"},"date-year-l":{day:"2-digit",month:"long",year:"numeric"},"week-date-l":{month:"long",weekday:"long",day:"2-digit"},"date-time-l":{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"},"date-time-s":{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"},"time-hm":{hour:"2-digit",minute:"2-digit"}},LOCALE_CUSTOM_FORMATS$1={en:{compact:([e,,t,,r])=>`${t?.value}-${e?.value}-${r?.value}`,"date-time-l":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},fr:{"date-time-l":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},de:{"date-time-l":e=>e.map((({value:e},t)=>[3,5].includes(t)?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},it:{"date-time-l":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join("")},es:{compact:e=>e.map((({type:e,value:t})=>"literal"===e?"-":t)).join(""),"week-date-l":e=>e.map((({value:e},t)=>1===t?" ":e)).join("")},pt:{"date-s":e=>e.map((({value:e,type:t})=>"literal"===t?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join(""),"month-year-s":e=>e.map((({value:e,type:t})=>"literal"===t?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join(""),"date-year-s":e=>e.map((({value:e,type:t})=>"literal"===t?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join(""),"date-time-l":e=>e.map((({value:e,type:t})=>"literal"===t&&" às "===e?", ":e)).join(""),"date-time-s":e=>e.map((({value:e,type:t})=>"literal"===t&&" às "===e?", ":"literal"===t&&" de "===e?" ":"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).join("")},nl:{"date-s":e=>e.map((({value:e,type:t})=>"month"===t&&e.endsWith(".")?e.slice(0,-1):e)).reverse().join(""),"date-time-s":e=>e.map((({value:e},t)=>5===t?", ":e)).join(""),"date-time-l":e=>e.map((({value:e,type:t})=>"literal"===t&&" om "===e?", ":e)).join(""),"week-date-l":e=>e.map((({value:e,type:t},r)=>1===r&&"literal"===t?", ":e)).join("")}},isLocaleCode=e=>LOCALE_CODES.includes(e),formatDate=({date:e,locale:t,token:r="compact"})=>{const n=Array.isArray(t)?t[0].toLocaleLowerCase():t.toLocaleLowerCase();if(!isLocaleCode(n))return"";const i=FORMAT_OPTIONS[r],a=LOCALE_CUSTOM_FORMATS$1[n][r],o=new Intl.DateTimeFormat(t,i);try{return a?.(o.formatToParts(new Date(e)))??o.format(new Date(e))}catch{return""}},MONEY_TOKENS={ISO:"money-iso",ISO_COMPACT:"money-iso-compact",ISO_SIGN_COMPACT:"money-iso-sign-compact",ISO_SIGN_DECIMAL:"money-iso-sign-decimal",SYMBOL:"money-symbol",SYMBOL_COMPACT:"money-symbol-compact",SYMBOL_SIGN_COMPACT:"money-symbol-sign-compact",SYMBOL_SIGN_DECIMAL:"money-symbol-sign-decimal"},MONEY_TOKEN_RULES={[MONEY_TOKENS.ISO]:{useSymbol:!1,sign:"auto",decimals:"always"},[MONEY_TOKENS.ISO_COMPACT]:{useSymbol:!1,sign:"auto",decimals:"if-needed"},[MONEY_TOKENS.ISO_SIGN_COMPACT]:{useSymbol:!1,sign:"always",decimals:"if-needed"},[MONEY_TOKENS.ISO_SIGN_DECIMAL]:{useSymbol:!1,sign:"always",decimals:"always"},[MONEY_TOKENS.SYMBOL]:{useSymbol:!0,sign:"auto",decimals:"always"},[MONEY_TOKENS.SYMBOL_COMPACT]:{useSymbol:!0,sign:"auto",decimals:"if-needed"},[MONEY_TOKENS.SYMBOL_SIGN_COMPACT]:{useSymbol:!0,sign:"always",decimals:"if-needed"},[MONEY_TOKENS.SYMBOL_SIGN_DECIMAL]:{useSymbol:!0,sign:"always",decimals:"always"}},LOCALE_CUSTOM_FORMATS={"pt-PT":(e,{amount:t})=>e.map((({type:e,value:r})=>"group"===e?Math.abs(t)>=1e4?r.replace(/\s/g,"."):r.replace(/\s/g,""):r)).join(""),"en-US":(e,{useSymbol:t})=>e.map((({type:e,value:r})=>t&&"literal"===e?r.replace(/\s/g,""):r)).join(""),"es-ES":e=>{const t=[];for(const r of e)if("integer"===r.type){const e=r.value.replace(/\B(?=(?:\d{3})+(?!\d))/g,".");t.push(e)}else t.push(r.value);return t.join("")},"it-IT":e=>{const t=[];for(const r of e)if("integer"===r.type){const e=r.value.replace(/\B(?=(?:\d{3})+(?!\d))/g,".");t.push(e)}else t.push(r.value);return t.join("")}};function formatMoney({amount:e,locale:t="en-US",currency:r="EUR",token:n=MONEY_TOKENS.ISO,placeholder:i="--",overrides:a={}}){const o=Number(e);if(!Number.isFinite(o))return i;const s=_normalizeLocale(t),{useSymbol:l,sign:c,decimals:d}=MONEY_TOKEN_RULES[n],u={style:"currency",currency:r,currencyDisplay:l?"symbol":"code",signDisplay:"always"===c&&0===o?"exceptZero":c,..."if-needed"!==d||o%1!=0?{}:{minimumFractionDigits:0,maximumFractionDigits:0},...a},p=new Intl.NumberFormat(s,u),h=LOCALE_CUSTOM_FORMATS[s];if(h){return h(p.formatToParts(o),{amount:o,useSymbol:l})}return p.format(o)}function _normalizeLocale(e){const t=LOCALES.find((t=>t.code===e));return t?.locale||e}class TransferSelectedEvent extends CustomEvent{constructor(e){super("transfer-selected",{detail:e,bubbles:!0,composed:!0})}}const iconInProgress=b`<svg
677
676
  fill="none"
678
677
  viewBox="0 0 12 12"
679
678
  xmlns="http://www.w3.org/2000/svg"
@@ -911,7 +910,7 @@ const a=Symbol.for(""),o$1=e=>{if(e?.r===a)return e?._$litStatic$},s=e=>({_$litS
911
910
  * Copyright 2017 Google LLC
912
911
  * SPDX-License-Identifier: BSD-3-Clause
913
912
  */
914
- class e extends i{constructor(e){if(super(e),this.it=E,e.type!==t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===E||null==e)return this._t=void 0,this.it=e;if(e===T)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=e$2(e);function mapTransferStatusToBadgeLevel(e){switch(e){case TRANSFER_STATUSES.SETTLED:return BADGE_LEVELS.VALIDATED;case TRANSFER_STATUSES.DECLINED:return BADGE_LEVELS.DECLINED;case TRANSFER_STATUSES.PENDING:return BADGE_LEVELS.WAITING;case TRANSFER_STATUSES.PROCESSING:return BADGE_LEVELS.IN_PROGRESS;case TRANSFER_STATUSES.CANCELED:return BADGE_LEVELS.ERROR;default:return BADGE_LEVELS.INACTIVE}}function renderLoadingTableRowsMarkup(e=3){const t=Array.from({length:e},(()=>'\n <tr>\n <td><qonto-skeleton-loader-line width="80px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="120px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="150px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="100px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="60px"></qonto-skeleton-loader-line></td>\n </tr>\n ')).join("");return o(t)}const sourceLocale="en",targetLocales=["de","es","fr","it","nl","pt"],templates$5={s09ca90bfc68e29fc:"Fecha prevista",s0fbf6dc6a1966408:"Siguiente",s12bda6ed4915b346:"En proceso",s12fda681e1531361:"No se ha encontrado coincidencia. Por favor, verifica los datos.",s13c4efd1b5ac3a56:"Beneficiario",s256aa08dedbda698:"¿No lo recibiste?",s270283cc22e1d66b:str`Mostrando página ${0} de ${1} (${2} elementos en total)`,s2cc50a787a722cc2:"Coincidencia cercana",s3f53588be475bda6:"Coge tu teléfono",s4543ff29118e088d:"Confirmando...",s49730f3d5751a433:"Cargando...",s4b83c11b10db3ecd:"¿Una última revisión?",s5033dab8c17f05f2:"Completado",s509a8104b078dd96:"Referencia (como la ve el beneficiario)",s54fac608002f2917:"Enviar de nuevo",s5734c8b4ed165968:"El importe debe ser mayor que 0",s59d9f8c4cedafcc1:str`Deberías recibir un SMS en el número de teléfono que termina en ${0}. Para continuar, confirma la solicitud desde allí.`,s5c1d01b5aa98d03f:"Cuenta de cargo",s5e8250fb85d64c23:"Cerrar",s6686fcc6d2c8f0bd:"Nota",s6e123a1f0f64af8e:"Confirmar transferencia",s6f9fdf0ef3350f1a:"Tómate un momento para comprobar que todo es correcto.",s78636b92c1a3909c:"Pendiente",s7f763a1084cb34a9:"Crear otra transferencia",s8085f59780f33d2a:"Deberías recibir un SMS en tu número de teléfono. Para continuar, confirma la solicitud desde allí.",s81ecf2d4386b8e84:"Continuar",s8237b0bd05a7c64e:"Estás enviando",s837fcb0b70616656:"Coincidencia",s84550487c5bb7441:"Tu transferencia ha sido enviada",s84fdc2b810026968:"Coincidencia cercana:",s8b0bf94f7375fa66:"No se pudieron cargar las cuentas bancarias. Por favor, inténtalo de nuevo.",s95216d2de29c91e1:"El nombre y el IBAN coinciden con los datos de la cuenta del beneficiario.",s9b6901ac422f46a7:"Rechazado",sa30c4d3b566b6b1a:"Cancelado",sad3e3c8146fc920f:"Estado",sad59707375956ad2:"Finalizar",sba98a7152d80b949:"Importe",sbf9c5c5a8e5efad4:"Fallido",sc1198d93e6399acd:"Introduce los detalles de tu transferencia",sd057a337e1bb84ef:"La referencia es obligatoria",se497cb1f3c37ee07:"Selecciona un beneficiario",se67efe78de6988e7:"Sin coincidencia",sf10c96d1fe5eddee:"No verificado",sf3ff78cc329d3528:"Anterior",sf7c47b4840e56b34:"Introduce la referencia de la transferencia",sf9ac3755f9746120:"No se pudo enviar tu transferencia",sfda3e4a519cfc5ba:"Liquidado",sfe88d270aa3e71da:"Referencia",sff155e9234c5c613:"El importe supera el saldo disponible"};var es=Object.freeze({__proto__:null,templates:templates$5});const templates$4={s09ca90bfc68e29fc:"Date prévue",s0fbf6dc6a1966408:"Suivant",s12bda6ed4915b346:"En cours",s12fda681e1531361:"Aucune correspondance trouvée. Veuillez vérifier les informations.",s13c4efd1b5ac3a56:"Bénéficiaire",s256aa08dedbda698:"Vous ne l'avez pas reçu ?",s270283cc22e1d66b:str`Affichage de la page ${0} sur ${1} (${2} éléments au total)`,s2cc50a787a722cc2:"Correspondance proche",s3f53588be475bda6:"Prends ton téléphone",s4543ff29118e088d:"Confirmation...",s49730f3d5751a433:"Chargement...",s4b83c11b10db3ecd:"Un dernier coup d'œil ?",s5033dab8c17f05f2:"Terminé",s509a8104b078dd96:"Référence (vue par le bénéficiaire)",s54fac608002f2917:"Renvoyer",s5734c8b4ed165968:"Le montant doit être supérieur à 0",s59d9f8c4cedafcc1:str`Vous devriez recevoir un SMS sur le numéro se terminant par ${0}. Pour continuer, confirmez la demande depuis ce numéro.`,s5c1d01b5aa98d03f:"Compte à débiter",s5e8250fb85d64c23:"Fermer",s6686fcc6d2c8f0bd:"Note",s6e123a1f0f64af8e:"Confirmer le virement",s6f9fdf0ef3350f1a:"Prenez un moment pour vérifier que tout est correct.",s78636b92c1a3909c:"En attente",s7f763a1084cb34a9:"Créer un autre virement",s8085f59780f33d2a:"Vous devriez recevoir un SMS sur votre numéro de téléphone. Pour continuer, confirmez la demande depuis ce numéro.",s81ecf2d4386b8e84:"Continuer",s8237b0bd05a7c64e:"Vous envoyez",s837fcb0b70616656:"Correspondance",s84550487c5bb7441:"Votre virement a été envoyé",s84fdc2b810026968:"Correspondance proche :",s8b0bf94f7375fa66:"Échec du chargement des comptes bancaires. Veuillez réessayer.",s95216d2de29c91e1:"Le nom et l'IBAN correspondent aux informations du bénéficiaire.",s9b6901ac422f46a7:"Refusé",sa30c4d3b566b6b1a:"Annulé",sad3e3c8146fc920f:"Statut",sad59707375956ad2:"Terminer",sba98a7152d80b949:"Montant",sbf9c5c5a8e5efad4:"Échoué",sc1198d93e6399acd:"Entrez les détails de votre virement",sd057a337e1bb84ef:"La référence est requise",se497cb1f3c37ee07:"Sélectionnez un bénéficiaire",se67efe78de6988e7:"Aucune correspondance",sf10c96d1fe5eddee:"Non vérifié",sf3ff78cc329d3528:"Précédent",sf7c47b4840e56b34:"Entrez la référence du virement",sf9ac3755f9746120:"Votre virement n'a pas pu être envoyé",sfda3e4a519cfc5ba:"Réglé",sfe88d270aa3e71da:"Référence",sff155e9234c5c613:"Le montant dépasse le solde disponible"};var fr$2=Object.freeze({__proto__:null,templates:templates$4});const templates$3={s09ca90bfc68e29fc:"Geplantes Datum",s0fbf6dc6a1966408:"Nächste",s12bda6ed4915b346:"In Bearbeitung",s12fda681e1531361:"Keine Übereinstimmung gefunden. Bitte überprüfe die Angaben.",s13c4efd1b5ac3a56:"Empfänger",s256aa08dedbda698:"Nicht erhalten?",s270283cc22e1d66b:str`Seite ${0} von ${1} anzeigen (${2} Gesamtelemente)`,s2cc50a787a722cc2:"Nahe Übereinstimmung",s3f53588be475bda6:"Nimm dein Handy",s4543ff29118e088d:"Wird bestätigt...",s49730f3d5751a433:"Lädt...",s4b83c11b10db3ecd:"Noch einmal prüfen?",s5033dab8c17f05f2:"Abgeschlossen",s509a8104b078dd96:"Verwendungszweck (wie vom Empfänger gesehen)",s54fac608002f2917:"Erneut senden",s5734c8b4ed165968:"Betrag muss größer als 0 sein",s59d9f8c4cedafcc1:str`Du solltest eine SMS an die Telefonnummer erhalten, die auf ${0} endet. Um fortzufahren, bestätige die Anfrage dort.`,s5c1d01b5aa98d03f:"Belastungskonto",s5e8250fb85d64c23:"Schließen",s6686fcc6d2c8f0bd:"Notiz",s6e123a1f0f64af8e:"Überweisung bestätigen",s6f9fdf0ef3350f1a:"Nimm dir einen Moment Zeit, um alles zu überprüfen.",s78636b92c1a3909c:"Ausstehend",s7f763a1084cb34a9:"Weitere Überweisung erstellen",s8085f59780f33d2a:"Du solltest eine SMS an deine Telefonnummer erhalten. Um fortzufahren, bestätige die Anfrage dort.",s81ecf2d4386b8e84:"Fortfahren",s8237b0bd05a7c64e:"Du sendest",s837fcb0b70616656:"Übereinstimmung",s84550487c5bb7441:"Deine Überweisung wurde gesendet",s84fdc2b810026968:"Nahe Übereinstimmung:",s8b0bf94f7375fa66:"Bankkonten konnten nicht geladen werden. Bitte versuche es erneut.",s95216d2de29c91e1:"Name und IBAN stimmen mit den Kontodaten des Empfängers überein.",s9b6901ac422f46a7:"Abgelehnt",sa30c4d3b566b6b1a:"Abgebrochen",sad3e3c8146fc920f:"Status",sad59707375956ad2:"Fertigstellen",sba98a7152d80b949:"Betrag",sbf9c5c5a8e5efad4:"Fehlgeschlagen",sc1198d93e6399acd:"Gib die Details deiner Überweisung ein",sd057a337e1bb84ef:"Verwendungszweck ist erforderlich",se497cb1f3c37ee07:"Wähle einen Empfänger aus",se67efe78de6988e7:"Keine Übereinstimmung",sf10c96d1fe5eddee:"Nicht überprüft",sf3ff78cc329d3528:"Vorherige",sf7c47b4840e56b34:"Gib den Verwendungszweck der Überweisung ein",sf9ac3755f9746120:"Deine Überweisung konnte nicht gesendet werden",sfda3e4a519cfc5ba:"Abgerechnet",sfe88d270aa3e71da:"Referenz",sff155e9234c5c613:"Betrag übersteigt verfügbares Guthaben"};var de=Object.freeze({__proto__:null,templates:templates$3});const templates$2={s09ca90bfc68e29fc:"Geplande datum",s0fbf6dc6a1966408:"Volgende",s12bda6ed4915b346:"Bezig met verwerken",s12fda681e1531361:"Geen overeenkomst gevonden. Controleer de gegevens.",s13c4efd1b5ac3a56:"Begunstigde",s256aa08dedbda698:"Niet ontvangen?",s270283cc22e1d66b:str`Pagina ${0} van ${1} weergeven (${2} totaal aantal items)`,s2cc50a787a722cc2:"Dichte overeenkomst",s3f53588be475bda6:"Pak je gekoppelde apparaat erbij",s4543ff29118e088d:"Bevestigen...",s49730f3d5751a433:"Bezig met laden...",s4b83c11b10db3ecd:"Nog één keer controleren?",s5033dab8c17f05f2:"Voltooid",s509a8104b078dd96:"Referentie (zoals gezien door begunstigde)",s54fac608002f2917:"Opnieuw sturen",s5734c8b4ed165968:"Het bedrag moet groter zijn dan 0",s59d9f8c4cedafcc1:str`U zou een sms-bericht moeten ontvangen op het telefoonnummer dat eindigt op ${0}. Om door te gaan, bevestigt u het verzoek hier.`,s5c1d01b5aa98d03f:"Af te schrijven rekening",s5e8250fb85d64c23:"Sluiten",s6686fcc6d2c8f0bd:"Notitie",s6e123a1f0f64af8e:"Overschrijving bevestigen",s6f9fdf0ef3350f1a:"Neem even de tijd om te controleren of alles klopt.",s78636b92c1a3909c:"In afwachting",s7f763a1084cb34a9:"Maak nog een overschrijving",s8085f59780f33d2a:"U zou een sms moeten ontvangen op uw telefoonnummer. Om door te gaan, bevestig het verzoek daar.",s81ecf2d4386b8e84:"Doorgaan",s8237b0bd05a7c64e:"U verstuurt",s837fcb0b70616656:"Overeenkomst",s84550487c5bb7441:"Uw overschrijving is verzonden",s84fdc2b810026968:"Dichte overeenkomst:",s8b0bf94f7375fa66:"Bankrekeningen konden niet worden geladen. Probeer het opnieuw.",s95216d2de29c91e1:"Naam en IBAN komen overeen met de gegevens van de begunstigde.",s9b6901ac422f46a7:"Geweigerd",sa30c4d3b566b6b1a:"Geannuleerd",sad3e3c8146fc920f:"Status",sad59707375956ad2:"Voltooien",sba98a7152d80b949:"Bedrag",sbf9c5c5a8e5efad4:"Mislukt",sc1198d93e6399acd:"Voer uw overschrijvingsgegevens in",sd057a337e1bb84ef:"Referentie is verplicht",se497cb1f3c37ee07:"Selecteer een begunstigde",se67efe78de6988e7:"Geen overeenkomst",sf10c96d1fe5eddee:"Niet geverifieerd",sf3ff78cc329d3528:"Vorige",sf7c47b4840e56b34:"Voer de referentie van de overschrijving in",sf9ac3755f9746120:"Je overboeking kon niet worden verzonden",sfda3e4a519cfc5ba:"Afgehandeld",sfe88d270aa3e71da:"Referentie",sff155e9234c5c613:"Het bedrag overschrijdt het beschikbare saldo"};var nl=Object.freeze({__proto__:null,templates:templates$2});const templates$1={s09ca90bfc68e29fc:"Data agendada",s0fbf6dc6a1966408:"Próximo",s12bda6ed4915b346:"Em processamento",s12fda681e1531361:"Nenhuma correspondência encontrada. Por favor, verifica os dados.",s13c4efd1b5ac3a56:"Beneficiário",s256aa08dedbda698:"Não recebeste?",s270283cc22e1d66b:str`Mostrando página ${0} de ${1} (${2} itens no total)`,s2cc50a787a722cc2:"Correspondência próxima",s3f53588be475bda6:"Pega o teu telemóvel",s4543ff29118e088d:"A confirmar...",s49730f3d5751a433:"A carregar...",s4b83c11b10db3ecd:"Uma última verificação?",s5033dab8c17f05f2:"Concluído",s509a8104b078dd96:"Referência (como vista pelo beneficiário)",s54fac608002f2917:"Enviar novamente",s5734c8b4ed165968:"O valor deve ser superior a 0",s59d9f8c4cedafcc1:str`Deverás receber um SMS no número de telefone que termina em ${0}. Para continuar, confirma o pedido a partir desse número.`,s5c1d01b5aa98d03f:"Conta a debitar",s5e8250fb85d64c23:"Fechar",s6686fcc6d2c8f0bd:"Nota",s6e123a1f0f64af8e:"Confirmar transferência",s6f9fdf0ef3350f1a:"Tira um momento para verificar se está tudo correto.",s78636b92c1a3909c:"Pendente",s7f763a1084cb34a9:"Criar outra transferência",s8085f59780f33d2a:"Deverás receber um SMS no teu número de telefone. Para continuar, confirma o pedido a partir desse número.",s81ecf2d4386b8e84:"Continuar",s8237b0bd05a7c64e:"Estás a enviar",s837fcb0b70616656:"Correspondência",s84550487c5bb7441:"A tua transferência foi enviada",s84fdc2b810026968:"Correspondência próxima:",s8b0bf94f7375fa66:"Falha ao carregar as contas bancárias. Por favor, tenta novamente.",s95216d2de29c91e1:"O nome e o IBAN correspondem aos dados do beneficiário.",s9b6901ac422f46a7:"Recusado",sa30c4d3b566b6b1a:"Cancelado",sad3e3c8146fc920f:"Estado",sad59707375956ad2:"Terminar",sba98a7152d80b949:"Quantidade",sbf9c5c5a8e5efad4:"Falhou",sc1198d93e6399acd:"Introduz os detalhes da tua transferência",sd057a337e1bb84ef:"A referência é obrigatória",se497cb1f3c37ee07:"Seleciona um beneficiário",se67efe78de6988e7:"Sem correspondência",sf10c96d1fe5eddee:"Não verificado",sf3ff78cc329d3528:"Anterior",sf7c47b4840e56b34:"Introduz a referência da transferência",sf9ac3755f9746120:"Não foi possível enviar a tua transferência",sfda3e4a519cfc5ba:"Liquidado",sfe88d270aa3e71da:"Referência",sff155e9234c5c613:"O valor excede o saldo disponível"};var pt=Object.freeze({__proto__:null,templates:templates$1});const templates={s09ca90bfc68e29fc:"Data programmata",s0fbf6dc6a1966408:"Successivo",s12bda6ed4915b346:"In elaborazione",s12fda681e1531361:"Nessuna corrispondenza trovata. Verifica i dati.",s13c4efd1b5ac3a56:"Beneficiario",s256aa08dedbda698:"Non l'hai ricevuto?",s270283cc22e1d66b:str`Mostra pagina ${0} di ${1} (${2} elementi totali)`,s2cc50a787a722cc2:"Corrispondenza vicina",s3f53588be475bda6:"Prendi il tuo telefono",s4543ff29118e088d:"Conferma in corso...",s49730f3d5751a433:"Caricamento...",s4b83c11b10db3ecd:"Un'ultima verifica?",s5033dab8c17f05f2:"Completato",s509a8104b078dd96:"Causale (come vista dal beneficiario)",s54fac608002f2917:"Invia di nuovo",s5734c8b4ed165968:"L'importo deve essere maggiore di 0",s59d9f8c4cedafcc1:str`Dovresti ricevere un SMS al numero che termina con ${0}. Per continuare, conferma la richiesta da lì.`,s5c1d01b5aa98d03f:"Conto da addebitare",s5e8250fb85d64c23:"Chiudi",s6686fcc6d2c8f0bd:"Nota",s6e123a1f0f64af8e:"Conferma bonifico",s6f9fdf0ef3350f1a:"Prenditi un momento per controllare che tutto sia corretto.",s78636b92c1a3909c:"In sospeso",s7f763a1084cb34a9:"Crea un altro bonifico",s8085f59780f33d2a:"Dovresti ricevere un SMS sul tuo numero di telefono. Per continuare, conferma la richiesta da lì.",s81ecf2d4386b8e84:"Continua",s8237b0bd05a7c64e:"Stai inviando",s837fcb0b70616656:"Corrispondenza",s84550487c5bb7441:"Il tuo bonifico è stato inviato",s84fdc2b810026968:"Corrispondenza vicina:",s8b0bf94f7375fa66:"Impossibile caricare i conti bancari. Riprova.",s95216d2de29c91e1:"Il nome e l'IBAN corrispondono ai dati del beneficiario.",s9b6901ac422f46a7:"Rifiutato",sa30c4d3b566b6b1a:"Annullato",sad3e3c8146fc920f:"Stato",sad59707375956ad2:"Finisci",sba98a7152d80b949:"Importo",sbf9c5c5a8e5efad4:"Non riuscito",sc1198d93e6399acd:"Inserisci i dettagli del tuo bonifico",sd057a337e1bb84ef:"La causale è obbligatoria",se497cb1f3c37ee07:"Seleziona un beneficiario",se67efe78de6988e7:"Nessuna corrispondenza",sf10c96d1fe5eddee:"Non verificato",sf3ff78cc329d3528:"Precedente",sf7c47b4840e56b34:"Inserisci la causale del bonifico",sf9ac3755f9746120:"La tua operazione non può essere inviata",sfda3e4a519cfc5ba:"Regolato",sfe88d270aa3e71da:"Causale",sff155e9234c5c613:"L'importo supera il saldo disponibile"};var it=Object.freeze({__proto__:null,templates:templates});const locales={es:es,fr:fr$2,de:de,nl:nl,pt:pt,it:it},{getLocale:getLocale,setLocale:setLocale}=configureLocalization({sourceLocale:sourceLocale,targetLocales:targetLocales,loadLocale:(e="en")=>new Promise((t=>t(locales[e])))});function getLocalizedTransferStatus(e){switch(e){case TRANSFER_STATUSES.PENDING:return msg("Pending");case TRANSFER_STATUSES.PROCESSING:return msg("Processing");case TRANSFER_STATUSES.CANCELED:return msg("Canceled");case TRANSFER_STATUSES.DECLINED:return msg("Declined");case TRANSFER_STATUSES.SETTLED:return msg("Settled");case TRANSFER_STATUSES.FAILED:return msg("Failed");case TRANSFER_STATUSES.COMPLETED:return msg("Completed");default:return e}}let TransferList=class extends i$1{constructor(){super(...arguments),this.locale="en",this.isLoading=!1}connectedCallback(){super.connectedCallback(),setLocale(this.locale),this.fetchTransfers()}updated(e){e.has("locale")&&setLocale(this.locale)}async fetchTransfers(e){if(this.operationSettings){this.isLoading=!0,this.error=void 0;try{const{paginationSettings:t={}}=this.operationSettings,r=await getSepaTransfers({operationSettings:{...this.operationSettings,paginationSettings:{page:e??t.page??1,itemsPerPage:t.itemsPerPage??20}}});this.transfers=r.transfers,this.paginationState=r.meta}catch(e){console.error("Failed to load SEPA transfers:",e),this.error="Failed to load transfers. Please try again."}finally{this.isLoading=!1}}else console.error("operationSettings is required to fetch transfers")}handleRowClick(e){this.dispatchEvent(new TransferSelectedEvent({transfer:e}))}handlePreviousPage(){this.paginationState?.previousPage&&(this.transfers=void 0,this.fetchTransfers(this.paginationState.previousPage))}handleNextPage(){this.paginationState?.nextPage&&(this.transfers=void 0,this.fetchTransfers(this.paginationState.nextPage))}render(){return this.error?x`<div data-error>${this.error}</div>`:x`
913
+ class e extends i{constructor(e){if(super(e),this.it=E,e.type!==t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===E||null==e)return this._t=void 0,this.it=e;if(e===T)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=e$2(e);function mapTransferStatusToBadgeLevel(e){switch(e){case TRANSFER_STATUSES.SETTLED:return BADGE_LEVELS.VALIDATED;case TRANSFER_STATUSES.DECLINED:return BADGE_LEVELS.DECLINED;case TRANSFER_STATUSES.PENDING:return BADGE_LEVELS.WAITING;case TRANSFER_STATUSES.PROCESSING:return BADGE_LEVELS.IN_PROGRESS;case TRANSFER_STATUSES.CANCELED:return BADGE_LEVELS.ERROR;default:return BADGE_LEVELS.INACTIVE}}function renderLoadingTableRowsMarkup(e=3){const t=Array.from({length:e},(()=>'\n <tr>\n <td><qonto-skeleton-loader-line width="80px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="120px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="150px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="100px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="60px"></qonto-skeleton-loader-line></td>\n </tr>\n ')).join("");return o(t)}async function getSepaTransfers(e){const{stagingToken:t,proxyRequestFunction:r,accessToken:n,paginationSettings:i}=validateOperationSettingsParams(e?.operationSettings||{});if(r){const e=prepareGetSepaTransfersCall({paginationSettings:i}),t=await callProxyFunction({proxyFunction:r,networkCallDescriptor:e}),n=t.body.transfers.map(serializeSepaTransfer),a=serializePaginationResponse(t.body.meta);return{transfers:n,...a?{meta:a}:{}}}{const e=n||validatePresenceOfAuthToken(),r=await getSepaTransfers$2({accessToken:e,stagingToken:t,paginationSettings:i}),a=r.transfers.map(serializeSepaTransfer),o=serializePaginationResponse(r.meta);return{transfers:a,...o?{meta:o}:{}}}}const sourceLocale="en",targetLocales=["de","es","fr","it","nl","pt"],templates$5={s09ca90bfc68e29fc:"Fecha prevista",s0fbf6dc6a1966408:"Siguiente",s12bda6ed4915b346:"En proceso",s12fda681e1531361:"No se ha encontrado coincidencia. Por favor, verifica los datos.",s13c4efd1b5ac3a56:"Beneficiario",s256aa08dedbda698:"¿No lo recibiste?",s270283cc22e1d66b:str`Mostrando página ${0} de ${1} (${2} elementos en total)`,s2cc50a787a722cc2:"Coincidencia cercana",s3f53588be475bda6:"Coge tu teléfono",s4543ff29118e088d:"Confirmando...",s49730f3d5751a433:"Cargando...",s4b83c11b10db3ecd:"¿Una última revisión?",s5033dab8c17f05f2:"Completado",s509a8104b078dd96:"Referencia (como la ve el beneficiario)",s54fac608002f2917:"Enviar de nuevo",s5734c8b4ed165968:"El importe debe ser mayor que 0",s59d9f8c4cedafcc1:str`Deberías recibir un SMS en el número de teléfono que termina en ${0}. Para continuar, confirma la solicitud desde allí.`,s5c1d01b5aa98d03f:"Cuenta de cargo",s5e8250fb85d64c23:"Cerrar",s6686fcc6d2c8f0bd:"Nota",s6e123a1f0f64af8e:"Confirmar transferencia",s6f9fdf0ef3350f1a:"Tómate un momento para comprobar que todo es correcto.",s78636b92c1a3909c:"Pendiente",s7f763a1084cb34a9:"Crear otra transferencia",s8085f59780f33d2a:"Deberías recibir un SMS en tu número de teléfono. Para continuar, confirma la solicitud desde allí.",s81ecf2d4386b8e84:"Continuar",s8237b0bd05a7c64e:"Estás enviando",s837fcb0b70616656:"Coincidencia",s84550487c5bb7441:"Tu transferencia ha sido enviada",s84fdc2b810026968:"Coincidencia cercana:",s8b0bf94f7375fa66:"No se pudieron cargar las cuentas bancarias. Por favor, inténtalo de nuevo.",s95216d2de29c91e1:"El nombre y el IBAN coinciden con los datos de la cuenta del beneficiario.",s9b6901ac422f46a7:"Rechazado",sa30c4d3b566b6b1a:"Cancelado",sad3e3c8146fc920f:"Estado",sad59707375956ad2:"Finalizar",sba98a7152d80b949:"Importe",sbf9c5c5a8e5efad4:"Fallido",sc1198d93e6399acd:"Introduce los detalles de tu transferencia",sd057a337e1bb84ef:"La referencia es obligatoria",se497cb1f3c37ee07:"Selecciona un beneficiario",se67efe78de6988e7:"Sin coincidencia",sf10c96d1fe5eddee:"No verificado",sf3ff78cc329d3528:"Anterior",sf7c47b4840e56b34:"Introduce la referencia de la transferencia",sf9ac3755f9746120:"No se pudo enviar tu transferencia",sfda3e4a519cfc5ba:"Liquidado",sfe88d270aa3e71da:"Referencia",sff155e9234c5c613:"El importe supera el saldo disponible"};var es=Object.freeze({__proto__:null,templates:templates$5});const templates$4={s09ca90bfc68e29fc:"Date prévue",s0fbf6dc6a1966408:"Suivant",s12bda6ed4915b346:"En cours",s12fda681e1531361:"Aucune correspondance trouvée. Veuillez vérifier les informations.",s13c4efd1b5ac3a56:"Bénéficiaire",s256aa08dedbda698:"Vous ne l'avez pas reçu ?",s270283cc22e1d66b:str`Affichage de la page ${0} sur ${1} (${2} éléments au total)`,s2cc50a787a722cc2:"Correspondance proche",s3f53588be475bda6:"Prends ton téléphone",s4543ff29118e088d:"Confirmation...",s49730f3d5751a433:"Chargement...",s4b83c11b10db3ecd:"Un dernier coup d'œil ?",s5033dab8c17f05f2:"Terminé",s509a8104b078dd96:"Référence (vue par le bénéficiaire)",s54fac608002f2917:"Renvoyer",s5734c8b4ed165968:"Le montant doit être supérieur à 0",s59d9f8c4cedafcc1:str`Vous devriez recevoir un SMS sur le numéro se terminant par ${0}. Pour continuer, confirmez la demande depuis ce numéro.`,s5c1d01b5aa98d03f:"Compte à débiter",s5e8250fb85d64c23:"Fermer",s6686fcc6d2c8f0bd:"Note",s6e123a1f0f64af8e:"Confirmer le virement",s6f9fdf0ef3350f1a:"Prenez un moment pour vérifier que tout est correct.",s78636b92c1a3909c:"En attente",s7f763a1084cb34a9:"Créer un autre virement",s8085f59780f33d2a:"Vous devriez recevoir un SMS sur votre numéro de téléphone. Pour continuer, confirmez la demande depuis ce numéro.",s81ecf2d4386b8e84:"Continuer",s8237b0bd05a7c64e:"Vous envoyez",s837fcb0b70616656:"Correspondance",s84550487c5bb7441:"Votre virement a été envoyé",s84fdc2b810026968:"Correspondance proche :",s8b0bf94f7375fa66:"Échec du chargement des comptes bancaires. Veuillez réessayer.",s95216d2de29c91e1:"Le nom et l'IBAN correspondent aux informations du bénéficiaire.",s9b6901ac422f46a7:"Refusé",sa30c4d3b566b6b1a:"Annulé",sad3e3c8146fc920f:"Statut",sad59707375956ad2:"Terminer",sba98a7152d80b949:"Montant",sbf9c5c5a8e5efad4:"Échoué",sc1198d93e6399acd:"Entrez les détails de votre virement",sd057a337e1bb84ef:"La référence est requise",se497cb1f3c37ee07:"Sélectionnez un bénéficiaire",se67efe78de6988e7:"Aucune correspondance",sf10c96d1fe5eddee:"Non vérifié",sf3ff78cc329d3528:"Précédent",sf7c47b4840e56b34:"Entrez la référence du virement",sf9ac3755f9746120:"Votre virement n'a pas pu être envoyé",sfda3e4a519cfc5ba:"Réglé",sfe88d270aa3e71da:"Référence",sff155e9234c5c613:"Le montant dépasse le solde disponible"};var fr$2=Object.freeze({__proto__:null,templates:templates$4});const templates$3={s09ca90bfc68e29fc:"Geplantes Datum",s0fbf6dc6a1966408:"Nächste",s12bda6ed4915b346:"In Bearbeitung",s12fda681e1531361:"Keine Übereinstimmung gefunden. Bitte überprüfe die Angaben.",s13c4efd1b5ac3a56:"Empfänger",s256aa08dedbda698:"Nicht erhalten?",s270283cc22e1d66b:str`Seite ${0} von ${1} anzeigen (${2} Gesamtelemente)`,s2cc50a787a722cc2:"Nahe Übereinstimmung",s3f53588be475bda6:"Nimm dein Handy",s4543ff29118e088d:"Wird bestätigt...",s49730f3d5751a433:"Lädt...",s4b83c11b10db3ecd:"Noch einmal prüfen?",s5033dab8c17f05f2:"Abgeschlossen",s509a8104b078dd96:"Verwendungszweck (wie vom Empfänger gesehen)",s54fac608002f2917:"Erneut senden",s5734c8b4ed165968:"Betrag muss größer als 0 sein",s59d9f8c4cedafcc1:str`Du solltest eine SMS an die Telefonnummer erhalten, die auf ${0} endet. Um fortzufahren, bestätige die Anfrage dort.`,s5c1d01b5aa98d03f:"Belastungskonto",s5e8250fb85d64c23:"Schließen",s6686fcc6d2c8f0bd:"Notiz",s6e123a1f0f64af8e:"Überweisung bestätigen",s6f9fdf0ef3350f1a:"Nimm dir einen Moment Zeit, um alles zu überprüfen.",s78636b92c1a3909c:"Ausstehend",s7f763a1084cb34a9:"Weitere Überweisung erstellen",s8085f59780f33d2a:"Du solltest eine SMS an deine Telefonnummer erhalten. Um fortzufahren, bestätige die Anfrage dort.",s81ecf2d4386b8e84:"Fortfahren",s8237b0bd05a7c64e:"Du sendest",s837fcb0b70616656:"Übereinstimmung",s84550487c5bb7441:"Deine Überweisung wurde gesendet",s84fdc2b810026968:"Nahe Übereinstimmung:",s8b0bf94f7375fa66:"Bankkonten konnten nicht geladen werden. Bitte versuche es erneut.",s95216d2de29c91e1:"Name und IBAN stimmen mit den Kontodaten des Empfängers überein.",s9b6901ac422f46a7:"Abgelehnt",sa30c4d3b566b6b1a:"Abgebrochen",sad3e3c8146fc920f:"Status",sad59707375956ad2:"Fertigstellen",sba98a7152d80b949:"Betrag",sbf9c5c5a8e5efad4:"Fehlgeschlagen",sc1198d93e6399acd:"Gib die Details deiner Überweisung ein",sd057a337e1bb84ef:"Verwendungszweck ist erforderlich",se497cb1f3c37ee07:"Wähle einen Empfänger aus",se67efe78de6988e7:"Keine Übereinstimmung",sf10c96d1fe5eddee:"Nicht überprüft",sf3ff78cc329d3528:"Vorherige",sf7c47b4840e56b34:"Gib den Verwendungszweck der Überweisung ein",sf9ac3755f9746120:"Deine Überweisung konnte nicht gesendet werden",sfda3e4a519cfc5ba:"Abgerechnet",sfe88d270aa3e71da:"Referenz",sff155e9234c5c613:"Betrag übersteigt verfügbares Guthaben"};var de=Object.freeze({__proto__:null,templates:templates$3});const templates$2={s09ca90bfc68e29fc:"Geplande datum",s0fbf6dc6a1966408:"Volgende",s12bda6ed4915b346:"Bezig met verwerken",s12fda681e1531361:"Geen overeenkomst gevonden. Controleer de gegevens.",s13c4efd1b5ac3a56:"Begunstigde",s256aa08dedbda698:"Niet ontvangen?",s270283cc22e1d66b:str`Pagina ${0} van ${1} weergeven (${2} totaal aantal items)`,s2cc50a787a722cc2:"Dichte overeenkomst",s3f53588be475bda6:"Pak je gekoppelde apparaat erbij",s4543ff29118e088d:"Bevestigen...",s49730f3d5751a433:"Bezig met laden...",s4b83c11b10db3ecd:"Nog één keer controleren?",s5033dab8c17f05f2:"Voltooid",s509a8104b078dd96:"Referentie (zoals gezien door begunstigde)",s54fac608002f2917:"Opnieuw sturen",s5734c8b4ed165968:"Het bedrag moet groter zijn dan 0",s59d9f8c4cedafcc1:str`U zou een sms-bericht moeten ontvangen op het telefoonnummer dat eindigt op ${0}. Om door te gaan, bevestigt u het verzoek hier.`,s5c1d01b5aa98d03f:"Af te schrijven rekening",s5e8250fb85d64c23:"Sluiten",s6686fcc6d2c8f0bd:"Notitie",s6e123a1f0f64af8e:"Overschrijving bevestigen",s6f9fdf0ef3350f1a:"Neem even de tijd om te controleren of alles klopt.",s78636b92c1a3909c:"In afwachting",s7f763a1084cb34a9:"Maak nog een overschrijving",s8085f59780f33d2a:"U zou een sms moeten ontvangen op uw telefoonnummer. Om door te gaan, bevestig het verzoek daar.",s81ecf2d4386b8e84:"Doorgaan",s8237b0bd05a7c64e:"U verstuurt",s837fcb0b70616656:"Overeenkomst",s84550487c5bb7441:"Uw overschrijving is verzonden",s84fdc2b810026968:"Dichte overeenkomst:",s8b0bf94f7375fa66:"Bankrekeningen konden niet worden geladen. Probeer het opnieuw.",s95216d2de29c91e1:"Naam en IBAN komen overeen met de gegevens van de begunstigde.",s9b6901ac422f46a7:"Geweigerd",sa30c4d3b566b6b1a:"Geannuleerd",sad3e3c8146fc920f:"Status",sad59707375956ad2:"Voltooien",sba98a7152d80b949:"Bedrag",sbf9c5c5a8e5efad4:"Mislukt",sc1198d93e6399acd:"Voer uw overschrijvingsgegevens in",sd057a337e1bb84ef:"Referentie is verplicht",se497cb1f3c37ee07:"Selecteer een begunstigde",se67efe78de6988e7:"Geen overeenkomst",sf10c96d1fe5eddee:"Niet geverifieerd",sf3ff78cc329d3528:"Vorige",sf7c47b4840e56b34:"Voer de referentie van de overschrijving in",sf9ac3755f9746120:"Je overboeking kon niet worden verzonden",sfda3e4a519cfc5ba:"Afgehandeld",sfe88d270aa3e71da:"Referentie",sff155e9234c5c613:"Het bedrag overschrijdt het beschikbare saldo"};var nl=Object.freeze({__proto__:null,templates:templates$2});const templates$1={s09ca90bfc68e29fc:"Data agendada",s0fbf6dc6a1966408:"Próximo",s12bda6ed4915b346:"Em processamento",s12fda681e1531361:"Nenhuma correspondência encontrada. Por favor, verifica os dados.",s13c4efd1b5ac3a56:"Beneficiário",s256aa08dedbda698:"Não recebeste?",s270283cc22e1d66b:str`Mostrando página ${0} de ${1} (${2} itens no total)`,s2cc50a787a722cc2:"Correspondência próxima",s3f53588be475bda6:"Pega o teu telemóvel",s4543ff29118e088d:"A confirmar...",s49730f3d5751a433:"A carregar...",s4b83c11b10db3ecd:"Uma última verificação?",s5033dab8c17f05f2:"Concluído",s509a8104b078dd96:"Referência (como vista pelo beneficiário)",s54fac608002f2917:"Enviar novamente",s5734c8b4ed165968:"O valor deve ser superior a 0",s59d9f8c4cedafcc1:str`Deverás receber um SMS no número de telefone que termina em ${0}. Para continuar, confirma o pedido a partir desse número.`,s5c1d01b5aa98d03f:"Conta a debitar",s5e8250fb85d64c23:"Fechar",s6686fcc6d2c8f0bd:"Nota",s6e123a1f0f64af8e:"Confirmar transferência",s6f9fdf0ef3350f1a:"Tira um momento para verificar se está tudo correto.",s78636b92c1a3909c:"Pendente",s7f763a1084cb34a9:"Criar outra transferência",s8085f59780f33d2a:"Deverás receber um SMS no teu número de telefone. Para continuar, confirma o pedido a partir desse número.",s81ecf2d4386b8e84:"Continuar",s8237b0bd05a7c64e:"Estás a enviar",s837fcb0b70616656:"Correspondência",s84550487c5bb7441:"A tua transferência foi enviada",s84fdc2b810026968:"Correspondência próxima:",s8b0bf94f7375fa66:"Falha ao carregar as contas bancárias. Por favor, tenta novamente.",s95216d2de29c91e1:"O nome e o IBAN correspondem aos dados do beneficiário.",s9b6901ac422f46a7:"Recusado",sa30c4d3b566b6b1a:"Cancelado",sad3e3c8146fc920f:"Estado",sad59707375956ad2:"Terminar",sba98a7152d80b949:"Quantidade",sbf9c5c5a8e5efad4:"Falhou",sc1198d93e6399acd:"Introduz os detalhes da tua transferência",sd057a337e1bb84ef:"A referência é obrigatória",se497cb1f3c37ee07:"Seleciona um beneficiário",se67efe78de6988e7:"Sem correspondência",sf10c96d1fe5eddee:"Não verificado",sf3ff78cc329d3528:"Anterior",sf7c47b4840e56b34:"Introduz a referência da transferência",sf9ac3755f9746120:"Não foi possível enviar a tua transferência",sfda3e4a519cfc5ba:"Liquidado",sfe88d270aa3e71da:"Referência",sff155e9234c5c613:"O valor excede o saldo disponível"};var pt=Object.freeze({__proto__:null,templates:templates$1});const templates={s09ca90bfc68e29fc:"Data programmata",s0fbf6dc6a1966408:"Successivo",s12bda6ed4915b346:"In elaborazione",s12fda681e1531361:"Nessuna corrispondenza trovata. Verifica i dati.",s13c4efd1b5ac3a56:"Beneficiario",s256aa08dedbda698:"Non l'hai ricevuto?",s270283cc22e1d66b:str`Mostra pagina ${0} di ${1} (${2} elementi totali)`,s2cc50a787a722cc2:"Corrispondenza vicina",s3f53588be475bda6:"Prendi il tuo telefono",s4543ff29118e088d:"Conferma in corso...",s49730f3d5751a433:"Caricamento...",s4b83c11b10db3ecd:"Un'ultima verifica?",s5033dab8c17f05f2:"Completato",s509a8104b078dd96:"Causale (come vista dal beneficiario)",s54fac608002f2917:"Invia di nuovo",s5734c8b4ed165968:"L'importo deve essere maggiore di 0",s59d9f8c4cedafcc1:str`Dovresti ricevere un SMS al numero che termina con ${0}. Per continuare, conferma la richiesta da lì.`,s5c1d01b5aa98d03f:"Conto da addebitare",s5e8250fb85d64c23:"Chiudi",s6686fcc6d2c8f0bd:"Nota",s6e123a1f0f64af8e:"Conferma bonifico",s6f9fdf0ef3350f1a:"Prenditi un momento per controllare che tutto sia corretto.",s78636b92c1a3909c:"In sospeso",s7f763a1084cb34a9:"Crea un altro bonifico",s8085f59780f33d2a:"Dovresti ricevere un SMS sul tuo numero di telefono. Per continuare, conferma la richiesta da lì.",s81ecf2d4386b8e84:"Continua",s8237b0bd05a7c64e:"Stai inviando",s837fcb0b70616656:"Corrispondenza",s84550487c5bb7441:"Il tuo bonifico è stato inviato",s84fdc2b810026968:"Corrispondenza vicina:",s8b0bf94f7375fa66:"Impossibile caricare i conti bancari. Riprova.",s95216d2de29c91e1:"Il nome e l'IBAN corrispondono ai dati del beneficiario.",s9b6901ac422f46a7:"Rifiutato",sa30c4d3b566b6b1a:"Annullato",sad3e3c8146fc920f:"Stato",sad59707375956ad2:"Finisci",sba98a7152d80b949:"Importo",sbf9c5c5a8e5efad4:"Non riuscito",sc1198d93e6399acd:"Inserisci i dettagli del tuo bonifico",sd057a337e1bb84ef:"La causale è obbligatoria",se497cb1f3c37ee07:"Seleziona un beneficiario",se67efe78de6988e7:"Nessuna corrispondenza",sf10c96d1fe5eddee:"Non verificato",sf3ff78cc329d3528:"Precedente",sf7c47b4840e56b34:"Inserisci la causale del bonifico",sf9ac3755f9746120:"La tua operazione non può essere inviata",sfda3e4a519cfc5ba:"Regolato",sfe88d270aa3e71da:"Causale",sff155e9234c5c613:"L'importo supera il saldo disponibile"};var it=Object.freeze({__proto__:null,templates:templates});const locales={es:es,fr:fr$2,de:de,nl:nl,pt:pt,it:it},{getLocale:getLocale,setLocale:setLocale}=configureLocalization({sourceLocale:sourceLocale,targetLocales:targetLocales,loadLocale:(e="en")=>new Promise((t=>t(locales[e])))});function getLocalizedTransferStatus(e){switch(e){case TRANSFER_STATUSES.PENDING:return msg("Pending");case TRANSFER_STATUSES.PROCESSING:return msg("Processing");case TRANSFER_STATUSES.CANCELED:return msg("Canceled");case TRANSFER_STATUSES.DECLINED:return msg("Declined");case TRANSFER_STATUSES.SETTLED:return msg("Settled");case TRANSFER_STATUSES.FAILED:return msg("Failed");case TRANSFER_STATUSES.COMPLETED:return msg("Completed");default:return e}}let TransferList=class extends i$1{constructor(){super(...arguments),this.locale="en",this.isLoading=!1}connectedCallback(){super.connectedCallback(),setLocale(this.locale),this.fetchTransfers()}updated(e){e.has("locale")&&setLocale(this.locale)}async fetchTransfers(e){if(this.operationSettings){this.isLoading=!0,this.error=void 0;try{const{paginationSettings:t={}}=this.operationSettings,r=await getSepaTransfers({operationSettings:{...this.operationSettings,paginationSettings:{page:e??t.page??1,itemsPerPage:t.itemsPerPage??20}}});this.transfers=r.transfers,this.paginationState=r.meta}catch(e){console.error("Failed to load SEPA transfers:",e),this.error="Failed to load transfers. Please try again."}finally{this.isLoading=!1}}else console.error("operationSettings is required to fetch transfers")}handleRowClick(e){this.dispatchEvent(new TransferSelectedEvent({transfer:e}))}handlePreviousPage(){this.paginationState?.previousPage&&(this.transfers=void 0,this.fetchTransfers(this.paginationState.previousPage))}handleNextPage(){this.paginationState?.nextPage&&(this.transfers=void 0,this.fetchTransfers(this.paginationState.nextPage))}render(){return this.error?x`<div data-error>${this.error}</div>`:x`
915
914
  <table>
916
915
  <thead>
917
916
  <tr>
@@ -961,7 +960,7 @@ class e extends i{constructor(e){if(super(e),this.it=E,e.type!==t.CHILD)throw Er
961
960
  >${msg("Next")}</qonto-button
962
961
  </div>
963
962
  </div>`:""}
964
- `}};function createTransferListElement({containerElement:e,uiElementSettings:t,operationSettings:r}){const a=document.createElement("qonto-transfer-list");a.operationSettings=r,a.locale=r?.locale||localeManager.getLocale(),a.addEventListener("transfer-selected",(e=>{t?.uiElementEventListener?.({eventName:"transfer-selected",eventDetail:e.detail})})),e.appendChild(a)}TransferList.styles=transferListStyles,__decorate([n$3({type:Object})],TransferList.prototype,"operationSettings",void 0),__decorate([n$3({type:String})],TransferList.prototype,"locale",void 0),__decorate([r$1()],TransferList.prototype,"transfers",void 0),__decorate([r$1()],TransferList.prototype,"paginationState",void 0),__decorate([r$1()],TransferList.prototype,"isLoading",void 0),__decorate([r$1()],TransferList.prototype,"error",void 0),TransferList=__decorate([localized(),t$1("qonto-transfer-list")],TransferList);const sepaTransferCreationStyles=i$4`
963
+ `}};function createTransferListElement({containerElement:e,uiElementSettings:t,operationSettings:r}){const n=document.createElement("qonto-transfer-list");n.operationSettings=r,n.locale=r?.locale||localeManager.getLocale(),n.addEventListener("transfer-selected",(e=>{t?.uiElementEventListener?.({eventName:"transfer-selected",eventDetail:e.detail})})),e.appendChild(n)}TransferList.styles=transferListStyles,__decorate([n$3({type:Object})],TransferList.prototype,"operationSettings",void 0),__decorate([n$3({type:String})],TransferList.prototype,"locale",void 0),__decorate([r$1()],TransferList.prototype,"transfers",void 0),__decorate([r$1()],TransferList.prototype,"paginationState",void 0),__decorate([r$1()],TransferList.prototype,"isLoading",void 0),__decorate([r$1()],TransferList.prototype,"error",void 0),TransferList=__decorate([localized(),t$1("qonto-transfer-list")],TransferList);const sepaTransferCreationStyles=i$4`
965
964
  :host {
966
965
  display: block;
967
966
  width: 100%;
@@ -2073,7 +2072,7 @@ class e extends i{constructor(e){if(super(e),this.it=E,e.type!==t.CHILD)throw Er
2073
2072
  }
2074
2073
  }
2075
2074
  }
2076
- `;function formatAmount(e,t="en",r=2){try{return new Intl.NumberFormat(t,{minimumFractionDigits:r,maximumFractionDigits:r}).format(e)}catch(a){return console.warn(`Invalid locale "${t}", falling back to en`,a),new Intl.NumberFormat("en",{minimumFractionDigits:r,maximumFractionDigits:r}).format(e)}}function parseAmount(e){if(!e||""===e.trim())return 0;let t=e.replace(/\s/g,"");const r=t.lastIndexOf("."),a=t.lastIndexOf(",");if(r>-1&&a>-1)t=r>a?t.replace(/,/g,""):t.replace(/\./g,"").replace(",",".");else if(a>-1){const e=t.substring(a+1);t=e.length>0&&e.length<=2?t.replace(",","."):t.replace(/,/g,"")}const n=parseFloat(t);return isNaN(n)?0:n}let QontoAmountField=class extends i$1{constructor(){super(...arguments),this.id="",this.label="",this.currency="EUR",this.placeholder="0.00",this.disabled=!1,this.locale="en",this._value=0,this.error=!1,this.errorMessage="",this.displayValue="",this.isFocused=!1,this.decimalPlaces=2}get value(){return this._value}set value(e){const t="number"==typeof e?e:Number(e);this._value=isNaN(t)?0:t,this.requestUpdate("value")}get hasValue(){return 0!==this.value}get hasError(){return this.error||this.errorMessage.length>0}connectedCallback(){super.connectedCallback(),this.updateDisplayValue()}updated(e){(e.has("value")||e.has("locale"))&&this.updateDisplayValue()}updateDisplayValue(){this.isFocused||(this.displayValue=formatAmount(this.value,this.locale,this.decimalPlaces))}showRawValueForEditing(){this.displayValue=0===this.value?"":this.value.toFixed(this.decimalPlaces)}handleFocus(){this.isFocused=!0,this.showRawValueForEditing()}handleBlur(){this.isFocused=!1,this.updateDisplayValue()}handleInput(e){const t=e.target.value;this.value=parseAmount(t),this.displayValue=t,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}handleChange(e){const t=e.target.value;this.value=parseAmount(t),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return x`
2075
+ `;function formatAmount(e,t="en",r=2){try{return new Intl.NumberFormat(t,{minimumFractionDigits:r,maximumFractionDigits:r}).format(e)}catch(n){return console.warn(`Invalid locale "${t}", falling back to en`,n),new Intl.NumberFormat("en",{minimumFractionDigits:r,maximumFractionDigits:r}).format(e)}}function parseAmount(e){if(!e||""===e.trim())return 0;let t=e.replace(/\s/g,"");const r=t.lastIndexOf("."),n=t.lastIndexOf(",");if(r>-1&&n>-1)t=r>n?t.replace(/,/g,""):t.replace(/\./g,"").replace(",",".");else if(n>-1){const e=t.substring(n+1);t=e.length>0&&e.length<=2?t.replace(",","."):t.replace(/,/g,"")}const i=parseFloat(t);return isNaN(i)?0:i}let QontoAmountField=class extends i$1{constructor(){super(...arguments),this.id="",this.label="",this.currency="EUR",this.placeholder="0.00",this.disabled=!1,this.locale="en",this._value=0,this.error=!1,this.errorMessage="",this.displayValue="",this.isFocused=!1,this.decimalPlaces=2}get value(){return this._value}set value(e){const t="number"==typeof e?e:Number(e);this._value=isNaN(t)?0:t,this.requestUpdate("value")}get hasValue(){return 0!==this.value}get hasError(){return this.error||this.errorMessage.length>0}connectedCallback(){super.connectedCallback(),this.updateDisplayValue()}updated(e){(e.has("value")||e.has("locale"))&&this.updateDisplayValue()}updateDisplayValue(){this.isFocused||(this.displayValue=formatAmount(this.value,this.locale,this.decimalPlaces))}showRawValueForEditing(){this.displayValue=0===this.value?"":this.value.toFixed(this.decimalPlaces)}handleFocus(){this.isFocused=!0,this.showRawValueForEditing()}handleBlur(){this.isFocused=!1,this.updateDisplayValue()}handleInput(e){const t=e.target.value;this.value=parseAmount(t),this.displayValue=t,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}handleChange(e){const t=e.target.value;this.value=parseAmount(t),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return x`
2077
2076
  <div data-amount-field-wrapper data-error="${this.hasError}">
2078
2077
  ${this.label?x`<label data-label for=${this.id}>${this.label}</label>`:null}
2079
2078
  <div data-field>
@@ -2534,7 +2533,7 @@ class e extends i{constructor(e){if(super(e),this.it=E,e.type!==t.CHILD)throw Er
2534
2533
  <qonto-button @click=${this.handleFinishButtonPress}
2535
2534
  >${msg("Finish")}</qonto-button
2536
2535
  >
2537
- </div>`}};TransferErrorPage.styles=transferErrorPageStyles,__decorate([n$3({type:String})],TransferErrorPage.prototype,"locale",void 0),TransferErrorPage=__decorate([localized(),t$1("qonto-transfer-error-page")],TransferErrorPage);const SEPA_TRANSFER_PAGES={BENEFICIARY_SELECTION:"beneficiary-selection",TRANSFER_DETAILS:"transfer-details",TRANSFER_SUMMARY:"transfer-summary",TRANSFER_SUCCESS:"transfer-success",TRANSFER_ERROR:"transfer-error"};let SepaTransferCreation=class extends i$1{constructor(){super(...arguments),this.locale="en",this.currentPage=SEPA_TRANSFER_PAGES.BENEFICIARY_SELECTION,this.formData={beneficiary:void 0,accountToDebit:void 0,amount:"",reference:""},this.isCreatingTransfer=!1,this.handleRecipientInfoSubmitted=async e=>{const t=e.detail;if(this.formData={...this.formData,beneficiary:t.beneficiary},!this.operationSettings)return console.error("operationSettings is required to create transfer"),void(this.transferError="Missing configuration. Please try again.");this.isCreatingTransfer=!0,this.transferError=void 0;try{this.currentPage=SEPA_TRANSFER_PAGES.TRANSFER_DETAILS,this.transferCreationProcess=sepaTransfers$1.createSepaTransfer({sepaTransferSettings:{beneficiary:t.beneficiary},operationSettings:{...this.operationSettings,uiParentElementId:()=>{const e=document.querySelector("qonto-sepa-transfer-creation");return e?.shadowRoot?.getElementById("sca-container")}}});const e=await this.transferCreationProcess.next();this.vopResult=e.value}catch(e){console.error("Failed to start transfer creation:",e),this.transferError=e instanceof Error?e.message:"Failed to verify beneficiary. Please try again."}finally{this.isCreatingTransfer=!1}},this.handleTransferDetailsSubmitted=e=>{const t=e.detail;this.formData={...this.formData,accountToDebit:t.accountToDebit,amount:t.amount,reference:t.reference},this.currentPage=SEPA_TRANSFER_PAGES.TRANSFER_SUMMARY},this.handleGoToStep=e=>{this.currentPage=e.detail.step},this.handleTransferConfirmed=async e=>{const t=e.detail;if(!this.transferCreationProcess||!this.formData.accountToDebit)return console.error("Transfer creation process not initialized"),void(this.transferError="Transfer process not initialized. Please try again.");this.isCreatingTransfer=!0,this.transferError=void 0;try{const e=parseFloat(t.amount);if(isNaN(e)||e<=0)throw new Error("Invalid transfer amount");const r=await this.transferCreationProcess.next({vopDecision:VOP_DECISIONS.ACCEPT,sepaTransferSettings:{bankAccountId:this.formData.accountToDebit.id,amount:e,reference:t.reference}});r.value&&(this.dispatchEvent(new CustomEvent("sepa-transfer-created",{detail:r.value,bubbles:!0,composed:!0})),this.currentPage=SEPA_TRANSFER_PAGES.TRANSFER_SUCCESS)}catch(e){this.transferError=e instanceof Error?e.message:"Failed to create transfer. Please try again.",this.currentPage=SEPA_TRANSFER_PAGES.TRANSFER_ERROR}finally{this.isCreatingTransfer=!1}}}connectedCallback(){super.connectedCallback(),setLocale(this.locale),this.addEventListener("recipient-info-submitted",this.handleRecipientInfoSubmitted),this.addEventListener("transfer-details-submitted",this.handleTransferDetailsSubmitted),this.addEventListener("go-to-step",this.handleGoToStep),this.addEventListener("transfer-confirmed",this.handleTransferConfirmed)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("recipient-info-submitted",this.handleRecipientInfoSubmitted),this.removeEventListener("transfer-details-submitted",this.handleTransferDetailsSubmitted),this.removeEventListener("go-to-step",this.handleGoToStep),this.removeEventListener("transfer-confirmed",this.handleTransferConfirmed)}updated(e){e.has("locale")&&setLocale(this.locale)}render(){return x`
2536
+ </div>`}};TransferErrorPage.styles=transferErrorPageStyles,__decorate([n$3({type:String})],TransferErrorPage.prototype,"locale",void 0),TransferErrorPage=__decorate([localized(),t$1("qonto-transfer-error-page")],TransferErrorPage);const SEPA_TRANSFER_PAGES={BENEFICIARY_SELECTION:"beneficiary-selection",TRANSFER_DETAILS:"transfer-details",TRANSFER_SUMMARY:"transfer-summary",TRANSFER_SUCCESS:"transfer-success",TRANSFER_ERROR:"transfer-error"};let SepaTransferCreation=class extends i$1{constructor(){super(...arguments),this.locale="en",this.currentPage=SEPA_TRANSFER_PAGES.BENEFICIARY_SELECTION,this.formData={beneficiary:void 0,accountToDebit:void 0,amount:"",reference:""},this.isCreatingTransfer=!1,this.handleRecipientInfoSubmitted=async e=>{const t=e.detail;if(this.formData={...this.formData,beneficiary:t.beneficiary},!this.operationSettings)return console.error("operationSettings is required to create transfer"),void(this.transferError="Missing configuration. Please try again.");this.isCreatingTransfer=!0,this.transferError=void 0;try{this.currentPage=SEPA_TRANSFER_PAGES.TRANSFER_DETAILS,this.transferCreationProcess=sepaTransfers.createSepaTransfer({sepaTransferSettings:{beneficiary:t.beneficiary},operationSettings:{...this.operationSettings?{proxyRequestFunction:this.operationSettings.proxyRequestFunction,proxyEndpointDescriptor:this.operationSettings.proxyEndpointDescriptor,mfaPreference:this.operationSettings.mfaPreference,debugMode:this.operationSettings.debugMode,locale:this.operationSettings.locale}:{},uiParentElementId:()=>{const e=document.querySelector("qonto-sepa-transfer-creation");return e?.shadowRoot?.getElementById("sca-container")}}});const e=await this.transferCreationProcess.next();this.vopResult=e.value}catch(e){console.error("Failed to start transfer creation:",e),this.transferError=e instanceof Error?e.message:"Failed to verify beneficiary. Please try again."}finally{this.isCreatingTransfer=!1}},this.handleTransferDetailsSubmitted=e=>{const t=e.detail;this.formData={...this.formData,accountToDebit:t.accountToDebit,amount:t.amount,reference:t.reference},this.currentPage=SEPA_TRANSFER_PAGES.TRANSFER_SUMMARY},this.handleGoToStep=e=>{this.currentPage=e.detail.step},this.handleTransferConfirmed=async e=>{const t=e.detail;if(!this.transferCreationProcess||!this.formData.accountToDebit)return console.error("Transfer creation process not initialized"),void(this.transferError="Transfer process not initialized. Please try again.");this.isCreatingTransfer=!0,this.transferError=void 0;try{const e=parseFloat(t.amount);if(isNaN(e)||e<=0)throw new Error("Invalid transfer amount");const r=await this.transferCreationProcess.next({vopDecision:VOP_DECISIONS.ACCEPT,sepaTransferSettings:{bankAccountId:this.formData.accountToDebit.id,amount:e,reference:t.reference}});r.value&&"transfer"in r.value&&(this.dispatchEvent(new CustomEvent("sepa-transfer-created",{detail:r.value.transfer,bubbles:!0,composed:!0})),this.currentPage=SEPA_TRANSFER_PAGES.TRANSFER_SUCCESS)}catch(e){this.transferError=e instanceof Error?e.message:"Failed to create transfer. Please try again.",this.currentPage=SEPA_TRANSFER_PAGES.TRANSFER_ERROR}finally{this.isCreatingTransfer=!1}}}connectedCallback(){super.connectedCallback(),setLocale(this.locale),this.addEventListener("recipient-info-submitted",this.handleRecipientInfoSubmitted),this.addEventListener("transfer-details-submitted",this.handleTransferDetailsSubmitted),this.addEventListener("go-to-step",this.handleGoToStep),this.addEventListener("transfer-confirmed",this.handleTransferConfirmed)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("recipient-info-submitted",this.handleRecipientInfoSubmitted),this.removeEventListener("transfer-details-submitted",this.handleTransferDetailsSubmitted),this.removeEventListener("go-to-step",this.handleGoToStep),this.removeEventListener("transfer-confirmed",this.handleTransferConfirmed)}updated(e){e.has("locale")&&setLocale(this.locale)}render(){return x`
2538
2537
  <div data-router-outlet>
2539
2538
  <div id="sca-container" data-sca-modal></div>
2540
2539
  ${(()=>{switch(this.currentPage){case SEPA_TRANSFER_PAGES.BENEFICIARY_SELECTION:return x`<qonto-beneficiary-selection-page
@@ -2565,4 +2564,4 @@ class e extends i{constructor(e){if(super(e),this.it=E,e.type!==t.CHILD)throw Er
2565
2564
  .locale=${this.locale}
2566
2565
  ></qonto-transfer-error-page>`}})()}
2567
2566
  </div>
2568
- `}};function createSepaTransferCreationElement({containerElement:e,uiElementSettings:t,operationSettings:r}){const a=document.createElement("qonto-sepa-transfer-creation");a.operationSettings={...operationSettingsManager.getSettings(),...r},a.locale=r?.locale||localeManager.getLocale(),a.addEventListener("sepa-transfer-created",(e=>{t?.uiElementEventListener?.({eventName:"sepa-transfer-created",eventDetail:e.detail})})),a.addEventListener("sepa-transfer-creation-flow-completed",(e=>{t?.uiElementEventListener?.({eventName:"sepa-transfer-creation-flow-completed",eventDetail:e.detail})})),e.appendChild(a)}SepaTransferCreation.styles=sepaTransferCreationStyles,__decorate([n$3({type:Object})],SepaTransferCreation.prototype,"operationSettings",void 0),__decorate([n$3({type:String})],SepaTransferCreation.prototype,"locale",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"currentPage",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"formData",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"transferCreationProcess",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"vopResult",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"isCreatingTransfer",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"transferError",void 0),SepaTransferCreation=__decorate([localized(),t$1("qonto-sepa-transfer-creation")],SepaTransferCreation);const createUIElement=async e=>{if(isRunningInServer())return;const{uiElementSettings:t,operationSettings:r={}}=e,{uiElementName:a}=validateCreateUIElementParams(t),{uiParentElementId:n}=validateOperationSettingsParams(r,{requiresUI:!0}),i=getUIParentElement(n);if(a===UI_ELEMENT_NAMES.TRANSFER_LIST)return void createTransferListElement({containerElement:i,uiElementSettings:t,operationSettings:r});if(a===UI_ELEMENT_NAMES.SEPA_TRANSFER_CREATION)return void createSepaTransferCreationElement({containerElement:i,uiElementSettings:t,operationSettings:r});const o=document.createElement(`qonto-${a}`);i.appendChild(o)},ui$1={createUIElement:createUIElement},ui=ui$1;exports.authLinks=authLinks,exports.beneficiaries=beneficiaries,exports.cards=cards,exports.constants=constants,exports.initialize=initialize,exports.logout=logout,exports.organizations=organizations,exports.paymentLinks=paymentLinks,exports.sepaTransfers=sepaTransfers,exports.transactions=transactions,exports.ui=ui}));
2567
+ `}};function createSepaTransferCreationElement({containerElement:e,uiElementSettings:t,operationSettings:r}){const n=document.createElement("qonto-sepa-transfer-creation");n.operationSettings={...operationSettingsManager.getSettings(),...r},n.locale=r?.locale||localeManager.getLocale(),n.addEventListener("sepa-transfer-created",(e=>{t?.uiElementEventListener?.({eventName:"sepa-transfer-created",eventDetail:e.detail})})),n.addEventListener("sepa-transfer-creation-flow-completed",(e=>{t?.uiElementEventListener?.({eventName:"sepa-transfer-creation-flow-completed",eventDetail:e.detail})})),e.appendChild(n)}SepaTransferCreation.styles=sepaTransferCreationStyles,__decorate([n$3({type:Object})],SepaTransferCreation.prototype,"operationSettings",void 0),__decorate([n$3({type:String})],SepaTransferCreation.prototype,"locale",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"currentPage",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"formData",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"transferCreationProcess",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"vopResult",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"isCreatingTransfer",void 0),__decorate([r$1()],SepaTransferCreation.prototype,"transferError",void 0),SepaTransferCreation=__decorate([localized(),t$1("qonto-sepa-transfer-creation")],SepaTransferCreation);const createUIElement=async e=>{if(isRunningInServer())return;const{uiElementSettings:t,operationSettings:r={}}=e,{uiElementName:n}=validateCreateUIElementParams(t),{uiParentElementId:i}=validateOperationSettingsParams(r,{requiresUI:!0}),a=getUIParentElement(i);if(n===UI_ELEMENT_NAMES.TRANSFER_LIST)return void createTransferListElement({containerElement:a,uiElementSettings:t,operationSettings:r});if(n===UI_ELEMENT_NAMES.SEPA_TRANSFER_CREATION)return void createSepaTransferCreationElement({containerElement:a,uiElementSettings:t,operationSettings:r});const o=document.createElement(`qonto-${n}`);a.appendChild(o)},ui$1={createUIElement:createUIElement},ui=ui$1;exports.authLinks=authLinks,exports.beneficiaries=beneficiaries,exports.cards=cards,exports.constants=constants,exports.initialize=initialize,exports.logout=logout,exports.organizations=organizations,exports.paymentLinks=paymentLinks,exports.sepaTransfers=sepaTransfers,exports.transactions=transactions,exports.ui=ui}));