@clerk/ui 0.0.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 (1123) hide show
  1. package/LICENSE +21 -0
  2. package/dist/browser/base-account-sdk_ui_0acdd6_0.0.1.js +1 -0
  3. package/dist/browser/base-account-sdk_ui_76b8c3_0.0.1.js +1 -0
  4. package/dist/browser/coinbase-wallet-sdk_ui_0acdd6_0.0.1.js +3 -0
  5. package/dist/browser/coinbase-wallet-sdk_ui_76b8c3_0.0.1.js +3 -0
  6. package/dist/browser/framework_ui_0acdd6_0.0.1.js +1 -0
  7. package/dist/browser/framework_ui_76b8c3_0.0.1.js +1 -0
  8. package/dist/browser/ui-common_ui_0acdd6_0.0.1.js +418 -0
  9. package/dist/browser/ui-common_ui_76b8c3_0.0.1.js +418 -0
  10. package/dist/browser/ui.browser.js +3 -0
  11. package/dist/browser/vendors_ui_0acdd6_0.0.1.js +20 -0
  12. package/dist/browser/vendors_ui_76b8c3_0.0.1.js +20 -0
  13. package/dist/browser/zxcvbn-common_ui_0acdd6_0.0.1.js +1 -0
  14. package/dist/browser/zxcvbn-common_ui_76b8c3_0.0.1.js +1 -0
  15. package/dist/browser/zxcvbn-ts-core_ui_0acdd6_0.0.1.js +2 -0
  16. package/dist/browser/zxcvbn-ts-core_ui_76b8c3_0.0.1.js +2 -0
  17. package/dist/types/ClerkUi.d.ts +12 -0
  18. package/dist/types/ClerkUi.d.ts.map +1 -0
  19. package/dist/types/Components.d.ts +41 -0
  20. package/dist/types/Components.d.ts.map +1 -0
  21. package/dist/types/baseTheme.d.ts +4 -0
  22. package/dist/types/baseTheme.d.ts.map +1 -0
  23. package/dist/types/common/CalloutWithAction.d.ts +13 -0
  24. package/dist/types/common/CalloutWithAction.d.ts.map +1 -0
  25. package/dist/types/common/ChooseEnterpriseConnectionCard.d.ts +16 -0
  26. package/dist/types/common/ChooseEnterpriseConnectionCard.d.ts.map +1 -0
  27. package/dist/types/common/CustomPageContentContainer.d.ts +3 -0
  28. package/dist/types/common/CustomPageContentContainer.d.ts.map +1 -0
  29. package/dist/types/common/DevOnly.d.ts +3 -0
  30. package/dist/types/common/DevOnly.d.ts.map +1 -0
  31. package/dist/types/common/EmailLinkCompleteFlowCard.d.ts +4 -0
  32. package/dist/types/common/EmailLinkCompleteFlowCard.d.ts.map +1 -0
  33. package/dist/types/common/EmailLinkStatusCard.d.ts +12 -0
  34. package/dist/types/common/EmailLinkStatusCard.d.ts.map +1 -0
  35. package/dist/types/common/EmailLinkVerify.d.ts +15 -0
  36. package/dist/types/common/EmailLinkVerify.d.ts.map +1 -0
  37. package/dist/types/common/Gate.d.ts +29 -0
  38. package/dist/types/common/Gate.d.ts.map +1 -0
  39. package/dist/types/common/InfiniteListSpinner.d.ts +2 -0
  40. package/dist/types/common/InfiniteListSpinner.d.ts.map +1 -0
  41. package/dist/types/common/NotificationCountBadge.d.ts +10 -0
  42. package/dist/types/common/NotificationCountBadge.d.ts.map +1 -0
  43. package/dist/types/common/PrintableComponent.d.ts +12 -0
  44. package/dist/types/common/PrintableComponent.d.ts.map +1 -0
  45. package/dist/types/common/ProviderInitialIcon.d.ts +10 -0
  46. package/dist/types/common/ProviderInitialIcon.d.ts.map +1 -0
  47. package/dist/types/common/QRCode.d.ts +9 -0
  48. package/dist/types/common/QRCode.d.ts.map +1 -0
  49. package/dist/types/common/RemoveResourceForm.d.ts +12 -0
  50. package/dist/types/common/RemoveResourceForm.d.ts.map +1 -0
  51. package/dist/types/common/SSOCallback.d.ts +4 -0
  52. package/dist/types/common/SSOCallback.d.ts.map +1 -0
  53. package/dist/types/common/Wizard.d.ts +19 -0
  54. package/dist/types/common/Wizard.d.ts.map +1 -0
  55. package/dist/types/common/constants.d.ts +21 -0
  56. package/dist/types/common/constants.d.ts.map +1 -0
  57. package/dist/types/common/forms.d.ts +13 -0
  58. package/dist/types/common/forms.d.ts.map +1 -0
  59. package/dist/types/common/index.d.ts +18 -0
  60. package/dist/types/common/index.d.ts.map +1 -0
  61. package/dist/types/common/organizations/OrganizationPreview.d.ts +26 -0
  62. package/dist/types/common/organizations/OrganizationPreview.d.ts.map +1 -0
  63. package/dist/types/common/redirects.d.ts +20 -0
  64. package/dist/types/common/redirects.d.ts.map +1 -0
  65. package/dist/types/common/verification.d.ts +8 -0
  66. package/dist/types/common/verification.d.ts.map +1 -0
  67. package/dist/types/common/withRedirect.d.ts +28 -0
  68. package/dist/types/common/withRedirect.d.ts.map +1 -0
  69. package/dist/types/components/ApiKeys/APIKeyModal.d.ts +8 -0
  70. package/dist/types/components/ApiKeys/APIKeyModal.d.ts.map +1 -0
  71. package/dist/types/components/ApiKeys/ApiKeys.d.ts +9 -0
  72. package/dist/types/components/ApiKeys/ApiKeys.d.ts.map +1 -0
  73. package/dist/types/components/ApiKeys/ApiKeysTable.d.ts +10 -0
  74. package/dist/types/components/ApiKeys/ApiKeysTable.d.ts.map +1 -0
  75. package/dist/types/components/ApiKeys/CopyAPIKeyModal.d.ts +11 -0
  76. package/dist/types/components/ApiKeys/CopyAPIKeyModal.d.ts.map +1 -0
  77. package/dist/types/components/ApiKeys/CreateApiKeyForm.d.ts +13 -0
  78. package/dist/types/components/ApiKeys/CreateApiKeyForm.d.ts.map +1 -0
  79. package/dist/types/components/ApiKeys/RevokeAPIKeyConfirmationModal.d.ts +12 -0
  80. package/dist/types/components/ApiKeys/RevokeAPIKeyConfirmationModal.d.ts.map +1 -0
  81. package/dist/types/components/ApiKeys/utils.d.ts +19 -0
  82. package/dist/types/components/ApiKeys/utils.d.ts.map +1 -0
  83. package/dist/types/components/BlankCaptchaModal/index.d.ts +6 -0
  84. package/dist/types/components/BlankCaptchaModal/index.d.ts.map +1 -0
  85. package/dist/types/components/Checkout/CheckoutComplete.d.ts +2 -0
  86. package/dist/types/components/Checkout/CheckoutComplete.d.ts.map +1 -0
  87. package/dist/types/components/Checkout/CheckoutForm.d.ts +3 -0
  88. package/dist/types/components/Checkout/CheckoutForm.d.ts.map +1 -0
  89. package/dist/types/components/Checkout/CheckoutPage.d.ts +14 -0
  90. package/dist/types/components/Checkout/CheckoutPage.d.ts.map +1 -0
  91. package/dist/types/components/Checkout/index.d.ts +3 -0
  92. package/dist/types/components/Checkout/index.d.ts.map +1 -0
  93. package/dist/types/components/Checkout/parts.d.ts +4 -0
  94. package/dist/types/components/Checkout/parts.d.ts.map +1 -0
  95. package/dist/types/components/CreateOrganization/CreateOrganization.d.ts +4 -0
  96. package/dist/types/components/CreateOrganization/CreateOrganization.d.ts.map +1 -0
  97. package/dist/types/components/CreateOrganization/CreateOrganizationForm.d.ts +22 -0
  98. package/dist/types/components/CreateOrganization/CreateOrganizationForm.d.ts.map +1 -0
  99. package/dist/types/components/CreateOrganization/CreateOrganizationPage.d.ts +2 -0
  100. package/dist/types/components/CreateOrganization/CreateOrganizationPage.d.ts.map +1 -0
  101. package/dist/types/components/CreateOrganization/index.d.ts +2 -0
  102. package/dist/types/components/CreateOrganization/index.d.ts.map +1 -0
  103. package/dist/types/components/GoogleOneTap/index.d.ts +4 -0
  104. package/dist/types/components/GoogleOneTap/index.d.ts.map +1 -0
  105. package/dist/types/components/GoogleOneTap/one-tap-start.d.ts +2 -0
  106. package/dist/types/components/GoogleOneTap/one-tap-start.d.ts.map +1 -0
  107. package/dist/types/components/ImpersonationFab/index.d.ts +3 -0
  108. package/dist/types/components/ImpersonationFab/index.d.ts.map +1 -0
  109. package/dist/types/components/KeylessPrompt/ClerkLogoIcon.d.ts +2 -0
  110. package/dist/types/components/KeylessPrompt/ClerkLogoIcon.d.ts.map +1 -0
  111. package/dist/types/components/KeylessPrompt/KeySlashIcon.d.ts +2 -0
  112. package/dist/types/components/KeylessPrompt/KeySlashIcon.d.ts.map +1 -0
  113. package/dist/types/components/KeylessPrompt/index.d.ts +8 -0
  114. package/dist/types/components/KeylessPrompt/index.d.ts.map +1 -0
  115. package/dist/types/components/KeylessPrompt/use-revalidate-environment.d.ts +7 -0
  116. package/dist/types/components/KeylessPrompt/use-revalidate-environment.d.ts.map +1 -0
  117. package/dist/types/components/OAuthConsent/OAuthConsent.d.ts +3 -0
  118. package/dist/types/components/OAuthConsent/OAuthConsent.d.ts.map +1 -0
  119. package/dist/types/components/OrganizationList/OrganizationListPage.d.ts +5 -0
  120. package/dist/types/components/OrganizationList/OrganizationListPage.d.ts.map +1 -0
  121. package/dist/types/components/OrganizationList/UserInvitationList.d.ts +6 -0
  122. package/dist/types/components/OrganizationList/UserInvitationList.d.ts.map +1 -0
  123. package/dist/types/components/OrganizationList/UserMembershipList.d.ts +6 -0
  124. package/dist/types/components/OrganizationList/UserMembershipList.d.ts.map +1 -0
  125. package/dist/types/components/OrganizationList/UserSuggestionList.d.ts +4 -0
  126. package/dist/types/components/OrganizationList/UserSuggestionList.d.ts.map +1 -0
  127. package/dist/types/components/OrganizationList/index.d.ts +2 -0
  128. package/dist/types/components/OrganizationList/index.d.ts.map +1 -0
  129. package/dist/types/components/OrganizationList/shared.d.ts +12 -0
  130. package/dist/types/components/OrganizationList/shared.d.ts.map +1 -0
  131. package/dist/types/components/OrganizationList/utils.d.ts +13 -0
  132. package/dist/types/components/OrganizationList/utils.d.ts.map +1 -0
  133. package/dist/types/components/OrganizationProfile/ActionConfirmationPage.d.ts +7 -0
  134. package/dist/types/components/OrganizationProfile/ActionConfirmationPage.d.ts.map +1 -0
  135. package/dist/types/components/OrganizationProfile/ActiveMembersList.d.ts +8 -0
  136. package/dist/types/components/OrganizationProfile/ActiveMembersList.d.ts.map +1 -0
  137. package/dist/types/components/OrganizationProfile/AddDomainForm.d.ts +3 -0
  138. package/dist/types/components/OrganizationProfile/AddDomainForm.d.ts.map +1 -0
  139. package/dist/types/components/OrganizationProfile/BillingWidget.d.ts +5 -0
  140. package/dist/types/components/OrganizationProfile/BillingWidget.d.ts.map +1 -0
  141. package/dist/types/components/OrganizationProfile/DomainList.d.ts +10 -0
  142. package/dist/types/components/OrganizationProfile/DomainList.d.ts.map +1 -0
  143. package/dist/types/components/OrganizationProfile/EnrollmentBadge.d.ts +5 -0
  144. package/dist/types/components/OrganizationProfile/EnrollmentBadge.d.ts.map +1 -0
  145. package/dist/types/components/OrganizationProfile/InviteMembersForm.d.ts +10 -0
  146. package/dist/types/components/OrganizationProfile/InviteMembersForm.d.ts.map +1 -0
  147. package/dist/types/components/OrganizationProfile/InviteMembersScreen.d.ts +7 -0
  148. package/dist/types/components/OrganizationProfile/InviteMembersScreen.d.ts.map +1 -0
  149. package/dist/types/components/OrganizationProfile/InvitedMembersList.d.ts +2 -0
  150. package/dist/types/components/OrganizationProfile/InvitedMembersList.d.ts.map +1 -0
  151. package/dist/types/components/OrganizationProfile/MemberListTable.d.ts +32 -0
  152. package/dist/types/components/OrganizationProfile/MemberListTable.d.ts.map +1 -0
  153. package/dist/types/components/OrganizationProfile/MembersActions.d.ts +6 -0
  154. package/dist/types/components/OrganizationProfile/MembersActions.d.ts.map +1 -0
  155. package/dist/types/components/OrganizationProfile/MembersSearch.d.ts +27 -0
  156. package/dist/types/components/OrganizationProfile/MembersSearch.d.ts.map +1 -0
  157. package/dist/types/components/OrganizationProfile/MembershipWidget.d.ts +2 -0
  158. package/dist/types/components/OrganizationProfile/MembershipWidget.d.ts.map +1 -0
  159. package/dist/types/components/OrganizationProfile/OrganizationApiKeysPage.d.ts +2 -0
  160. package/dist/types/components/OrganizationProfile/OrganizationApiKeysPage.d.ts.map +1 -0
  161. package/dist/types/components/OrganizationProfile/OrganizationBillingPage.d.ts +2 -0
  162. package/dist/types/components/OrganizationProfile/OrganizationBillingPage.d.ts.map +1 -0
  163. package/dist/types/components/OrganizationProfile/OrganizationGeneralPage.d.ts +2 -0
  164. package/dist/types/components/OrganizationProfile/OrganizationGeneralPage.d.ts.map +1 -0
  165. package/dist/types/components/OrganizationProfile/OrganizationMembers.d.ts +3 -0
  166. package/dist/types/components/OrganizationProfile/OrganizationMembers.d.ts.map +1 -0
  167. package/dist/types/components/OrganizationProfile/OrganizationMembersTabInvitations.d.ts +2 -0
  168. package/dist/types/components/OrganizationProfile/OrganizationMembersTabInvitations.d.ts.map +1 -0
  169. package/dist/types/components/OrganizationProfile/OrganizationMembersTabRequests.d.ts +2 -0
  170. package/dist/types/components/OrganizationProfile/OrganizationMembersTabRequests.d.ts.map +1 -0
  171. package/dist/types/components/OrganizationProfile/OrganizationPaymentAttemptPage.d.ts +2 -0
  172. package/dist/types/components/OrganizationProfile/OrganizationPaymentAttemptPage.d.ts.map +1 -0
  173. package/dist/types/components/OrganizationProfile/OrganizationPlansPage.d.ts +2 -0
  174. package/dist/types/components/OrganizationProfile/OrganizationPlansPage.d.ts.map +1 -0
  175. package/dist/types/components/OrganizationProfile/OrganizationProfileAvatarUploader.d.ts +6 -0
  176. package/dist/types/components/OrganizationProfile/OrganizationProfileAvatarUploader.d.ts.map +1 -0
  177. package/dist/types/components/OrganizationProfile/OrganizationProfileNavbar.d.ts +5 -0
  178. package/dist/types/components/OrganizationProfile/OrganizationProfileNavbar.d.ts.map +1 -0
  179. package/dist/types/components/OrganizationProfile/OrganizationProfileRoutes.d.ts +2 -0
  180. package/dist/types/components/OrganizationProfile/OrganizationProfileRoutes.d.ts.map +1 -0
  181. package/dist/types/components/OrganizationProfile/OrganizationStatementPage.d.ts +2 -0
  182. package/dist/types/components/OrganizationProfile/OrganizationStatementPage.d.ts.map +1 -0
  183. package/dist/types/components/OrganizationProfile/ProfileForm.d.ts +3 -0
  184. package/dist/types/components/OrganizationProfile/ProfileForm.d.ts.map +1 -0
  185. package/dist/types/components/OrganizationProfile/RemoveDomainForm.d.ts +7 -0
  186. package/dist/types/components/OrganizationProfile/RemoveDomainForm.d.ts.map +1 -0
  187. package/dist/types/components/OrganizationProfile/RemoveDomainScreen.d.ts +6 -0
  188. package/dist/types/components/OrganizationProfile/RemoveDomainScreen.d.ts.map +1 -0
  189. package/dist/types/components/OrganizationProfile/RequestToJoinList.d.ts +2 -0
  190. package/dist/types/components/OrganizationProfile/RequestToJoinList.d.ts.map +1 -0
  191. package/dist/types/components/OrganizationProfile/VerifiedDomainForm.d.ts +8 -0
  192. package/dist/types/components/OrganizationProfile/VerifiedDomainForm.d.ts.map +1 -0
  193. package/dist/types/components/OrganizationProfile/VerifiedDomainScreen.d.ts +6 -0
  194. package/dist/types/components/OrganizationProfile/VerifiedDomainScreen.d.ts.map +1 -0
  195. package/dist/types/components/OrganizationProfile/VerifyDomainForm.d.ts +8 -0
  196. package/dist/types/components/OrganizationProfile/VerifyDomainForm.d.ts.map +1 -0
  197. package/dist/types/components/OrganizationProfile/VerifyDomainScreen.d.ts +6 -0
  198. package/dist/types/components/OrganizationProfile/VerifyDomainScreen.d.ts.map +1 -0
  199. package/dist/types/components/OrganizationProfile/index.d.ts +4 -0
  200. package/dist/types/components/OrganizationProfile/index.d.ts.map +1 -0
  201. package/dist/types/components/OrganizationSwitcher/OrganizationSwitcherPopover.d.ts +9 -0
  202. package/dist/types/components/OrganizationSwitcher/OrganizationSwitcherPopover.d.ts.map +1 -0
  203. package/dist/types/components/OrganizationSwitcher/OrganizationSwitcherTrigger.d.ts +8 -0
  204. package/dist/types/components/OrganizationSwitcher/OrganizationSwitcherTrigger.d.ts.map +1 -0
  205. package/dist/types/components/OrganizationSwitcher/OtherOrganizationActions.d.ts +7 -0
  206. package/dist/types/components/OrganizationSwitcher/OtherOrganizationActions.d.ts.map +1 -0
  207. package/dist/types/components/OrganizationSwitcher/UserInvitationSuggestionList.d.ts +8 -0
  208. package/dist/types/components/OrganizationSwitcher/UserInvitationSuggestionList.d.ts.map +1 -0
  209. package/dist/types/components/OrganizationSwitcher/UserMembershipList.d.ts +8 -0
  210. package/dist/types/components/OrganizationSwitcher/UserMembershipList.d.ts.map +1 -0
  211. package/dist/types/components/OrganizationSwitcher/index.d.ts +2 -0
  212. package/dist/types/components/OrganizationSwitcher/index.d.ts.map +1 -0
  213. package/dist/types/components/OrganizationSwitcher/utils.d.ts +26 -0
  214. package/dist/types/components/OrganizationSwitcher/utils.d.ts.map +1 -0
  215. package/dist/types/components/PaymentAttempts/PaymentAttemptPage.d.ts +2 -0
  216. package/dist/types/components/PaymentAttempts/PaymentAttemptPage.d.ts.map +1 -0
  217. package/dist/types/components/PaymentAttempts/PaymentAttemptsList.d.ts +2 -0
  218. package/dist/types/components/PaymentAttempts/PaymentAttemptsList.d.ts.map +1 -0
  219. package/dist/types/components/PaymentAttempts/index.d.ts +3 -0
  220. package/dist/types/components/PaymentAttempts/index.d.ts.map +1 -0
  221. package/dist/types/components/PaymentMethods/AddPaymentMethod.d.ts +23 -0
  222. package/dist/types/components/PaymentMethods/AddPaymentMethod.d.ts.map +1 -0
  223. package/dist/types/components/PaymentMethods/PaymentElementSkeleton.d.ts +3 -0
  224. package/dist/types/components/PaymentMethods/PaymentElementSkeleton.d.ts.map +1 -0
  225. package/dist/types/components/PaymentMethods/PaymentMethodRow.d.ts +5 -0
  226. package/dist/types/components/PaymentMethods/PaymentMethodRow.d.ts.map +1 -0
  227. package/dist/types/components/PaymentMethods/PaymentMethods.d.ts +2 -0
  228. package/dist/types/components/PaymentMethods/PaymentMethods.d.ts.map +1 -0
  229. package/dist/types/components/PaymentMethods/TestPaymentMethod.d.ts +2 -0
  230. package/dist/types/components/PaymentMethods/TestPaymentMethod.d.ts.map +1 -0
  231. package/dist/types/components/PaymentMethods/index.d.ts +4 -0
  232. package/dist/types/components/PaymentMethods/index.d.ts.map +1 -0
  233. package/dist/types/components/Plans/PlanDetails.d.ts +3 -0
  234. package/dist/types/components/Plans/PlanDetails.d.ts.map +1 -0
  235. package/dist/types/components/PricingTable/PricingTable.d.ts +3 -0
  236. package/dist/types/components/PricingTable/PricingTable.d.ts.map +1 -0
  237. package/dist/types/components/PricingTable/PricingTableDefault.d.ts +13 -0
  238. package/dist/types/components/PricingTable/PricingTableDefault.d.ts.map +1 -0
  239. package/dist/types/components/PricingTable/PricingTableMatrix.d.ts +12 -0
  240. package/dist/types/components/PricingTable/PricingTableMatrix.d.ts.map +1 -0
  241. package/dist/types/components/PricingTable/index.d.ts +2 -0
  242. package/dist/types/components/PricingTable/index.d.ts.map +1 -0
  243. package/dist/types/components/PricingTable/utils/pricing-footer-state.d.ts +14 -0
  244. package/dist/types/components/PricingTable/utils/pricing-footer-state.d.ts.map +1 -0
  245. package/dist/types/components/SessionTasks/index.d.ts +9 -0
  246. package/dist/types/components/SessionTasks/index.d.ts.map +1 -0
  247. package/dist/types/components/SessionTasks/tasks/TaskChooseOrganization/ChooseOrganizationScreen.d.ts +6 -0
  248. package/dist/types/components/SessionTasks/tasks/TaskChooseOrganization/ChooseOrganizationScreen.d.ts.map +1 -0
  249. package/dist/types/components/SessionTasks/tasks/TaskChooseOrganization/CreateOrganizationScreen.d.ts +6 -0
  250. package/dist/types/components/SessionTasks/tasks/TaskChooseOrganization/CreateOrganizationScreen.d.ts.map +1 -0
  251. package/dist/types/components/SessionTasks/tasks/TaskChooseOrganization/index.d.ts +2 -0
  252. package/dist/types/components/SessionTasks/tasks/TaskChooseOrganization/index.d.ts.map +1 -0
  253. package/dist/types/components/SessionTasks/tasks/withTaskGuard.d.ts +7 -0
  254. package/dist/types/components/SessionTasks/tasks/withTaskGuard.d.ts.map +1 -0
  255. package/dist/types/components/SignIn/AlternativeMethods.d.ts +18 -0
  256. package/dist/types/components/SignIn/AlternativeMethods.d.ts.map +1 -0
  257. package/dist/types/components/SignIn/HavingTrouble.d.ts +4 -0
  258. package/dist/types/components/SignIn/HavingTrouble.d.ts.map +1 -0
  259. package/dist/types/components/SignIn/ResetPassword.d.ts +2 -0
  260. package/dist/types/components/SignIn/ResetPassword.d.ts.map +1 -0
  261. package/dist/types/components/SignIn/ResetPasswordSuccess.d.ts +2 -0
  262. package/dist/types/components/SignIn/ResetPasswordSuccess.d.ts.map +1 -0
  263. package/dist/types/components/SignIn/SignInAccountSwitcher.d.ts +5 -0
  264. package/dist/types/components/SignIn/SignInAccountSwitcher.d.ts.map +1 -0
  265. package/dist/types/components/SignIn/SignInAlternativePhoneCodePhoneNumberCard.d.ts +11 -0
  266. package/dist/types/components/SignIn/SignInAlternativePhoneCodePhoneNumberCard.d.ts.map +1 -0
  267. package/dist/types/components/SignIn/SignInFactorOne.d.ts +5 -0
  268. package/dist/types/components/SignIn/SignInFactorOne.d.ts.map +1 -0
  269. package/dist/types/components/SignIn/SignInFactorOneAlternativeChannelCodeForm.d.ts +17 -0
  270. package/dist/types/components/SignIn/SignInFactorOneAlternativeChannelCodeForm.d.ts.map +1 -0
  271. package/dist/types/components/SignIn/SignInFactorOneAlternativePhoneCodeCard.d.ts +8 -0
  272. package/dist/types/components/SignIn/SignInFactorOneAlternativePhoneCodeCard.d.ts.map +1 -0
  273. package/dist/types/components/SignIn/SignInFactorOneCodeForm.d.ts +16 -0
  274. package/dist/types/components/SignIn/SignInFactorOneCodeForm.d.ts.map +1 -0
  275. package/dist/types/components/SignIn/SignInFactorOneEmailCodeCard.d.ts +8 -0
  276. package/dist/types/components/SignIn/SignInFactorOneEmailCodeCard.d.ts.map +1 -0
  277. package/dist/types/components/SignIn/SignInFactorOneEmailLinkCard.d.ts +10 -0
  278. package/dist/types/components/SignIn/SignInFactorOneEmailLinkCard.d.ts.map +1 -0
  279. package/dist/types/components/SignIn/SignInFactorOneEnterpriseConnections.d.ts +3 -0
  280. package/dist/types/components/SignIn/SignInFactorOneEnterpriseConnections.d.ts.map +1 -0
  281. package/dist/types/components/SignIn/SignInFactorOneForgotPasswordCard.d.ts +8 -0
  282. package/dist/types/components/SignIn/SignInFactorOneForgotPasswordCard.d.ts.map +1 -0
  283. package/dist/types/components/SignIn/SignInFactorOnePasskey.d.ts +9 -0
  284. package/dist/types/components/SignIn/SignInFactorOnePasskey.d.ts.map +1 -0
  285. package/dist/types/components/SignIn/SignInFactorOnePasswordCard.d.ts +9 -0
  286. package/dist/types/components/SignIn/SignInFactorOnePasswordCard.d.ts.map +1 -0
  287. package/dist/types/components/SignIn/SignInFactorOnePhoneCodeCard.d.ts +8 -0
  288. package/dist/types/components/SignIn/SignInFactorOnePhoneCodeCard.d.ts.map +1 -0
  289. package/dist/types/components/SignIn/SignInFactorTwo.d.ts +5 -0
  290. package/dist/types/components/SignIn/SignInFactorTwo.d.ts.map +1 -0
  291. package/dist/types/components/SignIn/SignInFactorTwoAlternativeMethods.d.ts +10 -0
  292. package/dist/types/components/SignIn/SignInFactorTwoAlternativeMethods.d.ts.map +1 -0
  293. package/dist/types/components/SignIn/SignInFactorTwoBackupCodeCard.d.ts +7 -0
  294. package/dist/types/components/SignIn/SignInFactorTwoBackupCodeCard.d.ts.map +1 -0
  295. package/dist/types/components/SignIn/SignInFactorTwoCodeForm.d.ts +18 -0
  296. package/dist/types/components/SignIn/SignInFactorTwoCodeForm.d.ts.map +1 -0
  297. package/dist/types/components/SignIn/SignInFactorTwoPhoneCodeCard.d.ts +8 -0
  298. package/dist/types/components/SignIn/SignInFactorTwoPhoneCodeCard.d.ts.map +1 -0
  299. package/dist/types/components/SignIn/SignInFactorTwoTOTPCard.d.ts +8 -0
  300. package/dist/types/components/SignIn/SignInFactorTwoTOTPCard.d.ts.map +1 -0
  301. package/dist/types/components/SignIn/SignInSSOCallback.d.ts +5 -0
  302. package/dist/types/components/SignIn/SignInSSOCallback.d.ts.map +1 -0
  303. package/dist/types/components/SignIn/SignInSocialButtons.d.ts +8 -0
  304. package/dist/types/components/SignIn/SignInSocialButtons.d.ts.map +1 -0
  305. package/dist/types/components/SignIn/SignInStart.d.ts +5 -0
  306. package/dist/types/components/SignIn/SignInStart.d.ts.map +1 -0
  307. package/dist/types/components/SignIn/handleCombinedFlowTransfer.d.ts +28 -0
  308. package/dist/types/components/SignIn/handleCombinedFlowTransfer.d.ts.map +1 -0
  309. package/dist/types/components/SignIn/index.d.ts +5 -0
  310. package/dist/types/components/SignIn/index.d.ts.map +1 -0
  311. package/dist/types/components/SignIn/lazy-sign-up.d.ts +27 -0
  312. package/dist/types/components/SignIn/lazy-sign-up.d.ts.map +1 -0
  313. package/dist/types/components/SignIn/shared.d.ts +15 -0
  314. package/dist/types/components/SignIn/shared.d.ts.map +1 -0
  315. package/dist/types/components/SignIn/useResetPasswordFactor.d.ts +3 -0
  316. package/dist/types/components/SignIn/useResetPasswordFactor.d.ts.map +1 -0
  317. package/dist/types/components/SignIn/utils.d.ts +11 -0
  318. package/dist/types/components/SignIn/utils.d.ts.map +1 -0
  319. package/dist/types/components/SignIn/withHavingTrouble.d.ts +4 -0
  320. package/dist/types/components/SignIn/withHavingTrouble.d.ts.map +1 -0
  321. package/dist/types/components/SignUp/SignUpContinue.d.ts +2 -0
  322. package/dist/types/components/SignUp/SignUpContinue.d.ts.map +1 -0
  323. package/dist/types/components/SignUp/SignUpEmailCodeCard.d.ts +2 -0
  324. package/dist/types/components/SignUp/SignUpEmailCodeCard.d.ts.map +1 -0
  325. package/dist/types/components/SignUp/SignUpEmailLinkCard.d.ts +2 -0
  326. package/dist/types/components/SignUp/SignUpEmailLinkCard.d.ts.map +1 -0
  327. package/dist/types/components/SignUp/SignUpEnterpriseConnections.d.ts +8 -0
  328. package/dist/types/components/SignUp/SignUpEnterpriseConnections.d.ts.map +1 -0
  329. package/dist/types/components/SignUp/SignUpForm.d.ts +14 -0
  330. package/dist/types/components/SignUp/SignUpForm.d.ts.map +1 -0
  331. package/dist/types/components/SignUp/SignUpPhoneCodeCard.d.ts +2 -0
  332. package/dist/types/components/SignUp/SignUpPhoneCodeCard.d.ts.map +1 -0
  333. package/dist/types/components/SignUp/SignUpRestrictedAccess.d.ts +2 -0
  334. package/dist/types/components/SignUp/SignUpRestrictedAccess.d.ts.map +1 -0
  335. package/dist/types/components/SignUp/SignUpSSOCallback.d.ts +5 -0
  336. package/dist/types/components/SignUp/SignUpSSOCallback.d.ts.map +1 -0
  337. package/dist/types/components/SignUp/SignUpSocialButtons.d.ts +10 -0
  338. package/dist/types/components/SignUp/SignUpSocialButtons.d.ts.map +1 -0
  339. package/dist/types/components/SignUp/SignUpStart.d.ts +5 -0
  340. package/dist/types/components/SignUp/SignUpStart.d.ts.map +1 -0
  341. package/dist/types/components/SignUp/SignUpStartAlternativePhoneCodePhoneNumberCard.d.ts +13 -0
  342. package/dist/types/components/SignUp/SignUpStartAlternativePhoneCodePhoneNumberCard.d.ts.map +1 -0
  343. package/dist/types/components/SignUp/SignUpVerificationCodeForm.d.ts +18 -0
  344. package/dist/types/components/SignUp/SignUpVerificationCodeForm.d.ts.map +1 -0
  345. package/dist/types/components/SignUp/SignUpVerifyEmail.d.ts +2 -0
  346. package/dist/types/components/SignUp/SignUpVerifyEmail.d.ts.map +1 -0
  347. package/dist/types/components/SignUp/SignUpVerifyPhone.d.ts +2 -0
  348. package/dist/types/components/SignUp/SignUpVerifyPhone.d.ts.map +1 -0
  349. package/dist/types/components/SignUp/index.d.ts +11 -0
  350. package/dist/types/components/SignUp/index.d.ts.map +1 -0
  351. package/dist/types/components/SignUp/signUpFormHelpers.d.ts +49 -0
  352. package/dist/types/components/SignUp/signUpFormHelpers.d.ts.map +1 -0
  353. package/dist/types/components/SignUp/util.d.ts +2 -0
  354. package/dist/types/components/SignUp/util.d.ts.map +1 -0
  355. package/dist/types/components/Statements/Statement.d.ts +61 -0
  356. package/dist/types/components/Statements/Statement.d.ts.map +1 -0
  357. package/dist/types/components/Statements/StatementPage.d.ts +2 -0
  358. package/dist/types/components/Statements/StatementPage.d.ts.map +1 -0
  359. package/dist/types/components/Statements/StatementsList.d.ts +2 -0
  360. package/dist/types/components/Statements/StatementsList.d.ts.map +1 -0
  361. package/dist/types/components/Statements/index.d.ts +3 -0
  362. package/dist/types/components/Statements/index.d.ts.map +1 -0
  363. package/dist/types/components/SubscriptionDetails/index.d.ts +3 -0
  364. package/dist/types/components/SubscriptionDetails/index.d.ts.map +1 -0
  365. package/dist/types/components/Subscriptions/SubscriptionsList.d.ts +8 -0
  366. package/dist/types/components/Subscriptions/SubscriptionsList.d.ts.map +1 -0
  367. package/dist/types/components/Subscriptions/badge.d.ts +11 -0
  368. package/dist/types/components/Subscriptions/badge.d.ts.map +1 -0
  369. package/dist/types/components/Subscriptions/index.d.ts +2 -0
  370. package/dist/types/components/Subscriptions/index.d.ts.map +1 -0
  371. package/dist/types/components/UserAvatar/index.d.ts +4 -0
  372. package/dist/types/components/UserAvatar/index.d.ts.map +1 -0
  373. package/dist/types/components/UserButton/SessionActions.d.ts +38 -0
  374. package/dist/types/components/UserButton/SessionActions.d.ts.map +1 -0
  375. package/dist/types/components/UserButton/UserButtonPopover.d.ts +9 -0
  376. package/dist/types/components/UserButton/UserButtonPopover.d.ts.map +1 -0
  377. package/dist/types/components/UserButton/UserButtonTopLevelIdentifier.d.ts +6 -0
  378. package/dist/types/components/UserButton/UserButtonTopLevelIdentifier.d.ts.map +1 -0
  379. package/dist/types/components/UserButton/UserButtonTrigger.d.ts +8 -0
  380. package/dist/types/components/UserButton/UserButtonTrigger.d.ts.map +1 -0
  381. package/dist/types/components/UserButton/index.d.ts +2 -0
  382. package/dist/types/components/UserButton/index.d.ts.map +1 -0
  383. package/dist/types/components/UserButton/useMultisessionActions.d.ts +23 -0
  384. package/dist/types/components/UserButton/useMultisessionActions.d.ts.map +1 -0
  385. package/dist/types/components/UserProfile/AccountPage.d.ts +2 -0
  386. package/dist/types/components/UserProfile/AccountPage.d.ts.map +1 -0
  387. package/dist/types/components/UserProfile/ActiveDevicesSection.d.ts +2 -0
  388. package/dist/types/components/UserProfile/ActiveDevicesSection.d.ts.map +1 -0
  389. package/dist/types/components/UserProfile/AddAuthenticatorApp.d.ts +8 -0
  390. package/dist/types/components/UserProfile/AddAuthenticatorApp.d.ts.map +1 -0
  391. package/dist/types/components/UserProfile/ApiKeysPage.d.ts +2 -0
  392. package/dist/types/components/UserProfile/ApiKeysPage.d.ts.map +1 -0
  393. package/dist/types/components/UserProfile/BillingPage.d.ts +2 -0
  394. package/dist/types/components/UserProfile/BillingPage.d.ts.map +1 -0
  395. package/dist/types/components/UserProfile/ConnectedAccountsMenu.d.ts +4 -0
  396. package/dist/types/components/UserProfile/ConnectedAccountsMenu.d.ts.map +1 -0
  397. package/dist/types/components/UserProfile/ConnectedAccountsSection.d.ts +4 -0
  398. package/dist/types/components/UserProfile/ConnectedAccountsSection.d.ts.map +1 -0
  399. package/dist/types/components/UserProfile/DeleteSection.d.ts +2 -0
  400. package/dist/types/components/UserProfile/DeleteSection.d.ts.map +1 -0
  401. package/dist/types/components/UserProfile/DeleteUserForm.d.ts +3 -0
  402. package/dist/types/components/UserProfile/DeleteUserForm.d.ts.map +1 -0
  403. package/dist/types/components/UserProfile/EmailForm.d.ts +11 -0
  404. package/dist/types/components/UserProfile/EmailForm.d.ts.map +1 -0
  405. package/dist/types/components/UserProfile/EmailsSection.d.ts +4 -0
  406. package/dist/types/components/UserProfile/EmailsSection.d.ts.map +1 -0
  407. package/dist/types/components/UserProfile/EnterpriseAccountsSection.d.ts +2 -0
  408. package/dist/types/components/UserProfile/EnterpriseAccountsSection.d.ts.map +1 -0
  409. package/dist/types/components/UserProfile/LinkButtonWithDescription.d.ts +13 -0
  410. package/dist/types/components/UserProfile/LinkButtonWithDescription.d.ts.map +1 -0
  411. package/dist/types/components/UserProfile/MfaBackupCodeCreateForm.d.ts +3 -0
  412. package/dist/types/components/UserProfile/MfaBackupCodeCreateForm.d.ts.map +1 -0
  413. package/dist/types/components/UserProfile/MfaBackupCodeList.d.ts +8 -0
  414. package/dist/types/components/UserProfile/MfaBackupCodeList.d.ts.map +1 -0
  415. package/dist/types/components/UserProfile/MfaBackupCodeScreen.d.ts +3 -0
  416. package/dist/types/components/UserProfile/MfaBackupCodeScreen.d.ts.map +1 -0
  417. package/dist/types/components/UserProfile/MfaBackupCodeTile.d.ts +4 -0
  418. package/dist/types/components/UserProfile/MfaBackupCodeTile.d.ts.map +1 -0
  419. package/dist/types/components/UserProfile/MfaForm.d.ts +8 -0
  420. package/dist/types/components/UserProfile/MfaForm.d.ts.map +1 -0
  421. package/dist/types/components/UserProfile/MfaPhoneCodeScreen.d.ts +12 -0
  422. package/dist/types/components/UserProfile/MfaPhoneCodeScreen.d.ts.map +1 -0
  423. package/dist/types/components/UserProfile/MfaScreens.d.ts +13 -0
  424. package/dist/types/components/UserProfile/MfaScreens.d.ts.map +1 -0
  425. package/dist/types/components/UserProfile/MfaSection.d.ts +2 -0
  426. package/dist/types/components/UserProfile/MfaSection.d.ts.map +1 -0
  427. package/dist/types/components/UserProfile/MfaTOTPScreen.d.ts +3 -0
  428. package/dist/types/components/UserProfile/MfaTOTPScreen.d.ts.map +1 -0
  429. package/dist/types/components/UserProfile/PasskeySection.d.ts +10 -0
  430. package/dist/types/components/UserProfile/PasskeySection.d.ts.map +1 -0
  431. package/dist/types/components/UserProfile/PasswordForm.d.ts +3 -0
  432. package/dist/types/components/UserProfile/PasswordForm.d.ts.map +1 -0
  433. package/dist/types/components/UserProfile/PasswordSection.d.ts +2 -0
  434. package/dist/types/components/UserProfile/PasswordSection.d.ts.map +1 -0
  435. package/dist/types/components/UserProfile/PhoneForm.d.ts +21 -0
  436. package/dist/types/components/UserProfile/PhoneForm.d.ts.map +1 -0
  437. package/dist/types/components/UserProfile/PhoneSection.d.ts +4 -0
  438. package/dist/types/components/UserProfile/PhoneSection.d.ts.map +1 -0
  439. package/dist/types/components/UserProfile/PlansPage.d.ts +2 -0
  440. package/dist/types/components/UserProfile/PlansPage.d.ts.map +1 -0
  441. package/dist/types/components/UserProfile/ProfileForm.d.ts +3 -0
  442. package/dist/types/components/UserProfile/ProfileForm.d.ts.map +1 -0
  443. package/dist/types/components/UserProfile/RemoveResourceForm.d.ts +30 -0
  444. package/dist/types/components/UserProfile/RemoveResourceForm.d.ts.map +1 -0
  445. package/dist/types/components/UserProfile/SecurityPage.d.ts +2 -0
  446. package/dist/types/components/UserProfile/SecurityPage.d.ts.map +1 -0
  447. package/dist/types/components/UserProfile/UserProfileAvatarUploader.d.ts +6 -0
  448. package/dist/types/components/UserProfile/UserProfileAvatarUploader.d.ts.map +1 -0
  449. package/dist/types/components/UserProfile/UserProfileNavbar.d.ts +5 -0
  450. package/dist/types/components/UserProfile/UserProfileNavbar.d.ts.map +1 -0
  451. package/dist/types/components/UserProfile/UserProfileRoutes.d.ts +2 -0
  452. package/dist/types/components/UserProfile/UserProfileRoutes.d.ts.map +1 -0
  453. package/dist/types/components/UserProfile/UserProfileSection.d.ts +2 -0
  454. package/dist/types/components/UserProfile/UserProfileSection.d.ts.map +1 -0
  455. package/dist/types/components/UserProfile/UsernameForm.d.ts +3 -0
  456. package/dist/types/components/UserProfile/UsernameForm.d.ts.map +1 -0
  457. package/dist/types/components/UserProfile/UsernameSection.d.ts +2 -0
  458. package/dist/types/components/UserProfile/UsernameSection.d.ts.map +1 -0
  459. package/dist/types/components/UserProfile/VerifyTOTP.d.ts +9 -0
  460. package/dist/types/components/UserProfile/VerifyTOTP.d.ts.map +1 -0
  461. package/dist/types/components/UserProfile/VerifyWithCode.d.ts +11 -0
  462. package/dist/types/components/UserProfile/VerifyWithCode.d.ts.map +1 -0
  463. package/dist/types/components/UserProfile/VerifyWithEnterpriseConnection.d.ts +9 -0
  464. package/dist/types/components/UserProfile/VerifyWithEnterpriseConnection.d.ts.map +1 -0
  465. package/dist/types/components/UserProfile/VerifyWithLink.d.ts +10 -0
  466. package/dist/types/components/UserProfile/VerifyWithLink.d.ts.map +1 -0
  467. package/dist/types/components/UserProfile/Web3Form.d.ts +4 -0
  468. package/dist/types/components/UserProfile/Web3Form.d.ts.map +1 -0
  469. package/dist/types/components/UserProfile/Web3Section.d.ts +4 -0
  470. package/dist/types/components/UserProfile/Web3Section.d.ts.map +1 -0
  471. package/dist/types/components/UserProfile/index.d.ts +4 -0
  472. package/dist/types/components/UserProfile/index.d.ts.map +1 -0
  473. package/dist/types/components/UserProfile/utils.d.ts +12 -0
  474. package/dist/types/components/UserProfile/utils.d.ts.map +1 -0
  475. package/dist/types/components/UserVerification/AlternativeMethods.d.ts +15 -0
  476. package/dist/types/components/UserVerification/AlternativeMethods.d.ts.map +1 -0
  477. package/dist/types/components/UserVerification/HavingTrouble.d.ts +4 -0
  478. package/dist/types/components/UserVerification/HavingTrouble.d.ts.map +1 -0
  479. package/dist/types/components/UserVerification/UVFactorOneCodeForm.d.ts +16 -0
  480. package/dist/types/components/UserVerification/UVFactorOneCodeForm.d.ts.map +1 -0
  481. package/dist/types/components/UserVerification/UVFactorOneEmailCodeCard.d.ts +8 -0
  482. package/dist/types/components/UserVerification/UVFactorOneEmailCodeCard.d.ts.map +1 -0
  483. package/dist/types/components/UserVerification/UVFactorOnePasskeysCard.d.ts +7 -0
  484. package/dist/types/components/UserVerification/UVFactorOnePasskeysCard.d.ts.map +1 -0
  485. package/dist/types/components/UserVerification/UVFactorOnePhoneCodeCard.d.ts +8 -0
  486. package/dist/types/components/UserVerification/UVFactorOnePhoneCodeCard.d.ts.map +1 -0
  487. package/dist/types/components/UserVerification/UVFactorTwoAlternativeMethods.d.ts +11 -0
  488. package/dist/types/components/UserVerification/UVFactorTwoAlternativeMethods.d.ts.map +1 -0
  489. package/dist/types/components/UserVerification/UVFactorTwoBackupCodeCard.d.ts +7 -0
  490. package/dist/types/components/UserVerification/UVFactorTwoBackupCodeCard.d.ts.map +1 -0
  491. package/dist/types/components/UserVerification/UVFactorTwoCodeForm.d.ts +19 -0
  492. package/dist/types/components/UserVerification/UVFactorTwoCodeForm.d.ts.map +1 -0
  493. package/dist/types/components/UserVerification/UVFactorTwoPhoneCodeCard.d.ts +8 -0
  494. package/dist/types/components/UserVerification/UVFactorTwoPhoneCodeCard.d.ts.map +1 -0
  495. package/dist/types/components/UserVerification/UserVerificationFactorOne.d.ts +4 -0
  496. package/dist/types/components/UserVerification/UserVerificationFactorOne.d.ts.map +1 -0
  497. package/dist/types/components/UserVerification/UserVerificationFactorOnePassword.d.ts +7 -0
  498. package/dist/types/components/UserVerification/UserVerificationFactorOnePassword.d.ts.map +1 -0
  499. package/dist/types/components/UserVerification/UserVerificationFactorTwo.d.ts +4 -0
  500. package/dist/types/components/UserVerification/UserVerificationFactorTwo.d.ts.map +1 -0
  501. package/dist/types/components/UserVerification/UserVerificationFactorTwoTOTP.d.ts +8 -0
  502. package/dist/types/components/UserVerification/UserVerificationFactorTwoTOTP.d.ts.map +1 -0
  503. package/dist/types/components/UserVerification/index.d.ts +6 -0
  504. package/dist/types/components/UserVerification/index.d.ts.map +1 -0
  505. package/dist/types/components/UserVerification/use-after-verification.d.ts +6 -0
  506. package/dist/types/components/UserVerification/use-after-verification.d.ts.map +1 -0
  507. package/dist/types/components/UserVerification/useReverificationAlternativeStrategies.d.ts +11 -0
  508. package/dist/types/components/UserVerification/useReverificationAlternativeStrategies.d.ts.map +1 -0
  509. package/dist/types/components/UserVerification/useUserVerificationSession.d.ts +17 -0
  510. package/dist/types/components/UserVerification/useUserVerificationSession.d.ts.map +1 -0
  511. package/dist/types/components/UserVerification/utils.d.ts +3 -0
  512. package/dist/types/components/UserVerification/utils.d.ts.map +1 -0
  513. package/dist/types/components/UserVerification/withHavingTrouble.d.ts +4 -0
  514. package/dist/types/components/UserVerification/withHavingTrouble.d.ts.map +1 -0
  515. package/dist/types/components/Waitlist/WaitlistForm.d.ts +8 -0
  516. package/dist/types/components/Waitlist/WaitlistForm.d.ts.map +1 -0
  517. package/dist/types/components/Waitlist/index.d.ts +4 -0
  518. package/dist/types/components/Waitlist/index.d.ts.map +1 -0
  519. package/dist/types/components/Waitlist/waitlistFormHelpers.d.ts +10 -0
  520. package/dist/types/components/Waitlist/waitlistFormHelpers.d.ts.map +1 -0
  521. package/dist/types/components/prefetch-organization-list.d.ts +2 -0
  522. package/dist/types/components/prefetch-organization-list.d.ts.map +1 -0
  523. package/dist/types/constants.d.ts +19 -0
  524. package/dist/types/constants.d.ts.map +1 -0
  525. package/dist/types/contexts/AcceptedUserInvitations.d.ts +19 -0
  526. package/dist/types/contexts/AcceptedUserInvitations.d.ts.map +1 -0
  527. package/dist/types/contexts/ClerkUIComponentsContext.d.ts +9 -0
  528. package/dist/types/contexts/ClerkUIComponentsContext.d.ts.map +1 -0
  529. package/dist/types/contexts/CoreClerkContextWrapper.d.ts +10 -0
  530. package/dist/types/contexts/CoreClerkContextWrapper.d.ts.map +1 -0
  531. package/dist/types/contexts/CoreClientContext.d.ts +4 -0
  532. package/dist/types/contexts/CoreClientContext.d.ts.map +1 -0
  533. package/dist/types/contexts/CoreSessionContext.d.ts +3 -0
  534. package/dist/types/contexts/CoreSessionContext.d.ts.map +1 -0
  535. package/dist/types/contexts/CoreUserContext.d.ts +3 -0
  536. package/dist/types/contexts/CoreUserContext.d.ts.map +1 -0
  537. package/dist/types/contexts/EnvironmentContext.d.ts +10 -0
  538. package/dist/types/contexts/EnvironmentContext.d.ts.map +1 -0
  539. package/dist/types/contexts/OptionsContext.d.ts +11 -0
  540. package/dist/types/contexts/OptionsContext.d.ts.map +1 -0
  541. package/dist/types/contexts/components/ApiKeys.d.ts +11 -0
  542. package/dist/types/contexts/components/ApiKeys.d.ts.map +1 -0
  543. package/dist/types/contexts/components/Checkout.d.ts +15 -0
  544. package/dist/types/contexts/components/Checkout.d.ts.map +1 -0
  545. package/dist/types/contexts/components/CreateOrganization.d.ts +25 -0
  546. package/dist/types/contexts/components/CreateOrganization.d.ts.map +1 -0
  547. package/dist/types/contexts/components/GoogleOneTap.d.ts +14 -0
  548. package/dist/types/contexts/components/GoogleOneTap.d.ts.map +1 -0
  549. package/dist/types/contexts/components/OAuthConsent.d.ts +4 -0
  550. package/dist/types/contexts/components/OAuthConsent.d.ts.map +1 -0
  551. package/dist/types/contexts/components/OrganizationList.d.ts +18 -0
  552. package/dist/types/contexts/components/OrganizationList.d.ts.map +1 -0
  553. package/dist/types/contexts/components/OrganizationProfile.d.ts +22 -0
  554. package/dist/types/contexts/components/OrganizationProfile.d.ts.map +1 -0
  555. package/dist/types/contexts/components/OrganizationSwitcher.d.ts +97 -0
  556. package/dist/types/contexts/components/OrganizationSwitcher.d.ts.map +1 -0
  557. package/dist/types/contexts/components/Plans.d.ts +123 -0
  558. package/dist/types/contexts/components/Plans.d.ts.map +1 -0
  559. package/dist/types/contexts/components/PricingTable.d.ts +14 -0
  560. package/dist/types/contexts/components/PricingTable.d.ts.map +1 -0
  561. package/dist/types/contexts/components/SessionTasks.d.ts +6 -0
  562. package/dist/types/contexts/components/SessionTasks.d.ts.map +1 -0
  563. package/dist/types/contexts/components/SignIn.d.ts +26 -0
  564. package/dist/types/contexts/components/SignIn.d.ts.map +1 -0
  565. package/dist/types/contexts/components/SignOut.d.ts +8 -0
  566. package/dist/types/contexts/components/SignOut.d.ts.map +1 -0
  567. package/dist/types/contexts/components/SignUp.d.ts +25 -0
  568. package/dist/types/contexts/components/SignUp.d.ts.map +1 -0
  569. package/dist/types/contexts/components/SubscriberType.d.ts +5 -0
  570. package/dist/types/contexts/components/SubscriberType.d.ts.map +1 -0
  571. package/dist/types/contexts/components/SubscriptionDetails.d.ts +11 -0
  572. package/dist/types/contexts/components/SubscriptionDetails.d.ts.map +1 -0
  573. package/dist/types/contexts/components/UserAvatar.d.ts +8 -0
  574. package/dist/types/contexts/components/UserAvatar.d.ts.map +1 -0
  575. package/dist/types/contexts/components/UserButton.d.ts +38 -0
  576. package/dist/types/contexts/components/UserButton.d.ts.map +1 -0
  577. package/dist/types/contexts/components/UserProfile.d.ts +20 -0
  578. package/dist/types/contexts/components/UserProfile.d.ts.map +1 -0
  579. package/dist/types/contexts/components/UserVerification.d.ts +5 -0
  580. package/dist/types/contexts/components/UserVerification.d.ts.map +1 -0
  581. package/dist/types/contexts/components/Waitlist.d.ts +9 -0
  582. package/dist/types/contexts/components/Waitlist.d.ts.map +1 -0
  583. package/dist/types/contexts/components/index.d.ts +21 -0
  584. package/dist/types/contexts/components/index.d.ts.map +1 -0
  585. package/dist/types/contexts/index.d.ts +9 -0
  586. package/dist/types/contexts/index.d.ts.map +1 -0
  587. package/dist/types/contexts/utils.d.ts +9 -0
  588. package/dist/types/contexts/utils.d.ts.map +1 -0
  589. package/dist/types/customizables/AppearanceContext.d.ts +7 -0
  590. package/dist/types/customizables/AppearanceContext.d.ts.map +1 -0
  591. package/dist/types/customizables/Flow.d.ts +15 -0
  592. package/dist/types/customizables/Flow.d.ts.map +1 -0
  593. package/dist/types/customizables/classGeneration.d.ts +13 -0
  594. package/dist/types/customizables/classGeneration.d.ts.map +1 -0
  595. package/dist/types/customizables/elementDescriptors.d.ts +37 -0
  596. package/dist/types/customizables/elementDescriptors.d.ts.map +1 -0
  597. package/dist/types/customizables/index.d.ts +361 -0
  598. package/dist/types/customizables/index.d.ts.map +1 -0
  599. package/dist/types/customizables/makeCustomizable.d.ts +42 -0
  600. package/dist/types/customizables/makeCustomizable.d.ts.map +1 -0
  601. package/dist/types/customizables/makeResponsive.d.ts +9 -0
  602. package/dist/types/customizables/makeResponsive.d.ts.map +1 -0
  603. package/dist/types/customizables/parseAppearance.d.ts +28 -0
  604. package/dist/types/customizables/parseAppearance.d.ts.map +1 -0
  605. package/dist/types/customizables/parseVariables.d.ts +30 -0
  606. package/dist/types/customizables/parseVariables.d.ts.map +1 -0
  607. package/dist/types/customizables/sanitizeDomProps.d.ts +7 -0
  608. package/dist/types/customizables/sanitizeDomProps.d.ts.map +1 -0
  609. package/dist/types/elements/Action/ActionCard.d.ts +8 -0
  610. package/dist/types/elements/Action/ActionCard.d.ts.map +1 -0
  611. package/dist/types/elements/Action/ActionClosed.d.ts +7 -0
  612. package/dist/types/elements/Action/ActionClosed.d.ts.map +1 -0
  613. package/dist/types/elements/Action/ActionOpen.d.ts +7 -0
  614. package/dist/types/elements/Action/ActionOpen.d.ts.map +1 -0
  615. package/dist/types/elements/Action/ActionRoot.d.ts +29 -0
  616. package/dist/types/elements/Action/ActionRoot.d.ts.map +1 -0
  617. package/dist/types/elements/Action/ActionTrigger.d.ts +8 -0
  618. package/dist/types/elements/Action/ActionTrigger.d.ts.map +1 -0
  619. package/dist/types/elements/Action/index.d.ts +34 -0
  620. package/dist/types/elements/Action/index.d.ts.map +1 -0
  621. package/dist/types/elements/Actions.d.ts +24 -0
  622. package/dist/types/elements/Actions.d.ts.map +1 -0
  623. package/dist/types/elements/Alert.d.ts +12 -0
  624. package/dist/types/elements/Alert.d.ts.map +1 -0
  625. package/dist/types/elements/Animated.d.ts +7 -0
  626. package/dist/types/elements/Animated.d.ts.map +1 -0
  627. package/dist/types/elements/ApplicationLogo.d.ts +25 -0
  628. package/dist/types/elements/ApplicationLogo.d.ts.map +1 -0
  629. package/dist/types/elements/ArrowBlockButton.d.ts +26 -0
  630. package/dist/types/elements/ArrowBlockButton.d.ts.map +1 -0
  631. package/dist/types/elements/Avatar.d.ts +17 -0
  632. package/dist/types/elements/Avatar.d.ts.map +1 -0
  633. package/dist/types/elements/AvatarUploader.d.ts +11 -0
  634. package/dist/types/elements/AvatarUploader.d.ts.map +1 -0
  635. package/dist/types/elements/BackLink.d.ts +10 -0
  636. package/dist/types/elements/BackLink.d.ts.map +1 -0
  637. package/dist/types/elements/Badge.d.ts +7 -0
  638. package/dist/types/elements/Badge.d.ts.map +1 -0
  639. package/dist/types/elements/CaptchaElement.d.ts +8 -0
  640. package/dist/types/elements/CaptchaElement.d.ts.map +1 -0
  641. package/dist/types/elements/Card/CardAction.d.ts +13 -0
  642. package/dist/types/elements/Card/CardAction.d.ts.map +1 -0
  643. package/dist/types/elements/Card/CardAlert.d.ts +5 -0
  644. package/dist/types/elements/Card/CardAlert.d.ts.map +1 -0
  645. package/dist/types/elements/Card/CardClerkAndPagesTag.d.ts +14 -0
  646. package/dist/types/elements/Card/CardClerkAndPagesTag.d.ts.map +1 -0
  647. package/dist/types/elements/Card/CardContent.d.ts +8 -0
  648. package/dist/types/elements/Card/CardContent.d.ts.map +1 -0
  649. package/dist/types/elements/Card/CardFooter.d.ts +10 -0
  650. package/dist/types/elements/Card/CardFooter.d.ts.map +1 -0
  651. package/dist/types/elements/Card/CardRoot.d.ts +9 -0
  652. package/dist/types/elements/Card/CardRoot.d.ts.map +1 -0
  653. package/dist/types/elements/Card/index.d.ts +46 -0
  654. package/dist/types/elements/Card/index.d.ts.map +1 -0
  655. package/dist/types/elements/ClipboardInput.d.ts +10 -0
  656. package/dist/types/elements/ClipboardInput.d.ts.map +1 -0
  657. package/dist/types/elements/CodeControl.d.ts +49 -0
  658. package/dist/types/elements/CodeControl.d.ts.map +1 -0
  659. package/dist/types/elements/DataTable.d.ts +21 -0
  660. package/dist/types/elements/DataTable.d.ts.map +1 -0
  661. package/dist/types/elements/DevModeNotice.d.ts +11 -0
  662. package/dist/types/elements/DevModeNotice.d.ts.map +1 -0
  663. package/dist/types/elements/Divider.d.ts +10 -0
  664. package/dist/types/elements/Divider.d.ts.map +1 -0
  665. package/dist/types/elements/Drawer.d.ts +87 -0
  666. package/dist/types/elements/Drawer.d.ts.map +1 -0
  667. package/dist/types/elements/ErrorCard.d.ts +12 -0
  668. package/dist/types/elements/ErrorCard.d.ts.map +1 -0
  669. package/dist/types/elements/FieldControl.d.ts +51 -0
  670. package/dist/types/elements/FieldControl.d.ts.map +1 -0
  671. package/dist/types/elements/Form.d.ts +47 -0
  672. package/dist/types/elements/Form.d.ts.map +1 -0
  673. package/dist/types/elements/FormButtons.d.ts +15 -0
  674. package/dist/types/elements/FormButtons.d.ts.map +1 -0
  675. package/dist/types/elements/FormContainer.d.ts +17 -0
  676. package/dist/types/elements/FormContainer.d.ts.map +1 -0
  677. package/dist/types/elements/FormControl.d.ts +14 -0
  678. package/dist/types/elements/FormControl.d.ts.map +1 -0
  679. package/dist/types/elements/FormattedPhoneNumber.d.ts +9 -0
  680. package/dist/types/elements/FormattedPhoneNumber.d.ts.map +1 -0
  681. package/dist/types/elements/FullHeightLoader.d.ts +2 -0
  682. package/dist/types/elements/FullHeightLoader.d.ts.map +1 -0
  683. package/dist/types/elements/Gauge.d.ts +10 -0
  684. package/dist/types/elements/Gauge.d.ts.map +1 -0
  685. package/dist/types/elements/Header.d.ts +15 -0
  686. package/dist/types/elements/Header.d.ts.map +1 -0
  687. package/dist/types/elements/IconButton.d.ts +9 -0
  688. package/dist/types/elements/IconButton.d.ts.map +1 -0
  689. package/dist/types/elements/IconCircle.d.ts +10 -0
  690. package/dist/types/elements/IconCircle.d.ts.map +1 -0
  691. package/dist/types/elements/IdentityPreview.d.ts +11 -0
  692. package/dist/types/elements/IdentityPreview.d.ts.map +1 -0
  693. package/dist/types/elements/InformationBox.d.ts +7 -0
  694. package/dist/types/elements/InformationBox.d.ts.map +1 -0
  695. package/dist/types/elements/InputGroup.d.ts +11 -0
  696. package/dist/types/elements/InputGroup.d.ts.map +1 -0
  697. package/dist/types/elements/InputWithIcon.d.ts +9 -0
  698. package/dist/types/elements/InputWithIcon.d.ts.map +1 -0
  699. package/dist/types/elements/InvisibleRootBox.d.ts +14 -0
  700. package/dist/types/elements/InvisibleRootBox.d.ts.map +1 -0
  701. package/dist/types/elements/LegalConsentCheckbox.d.ts +9 -0
  702. package/dist/types/elements/LegalConsentCheckbox.d.ts.map +1 -0
  703. package/dist/types/elements/LineItems.d.ts +52 -0
  704. package/dist/types/elements/LineItems.d.ts.map +1 -0
  705. package/dist/types/elements/LinkRenderer.d.ts +9 -0
  706. package/dist/types/elements/LinkRenderer.d.ts.map +1 -0
  707. package/dist/types/elements/LoadingCard.d.ts +4 -0
  708. package/dist/types/elements/LoadingCard.d.ts.map +1 -0
  709. package/dist/types/elements/Menu.d.ts +35 -0
  710. package/dist/types/elements/Menu.d.ts.map +1 -0
  711. package/dist/types/elements/Modal.d.ts +26 -0
  712. package/dist/types/elements/Modal.d.ts.map +1 -0
  713. package/dist/types/elements/Navbar.d.ts +37 -0
  714. package/dist/types/elements/Navbar.d.ts.map +1 -0
  715. package/dist/types/elements/OrganizationAvatar.d.ts +7 -0
  716. package/dist/types/elements/OrganizationAvatar.d.ts.map +1 -0
  717. package/dist/types/elements/OrganizationPreview.d.ts +18 -0
  718. package/dist/types/elements/OrganizationPreview.d.ts.map +1 -0
  719. package/dist/types/elements/Pagination.d.ts +24 -0
  720. package/dist/types/elements/Pagination.d.ts.map +1 -0
  721. package/dist/types/elements/PasswordInput.d.ts +15 -0
  722. package/dist/types/elements/PasswordInput.d.ts.map +1 -0
  723. package/dist/types/elements/PersonalWorkspacePreview.d.ts +3 -0
  724. package/dist/types/elements/PersonalWorkspacePreview.d.ts.map +1 -0
  725. package/dist/types/elements/PhoneInput/countryCodeData.d.ts +23 -0
  726. package/dist/types/elements/PhoneInput/countryCodeData.d.ts.map +1 -0
  727. package/dist/types/elements/PhoneInput/index.d.ts +14 -0
  728. package/dist/types/elements/PhoneInput/index.d.ts.map +1 -0
  729. package/dist/types/elements/PhoneInput/useFormattedPhoneNumber.d.ts +17 -0
  730. package/dist/types/elements/PhoneInput/useFormattedPhoneNumber.d.ts.map +1 -0
  731. package/dist/types/elements/Popover.d.ts +24 -0
  732. package/dist/types/elements/Popover.d.ts.map +1 -0
  733. package/dist/types/elements/PopoverCard.d.ts +17 -0
  734. package/dist/types/elements/PopoverCard.d.ts.map +1 -0
  735. package/dist/types/elements/Portal.d.ts +5 -0
  736. package/dist/types/elements/Portal.d.ts.map +1 -0
  737. package/dist/types/elements/PreviewButton.d.ts +10 -0
  738. package/dist/types/elements/PreviewButton.d.ts.map +1 -0
  739. package/dist/types/elements/ProfileCard/ProfileCardContent.d.ts +8 -0
  740. package/dist/types/elements/ProfileCard/ProfileCardContent.d.ts.map +1 -0
  741. package/dist/types/elements/ProfileCard/ProfileCardRoot.d.ts +8 -0
  742. package/dist/types/elements/ProfileCard/ProfileCardRoot.d.ts.map +1 -0
  743. package/dist/types/elements/ProfileCard/index.d.ts +15 -0
  744. package/dist/types/elements/ProfileCard/index.d.ts.map +1 -0
  745. package/dist/types/elements/RadioGroup.d.ts +12 -0
  746. package/dist/types/elements/RadioGroup.d.ts.map +1 -0
  747. package/dist/types/elements/ReversibleContainer.d.ts +3 -0
  748. package/dist/types/elements/ReversibleContainer.d.ts.map +1 -0
  749. package/dist/types/elements/RootBox.d.ts +4 -0
  750. package/dist/types/elements/RootBox.d.ts.map +1 -0
  751. package/dist/types/elements/RouterLink.d.ts +8 -0
  752. package/dist/types/elements/RouterLink.d.ts.map +1 -0
  753. package/dist/types/elements/Section.d.ts +61 -0
  754. package/dist/types/elements/Section.d.ts.map +1 -0
  755. package/dist/types/elements/SegmentedControl.d.ts +25 -0
  756. package/dist/types/elements/SegmentedControl.d.ts.map +1 -0
  757. package/dist/types/elements/Select.d.ts +35 -0
  758. package/dist/types/elements/Select.d.ts.map +1 -0
  759. package/dist/types/elements/SocialButtons.d.ts +17 -0
  760. package/dist/types/elements/SocialButtons.d.ts.map +1 -0
  761. package/dist/types/elements/SuccessPage.d.ts +14 -0
  762. package/dist/types/elements/SuccessPage.d.ts.map +1 -0
  763. package/dist/types/elements/Switch.d.ts +12 -0
  764. package/dist/types/elements/Switch.d.ts.map +1 -0
  765. package/dist/types/elements/Tabs.d.ts +21 -0
  766. package/dist/types/elements/Tabs.d.ts.map +1 -0
  767. package/dist/types/elements/TagInput.d.ts +16 -0
  768. package/dist/types/elements/TagInput.d.ts.map +1 -0
  769. package/dist/types/elements/ThreeDotsMenu.d.ts +16 -0
  770. package/dist/types/elements/ThreeDotsMenu.d.ts.map +1 -0
  771. package/dist/types/elements/TimerButton.d.ts +10 -0
  772. package/dist/types/elements/TimerButton.d.ts.map +1 -0
  773. package/dist/types/elements/Tooltip.d.ts +122 -0
  774. package/dist/types/elements/Tooltip.d.ts.map +1 -0
  775. package/dist/types/elements/UserAvatar.d.ts +10 -0
  776. package/dist/types/elements/UserAvatar.d.ts.map +1 -0
  777. package/dist/types/elements/UserPreview.d.ts +35 -0
  778. package/dist/types/elements/UserPreview.d.ts.map +1 -0
  779. package/dist/types/elements/VerificationCodeCard.d.ts +20 -0
  780. package/dist/types/elements/VerificationCodeCard.d.ts.map +1 -0
  781. package/dist/types/elements/VerificationLinkCard.d.ts +23 -0
  782. package/dist/types/elements/VerificationLinkCard.d.ts.map +1 -0
  783. package/dist/types/elements/contexts/index.d.ts +31 -0
  784. package/dist/types/elements/contexts/index.d.ts.map +1 -0
  785. package/dist/types/elements/utils.d.ts +5 -0
  786. package/dist/types/elements/utils.d.ts.map +1 -0
  787. package/dist/types/elements/withAvatarShimmer.d.ts +11 -0
  788. package/dist/types/elements/withAvatarShimmer.d.ts.map +1 -0
  789. package/dist/types/foundations/borders.d.ts +9 -0
  790. package/dist/types/foundations/borders.d.ts.map +1 -0
  791. package/dist/types/foundations/colors.d.ts +205 -0
  792. package/dist/types/foundations/colors.d.ts.map +1 -0
  793. package/dist/types/foundations/createInternalTheme.d.ts +3 -0
  794. package/dist/types/foundations/createInternalTheme.d.ts.map +1 -0
  795. package/dist/types/foundations/defaultFoundations.d.ts +394 -0
  796. package/dist/types/foundations/defaultFoundations.d.ts.map +1 -0
  797. package/dist/types/foundations/index.d.ts +391 -0
  798. package/dist/types/foundations/index.d.ts.map +1 -0
  799. package/dist/types/foundations/opacity.d.ts +6 -0
  800. package/dist/types/foundations/opacity.d.ts.map +1 -0
  801. package/dist/types/foundations/shadows.d.ts +40 -0
  802. package/dist/types/foundations/shadows.d.ts.map +1 -0
  803. package/dist/types/foundations/sizes.d.ts +333 -0
  804. package/dist/types/foundations/sizes.d.ts.map +1 -0
  805. package/dist/types/foundations/transitions.d.ts +22 -0
  806. package/dist/types/foundations/transitions.d.ts.map +1 -0
  807. package/dist/types/foundations/typography.d.ts +40 -0
  808. package/dist/types/foundations/typography.d.ts.map +1 -0
  809. package/dist/types/foundations/zIndices.d.ts +8 -0
  810. package/dist/types/foundations/zIndices.d.ts.map +1 -0
  811. package/dist/types/hooks/index.d.ts +20 -0
  812. package/dist/types/hooks/index.d.ts.map +1 -0
  813. package/dist/types/hooks/useAlternativeStrategies.d.ts +10 -0
  814. package/dist/types/hooks/useAlternativeStrategies.d.ts.map +1 -0
  815. package/dist/types/hooks/useClerkModalStateParams.d.ts +13 -0
  816. package/dist/types/hooks/useClerkModalStateParams.d.ts.map +1 -0
  817. package/dist/types/hooks/useClipboard.d.ts +25 -0
  818. package/dist/types/hooks/useClipboard.d.ts.map +1 -0
  819. package/dist/types/hooks/useDebounce.d.ts +2 -0
  820. package/dist/types/hooks/useDebounce.d.ts.map +1 -0
  821. package/dist/types/hooks/useDevMode.d.ts +4 -0
  822. package/dist/types/hooks/useDevMode.d.ts.map +1 -0
  823. package/dist/types/hooks/useDirection.d.ts +2 -0
  824. package/dist/types/hooks/useDirection.d.ts.map +1 -0
  825. package/dist/types/hooks/useEmailLink.d.ts +9 -0
  826. package/dist/types/hooks/useEmailLink.d.ts.map +1 -0
  827. package/dist/types/hooks/useEnabledThirdPartyProviders.d.ts +25 -0
  828. package/dist/types/hooks/useEnabledThirdPartyProviders.d.ts.map +1 -0
  829. package/dist/types/hooks/useEnterpriseSSOLink.d.ts +5 -0
  830. package/dist/types/hooks/useEnterpriseSSOLink.d.ts.map +1 -0
  831. package/dist/types/hooks/useFetch.d.ts +40 -0
  832. package/dist/types/hooks/useFetch.d.ts.map +1 -0
  833. package/dist/types/hooks/useFetchRoles.d.ts +11 -0
  834. package/dist/types/hooks/useFetchRoles.d.ts.map +1 -0
  835. package/dist/types/hooks/useInView.d.ts +22 -0
  836. package/dist/types/hooks/useInView.d.ts.map +1 -0
  837. package/dist/types/hooks/useLoadingStatus.d.ts +15 -0
  838. package/dist/types/hooks/useLoadingStatus.d.ts.map +1 -0
  839. package/dist/types/hooks/useMultipleSessions.d.ts +10 -0
  840. package/dist/types/hooks/useMultipleSessions.d.ts.map +1 -0
  841. package/dist/types/hooks/useNavigateToFlowStart.d.ts +4 -0
  842. package/dist/types/hooks/useNavigateToFlowStart.d.ts.map +1 -0
  843. package/dist/types/hooks/useOrganizationListInView.d.ts +106 -0
  844. package/dist/types/hooks/useOrganizationListInView.d.ts.map +1 -0
  845. package/dist/types/hooks/usePassword.d.ts +13 -0
  846. package/dist/types/hooks/usePassword.d.ts.map +1 -0
  847. package/dist/types/hooks/usePasswordComplexity.d.ts +19 -0
  848. package/dist/types/hooks/usePasswordComplexity.d.ts.map +1 -0
  849. package/dist/types/hooks/usePopover.d.ts +53 -0
  850. package/dist/types/hooks/usePopover.d.ts.map +1 -0
  851. package/dist/types/hooks/usePrefersReducedMotion.d.ts +2 -0
  852. package/dist/types/hooks/usePrefersReducedMotion.d.ts.map +1 -0
  853. package/dist/types/hooks/usePreloadTasks.d.ts +6 -0
  854. package/dist/types/hooks/usePreloadTasks.d.ts.map +1 -0
  855. package/dist/types/hooks/useSafeState.d.ts +10 -0
  856. package/dist/types/hooks/useSafeState.d.ts.map +1 -0
  857. package/dist/types/hooks/useScrollLock.d.ts +5 -0
  858. package/dist/types/hooks/useScrollLock.d.ts.map +1 -0
  859. package/dist/types/hooks/useSearchInput.d.ts +13 -0
  860. package/dist/types/hooks/useSearchInput.d.ts.map +1 -0
  861. package/dist/types/hooks/useSetSessionWithTimeout.d.ts +2 -0
  862. package/dist/types/hooks/useSetSessionWithTimeout.d.ts.map +1 -0
  863. package/dist/types/hooks/useSupportEmail.d.ts +2 -0
  864. package/dist/types/hooks/useSupportEmail.d.ts.map +1 -0
  865. package/dist/types/hooks/useTabState.d.ts +9 -0
  866. package/dist/types/hooks/useTabState.d.ts.map +1 -0
  867. package/dist/types/hooks/useWindowEventListener.d.ts +4 -0
  868. package/dist/types/hooks/useWindowEventListener.d.ts.map +1 -0
  869. package/dist/types/icons/index.d.ts +75 -0
  870. package/dist/types/icons/index.d.ts.map +1 -0
  871. package/dist/types/index.browser.d.ts +2 -0
  872. package/dist/types/index.browser.d.ts.map +1 -0
  873. package/dist/types/index.d.ts +2 -0
  874. package/dist/types/index.d.ts.map +1 -0
  875. package/dist/types/internal.d.ts +2 -0
  876. package/dist/types/internal.d.ts.map +1 -0
  877. package/dist/types/lazyModules/MountedCheckoutDrawer.d.ts +10 -0
  878. package/dist/types/lazyModules/MountedCheckoutDrawer.d.ts.map +1 -0
  879. package/dist/types/lazyModules/MountedPlanDetailDrawer.d.ts +10 -0
  880. package/dist/types/lazyModules/MountedPlanDetailDrawer.d.ts.map +1 -0
  881. package/dist/types/lazyModules/MountedSubscriptionDetailDrawer.d.ts +10 -0
  882. package/dist/types/lazyModules/MountedSubscriptionDetailDrawer.d.ts.map +1 -0
  883. package/dist/types/lazyModules/common.d.ts +3 -0
  884. package/dist/types/lazyModules/common.d.ts.map +1 -0
  885. package/dist/types/lazyModules/components.d.ts +68 -0
  886. package/dist/types/lazyModules/components.d.ts.map +1 -0
  887. package/dist/types/lazyModules/drawers.d.ts +4 -0
  888. package/dist/types/lazyModules/drawers.d.ts.map +1 -0
  889. package/dist/types/lazyModules/providers.d.ts +81 -0
  890. package/dist/types/lazyModules/providers.d.ts.map +1 -0
  891. package/dist/types/localization/applyTokensToString.d.ts +13 -0
  892. package/dist/types/localization/applyTokensToString.d.ts.map +1 -0
  893. package/dist/types/localization/defaultEnglishResource.d.ts +2 -0
  894. package/dist/types/localization/defaultEnglishResource.d.ts.map +1 -0
  895. package/dist/types/localization/index.d.ts +5 -0
  896. package/dist/types/localization/index.d.ts.map +1 -0
  897. package/dist/types/localization/localizationKeys.d.ts +32 -0
  898. package/dist/types/localization/localizationKeys.d.ts.map +1 -0
  899. package/dist/types/localization/localizationModifiers.d.ts +11 -0
  900. package/dist/types/localization/localizationModifiers.d.ts.map +1 -0
  901. package/dist/types/localization/makeLocalizable.d.ts +15 -0
  902. package/dist/types/localization/makeLocalizable.d.ts.map +1 -0
  903. package/dist/types/localization/parseLocalization.d.ts +3 -0
  904. package/dist/types/localization/parseLocalization.d.ts.map +1 -0
  905. package/dist/types/portal/index.d.ts +26 -0
  906. package/dist/types/portal/index.d.ts.map +1 -0
  907. package/dist/types/primitives/Alert.d.ts +392 -0
  908. package/dist/types/primitives/Alert.d.ts.map +1 -0
  909. package/dist/types/primitives/AlertIcon.d.ts +394 -0
  910. package/dist/types/primitives/AlertIcon.d.ts.map +1 -0
  911. package/dist/types/primitives/Badge.d.ts +393 -0
  912. package/dist/types/primitives/Badge.d.ts.map +1 -0
  913. package/dist/types/primitives/Box.d.ts +390 -0
  914. package/dist/types/primitives/Box.d.ts.map +1 -0
  915. package/dist/types/primitives/Button.d.ts +37 -0
  916. package/dist/types/primitives/Button.d.ts.map +1 -0
  917. package/dist/types/primitives/Dd.d.ts +6 -0
  918. package/dist/types/primitives/Dd.d.ts.map +1 -0
  919. package/dist/types/primitives/Dl.d.ts +6 -0
  920. package/dist/types/primitives/Dl.d.ts.map +1 -0
  921. package/dist/types/primitives/Dt.d.ts +6 -0
  922. package/dist/types/primitives/Dt.d.ts.map +1 -0
  923. package/dist/types/primitives/Flex.d.ts +399 -0
  924. package/dist/types/primitives/Flex.d.ts.map +1 -0
  925. package/dist/types/primitives/Form.d.ts +6 -0
  926. package/dist/types/primitives/Form.d.ts.map +1 -0
  927. package/dist/types/primitives/FormErrorText.d.ts +5 -0
  928. package/dist/types/primitives/FormErrorText.d.ts.map +1 -0
  929. package/dist/types/primitives/FormInfoText.d.ts +4 -0
  930. package/dist/types/primitives/FormInfoText.d.ts.map +1 -0
  931. package/dist/types/primitives/FormLabel.d.ts +391 -0
  932. package/dist/types/primitives/FormLabel.d.ts.map +1 -0
  933. package/dist/types/primitives/FormSuccessText.d.ts +391 -0
  934. package/dist/types/primitives/FormSuccessText.d.ts.map +1 -0
  935. package/dist/types/primitives/FormWarningText.d.ts +4 -0
  936. package/dist/types/primitives/FormWarningText.d.ts.map +1 -0
  937. package/dist/types/primitives/Grid.d.ts +396 -0
  938. package/dist/types/primitives/Grid.d.ts.map +1 -0
  939. package/dist/types/primitives/Heading.d.ts +393 -0
  940. package/dist/types/primitives/Heading.d.ts.map +1 -0
  941. package/dist/types/primitives/Hr.d.ts +391 -0
  942. package/dist/types/primitives/Hr.d.ts.map +1 -0
  943. package/dist/types/primitives/Icon.d.ts +395 -0
  944. package/dist/types/primitives/Icon.d.ts.map +1 -0
  945. package/dist/types/primitives/Image.d.ts +5 -0
  946. package/dist/types/primitives/Image.d.ts.map +1 -0
  947. package/dist/types/primitives/Input.d.ts +408 -0
  948. package/dist/types/primitives/Input.d.ts.map +1 -0
  949. package/dist/types/primitives/Link.d.ts +397 -0
  950. package/dist/types/primitives/Link.d.ts.map +1 -0
  951. package/dist/types/primitives/NotificationBadge.d.ts +393 -0
  952. package/dist/types/primitives/NotificationBadge.d.ts.map +1 -0
  953. package/dist/types/primitives/Span.d.ts +3 -0
  954. package/dist/types/primitives/Span.d.ts.map +1 -0
  955. package/dist/types/primitives/Spinner.d.ts +394 -0
  956. package/dist/types/primitives/Spinner.d.ts.map +1 -0
  957. package/dist/types/primitives/Table.d.ts +393 -0
  958. package/dist/types/primitives/Table.d.ts.map +1 -0
  959. package/dist/types/primitives/Tbody.d.ts +6 -0
  960. package/dist/types/primitives/Tbody.d.ts.map +1 -0
  961. package/dist/types/primitives/Td.d.ts +391 -0
  962. package/dist/types/primitives/Td.d.ts.map +1 -0
  963. package/dist/types/primitives/Text.d.ts +398 -0
  964. package/dist/types/primitives/Text.d.ts.map +1 -0
  965. package/dist/types/primitives/Th.d.ts +391 -0
  966. package/dist/types/primitives/Th.d.ts.map +1 -0
  967. package/dist/types/primitives/Thead.d.ts +6 -0
  968. package/dist/types/primitives/Thead.d.ts.map +1 -0
  969. package/dist/types/primitives/Tr.d.ts +6 -0
  970. package/dist/types/primitives/Tr.d.ts.map +1 -0
  971. package/dist/types/primitives/applyDataStateProps.d.ts +8 -0
  972. package/dist/types/primitives/applyDataStateProps.d.ts.map +1 -0
  973. package/dist/types/primitives/gapPropertyCompat.d.ts +11 -0
  974. package/dist/types/primitives/gapPropertyCompat.d.ts.map +1 -0
  975. package/dist/types/primitives/hooks/useFormField.d.ts +66 -0
  976. package/dist/types/primitives/hooks/useFormField.d.ts.map +1 -0
  977. package/dist/types/primitives/hooks/useInput.d.ts +6 -0
  978. package/dist/types/primitives/hooks/useInput.d.ts.map +1 -0
  979. package/dist/types/primitives/index.d.ts +33 -0
  980. package/dist/types/primitives/index.d.ts.map +1 -0
  981. package/dist/types/router/BaseRouter.d.ts +22 -0
  982. package/dist/types/router/BaseRouter.d.ts.map +1 -0
  983. package/dist/types/router/HashRouter.d.ts +9 -0
  984. package/dist/types/router/HashRouter.d.ts.map +1 -0
  985. package/dist/types/router/PathRouter.d.ts +9 -0
  986. package/dist/types/router/PathRouter.d.ts.map +1 -0
  987. package/dist/types/router/Route.d.ts +20 -0
  988. package/dist/types/router/Route.d.ts.map +1 -0
  989. package/dist/types/router/RouteContext.d.ts +33 -0
  990. package/dist/types/router/RouteContext.d.ts.map +1 -0
  991. package/dist/types/router/Switch.d.ts +5 -0
  992. package/dist/types/router/Switch.d.ts.map +1 -0
  993. package/dist/types/router/VirtualRouter.d.ts +11 -0
  994. package/dist/types/router/VirtualRouter.d.ts.map +1 -0
  995. package/dist/types/router/index.d.ts +8 -0
  996. package/dist/types/router/index.d.ts.map +1 -0
  997. package/dist/types/router/newPaths.d.ts +2 -0
  998. package/dist/types/router/newPaths.d.ts.map +1 -0
  999. package/dist/types/router/pathToRegexp.d.ts +128 -0
  1000. package/dist/types/router/pathToRegexp.d.ts.map +1 -0
  1001. package/dist/types/styledSystem/InternalThemeProvider.d.ts +8 -0
  1002. package/dist/types/styledSystem/InternalThemeProvider.d.ts.map +1 -0
  1003. package/dist/types/styledSystem/StyleCacheProvider.d.ts +10 -0
  1004. package/dist/types/styledSystem/StyleCacheProvider.d.ts.map +1 -0
  1005. package/dist/types/styledSystem/animations.d.ts +17 -0
  1006. package/dist/types/styledSystem/animations.d.ts.map +1 -0
  1007. package/dist/types/styledSystem/breakpoints.d.ts +14 -0
  1008. package/dist/types/styledSystem/breakpoints.d.ts.map +1 -0
  1009. package/dist/types/styledSystem/common.d.ts +175 -0
  1010. package/dist/types/styledSystem/common.d.ts.map +1 -0
  1011. package/dist/types/styledSystem/createCssVariables.d.ts +2 -0
  1012. package/dist/types/styledSystem/createCssVariables.d.ts.map +1 -0
  1013. package/dist/types/styledSystem/createVariants.d.ts +34 -0
  1014. package/dist/types/styledSystem/createVariants.d.ts.map +1 -0
  1015. package/dist/types/styledSystem/index.d.ts +8 -0
  1016. package/dist/types/styledSystem/index.d.ts.map +1 -0
  1017. package/dist/types/styledSystem/types.d.ts +54 -0
  1018. package/dist/types/styledSystem/types.d.ts.map +1 -0
  1019. package/dist/types/types.d.ts +88 -0
  1020. package/dist/types/types.d.ts.map +1 -0
  1021. package/dist/types/utils/ExternalElementMounter.d.ts +7 -0
  1022. package/dist/types/utils/ExternalElementMounter.d.ts.map +1 -0
  1023. package/dist/types/utils/buildVirtualRouterUrl.d.ts +5 -0
  1024. package/dist/types/utils/buildVirtualRouterUrl.d.ts.map +1 -0
  1025. package/dist/types/utils/captcha/constants.d.ts +2 -0
  1026. package/dist/types/utils/captcha/constants.d.ts.map +1 -0
  1027. package/dist/types/utils/colors/constants.d.ts +50 -0
  1028. package/dist/types/utils/colors/constants.d.ts.map +1 -0
  1029. package/dist/types/utils/colors/index.d.ts +117 -0
  1030. package/dist/types/utils/colors/index.d.ts.map +1 -0
  1031. package/dist/types/utils/colors/legacy.d.ts +21 -0
  1032. package/dist/types/utils/colors/legacy.d.ts.map +1 -0
  1033. package/dist/types/utils/colors/modern.d.ts +31 -0
  1034. package/dist/types/utils/colors/modern.d.ts.map +1 -0
  1035. package/dist/types/utils/colors/scales.d.ts +65 -0
  1036. package/dist/types/utils/colors/scales.d.ts.map +1 -0
  1037. package/dist/types/utils/colors/utils.d.ts +57 -0
  1038. package/dist/types/utils/colors/utils.d.ts.map +1 -0
  1039. package/dist/types/utils/containsAllOf.d.ts +5 -0
  1040. package/dist/types/utils/containsAllOf.d.ts.map +1 -0
  1041. package/dist/types/utils/createCustomMenuItems.d.ts +13 -0
  1042. package/dist/types/utils/createCustomMenuItems.d.ts.map +1 -0
  1043. package/dist/types/utils/createCustomPages.d.ts +18 -0
  1044. package/dist/types/utils/createCustomPages.d.ts.map +1 -0
  1045. package/dist/types/utils/createInfiniteAccessProxy.d.ts +16 -0
  1046. package/dist/types/utils/createInfiniteAccessProxy.d.ts.map +1 -0
  1047. package/dist/types/utils/createSlug.d.ts +2 -0
  1048. package/dist/types/utils/createSlug.d.ts.map +1 -0
  1049. package/dist/types/utils/cssSupports.d.ts +10 -0
  1050. package/dist/types/utils/cssSupports.d.ts.map +1 -0
  1051. package/dist/types/utils/cssVariables.d.ts +93 -0
  1052. package/dist/types/utils/cssVariables.d.ts.map +1 -0
  1053. package/dist/types/utils/disambiguateRedirectOptions.d.ts +17 -0
  1054. package/dist/types/utils/disambiguateRedirectOptions.d.ts.map +1 -0
  1055. package/dist/types/utils/dynamicParamParser.d.ts +7 -0
  1056. package/dist/types/utils/dynamicParamParser.d.ts.map +1 -0
  1057. package/dist/types/utils/errorHandler.d.ts +11 -0
  1058. package/dist/types/utils/errorHandler.d.ts.map +1 -0
  1059. package/dist/types/utils/extractCssLayerNameFromAppearance.d.ts +7 -0
  1060. package/dist/types/utils/extractCssLayerNameFromAppearance.d.ts.map +1 -0
  1061. package/dist/types/utils/factorSorting.d.ts +6 -0
  1062. package/dist/types/utils/factorSorting.d.ts.map +1 -0
  1063. package/dist/types/utils/formatDate.d.ts +2 -0
  1064. package/dist/types/utils/formatDate.d.ts.map +1 -0
  1065. package/dist/types/utils/formatSafeIdentifier.d.ts +8 -0
  1066. package/dist/types/utils/formatSafeIdentifier.d.ts.map +1 -0
  1067. package/dist/types/utils/fromEntries.d.ts +2 -0
  1068. package/dist/types/utils/fromEntries.d.ts.map +1 -0
  1069. package/dist/types/utils/getClosestProfileScrollBox.d.ts +8 -0
  1070. package/dist/types/utils/getClosestProfileScrollBox.d.ts.map +1 -0
  1071. package/dist/types/utils/getRelativeToNowDateKey.d.ts +2 -0
  1072. package/dist/types/utils/getRelativeToNowDateKey.d.ts.map +1 -0
  1073. package/dist/types/utils/getValidReactChildren.d.ts +3 -0
  1074. package/dist/types/utils/getValidReactChildren.d.ts.map +1 -0
  1075. package/dist/types/utils/image.d.ts +2 -0
  1076. package/dist/types/utils/image.d.ts.map +1 -0
  1077. package/dist/types/utils/intl.d.ts +8 -0
  1078. package/dist/types/utils/intl.d.ts.map +1 -0
  1079. package/dist/types/utils/isMobileDevice.d.ts +2 -0
  1080. package/dist/types/utils/isMobileDevice.d.ts.map +1 -0
  1081. package/dist/types/utils/mergeRefs.d.ts +2 -0
  1082. package/dist/types/utils/mergeRefs.d.ts.map +1 -0
  1083. package/dist/types/utils/normalizeRoutingOptions.d.ts +6 -0
  1084. package/dist/types/utils/normalizeRoutingOptions.d.ts.map +1 -0
  1085. package/dist/types/utils/one-tap.d.ts +34 -0
  1086. package/dist/types/utils/one-tap.d.ts.map +1 -0
  1087. package/dist/types/utils/originPrefersPopup.d.ts +7 -0
  1088. package/dist/types/utils/originPrefersPopup.d.ts.map +1 -0
  1089. package/dist/types/utils/passwordUtils.d.ts +20 -0
  1090. package/dist/types/utils/passwordUtils.d.ts.map +1 -0
  1091. package/dist/types/utils/phoneUtils.d.ts +21 -0
  1092. package/dist/types/utils/phoneUtils.d.ts.map +1 -0
  1093. package/dist/types/utils/range.d.ts +2 -0
  1094. package/dist/types/utils/range.d.ts.map +1 -0
  1095. package/dist/types/utils/readObjectPath.d.ts +2 -0
  1096. package/dist/types/utils/readObjectPath.d.ts.map +1 -0
  1097. package/dist/types/utils/removeUndefinedProps.d.ts +2 -0
  1098. package/dist/types/utils/removeUndefinedProps.d.ts.map +1 -0
  1099. package/dist/types/utils/roleLocalizationKey.d.ts +4 -0
  1100. package/dist/types/utils/roleLocalizationKey.d.ts.map +1 -0
  1101. package/dist/types/utils/runtimeEnvironment.d.ts +3 -0
  1102. package/dist/types/utils/runtimeEnvironment.d.ts.map +1 -0
  1103. package/dist/types/utils/sanitizeCustomLinkURL.d.ts +2 -0
  1104. package/dist/types/utils/sanitizeCustomLinkURL.d.ts.map +1 -0
  1105. package/dist/types/utils/setWebpackChunkPublicPath.d.ts +2 -0
  1106. package/dist/types/utils/setWebpackChunkPublicPath.d.ts.map +1 -0
  1107. package/dist/types/utils/sleep.d.ts +2 -0
  1108. package/dist/types/utils/sleep.d.ts.map +1 -0
  1109. package/dist/types/utils/timeAgo.d.ts +2 -0
  1110. package/dist/types/utils/timeAgo.d.ts.map +1 -0
  1111. package/dist/types/utils/truncateTextWithEndVisible.d.ts +15 -0
  1112. package/dist/types/utils/truncateTextWithEndVisible.d.ts.map +1 -0
  1113. package/dist/types/utils/useFormControl.d.ts +92 -0
  1114. package/dist/types/utils/useFormControl.d.ts.map +1 -0
  1115. package/dist/types/utils/usernameUtils.d.ts +10 -0
  1116. package/dist/types/utils/usernameUtils.d.ts.map +1 -0
  1117. package/dist/types/utils/web3CallbackErrorHandler.d.ts +7 -0
  1118. package/dist/types/utils/web3CallbackErrorHandler.d.ts.map +1 -0
  1119. package/dist/types/utils/zxcvbn.d.ts +10 -0
  1120. package/dist/types/utils/zxcvbn.d.ts.map +1 -0
  1121. package/dist/ui.js +1 -0
  1122. package/dist/ui.mjs +1 -0
  1123. package/package.json +88 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Clerk Inc
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["994"],{8271:function(e,t,n){n.d(t,{XX:()=>M,fF:()=>r,h:()=>b});var _,r,o,l,u,i,c,f,s,a,p,h={},v=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function g(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(e,t,n){var r,o,l,u={};for(l in t)"key"==l?r=t[l]:"ref"==l?o=t[l]:u[l]=t[l];if(arguments.length>2&&(u.children=arguments.length>3?_.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===u[l]&&(u[l]=e.defaultProps[l]);return k(e,u,r,o,null)}function k(e,t,n,_,l){var u={type:e,props:t,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++o:l,__i:-1,__u:0};return null==l&&null!=r.vnode&&r.vnode(u),u}function w(e){return e.children}function x(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?C(e):null}function H(e){(!e.__d&&(e.__d=!0)&&l.push(e)&&!P.__r++||u!=r.debounceRendering)&&((u=r.debounceRendering)||i)(P)}function P(){for(var e,t,n,_,o,u,i=1;l.length;)l.length>i&&l.sort(c),e=l.shift(),i=l.length,e.__d&&(t=void 0,n=void 0,_=(n=e.__v).__e,o=[],u=[],e.__P&&((t=m({},n)).__v=n.__v+1,r.vnode&&r.vnode(t),U(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[_]:null,o,null==_?C(n):_,!!(32&n.__u),u),t.__v=n.__v,t.__.__k[t.__i]=t,F(o,t,u),n.__e=n.__=null,t.__e!=_&&function e(t){var n,_;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(_=t.__k[n])&&null!=_.__e){t.__e=t.__c.base=_.__e;break}return e(t)}}(t)));P.__r=0}function S(e,t,n,_,o,l,u,i,c,f,s){var a,p,d,m,b,x,H,P=_&&_.__k||v,S=t.length;for(c=function(e,t,n,_,o){var l,u,i,c,f,s=n.length,a=s,p=0;for(e.__k=Array(o),l=0;l<o;l++)null!=(u=t[l])&&"boolean"!=typeof u&&"function"!=typeof u?(c=l+p,(u=e.__k[l]="string"==typeof u||"number"==typeof u||"bigint"==typeof u||u.constructor==String?k(null,u,null,null,null):y(u)?k(w,{children:u},null,null,null):null==u.constructor&&u.__b>0?k(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):u).__=e,u.__b=e.__b+1,i=null,-1!=(f=u.__i=function(e,t,n,_){var r,o,l,u=e.key,i=e.type,c=t[n],f=null!=c&&0==(2&c.__u);if(null===c&&null==e.key||f&&u==c.key&&i==c.type)return n;if(_>+!!f){for(r=n-1,o=n+1;r>=0||o<t.length;)if(null!=(c=t[l=r>=0?r--:o++])&&0==(2&c.__u)&&u==c.key&&i==c.type)return l}return -1}(u,n,c,a))&&(a--,(i=n[f])&&(i.__u|=2)),null==i||null==i.__v?(-1==f&&(o>s?p--:o<s&&p++),"function"!=typeof u.type&&(u.__u|=4)):f!=c&&(f==c-1?p--:f==c+1?p++:(f>c?p--:p++,u.__u|=4))):e.__k[l]=null;if(a)for(l=0;l<s;l++)null!=(i=n[l])&&0==(2&i.__u)&&(i.__e==_&&(_=C(i)),function e(t,n,_){var o,l;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!=t.__e||L(o,null,n)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,n)}o.base=o.__P=null}if(o=t.__k)for(l=0;l<o.length;l++)o[l]&&e(o[l],n,_||"function"!=typeof t.type);_||g(t.__e),t.__c=t.__=t.__e=void 0}(i,i));return _}(n,t,P,c,S),a=0;a<S;a++)null!=(d=n.__k[a])&&(p=-1==d.__i?h:P[d.__i]||h,d.__i=a,x=U(e,d,p,o,l,u,i,c,f,s),m=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&L(p.ref,null,d),s.push(d.ref,d.__c||m,d)),null==b&&null!=m&&(b=m),(H=!!(4&d.__u))||p.__k===d.__k?c=function e(t,n,_,r){var o,l;if("function"==typeof t.type){for(o=t.__k,l=0;o&&l<o.length;l++)o[l]&&(o[l].__=t,n=e(o[l],n,_,r));return n}t.__e!=n&&(r&&(n&&t.type&&!n.parentNode&&(n=C(t)),_.insertBefore(t.__e,n||null)),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8==n.nodeType);return n}(d,c,e,H):"function"==typeof d.type&&void 0!==x?c=x:m&&(c=m.nextSibling),d.__u&=-7);return n.__e=b,c}function E(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function N(e,t,n,_,r){var o,l;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(t in _)n&&t in n||E(e.style,t,"");if(n)for(t in n)_&&n[t]==_[t]||E(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(f,"$1")),t=(l=t.toLowerCase())in e||"onFocusOut"==t||"onFocusIn"==t?l.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?_?n.u=_.u:(n.u=s,e.addEventListener(t,o?p:a,o)):e.removeEventListener(t,o?p:a,o);else{if("http://www.w3.org/2000/svg"==r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function T(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=s++;else if(t.t<n.u)return;return n(r.event?r.event(t):t)}}}function U(e,t,n,o,l,u,i,c,f,s){var a,p,v,d,b,k,H,P,E,T,U,F,L,M,O,W,j,I=t.type;if(null!=t.constructor)return null;128&n.__u&&(f=!!(32&n.__u),u=[c=t.__e=n.__e]),(a=r.__b)&&a(t);e:if("function"==typeof I)try{if(P=t.props,E="prototype"in I&&I.prototype.render,T=(a=I.contextType)&&o[a.__c],U=a?T?T.props.value:a.__:o,n.__c?H=(p=t.__c=n.__c).__=p.__E:(E?t.__c=p=new I(P,U):(t.__c=p=new x(P,U),p.constructor=I,p.render=D),T&&T.sub(p),p.props=P,p.state||(p.state={}),p.context=U,p.__n=o,v=p.__d=!0,p.__h=[],p._sb=[]),E&&null==p.__s&&(p.__s=p.state),E&&null!=I.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=m({},p.__s)),m(p.__s,I.getDerivedStateFromProps(P,p.__s))),d=p.props,b=p.state,p.__v=t,v)E&&null==I.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),E&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(E&&null==I.getDerivedStateFromProps&&P!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(P,U),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(P,p.__s,U)||t.__v==n.__v){for(t.__v!=n.__v&&(p.props=P,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),F=0;F<p._sb.length;F++)p.__h.push(p._sb[F]);p._sb=[],p.__h.length&&i.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(P,p.__s,U),E&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,b,k)})}if(p.context=U,p.props=P,p.__P=e,p.__e=!1,L=r.__r,M=0,E){for(p.state=p.__s,p.__d=!1,L&&L(t),a=p.render(p.props,p.state,p.context),O=0;O<p._sb.length;O++)p.__h.push(p._sb[O]);p._sb=[]}else do p.__d=!1,L&&L(t),a=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++M<25);p.state=p.__s,null!=p.getChildContext&&(o=m(m({},o),p.getChildContext())),E&&!v&&null!=p.getSnapshotBeforeUpdate&&(k=p.getSnapshotBeforeUpdate(d,b)),W=a,null!=a&&a.type===w&&null==a.key&&(W=function e(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:y(t)?t.map(e):m({},t)}(a.props.children)),c=S(e,y(W)?W:[W],t,n,o,l,u,i,c,f,s),p.base=t.__e,t.__u&=-161,p.__h.length&&i.push(p),H&&(p.__E=p.__=null)}catch(e){if(t.__v=null,f||null!=u)if(e.then){for(t.__u|=f?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;u[u.indexOf(c)]=null,t.__e=c}else{for(j=u.length;j--;)g(u[j]);A(t)}else t.__e=n.__e,t.__k=n.__k,e.then||A(t);r.__e(e,t,n)}else null==u&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=function(e,t,n,o,l,u,i,c,f){var s,a,p,v,d,m,b,k=n.props,w=t.props,x=t.type;if("svg"==x?l="http://www.w3.org/2000/svg":"math"==x?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=u){for(s=0;s<u.length;s++)if((d=u[s])&&"setAttribute"in d==!!x&&(x?d.localName==x:3==d.nodeType)){e=d,u[s]=null;break}}if(null==e){if(null==x)return document.createTextNode(w);e=document.createElementNS(l,x,w.is&&w),c&&(r.__m&&r.__m(t,u),c=!1),u=null}if(null==x)k===w||c&&e.data==w||(e.data=w);else{if(u=u&&_.call(e.childNodes),k=n.props||h,!c&&null!=u)for(k={},s=0;s<e.attributes.length;s++)k[(d=e.attributes[s]).name]=d.value;for(s in k)if(d=k[s],"children"==s);else if("dangerouslySetInnerHTML"==s)p=d;else if(!(s in w)){if("value"==s&&"defaultValue"in w||"checked"==s&&"defaultChecked"in w)continue;N(e,s,null,d,l)}for(s in w)d=w[s],"children"==s?v=d:"dangerouslySetInnerHTML"==s?a=d:"value"==s?m=d:"checked"==s?b=d:c&&"function"!=typeof d||k[s]===d||N(e,s,d,k[s],l);if(a)c||p&&(a.__html==p.__html||a.__html==e.innerHTML)||(e.innerHTML=a.__html),t.__k=[];else if(p&&(e.innerHTML=""),S("template"==t.type?e.content:e,y(v)?v:[v],t,n,o,"foreignObject"==x?"http://www.w3.org/1999/xhtml":l,u,i,u?u[0]:n.__k&&C(n,0),c,f),null!=u)for(s=u.length;s--;)g(u[s]);c||(s="value","progress"==x&&null==m?e.removeAttribute("value"):null==m||m===e[s]&&("progress"!=x||m)&&("option"!=x||m==k[s])||N(e,s,m,k[s],l),s="checked",null!=b&&b!=e[s]&&N(e,s,b,k[s],l))}return e}(n.__e,t,n,o,l,u,i,f,s);return(a=r.diffed)&&a(t),128&t.__u?void 0:c}function A(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(A)}function F(e,t,n){for(var _=0;_<n.length;_++)L(n[_],n[++_],n[++_]);r.__c&&r.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){r.__e(e,t.__v)}})}function L(e,t,n){try{if("function"==typeof e){var _="function"==typeof e.__u;_&&e.__u(),_&&null==t||(e.__u=e(t))}else e.current=t}catch(e){r.__e(e,n)}}function D(e,t,n){return this.constructor(e,n)}function M(e,t,n){var o,l,u,i;t==document&&(t=document.documentElement),r.__&&r.__(e,t),l=(o="function"==typeof n)?null:n&&n.__k||t.__k,u=[],i=[],U(t,e=(!o&&n||t).__k=b(w,null,[e]),l||h,h,t.namespaceURI,!o&&n?[n]:l?null:t.firstChild?_.call(t.childNodes):null,u,!o&&n?n:l?l.__e:t.firstChild,o,i),F(u,e,i)}_=v.slice,r={__e:function(e,t,n,_){for(var r,o,l;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),l=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,_||{}),l=r.__d),l)return r.__E=r}catch(t){e=t}throw e}},o=0,x.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),H(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),H(this))},x.prototype.render=w,l=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,s=0,a=T(!1),p=T(!0)},8987:function(e,t,n){n.d(t,{J0:()=>m,vJ:()=>g});var _,r,o,l,u=n(8271),i=0,c=[],f=u.fF,s=f.__b,a=f.__r,p=f.diffed,h=f.__c,v=f.unmount,d=f.__;function y(e,t){f.__h&&f.__h(r,e,i||t),i=0;var n=r.__H||(r.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function m(e){return i=1,function(e,t,n){var o=y(_++,2);if(o.t=e,!o.__c&&(o.__=[C(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.__f)){var l=function(e,t,n){if(!o.__c.__H)return!0;var _=o.__c.__H.__.filter(function(e){return!!e.__c});if(_.every(function(e){return!e.__N}))return!u||u.call(this,e,t,n);var r=o.__c.props!==e;return _.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(r=!0)}}),u&&u.call(this,e,t,n)||r};r.__f=!0;var u=r.shouldComponentUpdate,i=r.componentWillUpdate;r.componentWillUpdate=function(e,t,n){if(this.__e){var _=u;u=void 0,l(e,t,n),u=_}i&&i.call(this,e,t,n)},r.shouldComponentUpdate=l}return o.__N||o.__}(C,e)}function g(e,t){var n,o,l=y(_++,3);!f.__s&&(n=l.__H,o=t,!n||n.length!==o.length||o.some(function(e,t){return e!==n[t]}))&&(l.__=e,l.u=t,r.__H.__h.push(l))}function b(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(w),e.__H.__h.forEach(x),e.__H.__h=[]}catch(t){e.__H.__h=[],f.__e(t,e.__v)}}f.__b=function(e){r=null,s&&s(e)},f.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),d&&d(e,t)},f.__r=function(e){a&&a(e),_=0;var t=(r=e.__c).__H;t&&(o===r?(t.__h=[],r.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(w),t.__h.forEach(x),t.__h=[],_=0)),o=r},f.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&l===f.requestAnimationFrame||((l=f.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(_),k&&cancelAnimationFrame(t),setTimeout(e)},_=setTimeout(n,35);k&&(t=requestAnimationFrame(n))})(b)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),o=r=null},f.__c=function(e,t){t.some(function(e){try{e.__h.forEach(w),e.__h=e.__h.filter(function(e){return!e.__||x(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],f.__e(n,e.__v)}}),h&&h(e,t)},f.unmount=function(e){v&&v(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{w(e)}catch(e){t=e}}),n.__H=void 0,t&&f.__e(t,n.__v))};var k="function"==typeof requestAnimationFrame;function w(e){var t=r,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),r=t}function x(e){var t=r;e.__c=e.__(),r=t}function C(e,t){return"function"==typeof t?t(e):t}},3976:function(e){var t=Object.prototype.hasOwnProperty,n="~";function _(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,_,o,l){if("function"!=typeof _)throw TypeError("The listener must be a function");var u=new r(_,o||e,l),i=n?n+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],u]:e._events[i].push(u):(e._events[i]=u,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new _:delete e._events[t]}function u(){this._events=new _,this._eventsCount=0}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(n=!1)),u.prototype.eventNames=function(){var e,_,r=[];if(0===this._eventsCount)return r;for(_ in e=this._events)t.call(e,_)&&r.push(n?_.slice(1):_);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},u.prototype.listeners=function(e){var t=n?n+e:e,_=this._events[t];if(!_)return[];if(_.fn)return[_.fn];for(var r=0,o=_.length,l=Array(o);r<o;r++)l[r]=_[r].fn;return l},u.prototype.listenerCount=function(e){var t=n?n+e:e,_=this._events[t];return _?_.fn?1:_.length:0},u.prototype.emit=function(e,t,_,r,o,l){var u=n?n+e:e;if(!this._events[u])return!1;var i,c,f=this._events[u],s=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),s){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,t),!0;case 3:return f.fn.call(f.context,t,_),!0;case 4:return f.fn.call(f.context,t,_,r),!0;case 5:return f.fn.call(f.context,t,_,r,o),!0;case 6:return f.fn.call(f.context,t,_,r,o,l),!0}for(c=1,i=Array(s-1);c<s;c++)i[c-1]=arguments[c];f.fn.apply(f.context,i)}else{var a,p=f.length;for(c=0;c<p;c++)switch(f[c].once&&this.removeListener(e,f[c].fn,void 0,!0),s){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,t);break;case 3:f[c].fn.call(f[c].context,t,_);break;case 4:f[c].fn.call(f[c].context,t,_,r);break;default:if(!i)for(a=1,i=Array(s-1);a<s;a++)i[a-1]=arguments[a];f[c].fn.apply(f[c].context,i)}}return!0},u.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,_,r){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return l(this,o),this;var u=this._events[o];if(u.fn)u.fn!==t||r&&!u.once||_&&u.context!==_||l(this,o);else{for(var i=0,c=[],f=u.length;i<f;i++)(u[i].fn!==t||r&&!u[i].once||_&&u[i].context!==_)&&c.push(u[i]);c.length?this._events[o]=1===c.length?c[0]:c:l(this,o)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&l(this,t)):(this._events=new _,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u},1786:function(e,t,n){n.d(t,{b:()=>_});var _=n(3976)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["994"],{8271:function(e,t,n){n.d(t,{XX:()=>M,fF:()=>r,h:()=>b});var _,r,o,l,u,i,c,f,s,a,p,h={},v=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function g(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(e,t,n){var r,o,l,u={};for(l in t)"key"==l?r=t[l]:"ref"==l?o=t[l]:u[l]=t[l];if(arguments.length>2&&(u.children=arguments.length>3?_.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===u[l]&&(u[l]=e.defaultProps[l]);return k(e,u,r,o,null)}function k(e,t,n,_,l){var u={type:e,props:t,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++o:l,__i:-1,__u:0};return null==l&&null!=r.vnode&&r.vnode(u),u}function w(e){return e.children}function x(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?C(e):null}function H(e){(!e.__d&&(e.__d=!0)&&l.push(e)&&!P.__r++||u!=r.debounceRendering)&&((u=r.debounceRendering)||i)(P)}function P(){for(var e,t,n,_,o,u,i=1;l.length;)l.length>i&&l.sort(c),e=l.shift(),i=l.length,e.__d&&(t=void 0,n=void 0,_=(n=e.__v).__e,o=[],u=[],e.__P&&((t=m({},n)).__v=n.__v+1,r.vnode&&r.vnode(t),U(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[_]:null,o,null==_?C(n):_,!!(32&n.__u),u),t.__v=n.__v,t.__.__k[t.__i]=t,F(o,t,u),n.__e=n.__=null,t.__e!=_&&function e(t){var n,_;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(_=t.__k[n])&&null!=_.__e){t.__e=t.__c.base=_.__e;break}return e(t)}}(t)));P.__r=0}function S(e,t,n,_,o,l,u,i,c,f,s){var a,p,d,m,b,x,H,P=_&&_.__k||v,S=t.length;for(c=function(e,t,n,_,o){var l,u,i,c,f,s=n.length,a=s,p=0;for(e.__k=Array(o),l=0;l<o;l++)null!=(u=t[l])&&"boolean"!=typeof u&&"function"!=typeof u?(c=l+p,(u=e.__k[l]="string"==typeof u||"number"==typeof u||"bigint"==typeof u||u.constructor==String?k(null,u,null,null,null):y(u)?k(w,{children:u},null,null,null):null==u.constructor&&u.__b>0?k(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):u).__=e,u.__b=e.__b+1,i=null,-1!=(f=u.__i=function(e,t,n,_){var r,o,l,u=e.key,i=e.type,c=t[n],f=null!=c&&0==(2&c.__u);if(null===c&&null==e.key||f&&u==c.key&&i==c.type)return n;if(_>+!!f){for(r=n-1,o=n+1;r>=0||o<t.length;)if(null!=(c=t[l=r>=0?r--:o++])&&0==(2&c.__u)&&u==c.key&&i==c.type)return l}return -1}(u,n,c,a))&&(a--,(i=n[f])&&(i.__u|=2)),null==i||null==i.__v?(-1==f&&(o>s?p--:o<s&&p++),"function"!=typeof u.type&&(u.__u|=4)):f!=c&&(f==c-1?p--:f==c+1?p++:(f>c?p--:p++,u.__u|=4))):e.__k[l]=null;if(a)for(l=0;l<s;l++)null!=(i=n[l])&&0==(2&i.__u)&&(i.__e==_&&(_=C(i)),function e(t,n,_){var o,l;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!=t.__e||L(o,null,n)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,n)}o.base=o.__P=null}if(o=t.__k)for(l=0;l<o.length;l++)o[l]&&e(o[l],n,_||"function"!=typeof t.type);_||g(t.__e),t.__c=t.__=t.__e=void 0}(i,i));return _}(n,t,P,c,S),a=0;a<S;a++)null!=(d=n.__k[a])&&(p=-1==d.__i?h:P[d.__i]||h,d.__i=a,x=U(e,d,p,o,l,u,i,c,f,s),m=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&L(p.ref,null,d),s.push(d.ref,d.__c||m,d)),null==b&&null!=m&&(b=m),(H=!!(4&d.__u))||p.__k===d.__k?c=function e(t,n,_,r){var o,l;if("function"==typeof t.type){for(o=t.__k,l=0;o&&l<o.length;l++)o[l]&&(o[l].__=t,n=e(o[l],n,_,r));return n}t.__e!=n&&(r&&(n&&t.type&&!n.parentNode&&(n=C(t)),_.insertBefore(t.__e,n||null)),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8==n.nodeType);return n}(d,c,e,H):"function"==typeof d.type&&void 0!==x?c=x:m&&(c=m.nextSibling),d.__u&=-7);return n.__e=b,c}function E(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function N(e,t,n,_,r){var o,l;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(t in _)n&&t in n||E(e.style,t,"");if(n)for(t in n)_&&n[t]==_[t]||E(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(f,"$1")),t=(l=t.toLowerCase())in e||"onFocusOut"==t||"onFocusIn"==t?l.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?_?n.u=_.u:(n.u=s,e.addEventListener(t,o?p:a,o)):e.removeEventListener(t,o?p:a,o);else{if("http://www.w3.org/2000/svg"==r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function T(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=s++;else if(t.t<n.u)return;return n(r.event?r.event(t):t)}}}function U(e,t,n,o,l,u,i,c,f,s){var a,p,v,d,b,k,H,P,E,T,U,F,L,M,O,W,j,I=t.type;if(null!=t.constructor)return null;128&n.__u&&(f=!!(32&n.__u),u=[c=t.__e=n.__e]),(a=r.__b)&&a(t);e:if("function"==typeof I)try{if(P=t.props,E="prototype"in I&&I.prototype.render,T=(a=I.contextType)&&o[a.__c],U=a?T?T.props.value:a.__:o,n.__c?H=(p=t.__c=n.__c).__=p.__E:(E?t.__c=p=new I(P,U):(t.__c=p=new x(P,U),p.constructor=I,p.render=D),T&&T.sub(p),p.props=P,p.state||(p.state={}),p.context=U,p.__n=o,v=p.__d=!0,p.__h=[],p._sb=[]),E&&null==p.__s&&(p.__s=p.state),E&&null!=I.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=m({},p.__s)),m(p.__s,I.getDerivedStateFromProps(P,p.__s))),d=p.props,b=p.state,p.__v=t,v)E&&null==I.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),E&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(E&&null==I.getDerivedStateFromProps&&P!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(P,U),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(P,p.__s,U)||t.__v==n.__v){for(t.__v!=n.__v&&(p.props=P,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),F=0;F<p._sb.length;F++)p.__h.push(p._sb[F]);p._sb=[],p.__h.length&&i.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(P,p.__s,U),E&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,b,k)})}if(p.context=U,p.props=P,p.__P=e,p.__e=!1,L=r.__r,M=0,E){for(p.state=p.__s,p.__d=!1,L&&L(t),a=p.render(p.props,p.state,p.context),O=0;O<p._sb.length;O++)p.__h.push(p._sb[O]);p._sb=[]}else do p.__d=!1,L&&L(t),a=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++M<25);p.state=p.__s,null!=p.getChildContext&&(o=m(m({},o),p.getChildContext())),E&&!v&&null!=p.getSnapshotBeforeUpdate&&(k=p.getSnapshotBeforeUpdate(d,b)),W=a,null!=a&&a.type===w&&null==a.key&&(W=function e(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:y(t)?t.map(e):m({},t)}(a.props.children)),c=S(e,y(W)?W:[W],t,n,o,l,u,i,c,f,s),p.base=t.__e,t.__u&=-161,p.__h.length&&i.push(p),H&&(p.__E=p.__=null)}catch(e){if(t.__v=null,f||null!=u)if(e.then){for(t.__u|=f?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;u[u.indexOf(c)]=null,t.__e=c}else{for(j=u.length;j--;)g(u[j]);A(t)}else t.__e=n.__e,t.__k=n.__k,e.then||A(t);r.__e(e,t,n)}else null==u&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=function(e,t,n,o,l,u,i,c,f){var s,a,p,v,d,m,b,k=n.props,w=t.props,x=t.type;if("svg"==x?l="http://www.w3.org/2000/svg":"math"==x?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=u){for(s=0;s<u.length;s++)if((d=u[s])&&"setAttribute"in d==!!x&&(x?d.localName==x:3==d.nodeType)){e=d,u[s]=null;break}}if(null==e){if(null==x)return document.createTextNode(w);e=document.createElementNS(l,x,w.is&&w),c&&(r.__m&&r.__m(t,u),c=!1),u=null}if(null==x)k===w||c&&e.data==w||(e.data=w);else{if(u=u&&_.call(e.childNodes),k=n.props||h,!c&&null!=u)for(k={},s=0;s<e.attributes.length;s++)k[(d=e.attributes[s]).name]=d.value;for(s in k)if(d=k[s],"children"==s);else if("dangerouslySetInnerHTML"==s)p=d;else if(!(s in w)){if("value"==s&&"defaultValue"in w||"checked"==s&&"defaultChecked"in w)continue;N(e,s,null,d,l)}for(s in w)d=w[s],"children"==s?v=d:"dangerouslySetInnerHTML"==s?a=d:"value"==s?m=d:"checked"==s?b=d:c&&"function"!=typeof d||k[s]===d||N(e,s,d,k[s],l);if(a)c||p&&(a.__html==p.__html||a.__html==e.innerHTML)||(e.innerHTML=a.__html),t.__k=[];else if(p&&(e.innerHTML=""),S("template"==t.type?e.content:e,y(v)?v:[v],t,n,o,"foreignObject"==x?"http://www.w3.org/1999/xhtml":l,u,i,u?u[0]:n.__k&&C(n,0),c,f),null!=u)for(s=u.length;s--;)g(u[s]);c||(s="value","progress"==x&&null==m?e.removeAttribute("value"):null==m||m===e[s]&&("progress"!=x||m)&&("option"!=x||m==k[s])||N(e,s,m,k[s],l),s="checked",null!=b&&b!=e[s]&&N(e,s,b,k[s],l))}return e}(n.__e,t,n,o,l,u,i,f,s);return(a=r.diffed)&&a(t),128&t.__u?void 0:c}function A(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(A)}function F(e,t,n){for(var _=0;_<n.length;_++)L(n[_],n[++_],n[++_]);r.__c&&r.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){r.__e(e,t.__v)}})}function L(e,t,n){try{if("function"==typeof e){var _="function"==typeof e.__u;_&&e.__u(),_&&null==t||(e.__u=e(t))}else e.current=t}catch(e){r.__e(e,n)}}function D(e,t,n){return this.constructor(e,n)}function M(e,t,n){var o,l,u,i;t==document&&(t=document.documentElement),r.__&&r.__(e,t),l=(o="function"==typeof n)?null:n&&n.__k||t.__k,u=[],i=[],U(t,e=(!o&&n||t).__k=b(w,null,[e]),l||h,h,t.namespaceURI,!o&&n?[n]:l?null:t.firstChild?_.call(t.childNodes):null,u,!o&&n?n:l?l.__e:t.firstChild,o,i),F(u,e,i)}_=v.slice,r={__e:function(e,t,n,_){for(var r,o,l;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),l=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,_||{}),l=r.__d),l)return r.__E=r}catch(t){e=t}throw e}},o=0,x.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),H(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),H(this))},x.prototype.render=w,l=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,s=0,a=T(!1),p=T(!0)},8987:function(e,t,n){n.d(t,{J0:()=>m,vJ:()=>g});var _,r,o,l,u=n(8271),i=0,c=[],f=u.fF,s=f.__b,a=f.__r,p=f.diffed,h=f.__c,v=f.unmount,d=f.__;function y(e,t){f.__h&&f.__h(r,e,i||t),i=0;var n=r.__H||(r.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function m(e){return i=1,function(e,t,n){var o=y(_++,2);if(o.t=e,!o.__c&&(o.__=[C(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.__f)){var l=function(e,t,n){if(!o.__c.__H)return!0;var _=o.__c.__H.__.filter(function(e){return!!e.__c});if(_.every(function(e){return!e.__N}))return!u||u.call(this,e,t,n);var r=o.__c.props!==e;return _.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(r=!0)}}),u&&u.call(this,e,t,n)||r};r.__f=!0;var u=r.shouldComponentUpdate,i=r.componentWillUpdate;r.componentWillUpdate=function(e,t,n){if(this.__e){var _=u;u=void 0,l(e,t,n),u=_}i&&i.call(this,e,t,n)},r.shouldComponentUpdate=l}return o.__N||o.__}(C,e)}function g(e,t){var n,o,l=y(_++,3);!f.__s&&(n=l.__H,o=t,!n||n.length!==o.length||o.some(function(e,t){return e!==n[t]}))&&(l.__=e,l.u=t,r.__H.__h.push(l))}function b(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(w),e.__H.__h.forEach(x),e.__H.__h=[]}catch(t){e.__H.__h=[],f.__e(t,e.__v)}}f.__b=function(e){r=null,s&&s(e)},f.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),d&&d(e,t)},f.__r=function(e){a&&a(e),_=0;var t=(r=e.__c).__H;t&&(o===r?(t.__h=[],r.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(w),t.__h.forEach(x),t.__h=[],_=0)),o=r},f.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&l===f.requestAnimationFrame||((l=f.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(_),k&&cancelAnimationFrame(t),setTimeout(e)},_=setTimeout(n,35);k&&(t=requestAnimationFrame(n))})(b)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),o=r=null},f.__c=function(e,t){t.some(function(e){try{e.__h.forEach(w),e.__h=e.__h.filter(function(e){return!e.__||x(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],f.__e(n,e.__v)}}),h&&h(e,t)},f.unmount=function(e){v&&v(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{w(e)}catch(e){t=e}}),n.__H=void 0,t&&f.__e(t,n.__v))};var k="function"==typeof requestAnimationFrame;function w(e){var t=r,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),r=t}function x(e){var t=r;e.__c=e.__(),r=t}function C(e,t){return"function"==typeof t?t(e):t}},3976:function(e){var t=Object.prototype.hasOwnProperty,n="~";function _(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,_,o,l){if("function"!=typeof _)throw TypeError("The listener must be a function");var u=new r(_,o||e,l),i=n?n+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],u]:e._events[i].push(u):(e._events[i]=u,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new _:delete e._events[t]}function u(){this._events=new _,this._eventsCount=0}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(n=!1)),u.prototype.eventNames=function(){var e,_,r=[];if(0===this._eventsCount)return r;for(_ in e=this._events)t.call(e,_)&&r.push(n?_.slice(1):_);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},u.prototype.listeners=function(e){var t=n?n+e:e,_=this._events[t];if(!_)return[];if(_.fn)return[_.fn];for(var r=0,o=_.length,l=Array(o);r<o;r++)l[r]=_[r].fn;return l},u.prototype.listenerCount=function(e){var t=n?n+e:e,_=this._events[t];return _?_.fn?1:_.length:0},u.prototype.emit=function(e,t,_,r,o,l){var u=n?n+e:e;if(!this._events[u])return!1;var i,c,f=this._events[u],s=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),s){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,t),!0;case 3:return f.fn.call(f.context,t,_),!0;case 4:return f.fn.call(f.context,t,_,r),!0;case 5:return f.fn.call(f.context,t,_,r,o),!0;case 6:return f.fn.call(f.context,t,_,r,o,l),!0}for(c=1,i=Array(s-1);c<s;c++)i[c-1]=arguments[c];f.fn.apply(f.context,i)}else{var a,p=f.length;for(c=0;c<p;c++)switch(f[c].once&&this.removeListener(e,f[c].fn,void 0,!0),s){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,t);break;case 3:f[c].fn.call(f[c].context,t,_);break;case 4:f[c].fn.call(f[c].context,t,_,r);break;default:if(!i)for(a=1,i=Array(s-1);a<s;a++)i[a-1]=arguments[a];f[c].fn.apply(f[c].context,i)}}return!0},u.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,_,r){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return l(this,o),this;var u=this._events[o];if(u.fn)u.fn!==t||r&&!u.once||_&&u.context!==_||l(this,o);else{for(var i=0,c=[],f=u.length;i<f;i++)(u[i].fn!==t||r&&!u[i].once||_&&u[i].context!==_)&&c.push(u[i]);c.length?this._events[o]=1===c.length?c[0]:c:l(this,o)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&l(this,t)):(this._events=new _,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u},1786:function(e,t,n){n.d(t,{b:()=>_});var _=n(3976)}}]);
@@ -0,0 +1,3 @@
1
+ (globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["929"],{3938:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=w,t.fromBig=i,t.split=r;let s=BigInt(0x100000000-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&s),l:Number(e>>n&s)}:{h:0|Number(e>>n&s),l:0|Number(e&s)}}function r(e,t=!1){let s=e.length,n=new Uint32Array(s),a=new Uint32Array(s);for(let r=0;r<s;r++){let{h:s,l:o}=i(e[r],t);[n[r],a[r]]=[s,o]}return[n,a]}let a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=a;let o=(e,t,s)=>e>>>s;t.shrSH=o;let c=(e,t,s)=>e<<32-s|t>>>s;t.shrSL=c;let l=(e,t,s)=>e>>>s|t<<32-s;t.rotrSH=l;let d=(e,t,s)=>e<<32-s|t>>>s;t.rotrSL=d;let h=(e,t,s)=>e<<64-s|t>>>s-32;t.rotrBH=h;let u=(e,t,s)=>e>>>s-32|t<<64-s;t.rotrBL=u;let f=(e,t)=>t;t.rotr32H=f;let p=(e,t)=>e;t.rotr32L=p;let g=(e,t,s)=>e<<s|t>>>32-s;t.rotlSH=g;let b=(e,t,s)=>t<<s|e>>>32-s;t.rotlSL=b;let y=(e,t,s)=>t<<s-32|e>>>64-s;t.rotlBH=y;let m=(e,t,s)=>e<<s-32|t>>>64-s;function w(e,t,s,n){let i=(t>>>0)+(n>>>0);return{h:e+s+(i/0x100000000|0)|0,l:0|i}}t.rotlBL=m;let k=(e,t,s)=>(e>>>0)+(t>>>0)+(s>>>0);t.add3L=k;let x=(e,t,s,n)=>t+s+n+(e/0x100000000|0)|0;t.add3H=x;let v=(e,t,s,n)=>(e>>>0)+(t>>>0)+(s>>>0)+(n>>>0);t.add4L=v;let I=(e,t,s,n,i)=>t+s+n+i+(e/0x100000000|0)|0;t.add4H=I;let E=(e,t,s,n,i)=>(e>>>0)+(t>>>0)+(s>>>0)+(n>>>0)+(i>>>0);t.add5L=E;let C=(e,t,s,n,i,r)=>t+s+n+i+r+(e/0x100000000|0)|0;t.add5H=C,t.default={fromBig:i,split:r,toBig:a,shrSH:o,shrSL:c,rotrSH:l,rotrSL:d,rotrBH:h,rotrBL:u,rotr32H:f,rotr32L:p,rotlSH:g,rotlSL:b,rotlBH:y,rotlBL:m,add:w,add3L:k,add3H:x,add4L:v,add4H:I,add5H:C,add5L:E}},5917:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},2735:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=w;let n=s(3938),i=s(4459),r=BigInt(0),a=BigInt(1),o=BigInt(2),c=BigInt(7),l=BigInt(256),d=BigInt(113),h=[],u=[],f=[];for(let e=0,t=a,s=1,n=0;e<24;e++){[s,n]=[n,(2*s+3*n)%5],h.push(2*(5*n+s)),u.push((e+1)*(e+2)/2%64);let i=r;for(let e=0;e<7;e++)(t=(t<<a^(t>>c)*d)%l)&o&&(i^=a<<(a<<BigInt(e))-a);f.push(i)}let p=(0,n.split)(f,!0),g=p[0],b=p[1],y=(e,t,s)=>s>32?(0,n.rotlBH)(e,t,s):(0,n.rotlSH)(e,t,s),m=(e,t,s)=>s>32?(0,n.rotlBL)(e,t,s):(0,n.rotlSL)(e,t,s);function w(e,t=24){let s=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)s[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,r=s[i],a=s[i+1],o=y(r,a,1)^s[n],c=m(r,a,1)^s[n+1];for(let s=0;s<50;s+=10)e[t+s]^=o,e[t+s+1]^=c}let t=e[2],i=e[3];for(let s=0;s<24;s++){let n=u[s],r=y(t,i,n),a=m(t,i,n),o=h[s];t=e[o],i=e[o+1],e[o]=r,e[o+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)s[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~s[(n+2)%10]&s[(n+4)%10]}e[0]^=g[n],e[1]^=b[n]}(0,i.clean)(s)}class k extends i.Hash{constructor(e,t,s,n=!1,r=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=s,this.enableXOF=n,this.rounds=r,(0,i.anumber)(s),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.swap32IfBE)(this.state32),w(this.state32,this.rounds),(0,i.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.aexists)(this),e=(0,i.toBytes)(e),(0,i.abytes)(e);let{blockLen:t,state:s}=this,n=e.length;for(let i=0;i<n;){let r=Math.min(t-this.pos,n-i);for(let t=0;t<r;t++)s[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:s,blockLen:n}=this;e[s]^=t,(128&t)!=0&&s===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,i.aexists)(this,!1),(0,i.abytes)(e),this.finish();let t=this.state,{blockLen:s}=this;for(let n=0,i=e.length;n<i;){this.posOut>=s&&this.keccak();let r=Math.min(s-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+r),n),this.posOut+=r,n+=r}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.aoutput)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,i.clean)(this.state)}_cloneInto(e){let{blockLen:t,suffix:s,outputLen:n,rounds:i,enableXOF:r}=this;return e||(e=new k(t,s,n,r,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=s,e.outputLen=n,e.enableXOF=r,e.destroyed=this.destroyed,e}}t.Keccak=k;let x=(e,t,s)=>(0,i.createHasher)(()=>new k(t,e,s));t.sha3_224=x(6,144,28),t.sha3_256=x(6,136,32),t.sha3_384=x(6,104,48),t.sha3_512=x(6,72,64),t.keccak_224=x(1,144,28),t.keccak_256=x(1,136,32),t.keccak_384=x(1,104,48),t.keccak_512=x(1,72,64);let v=(e,t,s)=>(0,i.createXOFer)((n={})=>new k(t,e,void 0===n.dkLen?s:n.dkLen,!0));t.shake128=v(31,168,16),t.shake256=v(31,136,32)},4459:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=i,t.anumber=r,t.abytes=a,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");r(e.outputLen),r(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},t.aoutput=function(e,t){a(e);let s=t.outputLen;if(e.length<s)throw Error("digestInto() expects output buffer of length at least "+s)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=o,t.byteSwap32=c,t.bytesToHex=function(e){if(a(e),l)return e.toHex();let t="";for(let s=0;s<e.length;s++)t+=d[e[s]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(l)return Uint8Array.fromHex(e);let t=e.length,s=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(s);for(let t=0,i=0;t<s;t++,i+=2){let s=h(e.charCodeAt(i)),r=h(e.charCodeAt(i+1));if(void 0===s||void 0===r)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*s+r}return n},t.asyncLoop=u,t.utf8ToBytes=f,t.bytesToUtf8=function(e){return new TextDecoder().decode(e)},t.toBytes=p,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=f(e)),a(e),e},t.concatBytes=function(...e){let t=0;for(let s=0;s<e.length;s++){let n=e[s];a(n),t+=n.length}let s=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];s.set(i,n),n+=i.length}return s},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==({}).toString.call(t))throw Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=g,t.createOptHasher=b,t.createXOFer=y,t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw Error("crypto.getRandomValues must be defined")};let n=s(5917);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function a(e,...t){if(!i(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e){return e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=o(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>o(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;let l="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function h(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}async function u(e,s,n){let i=Date.now();for(let r=0;r<e;r++){n(r);let e=Date.now()-i;e>=0&&e<s||(await (0,t.nextTick)(),i+=e)}}function f(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function p(e){return"string"==typeof e&&(e=f(e)),a(e),e}function g(e){let t=t=>e().update(p(t)).digest(),s=e();return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=()=>e(),t}function b(e){let t=(t,s)=>e(s).update(p(t)).digest(),s=e({});return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=t=>e(t),t}function y(e){let t=(t,s)=>e(s).update(p(t)).digest(),s=e({});return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=t=>e(t),t}t.nextTick=async()=>{},t.Hash=class{},t.wrapConstructor=g,t.wrapConstructorWithOpts=b,t.wrapXOFConstructorWithOpts=y},7193:function(e,t,s){let n=s(5345);function i(e){if(e.startsWith("int["))return"int256"+e.slice(3);if("int"===e)return"int256";if(e.startsWith("uint["))return"uint256"+e.slice(4);if("uint"===e)return"uint256";if(e.startsWith("fixed["))return"fixed128x128"+e.slice(5);else if("fixed"===e)return"fixed128x128";else if(e.startsWith("ufixed["))return"ufixed128x128"+e.slice(6);else if("ufixed"===e)return"ufixed128x128";return e}function r(e){return Number.parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function a(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[Number.parseInt(t[1],10),Number.parseInt(t[2],10)]}function o(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":Number.parseInt(t[2],10):null}function c(e){var t=typeof e;if("string"===t||"number"===t)return BigInt(e);if("bigint"===t)return e;throw Error("Argument is not a number")}function l(e,t){if("address"===e)return l("uint160",c(t));if("bool"===e)return l("uint8",+!!t);if("string"===e)return l("bytes",new Buffer(t,"utf8"));if((u=e).lastIndexOf("]")===u.length-1){if(void 0===t.length)throw Error("Not an array?");if("dynamic"!==(s=o(e))&&0!==s&&t.length>s)throw Error("Elements exceed array size: "+s);for(h in d=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)d.push(l(e,t[h]));if("dynamic"===s){var s,i,d,h,u,f=l("uint256",t.length);d.unshift(f)}return Buffer.concat(d)}else if("bytes"===e)return t=new Buffer(t),d=Buffer.concat([l("uint256",t.length),t]),t.length%32!=0&&(d=Buffer.concat([d,n.zeros(32-t.length%32)])),d;else if(e.startsWith("bytes")){if((s=r(e))<1||s>32)throw Error("Invalid bytes<N> width: "+s);return n.setLengthRight(t,32)}else if(e.startsWith("uint")){if((s=r(e))%8||s<8||s>256)throw Error("Invalid uint<N> width: "+s);i=c(t);let a=n.bitLengthFromBigInt(i);if(a>s)throw Error("Supplied uint exceeds width: "+s+" vs "+a);if(i<0)throw Error("Supplied uint is negative");return n.bufferBEFromBigInt(i,32)}else if(e.startsWith("int")){if((s=r(e))%8||s<8||s>256)throw Error("Invalid int<N> width: "+s);i=c(t);let a=n.bitLengthFromBigInt(i);if(a>s)throw Error("Supplied int exceeds width: "+s+" vs "+a);let o=n.twosFromBigInt(i,256);return n.bufferBEFromBigInt(o,32)}else if(e.startsWith("ufixed")){if(s=a(e),(i=c(t))<0)throw Error("Supplied ufixed is negative");return l("uint256",i*BigInt(2)**BigInt(s[1]))}else if(e.startsWith("fixed"))return s=a(e),l("int256",c(t)*BigInt(2)**BigInt(s[1]));throw Error("Unsupported or invalid type: "+e)}function d(e,t){if(e.length!==t.length)throw Error("Number of types are not matching the values");for(var s,a,o=[],l=0;l<e.length;l++){var d=i(e[l]),h=t[l];if("bytes"===d)o.push(h);else if("string"===d)o.push(new Buffer(h,"utf8"));else if("bool"===d)o.push(new Buffer(h?"01":"00","hex"));else if("address"===d)o.push(n.setLength(h,20));else if(d.startsWith("bytes")){if((s=r(d))<1||s>32)throw Error("Invalid bytes<N> width: "+s);o.push(n.setLengthRight(h,s))}else if(d.startsWith("uint")){if((s=r(d))%8||s<8||s>256)throw Error("Invalid uint<N> width: "+s);a=c(h);let e=n.bitLengthFromBigInt(a);if(e>s)throw Error("Supplied uint exceeds width: "+s+" vs "+e);o.push(n.bufferBEFromBigInt(a,s/8))}else if(d.startsWith("int")){if((s=r(d))%8||s<8||s>256)throw Error("Invalid int<N> width: "+s);a=c(h);let e=n.bitLengthFromBigInt(a);if(e>s)throw Error("Supplied int exceeds width: "+s+" vs "+e);let t=n.twosFromBigInt(a,s);o.push(n.bufferBEFromBigInt(t,s/8))}else throw Error("Unsupported or invalid type: "+d)}return Buffer.concat(o)}e.exports={rawEncode:function(e,t){var s=[],n=[],r=32*e.length;for(var a in e){var c=i(e[a]),d=l(c,t[a]);"string"===c||"bytes"===c||"dynamic"===o(c)?(s.push(l("uint256",r)),n.push(d),r+=d.length):s.push(d)}return Buffer.concat(s.concat(n))},solidityPack:d,soliditySHA3:function(e,t){return n.keccak(d(e,t))}}},5471:function(e,t,s){let n=s(5345),i=s(7193),r={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},a={encodeData(e,t,s,r=!0){let a=["bytes32"],o=[this.hashType(e,s)];if(r){let c=(e,t,a)=>{if(void 0!==s[t])return["bytes32",null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":n.keccak(this.encodeData(t,a,s,r))];if(void 0===a)throw Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",n.keccak(a)];if("string"===t)return"string"==typeof a&&(a=Buffer.from(a,"utf8")),["bytes32",n.keccak(a)];if(t.lastIndexOf("]")===t.length-1){let s=t.slice(0,t.lastIndexOf("[")),r=a.map(t=>c(e,s,t));return["bytes32",n.keccak(i.rawEncode(r.map(([e])=>e),r.map(([,e])=>e)))]}return[t,a]};for(let n of s[e]){let[e,s]=c(n.name,n.type,t[n.name]);a.push(e),o.push(s)}}else for(let i of s[e]){let e=t[i.name];if(void 0!==e)if("bytes"===i.type)a.push("bytes32"),e=n.keccak(e),o.push(e);else if("string"===i.type)a.push("bytes32"),"string"==typeof e&&(e=Buffer.from(e,"utf8")),e=n.keccak(e),o.push(e);else if(void 0!==s[i.type])a.push("bytes32"),e=n.keccak(this.encodeData(i.type,e,s,r)),o.push(e);else if(i.type.lastIndexOf("]")===i.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else a.push(i.type),o.push(e)}return i.rawEncode(a,o)},encodeType(e,t){let s="",n=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let i of n=[e].concat(n.sort())){if(!t[i])throw Error("No type definition specified: "+i);s+=i+"("+t[i].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return s},findTypeDependencies(e,t,s=[]){if(e=e.match(/^\w*/)[0],s.includes(e)||void 0===t[e])return s;for(let n of(s.push(e),t[e]))for(let e of this.findTypeDependencies(n.type,t,s))s.includes(e)||s.push(e);return s},hashStruct(e,t,s,i=!0){return n.keccak(this.encodeData(e,t,s,i))},hashType(e,t){return n.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let s in r.properties)e[s]&&(t[s]=e[s]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let s=this.sanitizeData(e),i=[Buffer.from("1901","hex")];return i.push(this.hashStruct("EIP712Domain",s.domain,s.types,t)),"EIP712Domain"!==s.primaryType&&i.push(this.hashStruct(s.primaryType,s.message,s.types,t)),n.keccak(Buffer.concat(i))}};e.exports={TYPED_MESSAGE_SCHEMA:r,TypedDataUtils:a,hashForSignTypedDataLegacy:function(e){return function(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;let s=e.map(function(e){return"bytes"===e.type?n.toBuffer(e.value):e.value}),r=e.map(function(e){return e.type}),a=e.map(function(e){if(!e.name)throw t;return e.type+" "+e.name});return i.soliditySHA3(["bytes32","bytes32"],[i.soliditySHA3(Array(e.length).fill("string"),a),i.soliditySHA3(r,s)])}(e.data)},hashForSignTypedData_v3:function(e){return a.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return a.hash(e.data)}}},5345:function(e,t,s){let{keccak_256:n}=s(2735);function i(e){return Buffer.allocUnsafe(e).fill(0)}function r(e,t){let s=e.toString(16);s.length%2!=0&&(s="0"+s);let n=s.match(/.{1,2}/g).map(e=>parseInt(e,16));for(;n.length<t;)n.unshift(0);return Buffer.from(n)}function a(e,t,s){let n=i(t);return(e=o(e),s)?e.length<t?(e.copy(n),n):e.slice(0,t):e.length<t?(e.copy(n,t-e.length),n):e.slice(-t)}function o(e){if(!Buffer.isBuffer(e))if(Array.isArray(e))e=Buffer.from(e);else if("string"==typeof e){var t;e=c(e)?Buffer.from((t=l(e)).length%2?"0"+t:t,"hex"):Buffer.from(e)}else if("number"==typeof e)e=intToBuffer(e);else if(null==e)e=Buffer.allocUnsafe(0);else if("bigint"==typeof e)e=r(e);else if(e.toArray)e=Buffer.from(e.toArray());else throw Error("invalid type");return e}function c(e){return"string"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/)}function l(e){return"string"==typeof e&&e.startsWith("0x")?e.slice(2):e}e.exports={zeros:i,setLength:a,setLengthRight:function(e,t){return a(e,t,!0)},isHexString:c,stripHexPrefix:l,toBuffer:o,bufferToHex:function(e){return"0x"+(e=o(e)).toString("hex")},keccak:function(e,t){if(e=o(e),t||(t=256),256!==t)throw Error("unsupported");return Buffer.from(n(new Uint8Array(e)))},bitLengthFromBigInt:function(e){return e.toString(2).length},bufferBEFromBigInt:r,twosFromBigInt:function(e,t){return(e<0n?(~e&(1n<<BigInt(t))-1n)+1n:e)&(1n<<BigInt(t))-1n}}},7603:function(e,t,s){"use strict";let n,i,r;s.d(t,{createCoinbaseWalletSDK:()=>tg});class a{constructor(e,t){this.scope=e,this.module=t}storeObject(e,t){this.setItem(e,JSON.stringify(t))}loadObject(e){let t=this.getItem(e);return t?JSON.parse(t):void 0}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let s=0;s<localStorage.length;s++){let n=localStorage.key(s);"string"==typeof n&&n.startsWith(e)&&t.push(n)}t.forEach(e=>localStorage.removeItem(e))}scopedKey(e){return`-${this.scope}${this.module?`:${this.module}`:""}:${e}`}static clearAll(){new a("CBWSDK").clear(),new a("walletlink").clear()}}let o=-32602,c=-32603,l=4001,d=4100,h=4200,u=4900,f={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}},p="Unspecified error message.";function g(e,t=p){if(e&&Number.isInteger(e)){var s;let t=e.toString();if(y(f,t))return f[t].message;if((s=e)>=-32099&&s<=-32e3)return"Unspecified server error."}return t}function b(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function m(e,t){return"object"==typeof e&&null!==e&&t in e&&"string"==typeof e[t]}let w=e=>S(o,e),k=e=>S(c,e),x=e=>M(l,e),v=e=>M(d,e),I=e=>M(h,e),E=e=>M(u,e),C=e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:s,data:n}=e;if(!s||"string"!=typeof s)throw Error('"message" must be a nonempty string');return new O(t,s,n)};function S(e,t){let[s,n]=A(t);return new L(e,s||g(e),n)}function M(e,t){let[s,n]=A(t);return new O(e,s||g(e),n)}function A(e){if(e){if("string"==typeof e)return[e];else if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:s}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,s]}}return[]}class L extends Error{constructor(e,t,s){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==s&&(this.data=s)}}class O extends L{constructor(e,t,s){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,s)}}function D(e){return Math.floor(e)}let T=/^[0-9]*$/,_=/^[a-f0-9]*$/;function N(e){return R(crypto.getRandomValues(new Uint8Array(e)))}function R(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}function P(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>Number.parseInt(e,16)))}function U(e,t=!1){let s=e.toString("hex");return t?`0x${s}`:s}function j(e){return U($(e),!0)}function B(e){return e.toString(10)}function W(e){return`0x${BigInt(e).toString(16)}`}function q(e){return e.startsWith("0x")||e.startsWith("0X")}function H(e){return q(e)?e.slice(2):e}function K(e){return q(e)?`0x${e.slice(2)}`:`0x${e}`}function z(e){if("string"!=typeof e)return!1;let t=H(e).toLowerCase();return _.test(t)}function F(e,t=!1){let s=function(e,t=!1){if("string"==typeof e){let s=H(e).toLowerCase();if(_.test(s))return t?`0x${s}`:s}throw w(`"${String(e)}" is not a hexadecimal string`)}(e,!1);return s.length%2==1&&(s=`0${s}`),t?`0x${s}`:s}function G(e){if("string"==typeof e){let t=H(e).toLowerCase();if(z(t)&&40===t.length)return K(t)}throw w(`Invalid Ethereum address: ${String(e)}`)}function $(e){if(Buffer.isBuffer(e))return e;if("string"==typeof e){if(z(e)){let t=F(e,!1);return Buffer.from(t,"hex")}return Buffer.from(e,"utf8")}throw w(`Not binary data: ${String(e)}`)}function J(e){if("number"==typeof e&&Number.isInteger(e))return D(e);if("string"==typeof e){if(T.test(e))return D(Number(e));if(z(e))return D(Number(BigInt(F(e,!0))))}throw w(`Not an integer: ${String(e)}`)}function Y(e){if(null!==e&&("bigint"==typeof e||function(e){if(null==e||"function"!=typeof e.constructor)return!1;let{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}(e)))return BigInt(e.toString(10));if("number"==typeof e)return BigInt(J(e));if("string"==typeof e){if(T.test(e))return BigInt(e);if(z(e))return BigInt(F(e,!0))}throw w(`Not an integer: ${String(e)}`)}async function V(){return crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey"])}async function Q(e,t){return crypto.subtle.deriveKey({name:"ECDH",public:t},e,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async function Z(e,t){let s=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.encrypt({name:"AES-GCM",iv:s},e,new TextEncoder().encode(t));return{iv:s,cipherText:n}}async function X(e,{iv:t,cipherText:s}){let n=await crypto.subtle.decrypt({name:"AES-GCM",iv:t},e,s);return new TextDecoder().decode(n)}function ee(e){switch(e){case"public":return"spki";case"private":return"pkcs8"}}async function et(e,t){let s=ee(e);return R(new Uint8Array(await crypto.subtle.exportKey(s,t)))}async function es(e,t){let s=ee(e),n=P(t).buffer;return await crypto.subtle.importKey(s,new Uint8Array(n),{name:"ECDH",namedCurve:"P-256"},!0,"private"===e?["deriveKey"]:[])}async function en(e,t){return Z(t,JSON.stringify(e,(e,t)=>t instanceof Error?Object.assign(Object.assign({},t.code?{code:t.code}:{}),{message:t.message}):t))}async function ei(e,t){return JSON.parse(await X(t,e))}let er={storageKey:"ownPrivateKey",keyType:"private"},ea={storageKey:"ownPublicKey",keyType:"public"},eo={storageKey:"peerPublicKey",keyType:"public"};class ec{constructor(){this.storage=new a("CBWSDK","SCWKeyManager"),this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(e){this.sharedSecret=null,this.peerPublicKey=e,await this.storeKey(eo,e),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,this.storage.removeItem(ea.storageKey),this.storage.removeItem(er.storageKey),this.storage.removeItem(eo.storageKey)}async generateKeyPair(){let e=await V();this.ownPrivateKey=e.privateKey,this.ownPublicKey=e.publicKey,await this.storeKey(er,e.privateKey),await this.storeKey(ea,e.publicKey)}async loadKeysIfNeeded(){null===this.ownPrivateKey&&(this.ownPrivateKey=await this.loadKey(er)),null===this.ownPublicKey&&(this.ownPublicKey=await this.loadKey(ea)),(null===this.ownPrivateKey||null===this.ownPublicKey)&&await this.generateKeyPair(),null===this.peerPublicKey&&(this.peerPublicKey=await this.loadKey(eo)),null===this.sharedSecret&&null!==this.ownPrivateKey&&null!==this.peerPublicKey&&(this.sharedSecret=await Q(this.ownPrivateKey,this.peerPublicKey))}async loadKey(e){let t=this.storage.getItem(e.storageKey);return t?es(e.keyType,t):null}async storeKey(e,t){let s=await et(e.keyType,t);this.storage.setItem(e.storageKey,s)}}let el="4.3.0",ed="@coinbase/wallet-sdk";async function eh(e,t){let s=Object.assign(Object.assign({},e),{jsonrpc:"2.0",id:crypto.randomUUID()}),n=await window.fetch(t,{method:"POST",body:JSON.stringify(s),mode:"cors",headers:{"Content-Type":"application/json","X-Cbw-Sdk-Version":el,"X-Cbw-Sdk-Platform":ed}}),{result:i,error:r}=await n.json();if(r)throw r;return i}let eu="accounts",ef="activeChain",ep="availableChains",eg="walletCapabilities";class eb{constructor(e){var t,s,n;this.metadata=e.metadata,this.communicator=e.communicator,this.callback=e.callback,this.keyManager=new ec,this.storage=new a("CBWSDK","SCWStateManager"),this.accounts=null!=(t=this.storage.loadObject(eu))?t:[],this.chain=this.storage.loadObject(ef)||{id:null!=(n=null==(s=e.metadata.appChainIds)?void 0:s[0])?n:1},this.handshake=this.handshake.bind(this),this.request=this.request.bind(this),this.createRequestMessage=this.createRequestMessage.bind(this),this.decryptResponseMessage=this.decryptResponseMessage.bind(this)}async handshake(e){var t,s,n,i;await (null==(s=(t=this.communicator).waitForPopupLoaded)?void 0:s.call(t));let r=await this.createRequestMessage({handshake:{method:e.method,params:Object.assign({},this.metadata,null!=(n=e.params)?n:{})}}),a=await this.communicator.postRequestAndWaitForResponse(r);if("failure"in a.content)throw a.content.failure;let o=await es("public",a.sender);await this.keyManager.setPeerPublicKey(o);let c=(await this.decryptResponseMessage(a)).result;if("error"in c)throw c.error;if("eth_requestAccounts"===e.method){let e=c.value;this.accounts=e,this.storage.storeObject(eu,e),null==(i=this.callback)||i.call(this,"accountsChanged",e)}}async request(e){var t;if(0===this.accounts.length)if("wallet_sendCalls"===e.method)return this.sendRequestToPopup(e);else throw v();switch(e.method){case"eth_requestAccounts":return null==(t=this.callback)||t.call(this,"connect",{chainId:W(this.chain.id)}),this.accounts;case"eth_accounts":return this.accounts;case"eth_coinbase":return this.accounts[0];case"net_version":return this.chain.id;case"eth_chainId":return W(this.chain.id);case"wallet_getCapabilities":return this.storage.loadObject(eg);case"wallet_switchEthereumChain":return this.handleSwitchChainRequest(e);case"eth_ecRecover":case"personal_sign":case"wallet_sign":case"personal_ecRecover":case"eth_signTransaction":case"eth_sendTransaction":case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":case"wallet_addEthereumChain":case"wallet_watchAsset":case"wallet_sendCalls":case"wallet_showCallsStatus":case"wallet_grantPermissions":return this.sendRequestToPopup(e);default:if(!this.chain.rpcUrl)throw k("No RPC URL set for chain");return eh(e,this.chain.rpcUrl)}}async sendRequestToPopup(e){var t,s;await (null==(s=(t=this.communicator).waitForPopupLoaded)?void 0:s.call(t));let n=await this.sendEncryptedRequest(e),i=(await this.decryptResponseMessage(n)).result;if("error"in i)throw i.error;return i.value}async cleanup(){var e,t;this.storage.clear(),await this.keyManager.clear(),this.accounts=[],this.chain={id:null!=(t=null==(e=this.metadata.appChainIds)?void 0:e[0])?t:1}}async handleSwitchChainRequest(e){var t;let s=e.params;if(!s||!(null==(t=s[0])?void 0:t.chainId))throw w();let n=J(s[0].chainId);if(this.updateChain(n))return null;let i=await this.sendRequestToPopup(e);return null===i&&this.updateChain(n),i}async sendEncryptedRequest(e){let t=await this.keyManager.getSharedSecret();if(!t)throw v("No valid session found, try requestAccounts before other methods");let s=await en({action:e,chainId:this.chain.id},t),n=await this.createRequestMessage({encrypted:s});return this.communicator.postRequestAndWaitForResponse(n)}async createRequestMessage(e){let t=await et("public",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),sender:t,content:e,timestamp:new Date}}async decryptResponseMessage(e){var t,s;let n=e.content;if("failure"in n)throw n.failure;let i=await this.keyManager.getSharedSecret();if(!i)throw v("Invalid session");let r=await ei(n.encrypted,i),a=null==(t=r.data)?void 0:t.chains;if(a){let e=Object.entries(a).map(([e,t])=>({id:Number(e),rpcUrl:t}));this.storage.storeObject(ep,e),this.updateChain(this.chain.id,e)}let o=null==(s=r.data)?void 0:s.capabilities;return o&&this.storage.storeObject(eg,o),r}updateChain(e,t){var s;let n=null!=t?t:this.storage.loadObject(ep),i=null==n?void 0:n.find(t=>t.id===e);return!!i&&(i!==this.chain&&(this.chain=i,this.storage.storeObject(ef,i),null==(s=this.callback)||s.call(this,"chainChanged",W(i.id))),!0)}}var ey,em,ew,ek=s(5471);let ex="Addresses";function ev(e){return void 0!==e.errorMessage}class eI{constructor(e){this.secret=e}async encrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");let s=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",P(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),i=new TextEncoder,r=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:s},n,i.encode(e)),a=r.slice(r.byteLength-16),o=r.slice(0,r.byteLength-16),c=new Uint8Array(a),l=new Uint8Array(o);return R(new Uint8Array([...s,...c,...l]))}async decrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");return new Promise((s,n)=>{!async function(){let i=await crypto.subtle.importKey("raw",P(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),r=P(e),a=r.slice(0,12),o=r.slice(12,28),c=new Uint8Array([...r.slice(28),...o]),l={name:"AES-GCM",iv:new Uint8Array(a)};try{let e=await window.crypto.subtle.decrypt(l,i,c),t=new TextDecoder;s(t.decode(e))}catch(e){n(e)}}()})}}class eE{constructor(e,t,s){this.linkAPIUrl=e,this.sessionId=t;const n=`${t}:${s}`;this.auth=`Basic ${btoa(n)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(e=>fetch(`${this.linkAPIUrl}/events/${e.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(e=>console.error("Unabled to mark event as failed:",e))}async fetchUnseenEvents(){var e;let t=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(t.ok){let{events:s,error:n}=await t.json();if(n)throw Error(`Check unseen events failed: ${n}`);let i=null!=(e=null==s?void 0:s.filter(e=>"Web3Response"===e.event).map(e=>({type:"Event",sessionId:this.sessionId,eventId:e.id,event:e.event,data:e.data})))?e:[];return this.markUnseenEventsAsSeen(i),i}throw Error(`Check unseen events failed: ${t.status}`)}}(ey=ew||(ew={}))[ey.DISCONNECTED=0]="DISCONNECTED",ey[ey.CONNECTING=1]="CONNECTING",ey[ey.CONNECTED=2]="CONNECTED";class eC{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw Error("webSocket object is not null");return new Promise((e,t)=>{var s;let n;try{this.webSocket=n=new this.WebSocketClass(this.url)}catch(e){t(e);return}null==(s=this.connectionStateListener)||s.call(this,ew.CONNECTING),n.onclose=e=>{var s;this.clearWebSocket(),t(Error(`websocket error ${e.code}: ${e.reason}`)),null==(s=this.connectionStateListener)||s.call(this,ew.DISCONNECTED)},n.onopen=t=>{var s;e(),null==(s=this.connectionStateListener)||s.call(this,ew.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(e=>this.sendData(e)),this.pendingData=[])},n.onmessage=e=>{var t,s;if("h"===e.data)null==(t=this.incomingDataListener)||t.call(this,{type:"Heartbeat"});else try{let t=JSON.parse(e.data);null==(s=this.incomingDataListener)||s.call(this,t)}catch(e){}}})}disconnect(){var e;let{webSocket:t}=this;if(t){this.clearWebSocket(),null==(e=this.connectionStateListener)||e.call(this,ew.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{t.close()}catch(e){}}}sendData(e){let{webSocket:t}=this;if(!t){this.pendingData.push(e),this.connect();return}t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}class eS{constructor({session:e,linkAPIUrl:t,listener:s}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=D(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=e=>{e&&new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",t=>e.JsonRpcUrl&&this.handleChainUpdated(t,e.JsonRpcUrl)]]).forEach((t,s)=>{let n=e[s];void 0!==n&&t(n)})},this.handleDestroyed=e=>{var t;"1"===e&&(null==(t=this.listener)||t.resetAndReload())},this.handleAccountUpdated=async e=>{var t;let s=await this.cipher.decrypt(e);null==(t=this.listener)||t.accountUpdated(s)},this.handleMetadataUpdated=async(e,t)=>{var s;let n=await this.cipher.decrypt(t);null==(s=this.listener)||s.metadataUpdated(e,n)},this.handleWalletUsernameUpdated=async e=>{this.handleMetadataUpdated("walletUsername",e)},this.handleAppVersionUpdated=async e=>{this.handleMetadataUpdated("AppVersion",e)},this.handleChainUpdated=async(e,t)=>{var s;let n=await this.cipher.decrypt(e),i=await this.cipher.decrypt(t);null==(s=this.listener)||s.chainUpdated(n,i)},this.session=e,this.cipher=new eI(e.secret),this.listener=s;const n=new eC(`${t}/rpc`,WebSocket);n.setConnectionStateListener(async e=>{let t=!1;switch(e){case ew.DISCONNECTED:if(!this.destroyed){let e=async()=>{await new Promise(e=>setTimeout(e,5e3)),this.destroyed||n.connect().catch(()=>{e()})};e()}break;case ew.CONNECTED:t=await this.handleConnected(),this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},1e4),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();case ew.CONNECTING:}this.connected!==t&&(this.connected=t)}),n.setIncomingDataListener(e=>{var t;switch(e.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{let t="IsLinkedOK"===e.type?e.linked:void 0;this.linked=t||e.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":this.handleSessionMetadataUpdated(e.metadata);break;case"Event":this.handleIncomingEvent(e)}void 0!==e.id&&(null==(t=this.requestResolutions.get(e.id))||t(e))}),this.ws=n,this.http=new eE(t,e.id,e.key)}connect(){if(this.destroyed)throw Error("instance is destroyed");this.ws.connect()}async destroy(){this.destroyed||(await this.makeRequest({type:"SetSessionConfig",id:D(this.nextReqId++),sessionId:this.session.id,metadata:{__destroyed:"1"}},{timeout:1e3}),this.destroyed=!0,this.ws.disconnect(),this.listener=void 0)}get connected(){return this._connected}set connected(e){this._connected=e}get linked(){return this._linked}set linked(e){var t,s;this._linked=e,e&&(null==(t=this.onceLinked)||t.call(this)),null==(s=this.listener)||s.linkedUpdated(e)}setOnceLinked(e){return new Promise(t=>{this.linked?e().then(t):this.onceLinked=()=>{e().then(t),this.onceLinked=void 0}})}async handleIncomingEvent(e){var t;if("Event"!==e.type||"Web3Response"!==e.event)return;let s=JSON.parse(await this.cipher.decrypt(e.data));if("WEB3_RESPONSE"!==s.type)return;let{id:n,response:i}=s;null==(t=this.listener)||t.handleWeb3ResponseMessage(n,i)}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error("Unable to check for unseen events",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(e=>this.handleIncomingEvent(e))}async publishEvent(e,t,s=!1){let n=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin,location:location.href,relaySource:"coinbaseWalletExtension"in window&&window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),i={type:"PublishEvent",id:D(this.nextReqId++),sessionId:this.session.id,event:e,data:n,callWebhook:s};return this.setOnceLinked(async()=>{let e=await this.makeRequest(i);if("Fail"===e.type)throw Error(e.error||"failed to publish event");return e.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4)return void this.ws.disconnect();try{this.ws.sendData("h")}catch(e){}}async makeRequest(e,t={timeout:6e4}){let s,n=e.id;return this.sendData(e),Promise.race([new Promise((e,i)=>{s=window.setTimeout(()=>{i(Error(`request ${n} timed out`))},t.timeout)}),new Promise(e=>{this.requestResolutions.set(n,t=>{clearTimeout(s),e(t),this.requestResolutions.delete(n)})})])}async handleConnected(){return"Fail"!==(await this.makeRequest({type:"HostSession",id:D(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key})).type&&(this.sendData({type:"IsLinked",id:D(this.nextReqId++),sessionId:this.session.id}),this.sendData({type:"GetSessionConfig",id:D(this.nextReqId++),sessionId:this.session.id}),!0)}}class eM{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%0x7fffffff;let e=this._nextRequestId,t=K(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}}function eA(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function eL(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function eO(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function eD(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function eT(e,t){return e<<32-t|e>>>t}let e_="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,eN=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function eR(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),eA(e),e}class eP{}class eU extends eP{constructor(e,t,s,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=s,this.isLE=n,this.buffer=new Uint8Array(e),this.view=eD(this.buffer)}update(e){eL(this),eA(e=eR(e));let{view:t,buffer:s,blockLen:n}=this,i=e.length;for(let r=0;r<i;){let a=Math.min(n-this.pos,i-r);if(a===n){let t=eD(e);for(;n<=i-r;r+=n)this.process(t,r);continue}s.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){eL(this);eA(e);let t=this.outputLen;if(e.length<t)throw Error("digestInto() expects output buffer of length at least "+t);this.finished=!0;let{buffer:s,view:n,blockLen:i,isLE:r}=this,{pos:a}=this;s[a++]=128,eO(this.buffer.subarray(a)),this.padOffset>i-a&&(this.process(n,0),a=0);for(let e=a;e<i;e++)s[e]=0;!function(e,t,s,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,s,n);let i=BigInt(32),r=BigInt(0xffffffff),a=Number(s>>i&r),o=Number(s&r),c=4*!!n,l=4*!n;e.setUint32(t+c,a,n),e.setUint32(t+l,o,n)}(n,i-8,BigInt(8*this.length),r),this.process(n,0);let o=eD(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=c/4,d=this.get();if(l>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)o.setUint32(4*e,d[e],r)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let s=e.slice(0,t);return this.destroy(),s}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:s,length:n,finished:i,destroyed:r,pos:a}=this;return e.destroyed=r,e.finished=i,e.length=n,e.pos=a,n%t&&e.buffer.set(s),e}clone(){return this._cloneInto()}}let ej=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),eB=BigInt(0x100000000-1),eW=BigInt(32),eq=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),eH=new Uint32Array(64);class eK extends eU{constructor(e=32){super(64,e,8,!1),this.A=0|ej["0"],this.B=0|ej["1"],this.C=0|ej["2"],this.D=0|ej["3"],this.E=0|ej["4"],this.F=0|ej["5"],this.G=0|ej["6"],this.H=0|ej["7"]}get(){let{A:e,B:t,C:s,D:n,E:i,F:r,G:a,H:o}=this;return[e,t,s,n,i,r,a,o]}set(e,t,s,n,i,r,a,o){this.A=0|e,this.B=0|t,this.C=0|s,this.D=0|n,this.E=0|i,this.F=0|r,this.G=0|a,this.H=0|o}process(e,t){for(let s=0;s<16;s++,t+=4)eH[s]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=eH[e-15],s=eH[e-2],n=eT(t,7)^eT(t,18)^t>>>3,i=eT(s,17)^eT(s,19)^s>>>10;eH[e]=i+eH[e-7]+n+eH[e-16]|0}let{A:s,B:n,C:i,D:r,E:a,F:o,G:c,H:l}=this;for(let e=0;e<64;e++){var d,h,u,f;let t=l+(eT(a,6)^eT(a,11)^eT(a,25))+((d=a)&o^~d&c)+eq[e]+eH[e]|0,p=(eT(s,2)^eT(s,13)^eT(s,22))+((h=s)&(u=n)^h&(f=i)^u&f)|0;l=c,c=o,o=a,a=r+t|0,r=i,i=n,n=s,s=t+p|0}s=s+this.A|0,n=n+this.B|0,i=i+this.C|0,r=r+this.D|0,a=a+this.E|0,o=o+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(s,n,i,r,a,o,c,l)}roundClean(){eO(eH)}destroy(){this.set(0,0,0,0,0,0,0,0),eO(this.buffer)}}!function(e,t=!1){let s=e.length,n=new Uint32Array(s),i=new Uint32Array(s);for(let r=0;r<s;r++){let{h:s,l:a}=function(e,t=!1){return t?{h:Number(e&eB),l:Number(e>>eW&eB)}:{h:0|Number(e>>eW&eB),l:0|Number(e&eB)}}(e[r],t);[n[r],i[r]]=[s,a]}}(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e)));let ez=(em=()=>new eK,(n=e=>em().update(eR(e)).digest()).outputLen=(i=em()).outputLen,n.blockLen=i.blockLen,n.create=()=>em(),n),eF="session:id",eG="session:secret",e$="session:linked";class eJ{constructor(e,t,s,n=!1){this.storage=e,this.id=t,this.secret=s,this.key=function(e){if(eA(e),e_)return e.toHex();let t="";for(let s=0;s<e.length;s++)t+=eN[e[s]];return t}(ez(`${t}, ${s} WalletLink`)),this._linked=!!n}static create(e){return new eJ(e,N(16),N(32)).save()}static load(e){let t=e.getItem(eF),s=e.getItem(e$),n=e.getItem(eG);return t&&n?new eJ(e,t,n,"1"===s):null}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this.storage.setItem(eF,this.id),this.storage.setItem(eG,this.secret),this.persistLinked(),this}persistLinked(){this.storage.setItem(e$,this._linked?"1":"0")}}function eY(){var e,t;return null!=(t=null==(e=null==window?void 0:window.matchMedia)?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)&&t}function eV(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode('@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}')),document.documentElement.appendChild(e)}var eQ=s(5137),eZ=s(8271),eX=s(8987);class e0{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=eY()}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,eZ.XX)((0,eZ.h)("div",null,(0,eZ.h)(e1,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,t])=>(0,eZ.h)(e2,Object.assign({},t,{key:e}))))),this.root)}}let e1=e=>(0,eZ.h)("div",{class:(0,eQ.$)("-cbwsdk-snackbar-container")},(0,eZ.h)("style",null,".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"),(0,eZ.h)("div",{class:"-cbwsdk-snackbar"},e.children)),e2=({autoExpand:e,message:t,menuItems:s})=>{let[n,i]=(0,eX.J0)(!0),[r,a]=(0,eX.J0)(null!=e&&e);return(0,eX.vJ)(()=>{let e=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{a(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,eZ.h)("div",{class:(0,eQ.$)("-cbwsdk-snackbar-instance",n&&"-cbwsdk-snackbar-instance-hidden",r&&"-cbwsdk-snackbar-instance-expanded")},(0,eZ.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{a(!r)}},(0,eZ.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,eZ.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,eZ.h)("div",{class:"-gear-container"},!r&&(0,eZ.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,eZ.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,eZ.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),s&&s.length>0&&(0,eZ.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},s.map((e,t)=>(0,eZ.h)("div",{class:(0,eQ.$)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,eZ.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,eZ.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,eZ.h)("span",{class:(0,eQ.$)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))};class e3{constructor(){this.attached=!1,this.snackbar=new e0}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.snackbar.attach(t),this.attached=!0,eV()}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:{message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}}class e5{constructor(){this.root=null,this.darkMode=eY()}attach(){let e=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",e.appendChild(this.root),eV()}present(e){this.render(e)}clear(){this.render(null)}render(e){!this.root||((0,eZ.XX)(null,this.root),e&&(0,eZ.XX)((0,eZ.h)(e4,Object.assign({},e,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}}let e4=({title:e,buttonText:t,darkMode:s,onButtonClick:n,onDismiss:i})=>(0,eZ.h)(e1,{darkMode:s},(0,eZ.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,eZ.h)("style",null,".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}"),(0,eZ.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:i}),(0,eZ.h)("div",{class:(0,eQ.$)("-cbwsdk-redirect-dialog-box",s?"dark":"light")},(0,eZ.h)("p",null,e),(0,eZ.h)("button",{onClick:n},t)))),e8="https://www.walletlink.org";class e6{constructor(){this.attached=!1,this.redirectDialog=new e5}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(e){let t=new URL("https://go.cb-w.com/walletlink");t.searchParams.append("redirect_url",function(){try{if(function(){try{return null!==window.frameElement}catch(e){return!1}}()&&window.top)return window.top.location;return window.location}catch(e){return window.location}}().href),e&&t.searchParams.append("wl_url",e);let s=document.createElement("a");s.target="cbw-opener",s.href=t.href,s.rel="noreferrer noopener",s.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}}class e7{constructor(e){this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.isMobileWeb=function(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)}(),this.linkedUpdated=e=>{this.isLinked=e;let t=this.storage.getItem(ex);if(e&&(this._session.linked=e),this.isUnlinkedErrorState=!1,t){let s=t.split(" "),n="true"===this.storage.getItem("IsStandaloneSigning");""===s[0]||e||!this._session.linked||n||(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(e,t)=>{this.storage.setItem(e,t)},this.chainUpdated=(e,t)=>{(this.chainCallbackParams.chainId!==e||this.chainCallbackParams.jsonRpcUrl!==t)&&(this.chainCallbackParams={chainId:e,jsonRpcUrl:t},this.chainCallback&&this.chainCallback(t,Number.parseInt(e,10)))},this.accountUpdated=e=>{this.accountsCallback&&this.accountsCallback([e]),e7.accountRequestCallbackIds.size>0&&(Array.from(e7.accountRequestCallbackIds.values()).forEach(t=>{this.invokeCallback(t,{method:"requestEthereumAccounts",result:[e]})}),e7.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.metadata=e.metadata,this.accountsCallback=e.accountsCallback,this.chainCallback=e.chainCallback;const{session:t,ui:s,connection:n}=this.subscribe();this._session=t,this.connection=n,this.relayEventManager=new eM,this.ui=s,this.ui.attach()}subscribe(){let e=eJ.load(this.storage)||eJ.create(this.storage),{linkAPIUrl:t}=this,s=new eS({session:e,linkAPIUrl:t,listener:this}),n=this.isMobileWeb?new e6:new e3;return s.connect(),{session:e,ui:n,connection:s}}resetAndReload(){this.connection.destroy().then(()=>{let e=eJ.load(this.storage);(null==e?void 0:e.id)===this._session.id&&a.clearAll(),document.location.reload()}).catch(e=>{})}signEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:B(e.weiValue),data:U(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?B(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?B(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?B(e.gasPriceInWei):null,gasLimit:e.gasLimit?B(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:B(e.weiValue),data:U(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?B(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?B(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?B(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?B(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:U(e,!0),chainId:t}})}getWalletLinkSession(){return this._session}sendRequest(e){let t=null,s=N(8),n=n=>{this.publishWeb3RequestCanceledEvent(s),this.handleErrorResponse(s,e.method,n),null==t||t()};return new Promise((i,r)=>{t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:n,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(s,e=>{if(null==t||t(),ev(e))return r(Error(e.errorMessage));i(e)}),this.publishWeb3RequestEvent(s,e)})}publishWeb3RequestEvent(e,t){let s={type:"WEB3_REQUEST",id:e,request:t};this.publishEvent("Web3Request",s,!0).then(e=>{}).catch(e=>{this.handleWeb3ResponseMessage(s.id,{method:t.method,errorMessage:e.message})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(t.method)}openCoinbaseWalletDeeplink(e){if(this.ui instanceof e6)switch(e){case"requestEthereumAccounts":case"switchEthereumChain":return;default:window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink()}}publishWeb3RequestCanceledEvent(e){this.publishEvent("Web3RequestCanceled",{type:"WEB3_REQUEST_CANCELED",id:e},!1).then()}publishEvent(e,t,s){return this.connection.publishEvent(e,t,s)}handleWeb3ResponseMessage(e,t){if("requestEthereumAccounts"===t.method){e7.accountRequestCallbackIds.forEach(e=>this.invokeCallback(e,t)),e7.accountRequestCallbackIds.clear();return}this.invokeCallback(e,t)}handleErrorResponse(e,t,s){var n;let i=null!=(n=null==s?void 0:s.message)?n:"Unspecified error message.";this.handleWeb3ResponseMessage(e,{method:t,errorMessage:i})}invokeCallback(e,t){let s=this.relayEventManager.callbacks.get(e);s&&(s(t),this.relayEventManager.callbacks.delete(e))}requestEthereumAccounts(){let{appName:e,appLogoUrl:t}=this.metadata,s={method:"requestEthereumAccounts",params:{appName:e,appLogoUrl:t}},n=N(8);return new Promise((e,t)=>{this.relayEventManager.callbacks.set(n,s=>{if(ev(s))return t(Error(s.errorMessage));e(s)}),e7.accountRequestCallbackIds.add(n),this.publishWeb3RequestEvent(n,s)})}watchAsset(e,t,s,n,i,r){let a={method:"watchAsset",params:{type:e,options:{address:t,symbol:s,decimals:n,image:i},chainId:r}},o=null,c=N(8),l=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,a.method,e),null==o||o()};return o=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(c,s=>{if(null==o||o(),ev(s))return t(Error(s.errorMessage));e(s)}),this.publishWeb3RequestEvent(c,a)})}addEthereumChain(e,t,s,n,i,r){let a={method:"addEthereumChain",params:{chainId:e,rpcUrls:t,blockExplorerUrls:n,chainName:i,iconUrls:s,nativeCurrency:r}},o=null,c=N(8),l=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,a.method,e),null==o||o()};return o=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(c,s=>{if(null==o||o(),ev(s))return t(Error(s.errorMessage));e(s)}),this.publishWeb3RequestEvent(c,a)})}switchEthereumChain(e,t){let s={method:"switchEthereumChain",params:Object.assign({chainId:e},{address:t})},n=null,i=N(8),r=e=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,s.method,e),null==n||n()};return n=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:r,onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(i,s=>(null==n||n(),ev(s)&&s.errorCode)?t(C({code:s.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):ev(s)?t(Error(s.errorMessage)):void e(s)),this.publishWeb3RequestEvent(i,s)})}}e7.accountRequestCallbackIds=new Set;let e9="DefaultChainId",te="DefaultJsonRpcUrl";class tt{constructor(e){this._relay=null,this._addresses=[],this.metadata=e.metadata,this._storage=new a("walletlink",e8),this.callback=e.callback||null;const t=this._storage.getItem(ex);if(t){const e=t.split(" ");""!==e[0]&&(this._addresses=e.map(e=>G(e)))}this.initializeRelay()}getSession(){let{id:e,secret:t}=this.initializeRelay().getWalletLinkSession();return{id:e,secret:t}}async handshake(){await this._eth_requestAccounts()}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var e;return null!=(e=this._storage.getItem(te))?e:void 0}set jsonRpcUrl(e){this._storage.setItem(te,e)}updateProviderInfo(e,t){var s;this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(e9,t.toString(10)),J(t)!==n&&(null==(s=this.callback)||s.call(this,"chainChanged",W(t)))}async watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw w("Type is required");if((null==t?void 0:t.type)!=="ERC20")throw w(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw w("Options are required");if(!(null==t?void 0:t.options.address))throw w("Address is required");let s=this.getChainId(),{address:n,symbol:i,image:r,decimals:a}=t.options,o=this.initializeRelay(),c=await o.watchAsset(t.type,n,i,a,r,null==s?void 0:s.toString());return!ev(c)&&!!c.result}async addEthereumChain(e){var t,s;let n=e[0];if((null==(t=n.rpcUrls)?void 0:t.length)===0)throw w("please pass in at least 1 rpcUrl");if(!n.chainName||""===n.chainName.trim())throw w("chainName is a required field");if(!n.nativeCurrency)throw w("nativeCurrency is a required field");let i=Number.parseInt(n.chainId,16);if(i===this.getChainId())return!1;let r=this.initializeRelay(),{rpcUrls:a=[],blockExplorerUrls:o=[],chainName:c,iconUrls:l=[],nativeCurrency:d}=n,h=await r.addEthereumChain(i.toString(),a,l,o,c,d);if(ev(h))return!1;if((null==(s=h.result)?void 0:s.isApproved)===!0)return this.updateProviderInfo(a[0],i),null;throw k("unable to add ethereum chain")}async switchEthereumChain(e){let t=Number.parseInt(e[0].chainId,16),s=this.initializeRelay(),n=await s.switchEthereumChain(t.toString(10),this.selectedAddress||void 0);if(ev(n))throw n;let i=n.result;return i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,t),null}async cleanup(){this.callback=null,this._relay&&this._relay.resetAndReload(),this._storage.clear()}_setAddresses(e,t){var s;if(!Array.isArray(e))throw Error("addresses is not an array");let n=e.map(e=>G(e));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,null==(s=this.callback)||s.call(this,"accountsChanged",n),this._storage.setItem(ex,n.join(" ")))}async request(e){let t=e.params||[];switch(e.method){case"eth_accounts":return[...this._addresses];case"eth_coinbase":return this.selectedAddress||null;case"net_version":return this.getChainId().toString(10);case"eth_chainId":return W(this.getChainId());case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_ecRecover":case"personal_ecRecover":return this.ecRecover(e);case"personal_sign":return this.personalSign(e);case"eth_signTransaction":return this._eth_signTransaction(t);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(t);case"eth_sendTransaction":return this._eth_sendTransaction(t);case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":return this.signTypedData(e);case"wallet_addEthereumChain":return this.addEthereumChain(t);case"wallet_switchEthereumChain":return this.switchEthereumChain(t);case"wallet_watchAsset":return this.watchAsset(t);default:if(!this.jsonRpcUrl)throw k("No RPC URL set for chain");return eh(e,this.jsonRpcUrl)}}_ensureKnownAddress(e){let t=G(e);if(!this._addresses.map(e=>G(e)).includes(t))throw Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?G(e.from):this.selectedAddress;if(!t)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let s=e.to?G(e.to):null,n=null!=e.value?Y(e.value):BigInt(0),i=e.data?$(e.data):Buffer.alloc(0),r=null!=e.nonce?J(e.nonce):null,a=null!=e.gasPrice?Y(e.gasPrice):null,o=null!=e.maxFeePerGas?Y(e.maxFeePerGas):null,c=null!=e.maxPriorityFeePerGas?Y(e.maxPriorityFeePerGas):null;return{fromAddress:t,toAddress:s,weiValue:n,data:i,nonce:r,gasPriceInWei:a,maxFeePerGas:o,maxPriorityFeePerGas:c,gasLimit:null!=e.gas?Y(e.gas):null,chainId:e.chainId?J(e.chainId):this.getChainId()}}async ecRecover(e){let{method:t,params:s}=e;if(!Array.isArray(s))throw w();let n=this.initializeRelay(),i=await n.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:j(s[0]),signature:j(s[1]),addPrefix:"personal_ecRecover"===t}});if(ev(i))throw i;return i.result}getChainId(){var e;return Number.parseInt(null!=(e=this._storage.getItem(e9))?e:"1",10)}async _eth_requestAccounts(){var e,t;if(this._addresses.length>0)return null==(e=this.callback)||e.call(this,"connect",{chainId:W(this.getChainId())}),this._addresses;let s=this.initializeRelay(),n=await s.requestEthereumAccounts();if(ev(n))throw n;if(!n.result)throw Error("accounts received is empty");return this._setAddresses(n.result),null==(t=this.callback)||t.call(this,"connect",{chainId:W(this.getChainId())}),this._addresses}async personalSign({params:e}){if(!Array.isArray(e))throw w();let t=e[1],s=e[0];this._ensureKnownAddress(t);let n=this.initializeRelay(),i=await n.sendRequest({method:"signEthereumMessage",params:{address:G(t),message:j(s),addPrefix:!0,typedDataJson:null}});if(ev(i))throw i;return i.result}async _eth_signTransaction(e){let t=this._prepareTransactionParams(e[0]||{}),s=this.initializeRelay(),n=await s.signEthereumTransaction(t);if(ev(n))throw n;return n.result}async _eth_sendRawTransaction(e){let t=$(e[0]),s=this.initializeRelay(),n=await s.submitEthereumTransaction(t,this.getChainId());if(ev(n))throw n;return n.result}async _eth_sendTransaction(e){let t=this._prepareTransactionParams(e[0]||{}),s=this.initializeRelay(),n=await s.signAndSubmitEthereumTransaction(t);if(ev(n))throw n;return n.result}async signTypedData(e){let{method:t,params:s}=e;if(!Array.isArray(s))throw w();let n=s[+("eth_signTypedData_v1"===t)],i=s[+("eth_signTypedData_v1"!==t)];this._ensureKnownAddress(n);let r=this.initializeRelay(),a=await r.sendRequest({method:"signEthereumMessage",params:{address:G(n),message:U(({eth_signTypedData_v1:ek.hashForSignTypedDataLegacy,eth_signTypedData_v3:ek.hashForSignTypedData_v3,eth_signTypedData_v4:ek.hashForSignTypedData_v4,eth_signTypedData:ek.hashForSignTypedData_v4})[t]({data:function(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw w(`Not a JSON string or an object: ${String(e)}`)}(i)}),!0),typedDataJson:JSON.stringify(i,null,2),addPrefix:!1}});if(ev(a))throw a;return a.result}initializeRelay(){return this._relay||(this._relay=new e7({linkAPIUrl:e8,storage:this._storage,metadata:this.metadata,accountsCallback:this._setAddresses.bind(this),chainCallback:this.updateProviderInfo.bind(this)})),this._relay}}let ts="SignerType",tn=new a("CBWSDK","SignerConfigurator");async function ti(e){let{communicator:t,metadata:s,handshakeRequest:n,callback:i}=e;tr(t,s,i).catch(()=>{});let r={id:crypto.randomUUID(),event:"selectSignerType",data:Object.assign(Object.assign({},e.preference),{handshakeRequest:n})},{data:a}=await t.postRequestAndWaitForResponse(r);return a}async function tr(e,t,s){await e.onMessage(({event:e})=>"WalletLinkSessionRequest"===e);let n=new tt({metadata:t,callback:s});e.postMessage({event:"WalletLinkUpdate",data:{session:n.getSession()}}),await n.handshake(),e.postMessage({event:"WalletLinkUpdate",data:{connected:!0}})}let ta=`Coinbase Wallet SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Coinbase Smart Wallet app.
2
+
3
+ Please see https://www.smartwallet.dev/guides/tips/popup-tips#cross-origin-opener-policy for more information.`,{checkCrossOriginOpenerPolicy:to,getCrossOriginOpenerPolicy:tc}={getCrossOriginOpenerPolicy:()=>void 0===r?"undefined":r,checkCrossOriginOpenerPolicy:async()=>{if("undefined"==typeof window){r="non-browser-env";return}try{let e=`${window.location.origin}${window.location.pathname}`,t=await fetch(e,{method:"HEAD"});if(!t.ok)throw Error(`HTTP error! status: ${t.status}`);let s=t.headers.get("Cross-Origin-Opener-Policy");r=null!=s?s:"null","same-origin"===r&&console.error(ta)}catch(e){console.error("Error checking Cross-Origin-Opener-Policy:",e.message),r="error"}}};class tl{constructor({url:e="https://keys.coinbase.com/connect",metadata:t,preference:s}){this.popup=null,this.listeners=new Map,this.postMessage=async e=>{(await this.waitForPopupLoaded()).postMessage(e,this.url.origin)},this.postRequestAndWaitForResponse=async e=>{let t=this.onMessage(({requestId:t})=>t===e.id);return this.postMessage(e),await t},this.onMessage=async e=>new Promise((t,s)=>{let n=s=>{if(s.origin!==this.url.origin)return;let i=s.data;e(i)&&(t(i),window.removeEventListener("message",n),this.listeners.delete(n))};window.addEventListener("message",n),this.listeners.set(n,{reject:s})}),this.disconnect=()=>{var e;(e=this.popup)&&!e.closed&&e.close(),this.popup=null,this.listeners.forEach(({reject:e},t)=>{e(x("Request rejected")),window.removeEventListener("message",t)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(this.popup=function(e){let t=(window.innerWidth-420)/2+window.screenX,s=(window.innerHeight-540)/2+window.screenY;var n=e;for(let[e,t]of Object.entries({sdkName:ed,sdkVersion:el,origin:window.location.origin,coop:tc()}))n.searchParams.append(e,t.toString());let i=`wallet_${crypto.randomUUID()}`,r=window.open(e,i,`width=420, height=540, left=${t}, top=${s}`);if(null==r||r.focus(),!r)throw k("Pop up window failed to open");return r}(this.url),this.onMessage(({event:e})=>"PopupUnload"===e).then(this.disconnect).catch(()=>{}),this.onMessage(({event:e})=>"PopupLoaded"===e).then(e=>{this.postMessage({requestId:e.id,data:{version:el,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw k();return this.popup})),this.url=new URL(e),this.metadata=t,this.preference=s}}var td=s(1786);class th extends td.b{}var tu=function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(s[n[i]]=e[n[i]]);return s};class tf extends th{constructor(e){var{metadata:t}=e,s=e.preference,{keysUrl:n}=s,i=tu(s,["keysUrl"]);super(),this.signer=null,this.isCoinbaseWallet=!0,this.metadata=t,this.preference=i,this.communicator=new tl({url:n,metadata:t,preference:i});const r=tn.getItem(ts);r&&(this.signer=this.initSigner(r))}async request(e){try{if(!function(e){if(!e||"object"!=typeof e||Array.isArray(e))throw w({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:s}=e;if("string"!=typeof t||0===t.length)throw w({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==s&&!Array.isArray(s)&&("object"!=typeof s||null===s))throw w({message:"'args.params' must be an object or array if provided.",data:e});switch(t){case"eth_sign":case"eth_signTypedData_v2":case"eth_subscribe":case"eth_unsubscribe":throw I()}}(e),!this.signer)switch(e.method){case"eth_requestAccounts":{let t=await this.requestSignerSelection(e),s=this.initSigner(t);await s.handshake(e),this.signer=s,tn.setItem(ts,t);break}case"wallet_sendCalls":{let t=this.initSigner("scw");await t.handshake({method:"handshake"});let s=await t.request(e);return await t.cleanup(),s}case"wallet_getCallsStatus":return eh(e,"http://rpc.wallet.coinbase.com");case"net_version":return 1;case"eth_chainId":return W(1);default:throw v("Must call 'eth_requestAccounts' before other methods")}return await this.signer.request(e)}catch(n){let e,t,{code:s}=n;return s===d&&this.disconnect(),Promise.reject((e=function(e,{shouldIncludeStack:t=!1}={}){var s,n;let i={};if(e&&"object"==typeof e&&!Array.isArray(e)&&y(e,"code")&&Number.isInteger(s=e.code)&&(f[s.toString()]||(n=s)>=-32099&&n<=-32e3))i.code=e.code,e.message&&"string"==typeof e.message?(i.message=e.message,y(e,"data")&&(i.data=e.data)):(i.message=g(i.code),i.data={originalError:b(e)});else i.code=c,i.message=m(e,"message")?e.message:p,i.data={originalError:b(e)};return t&&(i.stack=m(e,"stack")?e.stack:void 0),i}(function(e){var t;if("string"==typeof e)return{message:e,code:c};if(ev(e)){let s=e.errorMessage,n=null!=(t=e.errorCode)?t:s.match(/(denied|rejected)/i)?l:void 0;return Object.assign(Object.assign({},e),{message:s,code:n,data:{method:e.method}})}return e}(n),{shouldIncludeStack:!0}),(t=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors")).searchParams.set("version",el),t.searchParams.set("code",e.code.toString()),t.searchParams.set("message",e.message),Object.assign(Object.assign({},e),{docUrl:t.href})))}}async enable(){return console.warn('.enable() has been deprecated. Please use .request({ method: "eth_requestAccounts" }) instead.'),await this.request({method:"eth_requestAccounts"})}async disconnect(){var e;await (null==(e=this.signer)?void 0:e.cleanup()),this.signer=null,a.clearAll(),this.emit("disconnect",E("User initiated disconnection"))}requestSignerSelection(e){return ti({communicator:this.communicator,preference:this.preference,metadata:this.metadata,handshakeRequest:e,callback:this.emit.bind(this)})}initSigner(e){return function(e){let{signerType:t,metadata:s,communicator:n,callback:i}=e;switch(t){case"scw":return new eb({metadata:s,callback:i,communicator:n});case"walletlink":return new tt({metadata:s,callback:i})}}({signerType:e,metadata:this.metadata,communicator:this.communicator,callback:this.emit.bind(this)})}}let tp={options:"all"};function tg(e){new a("CBWSDK").setItem("VERSION",el),to();let t={metadata:{appName:e.appName||"Dapp",appLogoUrl:e.appLogoUrl||"",appChainIds:e.appChainIds||[]},preference:Object.assign(tp,null!=(s=e.preference)?s:{})};var s,n=t.preference;if(n){if(!["all","smartWalletOnly","eoaOnly"].includes(n.options))throw Error(`Invalid options: ${n.options}`);if(n.attribution&&void 0!==n.attribution.auto&&void 0!==n.attribution.dataSuffix)throw Error("Attribution cannot contain both auto and dataSuffix properties")}let i=null;return{getProvider:()=>{var e;let s;return i||(i=null!=(e=function({metadata:e,preference:t}){var s,n;let{appName:i,appLogoUrl:r,appChainIds:a}=e;if("smartWalletOnly"!==t.options){let e=globalThis.coinbaseWalletExtension;if(e)return null==(s=e.setAppInfo)||s.call(e,i,r,a,t),e}let o=function(){var e,t;try{let s=globalThis;return null!=(e=s.ethereum)?e:null==(t=s.top)?void 0:t.ethereum}catch(e){return}}();if(null==o?void 0:o.isCoinbaseBrowser)return null==(n=o.setAppInfo)||n.call(o,i,r,a,t),o}(s={metadata:t.metadata,preference:t.preference}))?e:new tf(s)),i}}}}}]);
@@ -0,0 +1,3 @@
1
+ (globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["929"],{3938:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=w,t.fromBig=i,t.split=r;let s=BigInt(0x100000000-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&s),l:Number(e>>n&s)}:{h:0|Number(e>>n&s),l:0|Number(e&s)}}function r(e,t=!1){let s=e.length,n=new Uint32Array(s),a=new Uint32Array(s);for(let r=0;r<s;r++){let{h:s,l:o}=i(e[r],t);[n[r],a[r]]=[s,o]}return[n,a]}let a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=a;let o=(e,t,s)=>e>>>s;t.shrSH=o;let c=(e,t,s)=>e<<32-s|t>>>s;t.shrSL=c;let l=(e,t,s)=>e>>>s|t<<32-s;t.rotrSH=l;let d=(e,t,s)=>e<<32-s|t>>>s;t.rotrSL=d;let h=(e,t,s)=>e<<64-s|t>>>s-32;t.rotrBH=h;let u=(e,t,s)=>e>>>s-32|t<<64-s;t.rotrBL=u;let f=(e,t)=>t;t.rotr32H=f;let p=(e,t)=>e;t.rotr32L=p;let g=(e,t,s)=>e<<s|t>>>32-s;t.rotlSH=g;let b=(e,t,s)=>t<<s|e>>>32-s;t.rotlSL=b;let y=(e,t,s)=>t<<s-32|e>>>64-s;t.rotlBH=y;let m=(e,t,s)=>e<<s-32|t>>>64-s;function w(e,t,s,n){let i=(t>>>0)+(n>>>0);return{h:e+s+(i/0x100000000|0)|0,l:0|i}}t.rotlBL=m;let k=(e,t,s)=>(e>>>0)+(t>>>0)+(s>>>0);t.add3L=k;let x=(e,t,s,n)=>t+s+n+(e/0x100000000|0)|0;t.add3H=x;let v=(e,t,s,n)=>(e>>>0)+(t>>>0)+(s>>>0)+(n>>>0);t.add4L=v;let I=(e,t,s,n,i)=>t+s+n+i+(e/0x100000000|0)|0;t.add4H=I;let E=(e,t,s,n,i)=>(e>>>0)+(t>>>0)+(s>>>0)+(n>>>0)+(i>>>0);t.add5L=E;let C=(e,t,s,n,i,r)=>t+s+n+i+r+(e/0x100000000|0)|0;t.add5H=C,t.default={fromBig:i,split:r,toBig:a,shrSH:o,shrSL:c,rotrSH:l,rotrSL:d,rotrBH:h,rotrBL:u,rotr32H:f,rotr32L:p,rotlSH:g,rotlSL:b,rotlBH:y,rotlBL:m,add:w,add3L:k,add3H:x,add4L:v,add4H:I,add5H:C,add5L:E}},5917:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},2735:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=w;let n=s(3938),i=s(4459),r=BigInt(0),a=BigInt(1),o=BigInt(2),c=BigInt(7),l=BigInt(256),d=BigInt(113),h=[],u=[],f=[];for(let e=0,t=a,s=1,n=0;e<24;e++){[s,n]=[n,(2*s+3*n)%5],h.push(2*(5*n+s)),u.push((e+1)*(e+2)/2%64);let i=r;for(let e=0;e<7;e++)(t=(t<<a^(t>>c)*d)%l)&o&&(i^=a<<(a<<BigInt(e))-a);f.push(i)}let p=(0,n.split)(f,!0),g=p[0],b=p[1],y=(e,t,s)=>s>32?(0,n.rotlBH)(e,t,s):(0,n.rotlSH)(e,t,s),m=(e,t,s)=>s>32?(0,n.rotlBL)(e,t,s):(0,n.rotlSL)(e,t,s);function w(e,t=24){let s=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)s[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,r=s[i],a=s[i+1],o=y(r,a,1)^s[n],c=m(r,a,1)^s[n+1];for(let s=0;s<50;s+=10)e[t+s]^=o,e[t+s+1]^=c}let t=e[2],i=e[3];for(let s=0;s<24;s++){let n=u[s],r=y(t,i,n),a=m(t,i,n),o=h[s];t=e[o],i=e[o+1],e[o]=r,e[o+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)s[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~s[(n+2)%10]&s[(n+4)%10]}e[0]^=g[n],e[1]^=b[n]}(0,i.clean)(s)}class k extends i.Hash{constructor(e,t,s,n=!1,r=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=s,this.enableXOF=n,this.rounds=r,(0,i.anumber)(s),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.swap32IfBE)(this.state32),w(this.state32,this.rounds),(0,i.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.aexists)(this),e=(0,i.toBytes)(e),(0,i.abytes)(e);let{blockLen:t,state:s}=this,n=e.length;for(let i=0;i<n;){let r=Math.min(t-this.pos,n-i);for(let t=0;t<r;t++)s[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:s,blockLen:n}=this;e[s]^=t,(128&t)!=0&&s===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,i.aexists)(this,!1),(0,i.abytes)(e),this.finish();let t=this.state,{blockLen:s}=this;for(let n=0,i=e.length;n<i;){this.posOut>=s&&this.keccak();let r=Math.min(s-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+r),n),this.posOut+=r,n+=r}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.aoutput)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,i.clean)(this.state)}_cloneInto(e){let{blockLen:t,suffix:s,outputLen:n,rounds:i,enableXOF:r}=this;return e||(e=new k(t,s,n,r,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=s,e.outputLen=n,e.enableXOF=r,e.destroyed=this.destroyed,e}}t.Keccak=k;let x=(e,t,s)=>(0,i.createHasher)(()=>new k(t,e,s));t.sha3_224=x(6,144,28),t.sha3_256=x(6,136,32),t.sha3_384=x(6,104,48),t.sha3_512=x(6,72,64),t.keccak_224=x(1,144,28),t.keccak_256=x(1,136,32),t.keccak_384=x(1,104,48),t.keccak_512=x(1,72,64);let v=(e,t,s)=>(0,i.createXOFer)((n={})=>new k(t,e,void 0===n.dkLen?s:n.dkLen,!0));t.shake128=v(31,168,16),t.shake256=v(31,136,32)},4459:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=i,t.anumber=r,t.abytes=a,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");r(e.outputLen),r(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},t.aoutput=function(e,t){a(e);let s=t.outputLen;if(e.length<s)throw Error("digestInto() expects output buffer of length at least "+s)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=o,t.byteSwap32=c,t.bytesToHex=function(e){if(a(e),l)return e.toHex();let t="";for(let s=0;s<e.length;s++)t+=d[e[s]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(l)return Uint8Array.fromHex(e);let t=e.length,s=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(s);for(let t=0,i=0;t<s;t++,i+=2){let s=h(e.charCodeAt(i)),r=h(e.charCodeAt(i+1));if(void 0===s||void 0===r)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*s+r}return n},t.asyncLoop=u,t.utf8ToBytes=f,t.bytesToUtf8=function(e){return new TextDecoder().decode(e)},t.toBytes=p,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=f(e)),a(e),e},t.concatBytes=function(...e){let t=0;for(let s=0;s<e.length;s++){let n=e[s];a(n),t+=n.length}let s=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];s.set(i,n),n+=i.length}return s},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==({}).toString.call(t))throw Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=g,t.createOptHasher=b,t.createXOFer=y,t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw Error("crypto.getRandomValues must be defined")};let n=s(5917);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function a(e,...t){if(!i(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e){return e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=o(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>o(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;let l="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function h(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}async function u(e,s,n){let i=Date.now();for(let r=0;r<e;r++){n(r);let e=Date.now()-i;e>=0&&e<s||(await (0,t.nextTick)(),i+=e)}}function f(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function p(e){return"string"==typeof e&&(e=f(e)),a(e),e}function g(e){let t=t=>e().update(p(t)).digest(),s=e();return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=()=>e(),t}function b(e){let t=(t,s)=>e(s).update(p(t)).digest(),s=e({});return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=t=>e(t),t}function y(e){let t=(t,s)=>e(s).update(p(t)).digest(),s=e({});return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=t=>e(t),t}t.nextTick=async()=>{},t.Hash=class{},t.wrapConstructor=g,t.wrapConstructorWithOpts=b,t.wrapXOFConstructorWithOpts=y},7193:function(e,t,s){let n=s(5345);function i(e){if(e.startsWith("int["))return"int256"+e.slice(3);if("int"===e)return"int256";if(e.startsWith("uint["))return"uint256"+e.slice(4);if("uint"===e)return"uint256";if(e.startsWith("fixed["))return"fixed128x128"+e.slice(5);else if("fixed"===e)return"fixed128x128";else if(e.startsWith("ufixed["))return"ufixed128x128"+e.slice(6);else if("ufixed"===e)return"ufixed128x128";return e}function r(e){return Number.parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function a(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[Number.parseInt(t[1],10),Number.parseInt(t[2],10)]}function o(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":Number.parseInt(t[2],10):null}function c(e){var t=typeof e;if("string"===t||"number"===t)return BigInt(e);if("bigint"===t)return e;throw Error("Argument is not a number")}function l(e,t){if("address"===e)return l("uint160",c(t));if("bool"===e)return l("uint8",+!!t);if("string"===e)return l("bytes",new Buffer(t,"utf8"));if((u=e).lastIndexOf("]")===u.length-1){if(void 0===t.length)throw Error("Not an array?");if("dynamic"!==(s=o(e))&&0!==s&&t.length>s)throw Error("Elements exceed array size: "+s);for(h in d=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)d.push(l(e,t[h]));if("dynamic"===s){var s,i,d,h,u,f=l("uint256",t.length);d.unshift(f)}return Buffer.concat(d)}else if("bytes"===e)return t=new Buffer(t),d=Buffer.concat([l("uint256",t.length),t]),t.length%32!=0&&(d=Buffer.concat([d,n.zeros(32-t.length%32)])),d;else if(e.startsWith("bytes")){if((s=r(e))<1||s>32)throw Error("Invalid bytes<N> width: "+s);return n.setLengthRight(t,32)}else if(e.startsWith("uint")){if((s=r(e))%8||s<8||s>256)throw Error("Invalid uint<N> width: "+s);i=c(t);let a=n.bitLengthFromBigInt(i);if(a>s)throw Error("Supplied uint exceeds width: "+s+" vs "+a);if(i<0)throw Error("Supplied uint is negative");return n.bufferBEFromBigInt(i,32)}else if(e.startsWith("int")){if((s=r(e))%8||s<8||s>256)throw Error("Invalid int<N> width: "+s);i=c(t);let a=n.bitLengthFromBigInt(i);if(a>s)throw Error("Supplied int exceeds width: "+s+" vs "+a);let o=n.twosFromBigInt(i,256);return n.bufferBEFromBigInt(o,32)}else if(e.startsWith("ufixed")){if(s=a(e),(i=c(t))<0)throw Error("Supplied ufixed is negative");return l("uint256",i*BigInt(2)**BigInt(s[1]))}else if(e.startsWith("fixed"))return s=a(e),l("int256",c(t)*BigInt(2)**BigInt(s[1]));throw Error("Unsupported or invalid type: "+e)}function d(e,t){if(e.length!==t.length)throw Error("Number of types are not matching the values");for(var s,a,o=[],l=0;l<e.length;l++){var d=i(e[l]),h=t[l];if("bytes"===d)o.push(h);else if("string"===d)o.push(new Buffer(h,"utf8"));else if("bool"===d)o.push(new Buffer(h?"01":"00","hex"));else if("address"===d)o.push(n.setLength(h,20));else if(d.startsWith("bytes")){if((s=r(d))<1||s>32)throw Error("Invalid bytes<N> width: "+s);o.push(n.setLengthRight(h,s))}else if(d.startsWith("uint")){if((s=r(d))%8||s<8||s>256)throw Error("Invalid uint<N> width: "+s);a=c(h);let e=n.bitLengthFromBigInt(a);if(e>s)throw Error("Supplied uint exceeds width: "+s+" vs "+e);o.push(n.bufferBEFromBigInt(a,s/8))}else if(d.startsWith("int")){if((s=r(d))%8||s<8||s>256)throw Error("Invalid int<N> width: "+s);a=c(h);let e=n.bitLengthFromBigInt(a);if(e>s)throw Error("Supplied int exceeds width: "+s+" vs "+e);let t=n.twosFromBigInt(a,s);o.push(n.bufferBEFromBigInt(t,s/8))}else throw Error("Unsupported or invalid type: "+d)}return Buffer.concat(o)}e.exports={rawEncode:function(e,t){var s=[],n=[],r=32*e.length;for(var a in e){var c=i(e[a]),d=l(c,t[a]);"string"===c||"bytes"===c||"dynamic"===o(c)?(s.push(l("uint256",r)),n.push(d),r+=d.length):s.push(d)}return Buffer.concat(s.concat(n))},solidityPack:d,soliditySHA3:function(e,t){return n.keccak(d(e,t))}}},5471:function(e,t,s){let n=s(5345),i=s(7193),r={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},a={encodeData(e,t,s,r=!0){let a=["bytes32"],o=[this.hashType(e,s)];if(r){let c=(e,t,a)=>{if(void 0!==s[t])return["bytes32",null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":n.keccak(this.encodeData(t,a,s,r))];if(void 0===a)throw Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",n.keccak(a)];if("string"===t)return"string"==typeof a&&(a=Buffer.from(a,"utf8")),["bytes32",n.keccak(a)];if(t.lastIndexOf("]")===t.length-1){let s=t.slice(0,t.lastIndexOf("[")),r=a.map(t=>c(e,s,t));return["bytes32",n.keccak(i.rawEncode(r.map(([e])=>e),r.map(([,e])=>e)))]}return[t,a]};for(let n of s[e]){let[e,s]=c(n.name,n.type,t[n.name]);a.push(e),o.push(s)}}else for(let i of s[e]){let e=t[i.name];if(void 0!==e)if("bytes"===i.type)a.push("bytes32"),e=n.keccak(e),o.push(e);else if("string"===i.type)a.push("bytes32"),"string"==typeof e&&(e=Buffer.from(e,"utf8")),e=n.keccak(e),o.push(e);else if(void 0!==s[i.type])a.push("bytes32"),e=n.keccak(this.encodeData(i.type,e,s,r)),o.push(e);else if(i.type.lastIndexOf("]")===i.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else a.push(i.type),o.push(e)}return i.rawEncode(a,o)},encodeType(e,t){let s="",n=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let i of n=[e].concat(n.sort())){if(!t[i])throw Error("No type definition specified: "+i);s+=i+"("+t[i].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return s},findTypeDependencies(e,t,s=[]){if(e=e.match(/^\w*/)[0],s.includes(e)||void 0===t[e])return s;for(let n of(s.push(e),t[e]))for(let e of this.findTypeDependencies(n.type,t,s))s.includes(e)||s.push(e);return s},hashStruct(e,t,s,i=!0){return n.keccak(this.encodeData(e,t,s,i))},hashType(e,t){return n.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let s in r.properties)e[s]&&(t[s]=e[s]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let s=this.sanitizeData(e),i=[Buffer.from("1901","hex")];return i.push(this.hashStruct("EIP712Domain",s.domain,s.types,t)),"EIP712Domain"!==s.primaryType&&i.push(this.hashStruct(s.primaryType,s.message,s.types,t)),n.keccak(Buffer.concat(i))}};e.exports={TYPED_MESSAGE_SCHEMA:r,TypedDataUtils:a,hashForSignTypedDataLegacy:function(e){return function(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;let s=e.map(function(e){return"bytes"===e.type?n.toBuffer(e.value):e.value}),r=e.map(function(e){return e.type}),a=e.map(function(e){if(!e.name)throw t;return e.type+" "+e.name});return i.soliditySHA3(["bytes32","bytes32"],[i.soliditySHA3(Array(e.length).fill("string"),a),i.soliditySHA3(r,s)])}(e.data)},hashForSignTypedData_v3:function(e){return a.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return a.hash(e.data)}}},5345:function(e,t,s){let{keccak_256:n}=s(2735);function i(e){return Buffer.allocUnsafe(e).fill(0)}function r(e,t){let s=e.toString(16);s.length%2!=0&&(s="0"+s);let n=s.match(/.{1,2}/g).map(e=>parseInt(e,16));for(;n.length<t;)n.unshift(0);return Buffer.from(n)}function a(e,t,s){let n=i(t);return(e=o(e),s)?e.length<t?(e.copy(n),n):e.slice(0,t):e.length<t?(e.copy(n,t-e.length),n):e.slice(-t)}function o(e){if(!Buffer.isBuffer(e))if(Array.isArray(e))e=Buffer.from(e);else if("string"==typeof e){var t;e=c(e)?Buffer.from((t=l(e)).length%2?"0"+t:t,"hex"):Buffer.from(e)}else if("number"==typeof e)e=intToBuffer(e);else if(null==e)e=Buffer.allocUnsafe(0);else if("bigint"==typeof e)e=r(e);else if(e.toArray)e=Buffer.from(e.toArray());else throw Error("invalid type");return e}function c(e){return"string"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/)}function l(e){return"string"==typeof e&&e.startsWith("0x")?e.slice(2):e}e.exports={zeros:i,setLength:a,setLengthRight:function(e,t){return a(e,t,!0)},isHexString:c,stripHexPrefix:l,toBuffer:o,bufferToHex:function(e){return"0x"+(e=o(e)).toString("hex")},keccak:function(e,t){if(e=o(e),t||(t=256),256!==t)throw Error("unsupported");return Buffer.from(n(new Uint8Array(e)))},bitLengthFromBigInt:function(e){return e.toString(2).length},bufferBEFromBigInt:r,twosFromBigInt:function(e,t){return(e<0n?(~e&(1n<<BigInt(t))-1n)+1n:e)&(1n<<BigInt(t))-1n}}},7603:function(e,t,s){"use strict";let n,i,r;s.d(t,{createCoinbaseWalletSDK:()=>tg});class a{constructor(e,t){this.scope=e,this.module=t}storeObject(e,t){this.setItem(e,JSON.stringify(t))}loadObject(e){let t=this.getItem(e);return t?JSON.parse(t):void 0}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let s=0;s<localStorage.length;s++){let n=localStorage.key(s);"string"==typeof n&&n.startsWith(e)&&t.push(n)}t.forEach(e=>localStorage.removeItem(e))}scopedKey(e){return`-${this.scope}${this.module?`:${this.module}`:""}:${e}`}static clearAll(){new a("CBWSDK").clear(),new a("walletlink").clear()}}let o=-32602,c=-32603,l=4001,d=4100,h=4200,u=4900,f={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}},p="Unspecified error message.";function g(e,t=p){if(e&&Number.isInteger(e)){var s;let t=e.toString();if(y(f,t))return f[t].message;if((s=e)>=-32099&&s<=-32e3)return"Unspecified server error."}return t}function b(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function m(e,t){return"object"==typeof e&&null!==e&&t in e&&"string"==typeof e[t]}let w=e=>S(o,e),k=e=>S(c,e),x=e=>M(l,e),v=e=>M(d,e),I=e=>M(h,e),E=e=>M(u,e),C=e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:s,data:n}=e;if(!s||"string"!=typeof s)throw Error('"message" must be a nonempty string');return new O(t,s,n)};function S(e,t){let[s,n]=A(t);return new L(e,s||g(e),n)}function M(e,t){let[s,n]=A(t);return new O(e,s||g(e),n)}function A(e){if(e){if("string"==typeof e)return[e];else if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:s}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,s]}}return[]}class L extends Error{constructor(e,t,s){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==s&&(this.data=s)}}class O extends L{constructor(e,t,s){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,s)}}function D(e){return Math.floor(e)}let T=/^[0-9]*$/,_=/^[a-f0-9]*$/;function N(e){return R(crypto.getRandomValues(new Uint8Array(e)))}function R(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}function P(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>Number.parseInt(e,16)))}function U(e,t=!1){let s=e.toString("hex");return t?`0x${s}`:s}function j(e){return U($(e),!0)}function B(e){return e.toString(10)}function W(e){return`0x${BigInt(e).toString(16)}`}function q(e){return e.startsWith("0x")||e.startsWith("0X")}function H(e){return q(e)?e.slice(2):e}function K(e){return q(e)?`0x${e.slice(2)}`:`0x${e}`}function z(e){if("string"!=typeof e)return!1;let t=H(e).toLowerCase();return _.test(t)}function F(e,t=!1){let s=function(e,t=!1){if("string"==typeof e){let s=H(e).toLowerCase();if(_.test(s))return t?`0x${s}`:s}throw w(`"${String(e)}" is not a hexadecimal string`)}(e,!1);return s.length%2==1&&(s=`0${s}`),t?`0x${s}`:s}function G(e){if("string"==typeof e){let t=H(e).toLowerCase();if(z(t)&&40===t.length)return K(t)}throw w(`Invalid Ethereum address: ${String(e)}`)}function $(e){if(Buffer.isBuffer(e))return e;if("string"==typeof e){if(z(e)){let t=F(e,!1);return Buffer.from(t,"hex")}return Buffer.from(e,"utf8")}throw w(`Not binary data: ${String(e)}`)}function J(e){if("number"==typeof e&&Number.isInteger(e))return D(e);if("string"==typeof e){if(T.test(e))return D(Number(e));if(z(e))return D(Number(BigInt(F(e,!0))))}throw w(`Not an integer: ${String(e)}`)}function Y(e){if(null!==e&&("bigint"==typeof e||function(e){if(null==e||"function"!=typeof e.constructor)return!1;let{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}(e)))return BigInt(e.toString(10));if("number"==typeof e)return BigInt(J(e));if("string"==typeof e){if(T.test(e))return BigInt(e);if(z(e))return BigInt(F(e,!0))}throw w(`Not an integer: ${String(e)}`)}async function V(){return crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey"])}async function Q(e,t){return crypto.subtle.deriveKey({name:"ECDH",public:t},e,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async function Z(e,t){let s=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.encrypt({name:"AES-GCM",iv:s},e,new TextEncoder().encode(t));return{iv:s,cipherText:n}}async function X(e,{iv:t,cipherText:s}){let n=await crypto.subtle.decrypt({name:"AES-GCM",iv:t},e,s);return new TextDecoder().decode(n)}function ee(e){switch(e){case"public":return"spki";case"private":return"pkcs8"}}async function et(e,t){let s=ee(e);return R(new Uint8Array(await crypto.subtle.exportKey(s,t)))}async function es(e,t){let s=ee(e),n=P(t).buffer;return await crypto.subtle.importKey(s,new Uint8Array(n),{name:"ECDH",namedCurve:"P-256"},!0,"private"===e?["deriveKey"]:[])}async function en(e,t){return Z(t,JSON.stringify(e,(e,t)=>t instanceof Error?Object.assign(Object.assign({},t.code?{code:t.code}:{}),{message:t.message}):t))}async function ei(e,t){return JSON.parse(await X(t,e))}let er={storageKey:"ownPrivateKey",keyType:"private"},ea={storageKey:"ownPublicKey",keyType:"public"},eo={storageKey:"peerPublicKey",keyType:"public"};class ec{constructor(){this.storage=new a("CBWSDK","SCWKeyManager"),this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(e){this.sharedSecret=null,this.peerPublicKey=e,await this.storeKey(eo,e),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,this.storage.removeItem(ea.storageKey),this.storage.removeItem(er.storageKey),this.storage.removeItem(eo.storageKey)}async generateKeyPair(){let e=await V();this.ownPrivateKey=e.privateKey,this.ownPublicKey=e.publicKey,await this.storeKey(er,e.privateKey),await this.storeKey(ea,e.publicKey)}async loadKeysIfNeeded(){null===this.ownPrivateKey&&(this.ownPrivateKey=await this.loadKey(er)),null===this.ownPublicKey&&(this.ownPublicKey=await this.loadKey(ea)),(null===this.ownPrivateKey||null===this.ownPublicKey)&&await this.generateKeyPair(),null===this.peerPublicKey&&(this.peerPublicKey=await this.loadKey(eo)),null===this.sharedSecret&&null!==this.ownPrivateKey&&null!==this.peerPublicKey&&(this.sharedSecret=await Q(this.ownPrivateKey,this.peerPublicKey))}async loadKey(e){let t=this.storage.getItem(e.storageKey);return t?es(e.keyType,t):null}async storeKey(e,t){let s=await et(e.keyType,t);this.storage.setItem(e.storageKey,s)}}let el="4.3.0",ed="@coinbase/wallet-sdk";async function eh(e,t){let s=Object.assign(Object.assign({},e),{jsonrpc:"2.0",id:crypto.randomUUID()}),n=await window.fetch(t,{method:"POST",body:JSON.stringify(s),mode:"cors",headers:{"Content-Type":"application/json","X-Cbw-Sdk-Version":el,"X-Cbw-Sdk-Platform":ed}}),{result:i,error:r}=await n.json();if(r)throw r;return i}let eu="accounts",ef="activeChain",ep="availableChains",eg="walletCapabilities";class eb{constructor(e){var t,s,n;this.metadata=e.metadata,this.communicator=e.communicator,this.callback=e.callback,this.keyManager=new ec,this.storage=new a("CBWSDK","SCWStateManager"),this.accounts=null!=(t=this.storage.loadObject(eu))?t:[],this.chain=this.storage.loadObject(ef)||{id:null!=(n=null==(s=e.metadata.appChainIds)?void 0:s[0])?n:1},this.handshake=this.handshake.bind(this),this.request=this.request.bind(this),this.createRequestMessage=this.createRequestMessage.bind(this),this.decryptResponseMessage=this.decryptResponseMessage.bind(this)}async handshake(e){var t,s,n,i;await (null==(s=(t=this.communicator).waitForPopupLoaded)?void 0:s.call(t));let r=await this.createRequestMessage({handshake:{method:e.method,params:Object.assign({},this.metadata,null!=(n=e.params)?n:{})}}),a=await this.communicator.postRequestAndWaitForResponse(r);if("failure"in a.content)throw a.content.failure;let o=await es("public",a.sender);await this.keyManager.setPeerPublicKey(o);let c=(await this.decryptResponseMessage(a)).result;if("error"in c)throw c.error;if("eth_requestAccounts"===e.method){let e=c.value;this.accounts=e,this.storage.storeObject(eu,e),null==(i=this.callback)||i.call(this,"accountsChanged",e)}}async request(e){var t;if(0===this.accounts.length)if("wallet_sendCalls"===e.method)return this.sendRequestToPopup(e);else throw v();switch(e.method){case"eth_requestAccounts":return null==(t=this.callback)||t.call(this,"connect",{chainId:W(this.chain.id)}),this.accounts;case"eth_accounts":return this.accounts;case"eth_coinbase":return this.accounts[0];case"net_version":return this.chain.id;case"eth_chainId":return W(this.chain.id);case"wallet_getCapabilities":return this.storage.loadObject(eg);case"wallet_switchEthereumChain":return this.handleSwitchChainRequest(e);case"eth_ecRecover":case"personal_sign":case"wallet_sign":case"personal_ecRecover":case"eth_signTransaction":case"eth_sendTransaction":case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":case"wallet_addEthereumChain":case"wallet_watchAsset":case"wallet_sendCalls":case"wallet_showCallsStatus":case"wallet_grantPermissions":return this.sendRequestToPopup(e);default:if(!this.chain.rpcUrl)throw k("No RPC URL set for chain");return eh(e,this.chain.rpcUrl)}}async sendRequestToPopup(e){var t,s;await (null==(s=(t=this.communicator).waitForPopupLoaded)?void 0:s.call(t));let n=await this.sendEncryptedRequest(e),i=(await this.decryptResponseMessage(n)).result;if("error"in i)throw i.error;return i.value}async cleanup(){var e,t;this.storage.clear(),await this.keyManager.clear(),this.accounts=[],this.chain={id:null!=(t=null==(e=this.metadata.appChainIds)?void 0:e[0])?t:1}}async handleSwitchChainRequest(e){var t;let s=e.params;if(!s||!(null==(t=s[0])?void 0:t.chainId))throw w();let n=J(s[0].chainId);if(this.updateChain(n))return null;let i=await this.sendRequestToPopup(e);return null===i&&this.updateChain(n),i}async sendEncryptedRequest(e){let t=await this.keyManager.getSharedSecret();if(!t)throw v("No valid session found, try requestAccounts before other methods");let s=await en({action:e,chainId:this.chain.id},t),n=await this.createRequestMessage({encrypted:s});return this.communicator.postRequestAndWaitForResponse(n)}async createRequestMessage(e){let t=await et("public",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),sender:t,content:e,timestamp:new Date}}async decryptResponseMessage(e){var t,s;let n=e.content;if("failure"in n)throw n.failure;let i=await this.keyManager.getSharedSecret();if(!i)throw v("Invalid session");let r=await ei(n.encrypted,i),a=null==(t=r.data)?void 0:t.chains;if(a){let e=Object.entries(a).map(([e,t])=>({id:Number(e),rpcUrl:t}));this.storage.storeObject(ep,e),this.updateChain(this.chain.id,e)}let o=null==(s=r.data)?void 0:s.capabilities;return o&&this.storage.storeObject(eg,o),r}updateChain(e,t){var s;let n=null!=t?t:this.storage.loadObject(ep),i=null==n?void 0:n.find(t=>t.id===e);return!!i&&(i!==this.chain&&(this.chain=i,this.storage.storeObject(ef,i),null==(s=this.callback)||s.call(this,"chainChanged",W(i.id))),!0)}}var ey,em,ew,ek=s(5471);let ex="Addresses";function ev(e){return void 0!==e.errorMessage}class eI{constructor(e){this.secret=e}async encrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");let s=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",P(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),i=new TextEncoder,r=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:s},n,i.encode(e)),a=r.slice(r.byteLength-16),o=r.slice(0,r.byteLength-16),c=new Uint8Array(a),l=new Uint8Array(o);return R(new Uint8Array([...s,...c,...l]))}async decrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");return new Promise((s,n)=>{!async function(){let i=await crypto.subtle.importKey("raw",P(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),r=P(e),a=r.slice(0,12),o=r.slice(12,28),c=new Uint8Array([...r.slice(28),...o]),l={name:"AES-GCM",iv:new Uint8Array(a)};try{let e=await window.crypto.subtle.decrypt(l,i,c),t=new TextDecoder;s(t.decode(e))}catch(e){n(e)}}()})}}class eE{constructor(e,t,s){this.linkAPIUrl=e,this.sessionId=t;const n=`${t}:${s}`;this.auth=`Basic ${btoa(n)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(e=>fetch(`${this.linkAPIUrl}/events/${e.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(e=>console.error("Unabled to mark event as failed:",e))}async fetchUnseenEvents(){var e;let t=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(t.ok){let{events:s,error:n}=await t.json();if(n)throw Error(`Check unseen events failed: ${n}`);let i=null!=(e=null==s?void 0:s.filter(e=>"Web3Response"===e.event).map(e=>({type:"Event",sessionId:this.sessionId,eventId:e.id,event:e.event,data:e.data})))?e:[];return this.markUnseenEventsAsSeen(i),i}throw Error(`Check unseen events failed: ${t.status}`)}}(ey=ew||(ew={}))[ey.DISCONNECTED=0]="DISCONNECTED",ey[ey.CONNECTING=1]="CONNECTING",ey[ey.CONNECTED=2]="CONNECTED";class eC{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw Error("webSocket object is not null");return new Promise((e,t)=>{var s;let n;try{this.webSocket=n=new this.WebSocketClass(this.url)}catch(e){t(e);return}null==(s=this.connectionStateListener)||s.call(this,ew.CONNECTING),n.onclose=e=>{var s;this.clearWebSocket(),t(Error(`websocket error ${e.code}: ${e.reason}`)),null==(s=this.connectionStateListener)||s.call(this,ew.DISCONNECTED)},n.onopen=t=>{var s;e(),null==(s=this.connectionStateListener)||s.call(this,ew.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(e=>this.sendData(e)),this.pendingData=[])},n.onmessage=e=>{var t,s;if("h"===e.data)null==(t=this.incomingDataListener)||t.call(this,{type:"Heartbeat"});else try{let t=JSON.parse(e.data);null==(s=this.incomingDataListener)||s.call(this,t)}catch(e){}}})}disconnect(){var e;let{webSocket:t}=this;if(t){this.clearWebSocket(),null==(e=this.connectionStateListener)||e.call(this,ew.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{t.close()}catch(e){}}}sendData(e){let{webSocket:t}=this;if(!t){this.pendingData.push(e),this.connect();return}t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}class eS{constructor({session:e,linkAPIUrl:t,listener:s}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=D(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=e=>{e&&new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",t=>e.JsonRpcUrl&&this.handleChainUpdated(t,e.JsonRpcUrl)]]).forEach((t,s)=>{let n=e[s];void 0!==n&&t(n)})},this.handleDestroyed=e=>{var t;"1"===e&&(null==(t=this.listener)||t.resetAndReload())},this.handleAccountUpdated=async e=>{var t;let s=await this.cipher.decrypt(e);null==(t=this.listener)||t.accountUpdated(s)},this.handleMetadataUpdated=async(e,t)=>{var s;let n=await this.cipher.decrypt(t);null==(s=this.listener)||s.metadataUpdated(e,n)},this.handleWalletUsernameUpdated=async e=>{this.handleMetadataUpdated("walletUsername",e)},this.handleAppVersionUpdated=async e=>{this.handleMetadataUpdated("AppVersion",e)},this.handleChainUpdated=async(e,t)=>{var s;let n=await this.cipher.decrypt(e),i=await this.cipher.decrypt(t);null==(s=this.listener)||s.chainUpdated(n,i)},this.session=e,this.cipher=new eI(e.secret),this.listener=s;const n=new eC(`${t}/rpc`,WebSocket);n.setConnectionStateListener(async e=>{let t=!1;switch(e){case ew.DISCONNECTED:if(!this.destroyed){let e=async()=>{await new Promise(e=>setTimeout(e,5e3)),this.destroyed||n.connect().catch(()=>{e()})};e()}break;case ew.CONNECTED:t=await this.handleConnected(),this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},1e4),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();case ew.CONNECTING:}this.connected!==t&&(this.connected=t)}),n.setIncomingDataListener(e=>{var t;switch(e.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{let t="IsLinkedOK"===e.type?e.linked:void 0;this.linked=t||e.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":this.handleSessionMetadataUpdated(e.metadata);break;case"Event":this.handleIncomingEvent(e)}void 0!==e.id&&(null==(t=this.requestResolutions.get(e.id))||t(e))}),this.ws=n,this.http=new eE(t,e.id,e.key)}connect(){if(this.destroyed)throw Error("instance is destroyed");this.ws.connect()}async destroy(){this.destroyed||(await this.makeRequest({type:"SetSessionConfig",id:D(this.nextReqId++),sessionId:this.session.id,metadata:{__destroyed:"1"}},{timeout:1e3}),this.destroyed=!0,this.ws.disconnect(),this.listener=void 0)}get connected(){return this._connected}set connected(e){this._connected=e}get linked(){return this._linked}set linked(e){var t,s;this._linked=e,e&&(null==(t=this.onceLinked)||t.call(this)),null==(s=this.listener)||s.linkedUpdated(e)}setOnceLinked(e){return new Promise(t=>{this.linked?e().then(t):this.onceLinked=()=>{e().then(t),this.onceLinked=void 0}})}async handleIncomingEvent(e){var t;if("Event"!==e.type||"Web3Response"!==e.event)return;let s=JSON.parse(await this.cipher.decrypt(e.data));if("WEB3_RESPONSE"!==s.type)return;let{id:n,response:i}=s;null==(t=this.listener)||t.handleWeb3ResponseMessage(n,i)}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error("Unable to check for unseen events",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(e=>this.handleIncomingEvent(e))}async publishEvent(e,t,s=!1){let n=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin,location:location.href,relaySource:"coinbaseWalletExtension"in window&&window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),i={type:"PublishEvent",id:D(this.nextReqId++),sessionId:this.session.id,event:e,data:n,callWebhook:s};return this.setOnceLinked(async()=>{let e=await this.makeRequest(i);if("Fail"===e.type)throw Error(e.error||"failed to publish event");return e.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4)return void this.ws.disconnect();try{this.ws.sendData("h")}catch(e){}}async makeRequest(e,t={timeout:6e4}){let s,n=e.id;return this.sendData(e),Promise.race([new Promise((e,i)=>{s=window.setTimeout(()=>{i(Error(`request ${n} timed out`))},t.timeout)}),new Promise(e=>{this.requestResolutions.set(n,t=>{clearTimeout(s),e(t),this.requestResolutions.delete(n)})})])}async handleConnected(){return"Fail"!==(await this.makeRequest({type:"HostSession",id:D(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key})).type&&(this.sendData({type:"IsLinked",id:D(this.nextReqId++),sessionId:this.session.id}),this.sendData({type:"GetSessionConfig",id:D(this.nextReqId++),sessionId:this.session.id}),!0)}}class eM{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%0x7fffffff;let e=this._nextRequestId,t=K(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}}function eA(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function eL(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function eO(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function eD(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function eT(e,t){return e<<32-t|e>>>t}let e_="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,eN=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function eR(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),eA(e),e}class eP{}class eU extends eP{constructor(e,t,s,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=s,this.isLE=n,this.buffer=new Uint8Array(e),this.view=eD(this.buffer)}update(e){eL(this),eA(e=eR(e));let{view:t,buffer:s,blockLen:n}=this,i=e.length;for(let r=0;r<i;){let a=Math.min(n-this.pos,i-r);if(a===n){let t=eD(e);for(;n<=i-r;r+=n)this.process(t,r);continue}s.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){eL(this);eA(e);let t=this.outputLen;if(e.length<t)throw Error("digestInto() expects output buffer of length at least "+t);this.finished=!0;let{buffer:s,view:n,blockLen:i,isLE:r}=this,{pos:a}=this;s[a++]=128,eO(this.buffer.subarray(a)),this.padOffset>i-a&&(this.process(n,0),a=0);for(let e=a;e<i;e++)s[e]=0;!function(e,t,s,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,s,n);let i=BigInt(32),r=BigInt(0xffffffff),a=Number(s>>i&r),o=Number(s&r),c=4*!!n,l=4*!n;e.setUint32(t+c,a,n),e.setUint32(t+l,o,n)}(n,i-8,BigInt(8*this.length),r),this.process(n,0);let o=eD(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=c/4,d=this.get();if(l>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)o.setUint32(4*e,d[e],r)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let s=e.slice(0,t);return this.destroy(),s}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:s,length:n,finished:i,destroyed:r,pos:a}=this;return e.destroyed=r,e.finished=i,e.length=n,e.pos=a,n%t&&e.buffer.set(s),e}clone(){return this._cloneInto()}}let ej=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),eB=BigInt(0x100000000-1),eW=BigInt(32),eq=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),eH=new Uint32Array(64);class eK extends eU{constructor(e=32){super(64,e,8,!1),this.A=0|ej["0"],this.B=0|ej["1"],this.C=0|ej["2"],this.D=0|ej["3"],this.E=0|ej["4"],this.F=0|ej["5"],this.G=0|ej["6"],this.H=0|ej["7"]}get(){let{A:e,B:t,C:s,D:n,E:i,F:r,G:a,H:o}=this;return[e,t,s,n,i,r,a,o]}set(e,t,s,n,i,r,a,o){this.A=0|e,this.B=0|t,this.C=0|s,this.D=0|n,this.E=0|i,this.F=0|r,this.G=0|a,this.H=0|o}process(e,t){for(let s=0;s<16;s++,t+=4)eH[s]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=eH[e-15],s=eH[e-2],n=eT(t,7)^eT(t,18)^t>>>3,i=eT(s,17)^eT(s,19)^s>>>10;eH[e]=i+eH[e-7]+n+eH[e-16]|0}let{A:s,B:n,C:i,D:r,E:a,F:o,G:c,H:l}=this;for(let e=0;e<64;e++){var d,h,u,f;let t=l+(eT(a,6)^eT(a,11)^eT(a,25))+((d=a)&o^~d&c)+eq[e]+eH[e]|0,p=(eT(s,2)^eT(s,13)^eT(s,22))+((h=s)&(u=n)^h&(f=i)^u&f)|0;l=c,c=o,o=a,a=r+t|0,r=i,i=n,n=s,s=t+p|0}s=s+this.A|0,n=n+this.B|0,i=i+this.C|0,r=r+this.D|0,a=a+this.E|0,o=o+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(s,n,i,r,a,o,c,l)}roundClean(){eO(eH)}destroy(){this.set(0,0,0,0,0,0,0,0),eO(this.buffer)}}!function(e,t=!1){let s=e.length,n=new Uint32Array(s),i=new Uint32Array(s);for(let r=0;r<s;r++){let{h:s,l:a}=function(e,t=!1){return t?{h:Number(e&eB),l:Number(e>>eW&eB)}:{h:0|Number(e>>eW&eB),l:0|Number(e&eB)}}(e[r],t);[n[r],i[r]]=[s,a]}}(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e)));let ez=(em=()=>new eK,(n=e=>em().update(eR(e)).digest()).outputLen=(i=em()).outputLen,n.blockLen=i.blockLen,n.create=()=>em(),n),eF="session:id",eG="session:secret",e$="session:linked";class eJ{constructor(e,t,s,n=!1){this.storage=e,this.id=t,this.secret=s,this.key=function(e){if(eA(e),e_)return e.toHex();let t="";for(let s=0;s<e.length;s++)t+=eN[e[s]];return t}(ez(`${t}, ${s} WalletLink`)),this._linked=!!n}static create(e){return new eJ(e,N(16),N(32)).save()}static load(e){let t=e.getItem(eF),s=e.getItem(e$),n=e.getItem(eG);return t&&n?new eJ(e,t,n,"1"===s):null}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this.storage.setItem(eF,this.id),this.storage.setItem(eG,this.secret),this.persistLinked(),this}persistLinked(){this.storage.setItem(e$,this._linked?"1":"0")}}function eY(){var e,t;return null!=(t=null==(e=null==window?void 0:window.matchMedia)?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)&&t}function eV(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode('@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}')),document.documentElement.appendChild(e)}var eQ=s(5137),eZ=s(8271),eX=s(8987);class e0{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=eY()}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,eZ.XX)((0,eZ.h)("div",null,(0,eZ.h)(e1,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,t])=>(0,eZ.h)(e2,Object.assign({},t,{key:e}))))),this.root)}}let e1=e=>(0,eZ.h)("div",{class:(0,eQ.$)("-cbwsdk-snackbar-container")},(0,eZ.h)("style",null,".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"),(0,eZ.h)("div",{class:"-cbwsdk-snackbar"},e.children)),e2=({autoExpand:e,message:t,menuItems:s})=>{let[n,i]=(0,eX.J0)(!0),[r,a]=(0,eX.J0)(null!=e&&e);return(0,eX.vJ)(()=>{let e=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{a(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,eZ.h)("div",{class:(0,eQ.$)("-cbwsdk-snackbar-instance",n&&"-cbwsdk-snackbar-instance-hidden",r&&"-cbwsdk-snackbar-instance-expanded")},(0,eZ.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{a(!r)}},(0,eZ.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,eZ.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,eZ.h)("div",{class:"-gear-container"},!r&&(0,eZ.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,eZ.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,eZ.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),s&&s.length>0&&(0,eZ.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},s.map((e,t)=>(0,eZ.h)("div",{class:(0,eQ.$)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,eZ.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,eZ.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,eZ.h)("span",{class:(0,eQ.$)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))};class e3{constructor(){this.attached=!1,this.snackbar=new e0}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.snackbar.attach(t),this.attached=!0,eV()}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:{message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}}class e5{constructor(){this.root=null,this.darkMode=eY()}attach(){let e=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",e.appendChild(this.root),eV()}present(e){this.render(e)}clear(){this.render(null)}render(e){!this.root||((0,eZ.XX)(null,this.root),e&&(0,eZ.XX)((0,eZ.h)(e4,Object.assign({},e,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}}let e4=({title:e,buttonText:t,darkMode:s,onButtonClick:n,onDismiss:i})=>(0,eZ.h)(e1,{darkMode:s},(0,eZ.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,eZ.h)("style",null,".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}"),(0,eZ.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:i}),(0,eZ.h)("div",{class:(0,eQ.$)("-cbwsdk-redirect-dialog-box",s?"dark":"light")},(0,eZ.h)("p",null,e),(0,eZ.h)("button",{onClick:n},t)))),e8="https://www.walletlink.org";class e6{constructor(){this.attached=!1,this.redirectDialog=new e5}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(e){let t=new URL("https://go.cb-w.com/walletlink");t.searchParams.append("redirect_url",function(){try{if(function(){try{return null!==window.frameElement}catch(e){return!1}}()&&window.top)return window.top.location;return window.location}catch(e){return window.location}}().href),e&&t.searchParams.append("wl_url",e);let s=document.createElement("a");s.target="cbw-opener",s.href=t.href,s.rel="noreferrer noopener",s.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}}class e7{constructor(e){this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.isMobileWeb=function(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)}(),this.linkedUpdated=e=>{this.isLinked=e;let t=this.storage.getItem(ex);if(e&&(this._session.linked=e),this.isUnlinkedErrorState=!1,t){let s=t.split(" "),n="true"===this.storage.getItem("IsStandaloneSigning");""===s[0]||e||!this._session.linked||n||(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(e,t)=>{this.storage.setItem(e,t)},this.chainUpdated=(e,t)=>{(this.chainCallbackParams.chainId!==e||this.chainCallbackParams.jsonRpcUrl!==t)&&(this.chainCallbackParams={chainId:e,jsonRpcUrl:t},this.chainCallback&&this.chainCallback(t,Number.parseInt(e,10)))},this.accountUpdated=e=>{this.accountsCallback&&this.accountsCallback([e]),e7.accountRequestCallbackIds.size>0&&(Array.from(e7.accountRequestCallbackIds.values()).forEach(t=>{this.invokeCallback(t,{method:"requestEthereumAccounts",result:[e]})}),e7.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.metadata=e.metadata,this.accountsCallback=e.accountsCallback,this.chainCallback=e.chainCallback;const{session:t,ui:s,connection:n}=this.subscribe();this._session=t,this.connection=n,this.relayEventManager=new eM,this.ui=s,this.ui.attach()}subscribe(){let e=eJ.load(this.storage)||eJ.create(this.storage),{linkAPIUrl:t}=this,s=new eS({session:e,linkAPIUrl:t,listener:this}),n=this.isMobileWeb?new e6:new e3;return s.connect(),{session:e,ui:n,connection:s}}resetAndReload(){this.connection.destroy().then(()=>{let e=eJ.load(this.storage);(null==e?void 0:e.id)===this._session.id&&a.clearAll(),document.location.reload()}).catch(e=>{})}signEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:B(e.weiValue),data:U(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?B(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?B(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?B(e.gasPriceInWei):null,gasLimit:e.gasLimit?B(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:B(e.weiValue),data:U(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?B(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?B(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?B(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?B(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:U(e,!0),chainId:t}})}getWalletLinkSession(){return this._session}sendRequest(e){let t=null,s=N(8),n=n=>{this.publishWeb3RequestCanceledEvent(s),this.handleErrorResponse(s,e.method,n),null==t||t()};return new Promise((i,r)=>{t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:n,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(s,e=>{if(null==t||t(),ev(e))return r(Error(e.errorMessage));i(e)}),this.publishWeb3RequestEvent(s,e)})}publishWeb3RequestEvent(e,t){let s={type:"WEB3_REQUEST",id:e,request:t};this.publishEvent("Web3Request",s,!0).then(e=>{}).catch(e=>{this.handleWeb3ResponseMessage(s.id,{method:t.method,errorMessage:e.message})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(t.method)}openCoinbaseWalletDeeplink(e){if(this.ui instanceof e6)switch(e){case"requestEthereumAccounts":case"switchEthereumChain":return;default:window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink()}}publishWeb3RequestCanceledEvent(e){this.publishEvent("Web3RequestCanceled",{type:"WEB3_REQUEST_CANCELED",id:e},!1).then()}publishEvent(e,t,s){return this.connection.publishEvent(e,t,s)}handleWeb3ResponseMessage(e,t){if("requestEthereumAccounts"===t.method){e7.accountRequestCallbackIds.forEach(e=>this.invokeCallback(e,t)),e7.accountRequestCallbackIds.clear();return}this.invokeCallback(e,t)}handleErrorResponse(e,t,s){var n;let i=null!=(n=null==s?void 0:s.message)?n:"Unspecified error message.";this.handleWeb3ResponseMessage(e,{method:t,errorMessage:i})}invokeCallback(e,t){let s=this.relayEventManager.callbacks.get(e);s&&(s(t),this.relayEventManager.callbacks.delete(e))}requestEthereumAccounts(){let{appName:e,appLogoUrl:t}=this.metadata,s={method:"requestEthereumAccounts",params:{appName:e,appLogoUrl:t}},n=N(8);return new Promise((e,t)=>{this.relayEventManager.callbacks.set(n,s=>{if(ev(s))return t(Error(s.errorMessage));e(s)}),e7.accountRequestCallbackIds.add(n),this.publishWeb3RequestEvent(n,s)})}watchAsset(e,t,s,n,i,r){let a={method:"watchAsset",params:{type:e,options:{address:t,symbol:s,decimals:n,image:i},chainId:r}},o=null,c=N(8),l=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,a.method,e),null==o||o()};return o=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(c,s=>{if(null==o||o(),ev(s))return t(Error(s.errorMessage));e(s)}),this.publishWeb3RequestEvent(c,a)})}addEthereumChain(e,t,s,n,i,r){let a={method:"addEthereumChain",params:{chainId:e,rpcUrls:t,blockExplorerUrls:n,chainName:i,iconUrls:s,nativeCurrency:r}},o=null,c=N(8),l=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,a.method,e),null==o||o()};return o=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(c,s=>{if(null==o||o(),ev(s))return t(Error(s.errorMessage));e(s)}),this.publishWeb3RequestEvent(c,a)})}switchEthereumChain(e,t){let s={method:"switchEthereumChain",params:Object.assign({chainId:e},{address:t})},n=null,i=N(8),r=e=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,s.method,e),null==n||n()};return n=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:r,onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(i,s=>(null==n||n(),ev(s)&&s.errorCode)?t(C({code:s.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):ev(s)?t(Error(s.errorMessage)):void e(s)),this.publishWeb3RequestEvent(i,s)})}}e7.accountRequestCallbackIds=new Set;let e9="DefaultChainId",te="DefaultJsonRpcUrl";class tt{constructor(e){this._relay=null,this._addresses=[],this.metadata=e.metadata,this._storage=new a("walletlink",e8),this.callback=e.callback||null;const t=this._storage.getItem(ex);if(t){const e=t.split(" ");""!==e[0]&&(this._addresses=e.map(e=>G(e)))}this.initializeRelay()}getSession(){let{id:e,secret:t}=this.initializeRelay().getWalletLinkSession();return{id:e,secret:t}}async handshake(){await this._eth_requestAccounts()}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var e;return null!=(e=this._storage.getItem(te))?e:void 0}set jsonRpcUrl(e){this._storage.setItem(te,e)}updateProviderInfo(e,t){var s;this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(e9,t.toString(10)),J(t)!==n&&(null==(s=this.callback)||s.call(this,"chainChanged",W(t)))}async watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw w("Type is required");if((null==t?void 0:t.type)!=="ERC20")throw w(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw w("Options are required");if(!(null==t?void 0:t.options.address))throw w("Address is required");let s=this.getChainId(),{address:n,symbol:i,image:r,decimals:a}=t.options,o=this.initializeRelay(),c=await o.watchAsset(t.type,n,i,a,r,null==s?void 0:s.toString());return!ev(c)&&!!c.result}async addEthereumChain(e){var t,s;let n=e[0];if((null==(t=n.rpcUrls)?void 0:t.length)===0)throw w("please pass in at least 1 rpcUrl");if(!n.chainName||""===n.chainName.trim())throw w("chainName is a required field");if(!n.nativeCurrency)throw w("nativeCurrency is a required field");let i=Number.parseInt(n.chainId,16);if(i===this.getChainId())return!1;let r=this.initializeRelay(),{rpcUrls:a=[],blockExplorerUrls:o=[],chainName:c,iconUrls:l=[],nativeCurrency:d}=n,h=await r.addEthereumChain(i.toString(),a,l,o,c,d);if(ev(h))return!1;if((null==(s=h.result)?void 0:s.isApproved)===!0)return this.updateProviderInfo(a[0],i),null;throw k("unable to add ethereum chain")}async switchEthereumChain(e){let t=Number.parseInt(e[0].chainId,16),s=this.initializeRelay(),n=await s.switchEthereumChain(t.toString(10),this.selectedAddress||void 0);if(ev(n))throw n;let i=n.result;return i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,t),null}async cleanup(){this.callback=null,this._relay&&this._relay.resetAndReload(),this._storage.clear()}_setAddresses(e,t){var s;if(!Array.isArray(e))throw Error("addresses is not an array");let n=e.map(e=>G(e));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,null==(s=this.callback)||s.call(this,"accountsChanged",n),this._storage.setItem(ex,n.join(" ")))}async request(e){let t=e.params||[];switch(e.method){case"eth_accounts":return[...this._addresses];case"eth_coinbase":return this.selectedAddress||null;case"net_version":return this.getChainId().toString(10);case"eth_chainId":return W(this.getChainId());case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_ecRecover":case"personal_ecRecover":return this.ecRecover(e);case"personal_sign":return this.personalSign(e);case"eth_signTransaction":return this._eth_signTransaction(t);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(t);case"eth_sendTransaction":return this._eth_sendTransaction(t);case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":return this.signTypedData(e);case"wallet_addEthereumChain":return this.addEthereumChain(t);case"wallet_switchEthereumChain":return this.switchEthereumChain(t);case"wallet_watchAsset":return this.watchAsset(t);default:if(!this.jsonRpcUrl)throw k("No RPC URL set for chain");return eh(e,this.jsonRpcUrl)}}_ensureKnownAddress(e){let t=G(e);if(!this._addresses.map(e=>G(e)).includes(t))throw Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?G(e.from):this.selectedAddress;if(!t)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let s=e.to?G(e.to):null,n=null!=e.value?Y(e.value):BigInt(0),i=e.data?$(e.data):Buffer.alloc(0),r=null!=e.nonce?J(e.nonce):null,a=null!=e.gasPrice?Y(e.gasPrice):null,o=null!=e.maxFeePerGas?Y(e.maxFeePerGas):null,c=null!=e.maxPriorityFeePerGas?Y(e.maxPriorityFeePerGas):null;return{fromAddress:t,toAddress:s,weiValue:n,data:i,nonce:r,gasPriceInWei:a,maxFeePerGas:o,maxPriorityFeePerGas:c,gasLimit:null!=e.gas?Y(e.gas):null,chainId:e.chainId?J(e.chainId):this.getChainId()}}async ecRecover(e){let{method:t,params:s}=e;if(!Array.isArray(s))throw w();let n=this.initializeRelay(),i=await n.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:j(s[0]),signature:j(s[1]),addPrefix:"personal_ecRecover"===t}});if(ev(i))throw i;return i.result}getChainId(){var e;return Number.parseInt(null!=(e=this._storage.getItem(e9))?e:"1",10)}async _eth_requestAccounts(){var e,t;if(this._addresses.length>0)return null==(e=this.callback)||e.call(this,"connect",{chainId:W(this.getChainId())}),this._addresses;let s=this.initializeRelay(),n=await s.requestEthereumAccounts();if(ev(n))throw n;if(!n.result)throw Error("accounts received is empty");return this._setAddresses(n.result),null==(t=this.callback)||t.call(this,"connect",{chainId:W(this.getChainId())}),this._addresses}async personalSign({params:e}){if(!Array.isArray(e))throw w();let t=e[1],s=e[0];this._ensureKnownAddress(t);let n=this.initializeRelay(),i=await n.sendRequest({method:"signEthereumMessage",params:{address:G(t),message:j(s),addPrefix:!0,typedDataJson:null}});if(ev(i))throw i;return i.result}async _eth_signTransaction(e){let t=this._prepareTransactionParams(e[0]||{}),s=this.initializeRelay(),n=await s.signEthereumTransaction(t);if(ev(n))throw n;return n.result}async _eth_sendRawTransaction(e){let t=$(e[0]),s=this.initializeRelay(),n=await s.submitEthereumTransaction(t,this.getChainId());if(ev(n))throw n;return n.result}async _eth_sendTransaction(e){let t=this._prepareTransactionParams(e[0]||{}),s=this.initializeRelay(),n=await s.signAndSubmitEthereumTransaction(t);if(ev(n))throw n;return n.result}async signTypedData(e){let{method:t,params:s}=e;if(!Array.isArray(s))throw w();let n=s[+("eth_signTypedData_v1"===t)],i=s[+("eth_signTypedData_v1"!==t)];this._ensureKnownAddress(n);let r=this.initializeRelay(),a=await r.sendRequest({method:"signEthereumMessage",params:{address:G(n),message:U(({eth_signTypedData_v1:ek.hashForSignTypedDataLegacy,eth_signTypedData_v3:ek.hashForSignTypedData_v3,eth_signTypedData_v4:ek.hashForSignTypedData_v4,eth_signTypedData:ek.hashForSignTypedData_v4})[t]({data:function(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw w(`Not a JSON string or an object: ${String(e)}`)}(i)}),!0),typedDataJson:JSON.stringify(i,null,2),addPrefix:!1}});if(ev(a))throw a;return a.result}initializeRelay(){return this._relay||(this._relay=new e7({linkAPIUrl:e8,storage:this._storage,metadata:this.metadata,accountsCallback:this._setAddresses.bind(this),chainCallback:this.updateProviderInfo.bind(this)})),this._relay}}let ts="SignerType",tn=new a("CBWSDK","SignerConfigurator");async function ti(e){let{communicator:t,metadata:s,handshakeRequest:n,callback:i}=e;tr(t,s,i).catch(()=>{});let r={id:crypto.randomUUID(),event:"selectSignerType",data:Object.assign(Object.assign({},e.preference),{handshakeRequest:n})},{data:a}=await t.postRequestAndWaitForResponse(r);return a}async function tr(e,t,s){await e.onMessage(({event:e})=>"WalletLinkSessionRequest"===e);let n=new tt({metadata:t,callback:s});e.postMessage({event:"WalletLinkUpdate",data:{session:n.getSession()}}),await n.handshake(),e.postMessage({event:"WalletLinkUpdate",data:{connected:!0}})}let ta=`Coinbase Wallet SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Coinbase Smart Wallet app.
2
+
3
+ Please see https://www.smartwallet.dev/guides/tips/popup-tips#cross-origin-opener-policy for more information.`,{checkCrossOriginOpenerPolicy:to,getCrossOriginOpenerPolicy:tc}={getCrossOriginOpenerPolicy:()=>void 0===r?"undefined":r,checkCrossOriginOpenerPolicy:async()=>{if("undefined"==typeof window){r="non-browser-env";return}try{let e=`${window.location.origin}${window.location.pathname}`,t=await fetch(e,{method:"HEAD"});if(!t.ok)throw Error(`HTTP error! status: ${t.status}`);let s=t.headers.get("Cross-Origin-Opener-Policy");r=null!=s?s:"null","same-origin"===r&&console.error(ta)}catch(e){console.error("Error checking Cross-Origin-Opener-Policy:",e.message),r="error"}}};class tl{constructor({url:e="https://keys.coinbase.com/connect",metadata:t,preference:s}){this.popup=null,this.listeners=new Map,this.postMessage=async e=>{(await this.waitForPopupLoaded()).postMessage(e,this.url.origin)},this.postRequestAndWaitForResponse=async e=>{let t=this.onMessage(({requestId:t})=>t===e.id);return this.postMessage(e),await t},this.onMessage=async e=>new Promise((t,s)=>{let n=s=>{if(s.origin!==this.url.origin)return;let i=s.data;e(i)&&(t(i),window.removeEventListener("message",n),this.listeners.delete(n))};window.addEventListener("message",n),this.listeners.set(n,{reject:s})}),this.disconnect=()=>{var e;(e=this.popup)&&!e.closed&&e.close(),this.popup=null,this.listeners.forEach(({reject:e},t)=>{e(x("Request rejected")),window.removeEventListener("message",t)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(this.popup=function(e){let t=(window.innerWidth-420)/2+window.screenX,s=(window.innerHeight-540)/2+window.screenY;var n=e;for(let[e,t]of Object.entries({sdkName:ed,sdkVersion:el,origin:window.location.origin,coop:tc()}))n.searchParams.append(e,t.toString());let i=`wallet_${crypto.randomUUID()}`,r=window.open(e,i,`width=420, height=540, left=${t}, top=${s}`);if(null==r||r.focus(),!r)throw k("Pop up window failed to open");return r}(this.url),this.onMessage(({event:e})=>"PopupUnload"===e).then(this.disconnect).catch(()=>{}),this.onMessage(({event:e})=>"PopupLoaded"===e).then(e=>{this.postMessage({requestId:e.id,data:{version:el,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw k();return this.popup})),this.url=new URL(e),this.metadata=t,this.preference=s}}var td=s(1786);class th extends td.b{}var tu=function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(s[n[i]]=e[n[i]]);return s};class tf extends th{constructor(e){var{metadata:t}=e,s=e.preference,{keysUrl:n}=s,i=tu(s,["keysUrl"]);super(),this.signer=null,this.isCoinbaseWallet=!0,this.metadata=t,this.preference=i,this.communicator=new tl({url:n,metadata:t,preference:i});const r=tn.getItem(ts);r&&(this.signer=this.initSigner(r))}async request(e){try{if(!function(e){if(!e||"object"!=typeof e||Array.isArray(e))throw w({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:s}=e;if("string"!=typeof t||0===t.length)throw w({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==s&&!Array.isArray(s)&&("object"!=typeof s||null===s))throw w({message:"'args.params' must be an object or array if provided.",data:e});switch(t){case"eth_sign":case"eth_signTypedData_v2":case"eth_subscribe":case"eth_unsubscribe":throw I()}}(e),!this.signer)switch(e.method){case"eth_requestAccounts":{let t=await this.requestSignerSelection(e),s=this.initSigner(t);await s.handshake(e),this.signer=s,tn.setItem(ts,t);break}case"wallet_sendCalls":{let t=this.initSigner("scw");await t.handshake({method:"handshake"});let s=await t.request(e);return await t.cleanup(),s}case"wallet_getCallsStatus":return eh(e,"http://rpc.wallet.coinbase.com");case"net_version":return 1;case"eth_chainId":return W(1);default:throw v("Must call 'eth_requestAccounts' before other methods")}return await this.signer.request(e)}catch(n){let e,t,{code:s}=n;return s===d&&this.disconnect(),Promise.reject((e=function(e,{shouldIncludeStack:t=!1}={}){var s,n;let i={};if(e&&"object"==typeof e&&!Array.isArray(e)&&y(e,"code")&&Number.isInteger(s=e.code)&&(f[s.toString()]||(n=s)>=-32099&&n<=-32e3))i.code=e.code,e.message&&"string"==typeof e.message?(i.message=e.message,y(e,"data")&&(i.data=e.data)):(i.message=g(i.code),i.data={originalError:b(e)});else i.code=c,i.message=m(e,"message")?e.message:p,i.data={originalError:b(e)};return t&&(i.stack=m(e,"stack")?e.stack:void 0),i}(function(e){var t;if("string"==typeof e)return{message:e,code:c};if(ev(e)){let s=e.errorMessage,n=null!=(t=e.errorCode)?t:s.match(/(denied|rejected)/i)?l:void 0;return Object.assign(Object.assign({},e),{message:s,code:n,data:{method:e.method}})}return e}(n),{shouldIncludeStack:!0}),(t=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors")).searchParams.set("version",el),t.searchParams.set("code",e.code.toString()),t.searchParams.set("message",e.message),Object.assign(Object.assign({},e),{docUrl:t.href})))}}async enable(){return console.warn('.enable() has been deprecated. Please use .request({ method: "eth_requestAccounts" }) instead.'),await this.request({method:"eth_requestAccounts"})}async disconnect(){var e;await (null==(e=this.signer)?void 0:e.cleanup()),this.signer=null,a.clearAll(),this.emit("disconnect",E("User initiated disconnection"))}requestSignerSelection(e){return ti({communicator:this.communicator,preference:this.preference,metadata:this.metadata,handshakeRequest:e,callback:this.emit.bind(this)})}initSigner(e){return function(e){let{signerType:t,metadata:s,communicator:n,callback:i}=e;switch(t){case"scw":return new eb({metadata:s,callback:i,communicator:n});case"walletlink":return new tt({metadata:s,callback:i})}}({signerType:e,metadata:this.metadata,communicator:this.communicator,callback:this.emit.bind(this)})}}let tp={options:"all"};function tg(e){new a("CBWSDK").setItem("VERSION",el),to();let t={metadata:{appName:e.appName||"Dapp",appLogoUrl:e.appLogoUrl||"",appChainIds:e.appChainIds||[]},preference:Object.assign(tp,null!=(s=e.preference)?s:{})};var s,n=t.preference;if(n){if(!["all","smartWalletOnly","eoaOnly"].includes(n.options))throw Error(`Invalid options: ${n.options}`);if(n.attribution&&void 0!==n.attribution.auto&&void 0!==n.attribution.dataSuffix)throw Error("Attribution cannot contain both auto and dataSuffix properties")}let i=null;return{getProvider:()=>{var e;let s;return i||(i=null!=(e=function({metadata:e,preference:t}){var s,n;let{appName:i,appLogoUrl:r,appChainIds:a}=e;if("smartWalletOnly"!==t.options){let e=globalThis.coinbaseWalletExtension;if(e)return null==(s=e.setAppInfo)||s.call(e,i,r,a,t),e}let o=function(){var e,t;try{let s=globalThis;return null!=(e=s.ethereum)?e:null==(t=s.top)?void 0:t.ethereum}catch(e){return}}();if(null==o?void 0:o.isCoinbaseBrowser)return null==(n=o.setAppInfo)||n.call(o,i,r,a,t),o}(s={metadata:t.metadata,preference:t.preference}))?e:new tf(s)),i}}}}}]);