@volter/twin-clerk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +102 -0
- package/client/clerk-js-dist/167_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/2172_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/2172_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/368_clerk.headless_b86dff_5.127.2.js +3 -0
- package/client/clerk-js-dist/377_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/4170_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/4170_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/437_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/5192_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/5192_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/553_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/5645_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/5645_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/623_clerk.headless_b86dff_5.127.2.js +42 -0
- package/client/clerk-js-dist/7067_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/7067_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/7502_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/7502_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/785_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/785_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/8043_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/825_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/825_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/890_clerk.headless_b86dff_5.127.2.js +2 -0
- package/client/clerk-js-dist/901_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/apiKeys_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/apiKeys_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/base-account-sdk_clerk.browser_0cc2cc_5.127.2.js +42 -0
- package/client/clerk-js-dist/base-account-sdk_clerk.headless.browser_540199_5.127.2.js +42 -0
- package/client/clerk-js-dist/base-account-sdk_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/blankcaptcha_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/blankcaptcha_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/checkout_clerk.browser_0cc2cc_5.127.2.js +9 -0
- package/client/clerk-js-dist/checkout_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/clerk.browser.js +19 -0
- package/client/clerk-js-dist/clerk.headless.browser.js +19 -0
- package/client/clerk-js-dist/clerk.headless.js +19 -0
- package/client/clerk-js-dist/clerk.js +809 -0
- package/client/clerk-js-dist/clerk.legacy.browser.js +1 -0
- package/client/clerk-js-dist/clerk.no-rhc.js +766 -0
- package/client/clerk-js-dist/coinbase-wallet-sdk_clerk.browser_0cc2cc_5.127.2.js +3 -0
- package/client/clerk-js-dist/coinbase-wallet-sdk_clerk.headless.browser_540199_5.127.2.js +3 -0
- package/client/clerk-js-dist/coinbase-wallet-sdk_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/cookieSuffix_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/cookieSuffix_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/cookieSuffix_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/cookieSuffix_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/copy-api-key-modal_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/copy-api-key-modal_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/createorganization_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/createorganization_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/enableOrganizationsPrompt_clerk.browser_0cc2cc_5.127.2.js +247 -0
- package/client/clerk-js-dist/enableOrganizationsPrompt_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/framework_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/framework_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/impersonationfab_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/impersonationfab_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/keylessPrompt_clerk.browser_0cc2cc_5.127.2.js +228 -0
- package/client/clerk-js-dist/keylessPrompt_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/oauthConsent_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/oauthConsent_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/onetap_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/onetap_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-api-keys-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-api-keys-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-billing-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-billing-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-plans-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-plans-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationprofile_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationprofile_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationswitcher_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationswitcher_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/payment-attempt-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/payment-attempt-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/planDetails_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/planDetails_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/prefetchorganizationlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/prefetchorganizationlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/pricingTable_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/pricingTable_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/query-core-vendors_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/query-core-vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/query-core-vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/revoke-api-key-modal_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/revoke-api-key-modal_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/sessionTasks_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/sessionTasks_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/signin_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/signin_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/signup_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/signup_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/statement-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/statement-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/stripe-vendors_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/stripe-vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/stripe-vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/subscriptionDetails_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/subscriptionDetails_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/taskChooseOrganization_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/taskChooseOrganization_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/taskResetPassword_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/taskResetPassword_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/taskSetupMFA_clerk.browser_0cc2cc_5.127.2.js +4 -0
- package/client/clerk-js-dist/taskSetupMFA_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/ui-common_clerk.browser_0cc2cc_5.127.2.js +124 -0
- package/client/clerk-js-dist/ui-common_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-api-keys-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-api-keys-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-billing-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-billing-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-plans-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-plans-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/useravatar_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/useravatar_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/userbutton_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/userbutton_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/userprofile_clerk.browser_0cc2cc_5.127.2.js +4 -0
- package/client/clerk-js-dist/userprofile_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/userverification_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/userverification_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/vendors_clerk.browser_0cc2cc_5.127.2.js +20 -0
- package/client/clerk-js-dist/vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/waitlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/waitlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/web3-solana-wallet-buttons_clerk.browser_0cc2cc_5.127.2.js +143 -0
- package/client/clerk-js-dist/web3-solana-wallet-buttons_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/zxcvbn-common_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/zxcvbn-common_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/zxcvbn-common_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/zxcvbn-ts-core_clerk.browser_0cc2cc_5.127.2.js +2 -0
- package/client/clerk-js-dist/zxcvbn-ts-core_clerk.headless.browser_540199_5.127.2.js +2 -0
- package/client/clerk-js-dist/zxcvbn-ts-core_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-mirror.css +72 -0
- package/client/clerk-mirror.tsx +204 -0
- package/client/clerk.browser.js +19 -0
- package/dist/client/clerk-js-dist/167_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/2172_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/2172_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/368_clerk.headless_b86dff_5.127.2.js +3 -0
- package/dist/client/clerk-js-dist/377_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/4170_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/4170_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/437_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/5192_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/5192_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/553_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/5645_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/5645_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/623_clerk.headless_b86dff_5.127.2.js +42 -0
- package/dist/client/clerk-js-dist/7067_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/7067_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/7502_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/7502_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/785_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/785_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/8043_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/825_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/825_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/890_clerk.headless_b86dff_5.127.2.js +2 -0
- package/dist/client/clerk-js-dist/901_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/apiKeys_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/apiKeys_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/base-account-sdk_clerk.browser_0cc2cc_5.127.2.js +42 -0
- package/dist/client/clerk-js-dist/base-account-sdk_clerk.headless.browser_540199_5.127.2.js +42 -0
- package/dist/client/clerk-js-dist/base-account-sdk_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/blankcaptcha_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/blankcaptcha_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/checkout_clerk.browser_0cc2cc_5.127.2.js +9 -0
- package/dist/client/clerk-js-dist/checkout_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/clerk.browser.js +19 -0
- package/dist/client/clerk-js-dist/clerk.headless.browser.js +19 -0
- package/dist/client/clerk-js-dist/clerk.headless.js +19 -0
- package/dist/client/clerk-js-dist/clerk.js +809 -0
- package/dist/client/clerk-js-dist/clerk.legacy.browser.js +1 -0
- package/dist/client/clerk-js-dist/clerk.no-rhc.js +766 -0
- package/dist/client/clerk-js-dist/coinbase-wallet-sdk_clerk.browser_0cc2cc_5.127.2.js +3 -0
- package/dist/client/clerk-js-dist/coinbase-wallet-sdk_clerk.headless.browser_540199_5.127.2.js +3 -0
- package/dist/client/clerk-js-dist/coinbase-wallet-sdk_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/cookieSuffix_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/cookieSuffix_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/cookieSuffix_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/cookieSuffix_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/copy-api-key-modal_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/copy-api-key-modal_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/createorganization_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/createorganization_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/enableOrganizationsPrompt_clerk.browser_0cc2cc_5.127.2.js +247 -0
- package/dist/client/clerk-js-dist/enableOrganizationsPrompt_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/framework_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/framework_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/impersonationfab_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/impersonationfab_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/keylessPrompt_clerk.browser_0cc2cc_5.127.2.js +228 -0
- package/dist/client/clerk-js-dist/keylessPrompt_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/oauthConsent_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/oauthConsent_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/onetap_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/onetap_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-api-keys-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-api-keys-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-billing-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-billing-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-plans-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-plans-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationprofile_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationprofile_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationswitcher_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationswitcher_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/payment-attempt-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/payment-attempt-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/planDetails_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/planDetails_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/prefetchorganizationlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/prefetchorganizationlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/pricingTable_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/pricingTable_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/query-core-vendors_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/query-core-vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/query-core-vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/revoke-api-key-modal_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/revoke-api-key-modal_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/sessionTasks_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/sessionTasks_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/signin_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/signin_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/signup_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/signup_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/statement-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/statement-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/stripe-vendors_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/stripe-vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/stripe-vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/subscriptionDetails_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/subscriptionDetails_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/taskChooseOrganization_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/taskChooseOrganization_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/taskResetPassword_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/taskResetPassword_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/taskSetupMFA_clerk.browser_0cc2cc_5.127.2.js +4 -0
- package/dist/client/clerk-js-dist/taskSetupMFA_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/ui-common_clerk.browser_0cc2cc_5.127.2.js +124 -0
- package/dist/client/clerk-js-dist/ui-common_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-api-keys-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-api-keys-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-billing-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-billing-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-plans-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-plans-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/useravatar_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/useravatar_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/userbutton_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/userbutton_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/userprofile_clerk.browser_0cc2cc_5.127.2.js +4 -0
- package/dist/client/clerk-js-dist/userprofile_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/userverification_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/userverification_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/vendors_clerk.browser_0cc2cc_5.127.2.js +20 -0
- package/dist/client/clerk-js-dist/vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/waitlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/waitlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/web3-solana-wallet-buttons_clerk.browser_0cc2cc_5.127.2.js +143 -0
- package/dist/client/clerk-js-dist/web3-solana-wallet-buttons_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/zxcvbn-common_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/zxcvbn-common_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/zxcvbn-common_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/zxcvbn-ts-core_clerk.browser_0cc2cc_5.127.2.js +2 -0
- package/dist/client/clerk-js-dist/zxcvbn-ts-core_clerk.headless.browser_540199_5.127.2.js +2 -0
- package/dist/client/clerk-js-dist/zxcvbn-ts-core_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-mirror.bundle.js +321 -0
- package/dist/client/clerk-mirror.css +72 -0
- package/dist/client/clerk-mirror.d.ts +33 -0
- package/dist/client/clerk-mirror.js +143 -0
- package/dist/client/clerk-mirror.tsx +204 -0
- package/dist/client/clerk.browser.js +19 -0
- package/dist/src/clerk-capabilities.d.ts +4 -0
- package/dist/src/clerk-capabilities.js +1132 -0
- package/dist/src/clerk-conformance.d.ts +32 -0
- package/dist/src/clerk-conformance.js +158 -0
- package/dist/src/clerk-connector.d.ts +170 -0
- package/dist/src/clerk-connector.js +223 -0
- package/dist/src/clerk-events.d.ts +55 -0
- package/dist/src/clerk-events.js +146 -0
- package/dist/src/clerk-fapi.d.ts +19 -0
- package/dist/src/clerk-fapi.js +665 -0
- package/dist/src/clerk-jwt.d.ts +109 -0
- package/dist/src/clerk-jwt.js +230 -0
- package/dist/src/clerk-mirror-ui.d.ts +34 -0
- package/dist/src/clerk-mirror-ui.js +160 -0
- package/dist/src/clerk-server.d.ts +35 -0
- package/dist/src/clerk-server.js +172 -0
- package/dist/src/clerk-twin.d.ts +28 -0
- package/dist/src/clerk-twin.js +1658 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +35 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/index.js +56 -0
- package/dist/test-fixtures/clerk-openapi-operations.SOURCE.md +16 -0
- package/dist/test-fixtures/clerk-openapi-operations.json +1989 -0
- package/package.json +76 -0
- package/src/clerk-capabilities.ts +1246 -0
- package/src/clerk-conformance.ts +172 -0
- package/src/clerk-connector.ts +268 -0
- package/src/clerk-events.ts +166 -0
- package/src/clerk-fapi.ts +673 -0
- package/src/clerk-jwt.ts +256 -0
- package/src/clerk-mirror-ui.ts +165 -0
- package/src/clerk-server.ts +175 -0
- package/src/clerk-twin.ts +1580 -0
- package/src/cli.ts +33 -0
- package/src/index.ts +94 -0
- package/test-fixtures/clerk-openapi-operations.SOURCE.md +16 -0
- package/test-fixtures/clerk-openapi-operations.json +1989 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(globalThis,()=>(()=>{var t={80753:function(t,e,i){"use strict";i.d(e,{O1:()=>l,Yt:()=>n,bf:()=>u,cD:()=>o,cc:()=>s,ci:()=>d,gR:()=>f,hz:()=>h,im:()=>c,v_:()=>r,w9:()=>a});let n=["redirect_url","after_sign_in_url","after_sign_up_url","sign_in_force_redirect_url","sign_in_fallback_redirect_url","sign_up_force_redirect_url","sign_up_fallback_redirect_url"],r="__clerk_modal_state",a="__clerk_satellite_url",s="suffixed_cookies",o="__clerk_synced",l={FORM_IDENTIFIER_NOT_FOUND:"form_identifier_not_found",FORM_PASSWORD_INCORRECT:"form_password_incorrect",FORM_PASSWORD_PWNED:"form_password_pwned",INVALID_STRATEGY_FOR_USER:"strategy_for_user_invalid",NOT_ALLOWED_TO_SIGN_UP:"not_allowed_to_sign_up",OAUTH_ACCESS_DENIED:"oauth_access_denied",OAUTH_EMAIL_DOMAIN_RESERVED_BY_SAML:"oauth_email_domain_reserved_by_saml",NOT_ALLOWED_ACCESS:"not_allowed_access",SAML_USER_ATTRIBUTE_MISSING:"saml_user_attribute_missing",USER_LOCKED:"user_locked",EXTERNAL_ACCOUNT_NOT_FOUND:"external_account_not_found",SESSION_EXISTS:"session_exists",SIGN_UP_MODE_RESTRICTED:"sign_up_mode_restricted",SIGN_UP_MODE_RESTRICTED_WAITLIST:"sign_up_restricted_waitlist",ENTERPRISE_SSO_USER_ATTRIBUTE_MISSING:"enterprise_sso_user_attribute_missing",ENTERPRISE_SSO_EMAIL_ADDRESS_DOMAIN_MISMATCH:"enterprise_sso_email_address_domain_mismatch",ENTERPRISE_SSO_HOSTED_DOMAIN_MISMATCH:"enterprise_sso_hosted_domain_mismatch",SAML_EMAIL_ADDRESS_DOMAIN_MISMATCH:"saml_email_address_domain_mismatch",INVITATION_ACCOUNT_NOT_EXISTS:"invitation_account_not_exists",ORGANIZATION_MEMBERSHIP_QUOTA_EXCEEDED_FOR_SSO:"organization_membership_quota_exceeded_for_sso",CAPTCHA_INVALID:"captcha_invalid",FRAUD_DEVICE_BLOCKED:"device_blocked",FRAUD_ACTION_BLOCKED:"action_blocked",SIGNUP_RATE_LIMIT_EXCEEDED:"signup_rate_limit_exceeded",USER_BANNED:"user_banned",USER_DEACTIVATED:"user_deactivated"},c=["email_address","phone_number","username"],u=["email_address","phone_number","username","first_name","last_name"],h=350,d={PUBLIC:"public",RESTRICTED:"restricted",WAITLIST:"waitlist"},f="2025-11-10"},24152:function(t,e,i){"use strict";i.d(e,{$C:()=>O,C:()=>f,Dg:()=>s,FI:()=>C,G6:()=>c,HE:()=>u,O7:()=>d,PQ:()=>x,RE:()=>P,Rz:()=>p,WC:()=>m,Ws:()=>g,Xp:()=>a,_5:()=>k,an:()=>r,cT:()=>b,ep:()=>v,k2:()=>l,lb:()=>_,qO:()=>y,qW:()=>S,rn:()=>h,sY:()=>A,xZ:()=>w,yI:()=>o}),i(92037);let n="ClerkJS:";function r(t,e){throw Error("".concat(n,' Network error at "').concat(t,'" - ').concat(e,". Please try again."))}function a(){throw Error("".concat(n," Something went wrong initializing Clerk."))}function s(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";throw Error("".concat(n," Something went wrong initializing Clerk in development mode.").concat(t&&" ".concat(t)))}function o(t){throw Error("".concat(n," Missing path option. The ").concat(t,' component was mounted with path routing so you need to specify the path where the component is mounted on e.g. path="/sign-in".'))}function l(t){throw Error("".concat(n," You must wrap your application in a <").concat(t,"> component."))}function c(){throw Error("".concat(n," Clerk is undefined"))}function u(){throw Error("".concat(n," The target element is empty. Provide a valid DOM element."))}function h(){throw Error("".concat(n," Missing FAPI client in resources."))}function d(t){throw Error("".concat(n," Something went wrong initializing Clerk during the ").concat(t," flow. Please contact support."))}function f(t){throw Error("".concat(n," You need to start a ").concat(t," flow by calling ").concat(t,".create() first."))}function p(t,e){throw Error("".concat(n,' Strategy "').concat(e,'" is not a valid strategy for ').concat(t,"."))}function _(t){throw Error("".concat(n," You need to start a ").concat(t," flow by calling ").concat(t,".create({ identifier: 'your web3 wallet address' }) first"))}function v(){throw Error("".concat(n," You need to start a SignIn flow by calling SignIn.create({ strategy: 'passkey' }) first"))}function m(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";throw Error("".concat(n," Missing '").concat(t,"' option"))}function g(t,e){throw Error("".concat(n," Response: ").concat(t||0," not supported yet.\nFor more information contact us at ").concat(e))}function y(){throw Error("".concat(n," Missing dev browser jwt. Please contact support."))}function w(){throw Error("".concat(n," Missing domain and proxyUrl. A satellite application needs to specify a domain or a proxyUrl."))}function b(){throw Error("".concat(n," The signInUrl needs to be on a different origin than your satellite application."))}function k(){throw Error("".concat(n," The signInUrl needs to have a absolute url format."))}function S(){throw Error("".concat(n," Missing signInUrl. A satellite application needs to specify the signInUrl for development instances."))}function A(){throw Error("".concat(n," Invalid redirect_url. A valid http or https url should be used for the redirection."))}function C(t){throw Error("".concat(n," Unable to retrieve a third party script").concat(t?" ".concat(t):"","."))}function x(t){throw Error("".concat(n," Invalid routing strategy, path cannot be used in tandem with ").concat(t,"."))}function P(t){throw Error("".concat(n," Calling ").concat(t,".reload is not currently supported. Please contact support."))}function O(t){throw Error("".concat(n," Missing publicKey. When calling 'navigator.credentials.").concat(t,"()' it is required to pass a publicKey object."))}},94898:function(t,e,i){"use strict";i.d(e,{Y:()=>a,U:()=>r});var n=i(49836);let r={TokenUpdate:"token:update",UserSignOut:"user:signOut",EnvironmentUpdate:"environment:update",SessionTokenResolved:"session:tokenResolved",ResourceUpdate:"resource:update",ResourceError:"resource:error",ResourceFetch:"resource:fetch"},a=(0,n.n)()},41397:function(t,e,i){"use strict";i.d(e,{Q8:()=>c,_W:()=>o,Nj:()=>n.N,gP:()=>l});var n=i(26057),r=i(90750),a=i(9737);let s="/payment_methods",o=async t=>{var e;let{orgId:i,...r}=t,o=null==(e=await a.i._fetch({path:n.N.path("".concat(s,"/initialize"),{orgId:i}),method:"POST",body:r}))?void 0:e.response;return new a.s_(o)},l=async t=>{var e;let{orgId:i,...r}=t,o=null==(e=await a.i._fetch({path:n.N.path(s,{orgId:i}),method:"POST",body:r}))?void 0:e.response;return new a.$p(o)},c=async t=>{let{orgId:e,...i}=null!=t?t:{};return await a.i._fetch({path:n.N.path(s,{orgId:e}),method:"GET",search:(0,r.C)(i)}).then(t=>{let{data:e,total_count:i}=null==t?void 0:t.response;return{total_count:i,data:e.map(t=>new a.$p(t))}})}},26057:function(t,e,i){"use strict";i.d(e,{N:()=>o});var n=i(92985),r=i(17431),a=i(90750),s=i(9737);class o{static path(t,e){let{orgId:i}=e||{};return"".concat(i?"/organizations/".concat(i):"/me").concat((0,n._)(o,o,l)).concat(t)}constructor(){(0,r._)(this,"getPlans",async t=>{let{for:e,...i}=t||{},r={...i,payer_type:"organization"===e?"org":"user"};return await s.i._fetch({path:"".concat((0,n._)(o,o,l),"/plans"),method:"GET",search:(0,a.C)(r)}).then(t=>{let{data:e,total_count:i}=t;return{total_count:i,data:e.map(t=>new s.Jc(t))}})}),(0,r._)(this,"getPlan",async t=>{let e=await s.i._fetch({path:"".concat((0,n._)(o,o,l),"/plans/").concat(t.id),method:"GET"});return new s.Jc(e)}),(0,r._)(this,"getSubscription",async t=>await s.i._fetch({path:o.path("/subscription",{orgId:t.orgId}),method:"GET"}).then(t=>new s.u5(null==t?void 0:t.response))),(0,r._)(this,"getStatements",async t=>{let{orgId:e,...i}=t;return await s.i._fetch({path:o.path("/statements",{orgId:e}),method:"GET",search:(0,a.C)(i)}).then(t=>{let{data:e,total_count:i}=null==t?void 0:t.response;return{total_count:i,data:e.map(t=>new s.Eo(t))}})}),(0,r._)(this,"getStatement",async t=>{var e;let i=null==(e=await s.i._fetch({path:o.path("/statements/".concat(t.id),{orgId:t.orgId}),method:"GET"}))?void 0:e.response;return new s.Eo(i)}),(0,r._)(this,"getPaymentAttempts",async t=>{let{orgId:e,...i}=t;return await s.i._fetch({path:o.path("/payment_attempts",{orgId:e}),method:"GET",search:(0,a.C)(i)}).then(t=>{let{data:e,total_count:i}=t;return{total_count:i,data:e.map(t=>new s.ig(t))}})}),(0,r._)(this,"getPaymentAttempt",async t=>{let e=await s.i._fetch({path:o.path("/payment_attempts/".concat(t.id),{orgId:t.orgId}),method:"GET"});return new s.ig(e)}),(0,r._)(this,"startCheckout",async t=>{var e;let{orgId:i,...n}=t,r=null==(e=await s.i._fetch({path:o.path("/checkouts",{orgId:i}),method:"POST",body:n}))?void 0:e.response;return new s._h(r)})}}var l={writable:!0,value:"/billing"}},60104:function(t,e,i){"use strict";i.d(e,{T:()=>s});var n=i(17431),r=i(46630),a=i(9737);class s extends a.i{fromJSON(t){return t&&(this.claimedAt=this.withDefault(t.claimed_at?(0,r.V)(t.claimed_at):null,this.claimedAt),this.reverification=this.withDefault(t.reverification,this.reverification),this.singleSessionMode=this.withDefault(t.single_session_mode,this.singleSessionMode),this.preferredChannels=this.withDefault(t.preferred_channels,this.preferredChannels),this.sessionMinter=this.withDefault(t.session_minter,this.sessionMinter)),this}__internal_toSnapshot(){var t;return{claimed_at:this.claimedAt?this.claimedAt.getTime():null,id:null!=(t=this.id)?t:"",object:"auth_config",reverification:this.reverification,single_session_mode:this.singleSessionMode,session_minter:this.sessionMinter}}constructor(t=null){super(),(0,n._)(this,"claimedAt",null),(0,n._)(this,"reverification",!1),(0,n._)(this,"singleSessionMode",!1),(0,n._)(this,"preferredChannels",null),(0,n._)(this,"sessionMinter",!1),this.fromJSON(t)}}},28069:function(t,e,i){"use strict";i.d(e,{i:()=>d});var n=i(17431);i(87945),i(56113),i(50725);var r=i(58776),a=i(41024),s=i(43227),o=i(46805),l=i(24152),c=i(9423),u=i(9737);class h{static getInstance(){return h.instance||(h.instance=new h(u.KU,c.E)),h.instance}async execute(t,e){if(this.captchaAttemptsExceeded())throw new a.w$("Security verification failed. Please try again by refreshing the page, clearing your browser cookies, or using a different web browser.",{code:"captcha_client_attempts_exceeded"});try{return this.inflightException&&await this.inflightException,await e()}catch(r){var i;let n;if(!(0,a.kD)(r)||(0,a.uX)(r)&&"network_error"===r.code||(null==(i=r.errors[0])?void 0:i.code)!=="requires_captcha")throw r;if(this.inflightException)return await this.inflightException,await e();this.inflightException=new Promise(t=>n=t);try{let e=await this.managedChallenge(t);(null==e?void 0:e.captchaError)!=="modal_component_not_ready"&&(await this.client.getOrCreateInstance().__internal_sendCaptchaToken(e),this.captchaRetryCount=0)}catch(t){throw this.captchaRetryCount++,t}finally{n(),this.inflightException=null}return await e()}}managedChallenge(t){return new this.CaptchaChallengeImpl(t).managedInModal({action:"verify"})}constructor(t,e){(0,n._)(this,"client",void 0),(0,n._)(this,"CaptchaChallengeImpl",void 0),(0,n._)(this,"inflightException",void 0),(0,n._)(this,"captchaRetryCount",void 0),(0,n._)(this,"MAX_RETRY_ATTEMPTS",void 0),(0,n._)(this,"captchaAttemptsExceeded",void 0),this.client=t,this.CaptchaChallengeImpl=e,this.inflightException=null,this.captchaRetryCount=0,this.MAX_RETRY_ATTEMPTS=3,this.captchaAttemptsExceeded=()=>this.captchaRetryCount>=this.MAX_RETRY_ATTEMPTS}}(0,n._)(h,"instance",void 0);class d{static get fapiClient(){return d.clerk.getFapiClient()}async reload(t){let{rotatingTokenNonce:e}=t||{};return this._baseGet({forceUpdateClient:!0,rotatingTokenNonce:e})}isNew(){return!this.id}static async _fetch(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h.getInstance().execute(this.clerk,()=>this._baseFetch(t,e))}static async _baseFetch(t){let e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d.fapiClient||(0,l.rn)();let{fetchMaxTries:n}=i;try{e=await d.fapiClient.request(t,{fetchMaxTries:n})}catch(e){if(this.shouldRethrowOfflineNetworkErrors())throw new a.w$((null==e?void 0:e.message)||e,{code:"network_error"});if(!(0,r.af)())return o.Z.warn("Network request failed while offline, returning null",{method:t.method,path:t.path},"baseResource"),null;throw e}let{payload:c,status:u,statusText:h,headers:f}=e;if(f){let t=f.get("x-country");this.clerk.__internal_setCountry(t?t.toLowerCase():null)}if(("GET"!==t.method||i.forceUpdateClient)&&this._updateClient(c),u>=200&&u<=299)return c;if(u>=400){var p,_;let t=null==c?void 0:c.errors,e=null==t||null==(p=t[0])?void 0:p.long_message,i=null==t||null==(_=t[0])?void 0:_.code;401===u&&"requires_captcha"!==i&&await d.clerk.handleUnauthenticated(),function(t,e){if(!e||!e[0])return;let i=e[0],n=i.long_message;if("origin_invalid"===i.code&&(0,s.mA)(d.clerk.publishableKey)){let i=d.clerk.frontendApi.replace("clerk.","");throw new a.gO('Clerk: Production Keys are only allowed for domain "'.concat(i,'". \nAPI Error: ').concat(n),{data:e,status:t})}}(u,t);let n={data:t,status:u};if(429===u&&f){let t=f.get("retry-after");if(t){let e=parseInt(t,10);isNaN(e)||(n.retryAfter=e)}}throw new a.gO(e||h,n)}return null}static _updateClient(t){var e;if(!t)return;let i=t.client||(null==(e=t.meta)?void 0:e.client);i&&d.clerk&&d.clerk.updateClient(u.KU.getOrCreateInstance().fromJSON(i))}path(t){let e=this.pathRoot;if(this.isNew())return e;let i=e.replace(/[^/]$/,"$&/")+encodeURIComponent(this.id);return t?i.replace(/[^/]$/,"$&/")+encodeURIComponent(t):i}withDefault(t,e){return null!=t?t:e}async _baseGet(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=await d._fetch({method:"GET",path:this.path(),rotatingTokenNonce:t.rotatingTokenNonce,signal:t.abortSignal},t);return this.fromJSON((null==e?void 0:e.response)||e)}async _baseMutate(t){let{action:e,body:i,method:n,path:r}=t,a=await d._fetch({method:n,path:r||this.path(e),body:i});return this.fromJSON((null==a?void 0:a.response)||a)}async _baseMutateBypass(t){let{action:e,body:i,method:n,path:r}=t,a=await d._baseFetch({method:n,path:r||this.path(e),body:i});return this.fromJSON((null==a?void 0:a.response)||a)}async _basePost(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._baseMutate({...t,method:"POST"})}async _basePostBypass(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._baseMutateBypass({...t,method:"POST"})}async _basePut(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._baseMutate({...t,method:"PUT"})}async _basePatch(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._baseMutate({...t,method:"PATCH"})}async _baseDelete(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await this._baseMutate({...t,method:"DELETE"})}static shouldRethrowOfflineNetworkErrors(){var t,e;let i=null==(e=d.clerk)||null==(t=e.__internal_getOption)?void 0:t.call(e,"experimental");return(null==i?void 0:i.rethrowOfflineNetworkErrors)||!1}constructor(){(0,n._)(this,"id",void 0),(0,n._)(this,"pathRoot","")}}(0,n._)(d,"clerk",void 0)},29401:function(t,e,i){"use strict";i.d(e,{K:()=>o});var n=i(17431);i(50725);var r=i(46630),a=i(7292),s=i(9737);class o extends s.i{static getOrCreateInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return o.instance||(o.instance=new o(t)),o.instance}static clearInstance(){o.instance=null}static isClientResource(t){return!!t&&t instanceof o}get signUpAttempt(){return this.signUp}get signInAttempt(){return this.signIn}get activeSessions(){return this.sessions.filter(t=>"active"===t.status)}get signedInSessions(){return this.sessions.filter(t=>"active"===t.status||"pending"===t.status)}create(){return this._basePut()}fetch(){let{fetchMaxTries:t,abortSignal:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._baseGet({fetchMaxTries:t,abortSignal:e})}async destroy(){return this._baseDelete({path:"/client"}).then(()=>{a.O.clear(),this.id="",this.sessions=[],this.signUp=new s.Mo(null),this.signIn=new s.cL(null),this.lastActiveSessionId=null,this.lastAuthenticationStrategy=null,this.cookieExpiresAt=null,this.createdAt=null,this.updatedAt=null})}removeSessions(){return this._baseDelete({path:this.path()+"/sessions"}).then(t=>(a.O.clear(),t))}clearCache(){return this.sessions.forEach(t=>t.clearCache())}isEligibleForTouch(){return!!this.cookieExpiresAt&&this.cookieExpiresAt.getTime()-Date.now()<=6912e5}buildTouchUrl(t){let{redirectUrl:e}=t;return s.i.fapiClient.buildUrl({method:"GET",path:"/client/touch",pathPrefix:"v1",search:{redirect_url:e.toString()}}).toString()}__internal_sendCaptchaToken(t){return this._basePostBypass({body:t,path:this.path()+"/verify"})}fromJSON(t){return t&&(this.id=t.id,this.sessions=(t.sessions||[]).map(t=>new s.z_(t)),this.signUp=new s.Mo(t.sign_up),this.signIn=new s.cL(t.sign_in),this.lastActiveSessionId=t.last_active_session_id,this.captchaBypass=t.captcha_bypass||!1,this.cookieExpiresAt=t.cookie_expires_at?(0,r.V)(t.cookie_expires_at):null,this.lastAuthenticationStrategy=t.last_authentication_strategy||null,this.createdAt=(0,r.V)(t.created_at||void 0),this.updatedAt=(0,r.V)(t.updated_at||void 0)),this}__internal_toSnapshot(){var t,e,i,n,r;return{object:"client",id:this.id||"",sessions:this.sessions.map(t=>t.__internal_toSnapshot()),sign_up:this.signUp.__internal_toSnapshot(),sign_in:this.signIn.__internal_toSnapshot(),last_active_session_id:this.lastActiveSessionId,captcha_bypass:this.captchaBypass,cookie_expires_at:this.cookieExpiresAt?this.cookieExpiresAt.getTime():null,last_authentication_strategy:null!=(i=this.lastAuthenticationStrategy)?i:null,created_at:null!=(n=null==(t=this.createdAt)?void 0:t.getTime())?n:null,updated_at:null!=(r=null==(e=this.updatedAt)?void 0:e.getTime())?r:null}}path(){return this.pathRoot}constructor(t=null){super(),(0,n._)(this,"pathRoot","/client"),(0,n._)(this,"sessions",[]),(0,n._)(this,"signUp",new s.Mo),(0,n._)(this,"signIn",new s.cL),(0,n._)(this,"lastActiveSessionId",null),(0,n._)(this,"captchaBypass",!1),(0,n._)(this,"cookieExpiresAt",null),(0,n._)(this,"lastAuthenticationStrategy",null),(0,n._)(this,"createdAt",null),(0,n._)(this,"updatedAt",null),this.fromJSON(t)}}(0,n._)(o,"instance",void 0)},74498:function(t,e,i){"use strict";i.d(e,{l:()=>a});var n=i(17431),r=i(9737);class a extends r.i{fromJSON(t){return t&&(this.afterCreateOrganizationUrl=this.withDefault(t.after_create_organization_url,this.afterCreateOrganizationUrl),this.afterJoinWaitlistUrl=this.withDefault(t.after_join_waitlist_url,this.afterJoinWaitlistUrl),this.afterLeaveOrganizationUrl=this.withDefault(t.after_leave_organization_url,this.afterLeaveOrganizationUrl),this.afterSignInUrl=this.withDefault(t.after_sign_in_url,this.afterSignInUrl),this.afterSignOutAllUrl=this.withDefault(t.after_sign_out_all_url,this.afterSignOutAllUrl),this.afterSignOutOneUrl=this.withDefault(t.after_sign_out_one_url,this.afterSignOutOneUrl),this.afterSignUpUrl=this.withDefault(t.after_sign_up_url,this.afterSignUpUrl),this.afterSwitchSessionUrl=this.withDefault(t.after_switch_session_url,this.afterSwitchSessionUrl),this.applicationName=this.withDefault(t.application_name,this.applicationName),this.branded=this.withDefault(t.branded,this.branded),this.captchaHeartbeat=this.withDefault(t.captcha_heartbeat,this.captchaHeartbeat),this.captchaHeartbeatIntervalMs=this.withDefault(t.captcha_heartbeat_interval_ms,this.captchaHeartbeatIntervalMs),this.captchaOauthBypass=this.withDefault(t.captcha_oauth_bypass,this.captchaOauthBypass),this.captchaProvider=this.withDefault(t.captcha_provider,this.captchaProvider),this.captchaPublicKey=this.withDefault(t.captcha_public_key,this.captchaPublicKey),this.captchaPublicKeyInvisible=this.withDefault(t.captcha_public_key_invisible,this.captchaPublicKeyInvisible),this.captchaWidgetType=this.withDefault(t.captcha_widget_type,this.captchaWidgetType),this.clerkJSVersion=this.withDefault(t.clerk_js_version,this.clerkJSVersion),this.createOrganizationUrl=this.withDefault(t.create_organization_url,this.createOrganizationUrl),this.faviconImageUrl=this.withDefault(t.favicon_image_url,this.faviconImageUrl),this.googleOneTapClientId=this.withDefault(t.google_one_tap_client_id,this.googleOneTapClientId),this.homeUrl=this.withDefault(t.home_url,this.homeUrl),this.id=this.withDefault(t.id,this.id),this.instanceEnvironmentType=this.withDefault(t.instance_environment_type,this.instanceEnvironmentType),this.logoImageUrl=this.withDefault(t.logo_image_url,this.logoImageUrl),this.organizationProfileUrl=this.withDefault(t.organization_profile_url,this.organizationProfileUrl),this.preferredSignInStrategy=this.withDefault(t.preferred_sign_in_strategy,this.preferredSignInStrategy),this.privacyPolicyUrl=this.withDefault(t.privacy_policy_url,this.privacyPolicyUrl),this.showDevModeWarning=this.withDefault(t.show_devmode_warning,this.showDevModeWarning),this.signInUrl=this.withDefault(t.sign_in_url,this.signInUrl),this.signUpUrl=this.withDefault(t.sign_up_url,this.signUpUrl),this.supportEmail=this.withDefault(t.support_email,this.supportEmail),this.termsUrl=this.withDefault(t.terms_url,this.termsUrl),this.theme=this.withDefault(t.theme,this.theme),this.userProfileUrl=this.withDefault(t.user_profile_url,this.userProfileUrl),this.waitlistUrl=this.withDefault(t.waitlist_url,this.waitlistUrl)),this}__internal_toSnapshot(){return{object:"display_config",after_create_organization_url:this.afterCreateOrganizationUrl,after_join_waitlist_url:this.afterJoinWaitlistUrl,after_leave_organization_url:this.afterLeaveOrganizationUrl,after_sign_in_url:this.afterSignInUrl,after_sign_out_all_url:this.afterSignOutAllUrl,after_sign_out_one_url:this.afterSignOutOneUrl,after_sign_up_url:this.afterSignUpUrl,after_switch_session_url:this.afterSwitchSessionUrl,application_name:this.applicationName,branded:this.branded,captcha_heartbeat_interval_ms:this.captchaHeartbeatIntervalMs,captcha_heartbeat:this.captchaHeartbeat,captcha_oauth_bypass:this.captchaOauthBypass,captcha_provider:this.captchaProvider,captcha_public_key_invisible:this.captchaPublicKeyInvisible,captcha_public_key:this.captchaPublicKey,captcha_widget_type:this.captchaWidgetType,clerk_js_version:this.clerkJSVersion,create_organization_url:this.createOrganizationUrl,favicon_image_url:this.faviconImageUrl,google_one_tap_client_id:this.googleOneTapClientId,home_url:this.homeUrl,id:this.id,instance_environment_type:this.instanceEnvironmentType,logo_image_url:this.logoImageUrl,organization_profile_url:this.organizationProfileUrl,preferred_sign_in_strategy:this.preferredSignInStrategy,privacy_policy_url:this.privacyPolicyUrl,show_devmode_warning:this.showDevModeWarning,sign_in_url:this.signInUrl,sign_up_url:this.signUpUrl,support_email:this.supportEmail,terms_url:this.termsUrl,theme:this.theme,user_profile_url:this.userProfileUrl,waitlist_url:this.waitlistUrl}}constructor(t=null){super(),(0,n._)(this,"afterCreateOrganizationUrl",""),(0,n._)(this,"afterJoinWaitlistUrl",""),(0,n._)(this,"afterLeaveOrganizationUrl",""),(0,n._)(this,"afterSignInUrl",""),(0,n._)(this,"afterSignOutAllUrl",""),(0,n._)(this,"afterSignOutOneUrl",""),(0,n._)(this,"afterSignOutUrl",""),(0,n._)(this,"afterSignUpUrl",""),(0,n._)(this,"afterSwitchSessionUrl",""),(0,n._)(this,"applicationName",""),(0,n._)(this,"backendHost",""),(0,n._)(this,"branded",!1),(0,n._)(this,"captchaHeartbeat",!1),(0,n._)(this,"captchaHeartbeatIntervalMs",void 0),(0,n._)(this,"captchaOauthBypass",["oauth_google","oauth_microsoft","oauth_apple"]),(0,n._)(this,"captchaProvider","turnstile"),(0,n._)(this,"captchaPublicKey",null),(0,n._)(this,"captchaPublicKeyInvisible",null),(0,n._)(this,"captchaWidgetType",null),(0,n._)(this,"clerkJSVersion",void 0),(0,n._)(this,"createOrganizationUrl",""),(0,n._)(this,"experimental__forceOauthFirst",void 0),(0,n._)(this,"faviconImageUrl",""),(0,n._)(this,"googleOneTapClientId",void 0),(0,n._)(this,"homeUrl",""),(0,n._)(this,"id",""),(0,n._)(this,"instanceEnvironmentType",""),(0,n._)(this,"logoImageUrl",""),(0,n._)(this,"organizationProfileUrl",""),(0,n._)(this,"preferredSignInStrategy","password"),(0,n._)(this,"privacyPolicyUrl",""),(0,n._)(this,"showDevModeWarning",!1),(0,n._)(this,"signInUrl",""),(0,n._)(this,"signUpUrl",""),(0,n._)(this,"supportEmail",""),(0,n._)(this,"termsUrl",""),(0,n._)(this,"theme",{}),(0,n._)(this,"userProfileUrl",""),(0,n._)(this,"waitlistUrl",""),this.fromJSON(t)}}},82986:function(t,e,i){"use strict";i.d(e,{b:()=>s});var n=i(17431);i(50725),i(92037);var r=i(51036),a=i(9737);class s extends a.i{create(){return this._basePost({body:{email_address:this.emailAddress}})}fromJSON(t){return t&&(this.id=t.id,this.emailAddress=t.email_address,this.verification=new a.GX(t.verification),this.matchesSsoConnection=t.matches_sso_connection,this.linkedTo=(t.linked_to||[]).map(t=>new a.YN(t))),this}__internal_toSnapshot(){return{object:"email_address",id:this.id,email_address:this.emailAddress,verification:this.verification.__internal_toSnapshot(),linked_to:this.linkedTo.map(t=>t.__internal_toSnapshot()),matches_sso_connection:this.matchesSsoConnection}}constructor(t,e){super(),(0,n._)(this,"id",void 0),(0,n._)(this,"emailAddress",""),(0,n._)(this,"matchesSsoConnection",!1),(0,n._)(this,"linkedTo",[]),(0,n._)(this,"verification",void 0),(0,n._)(this,"prepareVerification",t=>this._basePost({action:"prepare_verification",body:{...t}})),(0,n._)(this,"attemptVerification",t=>{let{code:e}=t||{};return this._basePost({action:"attempt_verification",body:{code:e}})}),(0,n._)(this,"createEmailLinkFlow",()=>{let{run:t,stop:e}=(0,r.W)();return{startEmailLinkFlow:async i=>{let{redirectUrl:n}=i;return await this.prepareVerification({strategy:"email_link",redirectUrl:n}),new Promise((i,n)=>{t(()=>this.reload().then(t=>{"verified"===t.verification.status&&(e(),i(t))}).catch(t=>{e(),n(t)}))})},cancelEmailLinkFlow:e}}),(0,n._)(this,"createEnterpriseSSOLinkFlow",()=>{let{run:t,stop:e}=(0,r.W)();return{startEnterpriseSSOLinkFlow:async i=>{let{redirectUrl:n}=i;if(!(await this.prepareVerification({strategy:"enterprise_sso",redirectUrl:n})).verification.externalVerificationRedirectURL)throw Error("Unexpected: External verification redirect URL is missing");return new Promise((i,n)=>{t(()=>this.reload().then(t=>{"verified"===t.verification.status&&(e(),i(t))}).catch(t=>{e(),n(t)}))})},cancelEnterpriseSSOLinkFlow:e}}),(0,n._)(this,"destroy",()=>this._baseDelete()),(0,n._)(this,"toString",()=>this.emailAddress),this.pathRoot=e,this.fromJSON(t)}}},39357:function(t,e,i){"use strict";i.d(e,{q:()=>l});var n=i(17431),r=i(94898),a=i(9737);class s extends a.i{fromJSON(t){return t&&(this.user_api_keys_enabled=t.user_api_keys_enabled,this.orgs_api_keys_enabled=t.orgs_api_keys_enabled),this}__internal_toSnapshot(){return{user_api_keys_enabled:this.user_api_keys_enabled,orgs_api_keys_enabled:this.orgs_api_keys_enabled}}constructor(t=null){super(),(0,n._)(this,"user_api_keys_enabled",!1),(0,n._)(this,"orgs_api_keys_enabled",!1),this.fromJSON(t)}}class o extends a.i{fromJSON(t){return t&&(t.actions&&(this.actions.adminDelete=this.withDefault(t.actions.admin_delete,this.actions.adminDelete)),t.domains&&(this.domains.enabled=this.withDefault(t.domains.enabled,this.domains.enabled),this.domains.enrollmentModes=this.withDefault(t.domains.enrollment_modes,this.domains.enrollmentModes),this.domains.defaultRole=this.withDefault(t.domains.default_role,this.domains.defaultRole)),t.slug&&(this.slug.disabled=this.withDefault(t.slug.disabled,this.slug.disabled)),t.organization_creation_defaults&&(this.organizationCreationDefaults.enabled=this.withDefault(t.organization_creation_defaults.enabled,this.organizationCreationDefaults.enabled)),this.enabled=this.withDefault(t.enabled,this.enabled),this.maxAllowedMemberships=this.withDefault(t.max_allowed_memberships,this.maxAllowedMemberships),this.forceOrganizationSelection=this.withDefault(t.force_organization_selection,this.forceOrganizationSelection)),this}__internal_toSnapshot(){return{actions:{admin_delete:this.actions.adminDelete},domains:{enabled:this.domains.enabled,enrollment_modes:this.domains.enrollmentModes,default_role:this.domains.defaultRole},enabled:this.enabled,max_allowed_memberships:this.maxAllowedMemberships}}constructor(t=null){super(),(0,n._)(this,"actions",{adminDelete:!1}),(0,n._)(this,"domains",{enabled:!1,enrollmentModes:[],defaultRole:null}),(0,n._)(this,"slug",{disabled:!1}),(0,n._)(this,"organizationCreationDefaults",{enabled:!1}),(0,n._)(this,"enabled",!1),(0,n._)(this,"maxAllowedMemberships",1),(0,n._)(this,"forceOrganizationSelection",void 0),this.fromJSON(t)}}class l extends a.i{static getInstance(){return l.instance||(l.instance=new l),l.instance}fromJSON(t){return t&&(this.authConfig=new a.Tg(t.auth_config),this.displayConfig=new a.lR(t.display_config),this.maintenanceMode=this.withDefault(t.maintenance_mode,this.maintenanceMode),this.clientDebugMode=this.withDefault(t.client_debug_mode,this.clientDebugMode),this.partitionedCookies=this.withDefault(t.partitioned_cookies,this.partitionedCookies),this.organizationSettings=new o(t.organization_settings),this.userSettings=new a.PG(t.user_settings),this.commerceSettings=new a.mM(t.commerce_settings),this.apiKeysSettings=new s(t.api_keys_settings),this.protectConfig=new a.W0(t.protect_config)),this}fetch(){let{touch:t,fetchMaxTries:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{touch:!1};return(t?this._basePatch({}):this._baseGet({fetchMaxTries:e})).then(t=>(r.Y.emit(r.U.EnvironmentUpdate,null),t))}__internal_toSnapshot(){var t;return{object:"environment",auth_config:this.authConfig.__internal_toSnapshot(),display_config:this.displayConfig.__internal_toSnapshot(),id:null!=(t=this.id)?t:"",maintenance_mode:this.maintenanceMode,client_debug_mode:this.clientDebugMode,partitioned_cookies:this.partitionedCookies,organization_settings:this.organizationSettings.__internal_toSnapshot(),user_settings:this.userSettings.__internal_toSnapshot(),commerce_settings:this.commerceSettings.__internal_toSnapshot(),api_keys_settings:this.apiKeysSettings.__internal_toSnapshot(),protect_config:this.protectConfig.__internal_toSnapshot()}}constructor(t=null){super(),(0,n._)(this,"authConfig",new a.Tg),(0,n._)(this,"displayConfig",new a.lR),(0,n._)(this,"maintenanceMode",!1),(0,n._)(this,"clientDebugMode",!1),(0,n._)(this,"partitionedCookies",!1),(0,n._)(this,"pathRoot","/environment"),(0,n._)(this,"userSettings",new a.PG),(0,n._)(this,"organizationSettings",new o),(0,n._)(this,"commerceSettings",new a.mM),(0,n._)(this,"apiKeysSettings",new s),(0,n._)(this,"protectConfig",new a.W0),(0,n._)(this,"isDevelopmentOrStaging",()=>!this.isProduction()),(0,n._)(this,"isProduction",()=>"production"===this.displayConfig.instanceEnvironmentType),(0,n._)(this,"isSingleSession",()=>this.authConfig.singleSessionMode),(0,n._)(this,"onWindowLocationHost",()=>this.displayConfig.backendHost===window.location.host),this.fromJSON(t)}}(0,n._)(l,"instance",void 0)},56516:function(t,e,i){"use strict";i.d(e,{z:()=>o});var n=i(17431);i(87945),i(56113);var r=i(72642),a=i(28069),s=i(69596);class o extends a.i{fromJSON(t){return t&&(this.id=t.id,this.identificationId=t.identification_id,this.providerUserId=t.provider_user_id,this.approvedScopes=t.approved_scopes,this.imageUrl=t.image_url,this.emailAddress=t.email_address,this.firstName=t.first_name,this.lastName=t.last_name,this.provider=(t.provider||"").replace("oauth_",""),this.username=t.username,this.phoneNumber=t.phone_number,this.publicMetadata=t.public_metadata,this.label=t.label,t.verification&&(this.verification=new s.GX(t.verification))),this}__internal_toSnapshot(){var t;return{object:"external_account",id:this.id,identification_id:this.identificationId,provider:this.provider,provider_user_id:this.providerUserId,email_address:this.emailAddress,approved_scopes:this.approvedScopes,first_name:this.firstName,last_name:this.lastName,image_url:this.imageUrl,username:this.username,phone_number:this.phoneNumber,public_metadata:this.publicMetadata,label:this.label,verification:(null==(t=this.verification)?void 0:t.__internal_toSnapshot())||null}}providerSlug(){return this.provider}providerTitle(){return[(0,r.MI)(this.providerSlug()),"Account"].join(" ")}accountIdentifier(){return this.username||this.emailAddress||this.label}constructor(t,e){super(),(0,n._)(this,"id",void 0),(0,n._)(this,"identificationId",void 0),(0,n._)(this,"provider",void 0),(0,n._)(this,"providerUserId",""),(0,n._)(this,"emailAddress",""),(0,n._)(this,"approvedScopes",""),(0,n._)(this,"firstName",""),(0,n._)(this,"lastName",""),(0,n._)(this,"imageUrl",""),(0,n._)(this,"username",""),(0,n._)(this,"phoneNumber",""),(0,n._)(this,"publicMetadata",{}),(0,n._)(this,"label",""),(0,n._)(this,"verification",null),(0,n._)(this,"reauthorize",t=>{let{additionalScopes:e,redirectUrl:i}=t||{};return this._basePatch({action:"reauthorize",body:{additional_scope:e,redirect_url:i}})}),(0,n._)(this,"destroy",()=>this._baseDelete()),this.pathRoot=e,this.fromJSON(t)}}},71956:function(t,e,i){"use strict";i.d(e,{Y:()=>a});var n=i(17431),r=i(28069);class a extends r.i{fromJSON(t){return t&&(this.id=t.id,this.type=t.type),this}__internal_toSnapshot(){return{object:"identification_link",id:this.id,type:this.type}}constructor(t){super(),(0,n._)(this,"id",void 0),(0,n._)(this,"type",void 0),this.fromJSON(t)}}},36890:function(t,e,i){"use strict";i.d(e,{E:()=>a});var n=i(17431);i(50725);var r=i(9737);class a extends r.i{static async create(t){var e;let i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=n;return"string"==typeof n.file?(s=n.file,i=new Headers({"Content-Type":"application/octet-stream"})):n.file&&(s=new FormData).append("file",n.file),new a(null==(e=await r.i._fetch({path:t,method:"POST",body:s,headers:i}))?void 0:e.response)}static async delete(t){var e;return new a(null==(e=await r.i._fetch({path:t,method:"DELETE"}))?void 0:e.response)}fromJSON(t){return t&&(this.id=t.id,this.name=t.name,this.publicUrl=t.public_url),this}constructor(t){super(),(0,n._)(this,"id",void 0),(0,n._)(this,"name",null),(0,n._)(this,"publicUrl",null),this.fromJSON(t)}}},19210:function(t,e,i){"use strict";i.d(e,{B:()=>a});var n=i(17431);i(56113);var r=i(9737);class a extends r.i{fromJSON(t){return t&&(this.id=t.id,this.phoneNumber=t.phone_number,this.reservedForSecondFactor=t.reserved_for_second_factor,this.defaultSecondFactor=t.default_second_factor,this.verification=new r.GX(t.verification),this.linkedTo=(t.linked_to||[]).map(t=>new r.YN(t)),this.backupCodes=t.backup_codes),this}__internal_toSnapshot(){return{object:"phone_number",id:this.id||"",phone_number:this.phoneNumber,reserved_for_second_factor:this.reservedForSecondFactor,default_second_factor:this.defaultSecondFactor,verification:this.verification.__internal_toSnapshot(),linked_to:this.linkedTo.map(t=>t.__internal_toSnapshot()),backup_codes:this.backupCodes}}constructor(t,e){super(),(0,n._)(this,"id",void 0),(0,n._)(this,"phoneNumber",""),(0,n._)(this,"reservedForSecondFactor",!1),(0,n._)(this,"defaultSecondFactor",!1),(0,n._)(this,"linkedTo",[]),(0,n._)(this,"verification",void 0),(0,n._)(this,"backupCodes",void 0),(0,n._)(this,"create",()=>this._basePost({body:{phone_number:this.phoneNumber}})),(0,n._)(this,"prepareVerification",()=>this._basePost({action:"prepare_verification",body:{strategy:"phone_code"}})),(0,n._)(this,"attemptVerification",t=>{let{code:e}=t||{};return this._basePost({action:"attempt_verification",body:{code:e}})}),(0,n._)(this,"setReservedForSecondFactor",t=>{let{reserved:e}=t||{};return this._basePatch({body:{reserved_for_second_factor:e}})}),(0,n._)(this,"makeDefaultSecondFactor",()=>this._basePatch({body:{default_second_factor:!0}})),(0,n._)(this,"destroy",()=>this._baseDelete()),(0,n._)(this,"toString",()=>{let t=this.phoneNumber.match(/^(\d{3})(\d{3})(\d{4})$/);return t?"("+t[1]+") "+t[2]+"-"+t[3]:this.phoneNumber}),this.pathRoot=e,this.fromJSON(t)}}},52724:function(t,e,i){"use strict";i.d(e,{g:()=>o});var n=i(17431),r=i(46630),a=i(28069),s=i(69596);class o extends a.i{fromJSON(t){return t&&(this.id=t.id,this.provider=t.provider,this.providerUserId=t.provider_user_id,this.active=t.active,this.emailAddress=t.email_address,this.firstName=t.first_name,this.lastName=t.last_name,this.enterpriseConnectionId=t.enterprise_connection_id,t.verification&&(this.verification=new s.GX(t.verification)),t.saml_connection&&(this.samlConnection=new l(t.saml_connection)),this.lastAuthenticatedAt=t.last_authenticated_at?(0,r.V)(t.last_authenticated_at):null),this}__internal_toSnapshot(){var t,e;return{object:"saml_account",id:this.id,provider:this.provider,provider_user_id:this.providerUserId,active:this.active,email_address:this.emailAddress,first_name:this.firstName,last_name:this.lastName,verification:(null==(t=this.verification)?void 0:t.__internal_toSnapshot())||null,saml_connection:null==(e=this.samlConnection)?void 0:e.__internal_toSnapshot(),enterprise_connection_id:this.enterpriseConnectionId,last_authenticated_at:this.lastAuthenticatedAt?this.lastAuthenticatedAt.getTime():null}}constructor(t,e){super(),(0,n._)(this,"id",void 0),(0,n._)(this,"provider","saml_custom"),(0,n._)(this,"providerUserId",null),(0,n._)(this,"active",!1),(0,n._)(this,"emailAddress",""),(0,n._)(this,"firstName",""),(0,n._)(this,"lastName",""),(0,n._)(this,"verification",null),(0,n._)(this,"samlConnection",null),(0,n._)(this,"lastAuthenticatedAt",null),(0,n._)(this,"enterpriseConnectionId",null),this.pathRoot=e,this.fromJSON(t)}}class l extends a.i{fromJSON(t){return t&&(this.id=t.id,this.name=t.name,this.domain=t.domain,this.active=t.active,this.provider=t.provider,this.syncUserAttributes=t.sync_user_attributes,this.allowSubdomains=t.allow_subdomains,this.allowIdpInitiated=t.allow_idp_initiated,this.disableAdditionalIdentifications=t.disable_additional_identifications,this.createdAt=(0,r.V)(t.created_at),this.updatedAt=(0,r.V)(t.updated_at)),this}__internal_toSnapshot(){return{object:"saml_account_connection",id:this.id,name:this.name,domain:this.domain,active:this.active,provider:this.provider,sync_user_attributes:this.syncUserAttributes,allow_subdomains:this.allowSubdomains,allow_idp_initiated:this.allowIdpInitiated,disable_additional_identifications:this.disableAdditionalIdentifications,created_at:this.createdAt.getTime(),updated_at:this.updatedAt.getTime()}}constructor(t){super(),(0,n._)(this,"id",void 0),(0,n._)(this,"name",void 0),(0,n._)(this,"domain",void 0),(0,n._)(this,"active",void 0),(0,n._)(this,"provider",void 0),(0,n._)(this,"syncUserAttributes",void 0),(0,n._)(this,"allowSubdomains",void 0),(0,n._)(this,"allowIdpInitiated",void 0),(0,n._)(this,"disableAdditionalIdentifications",void 0),(0,n._)(this,"createdAt",void 0),(0,n._)(this,"updatedAt",void 0),this.fromJSON(t)}}},34377:function(t,e,i){"use strict";i.d(e,{z:()=>x});var n=i(34056),r=i(12499),a=i(17970),s=i(91412),o=i(17431);i(65223),i(92037),i(50725);var l=i(75044),c=i(41024),u=i(64450),h=i(20645),d=i(46630),f=i(46805),p=i(93367),_=i(98382),v=i(24152),m=i(94898),g=i(7292),y=i(4924),w=i(9737),b=i(72642);class k extends w.i{fromJSON(t){return t&&(this.id=t.id,this.status=t.status,this.session=new w.z_(t.session),this.level=t.level,this.supportedFirstFactors=(0,b.aw)(t.supported_first_factors),this.supportedSecondFactors=(0,b.aw)(t.supported_second_factors),this.firstFactorVerification=new w.GX(t.first_factor_verification),this.secondFactorVerification=new w.GX(t.second_factor_verification)),this}constructor(t=null){super(),(0,o._)(this,"status",void 0),(0,o._)(this,"level",void 0),(0,o._)(this,"session",void 0),(0,o._)(this,"supportedFirstFactors",[]),(0,o._)(this,"supportedSecondFactors",[]),(0,o._)(this,"firstFactorVerification",new w.GX(null)),(0,o._)(this,"secondFactorVerification",new w.GX(null)),this.fromJSON(t)}}var S=new WeakMap,A=new WeakSet,C=new WeakSet;class x extends w.i{static isSessionResource(t){return!!t&&t instanceof x}fromJSON(t){var e;return t&&(this.id=t.id,this.status=t.status,this.expireAt=(0,d.V)(t.expire_at),this.abandonAt=(0,d.V)(t.abandon_at),this.factorVerificationAge=t.factor_verification_age,this.lastActiveAt=(0,d.V)(t.last_active_at||void 0),this.lastActiveOrganizationId=t.last_active_organization_id,this.actor=t.actor||null,this.agent=(null==(e=t.actor)?void 0:e.type)==="agent"?t.actor:null,this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at),this.user=new w.n5(t.user),this.tasks=t.tasks||null,t.public_user_data&&(this.publicUserData=new w.VO(t.public_user_data)),this.lastActiveToken=t.last_active_token?new w.WU(t.last_active_token):null),this}__internal_toSnapshot(){var t,e;return{object:"session",id:this.id,status:this.status,expire_at:this.expireAt.getTime(),abandon_at:this.abandonAt.getTime(),factor_verification_age:this.factorVerificationAge,last_active_at:this.lastActiveAt.getTime(),last_active_organization_id:this.lastActiveOrganizationId,actor:this.actor,tasks:this.tasks,user:(null==(t=this.user)?void 0:t.__internal_toSnapshot())||null,public_user_data:this.publicUserData.__internal_toSnapshot(),last_active_token:(null==(e=this.lastActiveToken)?void 0:e.__internal_toSnapshot())||null,created_at:this.createdAt.getTime(),updated_at:this.updatedAt.getTime()}}async _getToken(t){var e,i,n,r;if(!this.user)return null;let{leewayInSeconds:s,template:o,skipCache:l=!1}=t||{},u=void 0===(null==t?void 0:t.organizationId)?this.lastActiveOrganizationId:null==t?void 0:t.organizationId;if(!o&&Number(s)>=60)throw Error("Leeway can not exceed the token lifespan (60 seconds)");let h=(0,a._)(this,A,P).call(this,o,u),d=l?void 0:g.O.get({tokenId:h},s),p=!o&&u===this.lastActiveOrganizationId;if(d){f.Z.debug("Using cached token (no fetch needed)",{tokenId:h},"session");let t=await d.tokenResolver;return p&&m.Y.emit(m.U.TokenUpdate,{token:t}),t.getRawString()||null}f.Z.info("Fetching new token from API",{organizationId:u,template:o,tokenId:h},"session");let _=o?"".concat(this.path(),"/tokens/").concat(o):"".concat(this.path(),"/tokens"),v=null==(n=x.clerk)||null==(i=n.__unstable__environment)||null==(e=i.authConfig)?void 0:e.sessionMinter,y=o?{}:{organizationId:u,...v&&this.lastActiveToken?{token:this.lastActiveToken.getRawString()}:{},...v&&l?{forceOrigin:"true"}:{}},b=null==(r=this.lastActiveToken)?void 0:r.getRawString(),k=v?w.WU.create(_,y,l?{debug:"skip_cache"}:void 0):w.WU.create(_,y,l?{debug:"skip_cache"}:void 0).catch(t=>{if(c.W6.is(t)&&b)return w.WU.create(_,{...y},{expired_token:b});throw t});return g.O.set({tokenId:h,tokenResolver:k}),k.then(t=>{var e,i;let n=null==(i=t.jwt)||null==(e=i.claims)?void 0:e.sid;return n&&n!==this.id&&f.Z.warn("Token session mismatch: requested token for one session but received token for another",{requestedSessionId:this.id,returnedSessionId:n,tokenId:h,hasActor:!!this.actor},"session"),p&&(m.Y.emit(m.U.TokenUpdate,{token:t}),t.jwt&&!(0,a._)(this,C,O).call(this,t)&&(this.lastActiveToken=t,m.Y.emit(m.U.SessionTokenResolved,null))),t.getRawString()||null})}get currentTask(){var t;let[e]=null!=(t=this.tasks)?t:[];return e}constructor(t){var e;super(),e=this,(0,s._)(this,A),(0,s._)(this,C),(0,o._)(this,"pathRoot","/client/sessions"),(0,o._)(this,"id",void 0),(0,o._)(this,"status",void 0),(0,o._)(this,"lastActiveAt",void 0),(0,o._)(this,"lastActiveToken",void 0),(0,o._)(this,"lastActiveOrganizationId",void 0),(0,o._)(this,"actor",void 0),(0,o._)(this,"agent",void 0),(0,o._)(this,"user",void 0),(0,o._)(this,"publicUserData",void 0),(0,o._)(this,"factorVerificationAge",null),(0,o._)(this,"tasks",null),(0,o._)(this,"expireAt",void 0),(0,o._)(this,"abandonAt",void 0),(0,o._)(this,"createdAt",void 0),(0,o._)(this,"updatedAt",void 0),(0,o._)(this,"end",()=>(g.O.clear(),this._basePost({action:"end"}))),(0,o._)(this,"remove",()=>(g.O.clear(),this._basePost({action:"remove"}))),(0,o._)(this,"touch",function(){let{intent:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e._basePost({action:"touch",body:{active_organization_id:e.lastActiveOrganizationId,intent:t}}).then(t=>(t.lastActiveToken&&m.Y.emit(m.U.TokenUpdate,{token:t.lastActiveToken}),t))}),(0,o._)(this,"clearCache",()=>g.O.clear()),(0,o._)(this,"getToken",async t=>(0,u.X)(()=>this._getToken(t),{factor:1.55,initialDelay:3e3,maxDelayBetweenRetries:5e4,jitter:!1,shouldRetry:(t,e)=>!(0,c.ix)(t)&&e<=8})),(0,o._)(this,"checkAuthorization",t=>{var e,i,n,r,a,s,o;let c=((null==(e=this.user)?void 0:e.organizationMemberships)||[]).find(t=>t.organization.id===this.lastActiveOrganizationId);return(0,l.QL)({userId:null==(i=this.user)?void 0:i.id,factorVerificationAge:this.factorVerificationAge,orgId:null==c||null==(n=c.organization)?void 0:n.id,orgRole:null==c?void 0:c.role,orgPermissions:null==c?void 0:c.permissions,features:(null==(a=this.lastActiveToken)||null==(r=a.jwt)?void 0:r.claims.fea)||"",plans:(null==(o=this.lastActiveToken)||null==(s=o.jwt)?void 0:s.claims.pla)||""})(t)}),(0,r._)(this,S,{writable:!0,value:t=>{t&&g.O.set({tokenId:(0,a._)(this,A,P).call(this),tokenResolver:Promise.resolve(t)})}}),(0,o._)(this,"startVerification",async t=>{var e;let{level:i}=t;return new k(null==(e=await w.i._fetch({method:"POST",path:"/client/sessions/".concat(this.id,"/verify"),body:{level:i}}))?void 0:e.response)}),(0,o._)(this,"prepareFirstFactorVerification",async t=>{var e;let i;switch(t.strategy){case"email_code":i={emailAddressId:t.emailAddressId};break;case"phone_code":i={phoneNumberId:t.phoneNumberId,default:t.default};break;case"passkey":i={};break;case"enterprise_sso":i={emailAddressId:t.emailAddressId,enterpriseConnectionId:t.enterpriseConnectionId,redirectUrl:t.redirectUrl};break;default:(0,v.Rz)("Session.prepareFirstFactorVerification",t.strategy)}return new k(null==(e=await w.i._fetch({method:"POST",path:"/client/sessions/".concat(this.id,"/verify/prepare_first_factor"),body:{...i,strategy:t.strategy}}))?void 0:e.response)}),(0,o._)(this,"attemptFirstFactorVerification",async t=>{var e;let i;return i="passkey"===t.strategy?{publicKeyCredential:JSON.stringify((0,p.zQ)(t.publicKeyCredential))}:{...t},new k(null==(e=await w.i._fetch({method:"POST",path:"/client/sessions/".concat(this.id,"/verify/attempt_first_factor"),body:{...i,strategy:t.strategy}}))?void 0:e.response)}),(0,o._)(this,"verifyWithPasskey",async()=>{let{nonce:t=null}=(await this.prepareFirstFactorVerification({strategy:"passkey"})).firstFactorVerification,e=x.clerk.__internal_isWebAuthnSupported||h.iW,i=x.clerk.__internal_getPublicCredentials||p.t1;if(!e())throw new c.RK("Passkeys are not supported",{code:"passkey_not_supported"});let n=t?(0,p.N7)(JSON.parse(t)):null;n||(0,v.$C)("get");let{publicKeyCredential:r,error:a}=await i({publicKeyOptions:n,conditionalUI:!1});if(!r)throw a;return this.attemptFirstFactorVerification({strategy:"passkey",publicKeyCredential:r})}),(0,o._)(this,"prepareSecondFactorVerification",async t=>{var e;return new k(null==(e=await w.i._fetch({method:"POST",path:"/client/sessions/".concat(this.id,"/verify/prepare_second_factor"),body:t}))?void 0:e.response)}),(0,o._)(this,"attemptSecondFactorVerification",async t=>{var e;return new k(null==(e=await w.i._fetch({method:"POST",path:"/client/sessions/".concat(this.id,"/verify/attempt_second_factor"),body:t}))?void 0:e.response)}),this.fromJSON(t),(0,n._)(this,S).call(this,this.lastActiveToken)}}function P(t,e){let i=void 0===e?this.lastActiveOrganizationId:e;return _.K.build(this.id,t,i)}function O(t){let e=this.lastActiveToken;return!!(null==e?void 0:e.jwt)&&(0,y.bW)(e)===(0,y.bW)(t)&&(0,y.tQ)((0,y.ws)(e))===(0,y.tQ)((0,y.ws)(t))&&(0,y.hk)(e,t)!==t}},28076:function(t,e,i){"use strict";i.d(e,{A:()=>s});var n=i(17431),r=i(46630),a=i(9737);class s extends a.i{static retrieve(){var t;let e=null==(t=a.i.clerk.session)?void 0:t.id;return this.clerk.getFapiClient().request({method:"GET",path:"/me/sessions/active",sessionId:e}).then(t=>t.payload.map(t=>new s(t,"/me/sessions"))).catch(()=>[])}revoke(){return this._basePost({action:"revoke",body:{}})}fromJSON(t){var e;let i;return t?(this.id=t.id,this.status=t.status,this.expireAt=(0,r.V)(t.expire_at),this.abandonAt=(0,r.V)(t.abandon_at),this.lastActiveAt=(0,r.V)(t.last_active_at||void 0),this.latestActivity={id:(i=null!=(e=t.latest_activity)?e:{}).id,deviceType:i.device_type,browserName:i.browser_name,browserVersion:i.browser_version,country:i.country,city:i.city,isMobile:i.is_mobile,ipAddress:i.ip_address},this.actor=t.actor,this):this}constructor(t,e){super(),(0,n._)(this,"pathRoot",""),(0,n._)(this,"id",void 0),(0,n._)(this,"status",void 0),(0,n._)(this,"abandonAt",void 0),(0,n._)(this,"expireAt",void 0),(0,n._)(this,"lastActiveAt",void 0),(0,n._)(this,"latestActivity",void 0),(0,n._)(this,"actor",void 0),this.pathRoot=e,this.fromJSON(t)}}},53898:function(t,e,i){"use strict";i.d(e,{c:()=>b});var n=i(34056),r=i(12499),a=i(96733),s=i(17431);i(50725),i(87945),i(56113),i(65223),i(92037),i(91634),i(98383),i(45261),i(70957),i(24551),i(22349);var o=i(58776),l=i(41024),c=i(51036),u=i(72642),h=i(20645),d=i(46805),f=i(96620),p=i(4027),_=i(93367),v=i(30529),m=i(65526),g=i(24152),y=i(94898),w=i(9737);class b extends w.i{get status(){return this._status}set status(t){let e=this._status;this._status=t,t&&e!==t&&d.Z.debug("SignIn.status",{id:this.id,from:e,to:t})}fromJSON(t){if(t){var e;this.id=t.id,this.status=t.status,this.supportedIdentifiers=t.supported_identifiers,this.identifier=t.identifier,this.supportedFirstFactors=(0,u.aw)(t.supported_first_factors),this.supportedSecondFactors=(0,u.aw)(t.supported_second_factors),this.firstFactorVerification=new w.GX(t.first_factor_verification),this.secondFactorVerification=new w.GX(t.second_factor_verification),this.createdSessionId=t.created_session_id,this.userData=new w.mt(t.user_data),this.clientTrustState=null!=(e=t.client_trust_state)?e:void 0}return y.Y.emit("resource:update",{resource:this}),this}__internal_toSnapshot(){return{object:"sign_in",id:this.id||"",status:this.status||null,supported_identifiers:this.supportedIdentifiers,supported_first_factors:(0,u.zb)(this.supportedFirstFactors),supported_second_factors:(0,u.zb)(this.supportedSecondFactors),first_factor_verification:this.firstFactorVerification.__internal_toSnapshot(),second_factor_verification:this.secondFactorVerification.__internal_toSnapshot(),identifier:this.identifier,created_session_id:this.createdSessionId,user_data:this.userData.__internal_toSnapshot()}}constructor(t=null){super(),(0,s._)(this,"pathRoot","/client/sign_ins"),(0,s._)(this,"id",void 0),(0,s._)(this,"_status",null),(0,s._)(this,"supportedIdentifiers",[]),(0,s._)(this,"supportedFirstFactors",[]),(0,s._)(this,"supportedSecondFactors",null),(0,s._)(this,"firstFactorVerification",new w.GX(null)),(0,s._)(this,"secondFactorVerification",new w.GX(null)),(0,s._)(this,"identifier",null),(0,s._)(this,"createdSessionId",null),(0,s._)(this,"userData",new w.mt(null)),(0,s._)(this,"clientTrustState",void 0),(0,s._)(this,"__internal_future",new S(this)),(0,s._)(this,"__internal_basePost",this._basePost.bind(this)),(0,s._)(this,"__internal_baseGet",this._baseGet.bind(this)),(0,s._)(this,"create",t=>{d.Z.debug("SignIn.create",{id:this.id,strategy:"strategy"in t?t.strategy:void 0});let e=(0,f.Q3)();return this._basePost({path:this.pathRoot,body:e?{locale:e,...t}:t})}),(0,s._)(this,"resetPassword",t=>this._basePost({body:t,action:"reset_password"})),(0,s._)(this,"prepareFirstFactor",t=>{let e;switch(d.Z.debug("SignIn.prepareFirstFactor",{id:this.id,strategy:t.strategy}),t.strategy){case"passkey":e={};break;case"email_link":e={emailAddressId:t.emailAddressId,redirectUrl:t.redirectUrl};break;case"email_code":case"reset_password_email_code":e={emailAddressId:t.emailAddressId};break;case"phone_code":e={phoneNumberId:t.phoneNumberId,default:t.default,channel:t.channel};break;case"web3_metamask_signature":case"web3_base_signature":case"web3_coinbase_wallet_signature":case"web3_okx_wallet_signature":case"web3_solana_signature":e={web3WalletId:t.web3WalletId};break;case"reset_password_phone_code":e={phoneNumberId:t.phoneNumberId};break;case"saml":e={redirectUrl:t.redirectUrl,actionCompleteRedirectUrl:t.actionCompleteRedirectUrl};break;case"enterprise_sso":e={redirectUrl:t.redirectUrl,actionCompleteRedirectUrl:t.actionCompleteRedirectUrl,oidcPrompt:t.oidcPrompt,enterpriseConnectionId:t.enterpriseConnectionId};break;default:(0,g.Rz)("SignIn.prepareFirstFactor",t.strategy)}return this._basePost({body:{...e,strategy:t.strategy},action:"prepare_first_factor"})}),(0,s._)(this,"attemptFirstFactor",t=>{let e;return d.Z.debug("SignIn.attemptFirstFactor",{id:this.id,strategy:t.strategy}),e="passkey"===t.strategy?{publicKeyCredential:JSON.stringify((0,_.zQ)(t.publicKeyCredential))}:{...t},this._basePost({body:{...e,strategy:t.strategy},action:"attempt_first_factor"})}),(0,s._)(this,"createEmailLinkFlow",()=>{let{run:t,stop:e}=(0,c.W)();return{startEmailLinkFlow:async i=>{let{emailAddressId:n,redirectUrl:r}=i;this.id||(0,g.C)("SignIn");let a={strategy:"email_link",emailAddressId:n,redirectUrl:r},s="needs_second_factor"===this.status,o=s?"secondFactorVerification":"firstFactorVerification";return s?await this.prepareSecondFactor(a):await this.prepareFirstFactor(a),new Promise((i,n)=>{t(()=>this.reload().then(t=>{let n=t[o].status;("verified"===n||"expired"===n)&&(e(),i(t))}).catch(t=>{e(),n(t)}))})},cancelEmailLinkFlow:e}}),(0,s._)(this,"prepareSecondFactor",t=>(d.Z.debug("SignIn.prepareSecondFactor",{id:this.id,strategy:t.strategy}),this._basePost({body:t,action:"prepare_second_factor"}))),(0,s._)(this,"attemptSecondFactor",t=>(d.Z.debug("SignIn.attemptSecondFactor",{id:this.id,strategy:t.strategy}),this._basePost({body:t,action:"attempt_second_factor"}))),(0,s._)(this,"authenticateWithRedirectOrPopup",async(t,e)=>{let{strategy:i,redirectUrlComplete:n,identifier:r,oidcPrompt:a,continueSignIn:s,enterpriseConnectionId:o}=t||{},l=b.clerk.buildUrlWithAuth(t.redirectUrl);this.id&&s||await this.create({strategy:i,identifier:r,redirectUrl:l,actionCompleteRedirectUrl:n}),("saml"===i||"enterprise_sso"===i)&&await this.prepareFirstFactor({strategy:i,redirectUrl:l,actionCompleteRedirectUrl:n,oidcPrompt:a,enterpriseConnectionId:o});let{status:c,externalVerificationRedirectURL:u}=this.firstFactorVerification;"unverified"===c&&u?e(u):(0,g.Ws)(c,b.fapiClient.buildEmailAddress("support"))}),(0,s._)(this,"authenticateWithRedirect",async t=>this.authenticateWithRedirectOrPopup(t,f.T7)),(0,s._)(this,"authenticateWithPopup",async t=>{let{popup:e}=t||{};return e||(0,g.WC)("popup"),(0,p.GL)(b.clerk,"signIn",this.authenticateWithRedirectOrPopup,t,t=>{e.location.href=t.toString()})}),(0,s._)(this,"authenticateWithWeb3",async t=>{var e;let i,{identifier:n,generateSignature:r,strategy:a="web3_metamask_signature",walletName:s}=t||{},o=a.replace("web3_","").replace("_signature","");"function"!=typeof r&&(0,g.WC)("generateSignature"),"solana"!==o||s||(0,g.WC)("walletName"),await this.create({identifier:n});let l=null==(e=this.supportedFirstFactors)?void 0:e.find(t=>t.strategy===a);l||(0,g.lb)("SignIn"),await this.prepareFirstFactor(l);let{message:c}=this.firstFactorVerification;c||(0,g.lb)("SignIn");try{i=await r({identifier:n,nonce:c,walletName:s,provider:o})}catch(t){if("coinbase_wallet"===o&&4001===t.code)i=await r({identifier:n,nonce:c,provider:o,walletName:s});else throw t}return this.attemptFirstFactor({signature:i,strategy:a})}),(0,s._)(this,"authenticateWithMetamask",async()=>{let t=await (0,f.M8)();return this.authenticateWithWeb3({identifier:t,generateSignature:f.wO,strategy:"web3_metamask_signature"})}),(0,s._)(this,"authenticateWithCoinbaseWallet",async()=>{let t=await (0,f.$0)();return this.authenticateWithWeb3({identifier:t,generateSignature:f.dR,strategy:"web3_coinbase_wallet_signature"})}),(0,s._)(this,"authenticateWithBase",async()=>{let t=await (0,f.s9)();return this.authenticateWithWeb3({identifier:t,generateSignature:f.Ji,strategy:"web3_base_signature"})}),(0,s._)(this,"authenticateWithOKXWallet",async()=>{let t=await (0,f.ZE)();return this.authenticateWithWeb3({identifier:t,generateSignature:f.C3,strategy:"web3_okx_wallet_signature"})}),(0,s._)(this,"authenticateWithSolana",async t=>{let{walletName:e}=t,i=await (0,f.U7)(e);return this.authenticateWithWeb3({identifier:i,generateSignature:t=>(0,f.Dl)({...t,walletName:e}),strategy:"web3_solana_signature",walletName:e})}),(0,s._)(this,"authenticateWithPasskey",async t=>{let{flow:e}=t||{},i=b.clerk.__internal_isWebAuthnSupported||h.iW,n=b.clerk.__internal_getPublicCredentials||_.t1,r=b.clerk.__internal_isWebAuthnAutofillSupported||h.h_;if(!i())throw new l.RK("Passkeys are not supported",{code:"passkey_not_supported"});if("autofill"===e||"discoverable"===e)await this.create({strategy:"passkey"});else{let t=this.supportedFirstFactors.find(t=>"passkey"===t.strategy);t||(0,g.ep)(),await this.prepareFirstFactor(t)}let{nonce:a}=this.firstFactorVerification,s=a?(0,_.N7)(JSON.parse(a)):null;s||(0,g.$C)("get");let o=!1;"autofill"===e&&(o=await r());let{publicKeyCredential:c,error:u}=await n({publicKeyOptions:s,conditionalUI:o});if(!c)throw u;return this.attemptFirstFactor({publicKeyCredential:c,strategy:"passkey"})}),(0,s._)(this,"validatePassword",(t,e)=>{var i,n;if(null==(i=b.clerk.__unstable__environment)?void 0:i.userSettings.passwordSettings)return(0,v.z)({...null==(n=b.clerk.__unstable__environment)?void 0:n.userSettings.passwordSettings,validatePassword:!0})(t,e)}),this.fromJSON(t)}}var k=new WeakMap;class S{get id(){return(0,n._)(this,k).id}get identifier(){return(0,n._)(this,k).identifier}get createdSessionId(){return(0,n._)(this,k).createdSessionId}get userData(){return(0,n._)(this,k).userData}get status(){return(0,n._)(this,k).status||"needs_identifier"}get supportedFirstFactors(){var t;return null!=(t=(0,n._)(this,k).supportedFirstFactors)?t:[]}get supportedSecondFactors(){var t;return null!=(t=(0,n._)(this,k).supportedSecondFactors)?t:[]}get isTransferable(){return"transferable"===(0,n._)(this,k).firstFactorVerification.status}get existingSession(){var t,e,i,r,a;if("failed"===(0,n._)(this,k).firstFactorVerification.status&&(null==(t=(0,n._)(this,k).firstFactorVerification.error)?void 0:t.code)==="identifier_already_signed_in"&&(null==(i=(0,n._)(this,k).firstFactorVerification.error)||null==(e=i.meta)?void 0:e.sessionId))return{sessionId:null==(a=(0,n._)(this,k).firstFactorVerification.error)||null==(r=a.meta)?void 0:r.sessionId}}get firstFactorVerification(){return(0,n._)(this,k).firstFactorVerification}get secondFactorVerification(){return(0,n._)(this,k).secondFactorVerification}async sendResetPasswordEmailCode(){if(!(0,n._)(this,k).id)throw Error("Cannot reset password without a sign in.");return(0,m.a)((0,n._)(this,k),async()=>{var t;let e=null==(t=(0,n._)(this,k).supportedFirstFactors)?void 0:t.find(t=>"reset_password_email_code"===t.strategy);if(!e)throw new l.w$("Reset password email code factor not found",{code:"factor_not_found"});let{emailAddressId:i}=e;await (0,n._)(this,k).__internal_basePost({body:{emailAddressId:i,strategy:"reset_password_email_code"},action:"prepare_first_factor"})})}async verifyResetPasswordEmailCode(t){let{code:e}=t;return(0,m.a)((0,n._)(this,k),async()=>{await (0,n._)(this,k).__internal_basePost({body:{code:e,strategy:"reset_password_email_code"},action:"attempt_first_factor"})})}async submitResetPassword(t){let{password:e,signOutOfOtherSessions:i=!0}=t;return(0,m.a)((0,n._)(this,k),async()=>{await (0,n._)(this,k).__internal_basePost({body:{password:e,signOutOfOtherSessions:i},action:"reset_password"})})}async _create(t){let e=(0,f.Q3)();await (0,n._)(this,k).__internal_basePost({path:(0,n._)(this,k).pathRoot,body:e?{locale:e,...t}:t})}async create(t){return(0,m.a)((0,n._)(this,k),async()=>{await this._create(t)})}async password(t){if([t.identifier,t.emailAddress,t.phoneNumber].filter(Boolean).length>1)throw Error("Only one of identifier, emailAddress, or phoneNumber can be provided");return(0,m.a)((0,n._)(this,k),async()=>{let e=t.identifier||t.emailAddress||t.phoneNumber,i=(0,n._)(this,k).identifier,r=(0,f.Q3)();await (0,n._)(this,k).__internal_basePost({path:(0,n._)(this,k).pathRoot,body:{identifier:e||i,password:t.password,...r?{locale:r}:{}}})})}async sendEmailCode(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{emailAddress:e,emailAddressId:i}=t;if(!(0,n._)(this,k).id&&i)throw Error("signIn.emailCode.sendCode() cannot be called with an emailAddressId if an existing signIn does not exist.");if(!(0,n._)(this,k).id&&!e)throw Error("signIn.emailCode.sendCode() cannot be called without an emailAddress if an existing signIn does not exist.");return(0,m.a)((0,n._)(this,k),async()=>{e&&await this._create({identifier:e});let t=this.selectFirstFactor({strategy:"email_code",emailAddressId:i});if(!t)throw new l.w$("Email code factor not found",{code:"factor_not_found"});await (0,n._)(this,k).__internal_basePost({body:{emailAddressId:t.emailAddressId,strategy:"email_code"},action:"prepare_first_factor"})})}async verifyEmailCode(t){let{code:e}=t;return(0,m.a)((0,n._)(this,k),async()=>{await (0,n._)(this,k).__internal_basePost({body:{code:e,strategy:"email_code"},action:"attempt_first_factor"})})}async sendEmailLink(t){let{emailAddress:e,verificationUrl:i,emailAddressId:r}=t;if(!(0,n._)(this,k).id&&r)throw Error("signIn.emailLink.sendLink() cannot be called with an emailAddressId if an existing signIn does not exist.");if(!(0,n._)(this,k).id&&!e)throw Error("signIn.emailLink.sendLink() cannot be called without an emailAddress if an existing signIn does not exist.");return(0,m.a)((0,n._)(this,k),async()=>{e&&await this._create({identifier:e});let t=this.selectFirstFactor({strategy:"email_link",emailAddressId:r});if(!t)throw new l.w$("Email link factor not found",{code:"factor_not_found"});let a=i;try{new URL(i)}catch{a=window.location.origin+i}await (0,n._)(this,k).__internal_basePost({body:{emailAddressId:t.emailAddressId,redirectUrl:a,strategy:"email_link"},action:"prepare_first_factor"})})}async waitForEmailLinkVerification(){return(0,m.a)((0,n._)(this,k),async()=>{let{run:t,stop:e}=(0,c.W)();await new Promise((i,r)=>{t(async()=>{try{let t=await (0,n._)(this,k).__internal_baseGet(),r=t.firstFactorVerification.status;("verified"===r||"expired"===r)&&(e(),i(t))}catch(t){e(),r(t)}})})})}async sendPhoneCode(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{phoneNumber:e,phoneNumberId:i,channel:r="sms"}=t;if(!(0,n._)(this,k).id&&i)throw Error("signIn.phoneCode.sendCode() cannot be called with an phoneNumberId if an existing signIn does not exist.");if(!(0,n._)(this,k).id&&!e)throw Error("signIn.phoneCode.sendCode() cannot be called without an phoneNumber if an existing signIn does not exist.");return(0,m.a)((0,n._)(this,k),async()=>{e&&await this._create({identifier:e});let t=this.selectFirstFactor({strategy:"phone_code",phoneNumberId:i});if(!t)throw new l.w$("Phone code factor not found",{code:"factor_not_found"});await (0,n._)(this,k).__internal_basePost({body:{phoneNumberId:t.phoneNumberId,strategy:"phone_code",channel:r},action:"prepare_first_factor"})})}async verifyPhoneCode(t){let{code:e}=t;return(0,m.a)((0,n._)(this,k),async()=>{await (0,n._)(this,k).__internal_basePost({body:{code:e,strategy:"phone_code"},action:"attempt_first_factor"})})}async sso(t){let{strategy:e,redirectUrl:i,redirectCallbackUrl:r,popup:a,oidcPrompt:s,enterpriseConnectionId:o,identifier:l}=t;return(0,m.a)((0,n._)(this,k),async()=>{let t=i;try{new URL(i)}catch{t=window.location.origin+i}let c={redirectUrl:b.clerk.buildUrlWithAuth(r),actionCompleteRedirectUrl:t};if(a){let e=(0,p.S_)(b.clerk,{redirectCallbackUrl:c.redirectUrl,redirectUrl:t});c.redirectUrl=e.redirectCallbackUrl,c.actionCompleteRedirectUrl=e.redirectUrl}await this._create({strategy:e,...c,identifier:l}),"enterprise_sso"===e&&await (0,n._)(this,k).__internal_basePost({body:{...c,oidcPrompt:s,enterpriseConnectionId:o,strategy:"enterprise_sso"},action:"prepare_first_factor"});let{status:u,externalVerificationRedirectURL:h}=(0,n._)(this,k).firstFactorVerification;"unverified"===u&&h&&(a?(await (0,p.oC)(b.clerk,{popup:a,externalVerificationRedirectURL:h}),await (0,n._)(this,k).reload()):(0,f.T7)(h))})}async web3(t){let{strategy:e}=t,i=e.replace("web3_","").replace("_signature","");return(0,m.a)((0,n._)(this,k),async()=>{var r;let a,s,o;switch(i){case"metamask":a=await (0,f.M8)(),s=f.wO;break;case"coinbase_wallet":a=await (0,f.$0)(),s=f.dR;break;case"base":a=await (0,f.s9)(),s=f.Ji;break;case"okx_wallet":a=await (0,f.ZE)(),s=f.C3;break;case"solana":if(!t.walletName)throw new l.w$("Wallet name is required for Solana authentication.",{code:"web3_solana_wallet_name_required"});a=await (0,f.U7)(t.walletName),s=e=>(0,f.Dl)({...e,walletName:t.walletName});break;default:throw Error("Unsupported Web3 provider: ".concat(i))}await this._create({identifier:a});let c=null==(r=(0,n._)(this,k).supportedFirstFactors)?void 0:r.find(t=>t.strategy===e);if(!c)throw new l.w$("Web3 first factor not found",{code:"factor_not_found"});await (0,n._)(this,k).__internal_basePost({body:{web3WalletId:c.web3WalletId,strategy:e},action:"prepare_first_factor"});let{message:u}=this.firstFactorVerification;if(!u)throw new l.w$("Web3 nonce not found",{code:"web3_nonce_not_found"});try{o=await s({identifier:a,nonce:u,walletName:null==t?void 0:t.walletName,provider:i})}catch(t){if("coinbase_wallet"===i&&4001===t.code)o=await s({identifier:a,nonce:u,provider:i});else throw t}await (0,n._)(this,k).__internal_basePost({body:{signature:o,strategy:e},action:"attempt_first_factor"})})}async passkey(t){let{flow:e}=t||{},i=b.clerk.__internal_isWebAuthnSupported||h.iW,r=b.clerk.__internal_getPublicCredentials||_.t1,a=b.clerk.__internal_isWebAuthnAutofillSupported||h.h_;if(!i())throw new l.RK("Passkeys are not supported",{code:"passkey_not_supported"});return(0,m.a)((0,n._)(this,k),async()=>{if("autofill"===e||"discoverable"===e)await this._create({strategy:"passkey"});else{if(!this.supportedFirstFactors.find(t=>"passkey"===t.strategy))throw new l.w$("Passkey factor not found",{code:"factor_not_found"});await (0,n._)(this,k).__internal_basePost({body:{strategy:"passkey"},action:"prepare_first_factor"})}let{nonce:t}=this.firstFactorVerification,i=t?(0,_.N7)(JSON.parse(t)):null;if(!i)throw new l.w$("Missing public key options",{code:"missing_public_key_options"});let s=!1;"autofill"===e&&(s=await a());let{publicKeyCredential:o,error:c}=await r({publicKeyOptions:i,conditionalUI:s});if(!o)throw new l.RK(c.message,{code:"passkey_retrieval_failed"});await (0,n._)(this,k).__internal_basePost({body:{publicKeyCredential:JSON.stringify((0,_.zQ)(o)),strategy:"passkey"},action:"attempt_first_factor"})})}async sendMFAPhoneCode(){return(0,m.a)((0,n._)(this,k),async()=>{var t;let e=null==(t=(0,n._)(this,k).supportedSecondFactors)?void 0:t.find(t=>"phone_code"===t.strategy);if(!e)throw new l.w$("Phone code factor not found",{code:"factor_not_found"});let{phoneNumberId:i}=e;await (0,n._)(this,k).__internal_basePost({body:{phoneNumberId:i,strategy:"phone_code"},action:"prepare_second_factor"})})}async verifyMFAPhoneCode(t){let{code:e}=t;return(0,m.a)((0,n._)(this,k),async()=>{await (0,n._)(this,k).__internal_basePost({body:{code:e,strategy:"phone_code"},action:"attempt_second_factor"})})}async verifyTOTP(t){let{code:e}=t;return(0,m.a)((0,n._)(this,k),async()=>{await (0,n._)(this,k).__internal_basePost({body:{code:e,strategy:"totp"},action:"attempt_second_factor"})})}async verifyBackupCode(t){let{code:e}=t;return(0,m.a)((0,n._)(this,k),async()=>{await (0,n._)(this,k).__internal_basePost({body:{code:e,strategy:"backup_code"},action:"attempt_second_factor"})})}async ticket(t){var e;let i=null!=(e=null==t?void 0:t.ticket)?e:(0,f.XV)("__clerk_ticket");return this.create({ticket:null!=i?i:void 0})}async finalize(t){let{navigate:e}=t||{};if(!(0,n._)(this,k).createdSessionId)throw Error("Cannot finalize sign-in without a created session.");return(0,m.a)((0,n._)(this,k),async()=>{var t;await (null==(t=b.clerk.client)?void 0:t.reload()),await b.clerk.setActive({session:(0,n._)(this,k).createdSessionId,navigate:e})})}selectFirstFactor(t){let{strategy:e,emailAddressId:i,phoneNumberId:r}=t;if(!(0,n._)(this,k).supportedFirstFactors)return null;if(i){let t=(0,n._)(this,k).supportedFirstFactors.find(t=>t.strategy===e&&t.emailAddressId===i);if(t)return t}if(r){let t=(0,n._)(this,k).supportedFirstFactors.find(t=>t.strategy===e&&t.phoneNumberId===r);if(t)return t}let a=(0,n._)(this,k).supportedFirstFactors.find(t=>t.strategy===e&&t.safeIdentifier===(0,n._)(this,k).identifier);if(a)return a;let s=(0,n._)(this,k).supportedFirstFactors.find(t=>t.strategy===e);return s||null}constructor(t){(0,s._)(this,"emailCode",{sendCode:this.sendEmailCode.bind(this),verifyCode:this.verifyEmailCode.bind(this)}),(0,s._)(this,"emailLink",{sendLink:this.sendEmailLink.bind(this),waitForVerification:this.waitForEmailLinkVerification.bind(this),get verification(){if(!(0,o._f)())return null;let t=(0,f.XV)("__clerk_status"),e=(0,f.XV)("__clerk_created_session");if(!t||!e)return null;let i="verified"===t&&void 0!==b.clerk.client&&b.clerk.client.sessions.some(t=>t.id===e);return{status:t,createdSessionId:e,verifiedFromTheSameClient:i}}}),(0,s._)(this,"resetPasswordEmailCode",{sendCode:this.sendResetPasswordEmailCode.bind(this),verifyCode:this.verifyResetPasswordEmailCode.bind(this),submitPassword:this.submitResetPassword.bind(this)}),(0,s._)(this,"phoneCode",{sendCode:this.sendPhoneCode.bind(this),verifyCode:this.verifyPhoneCode.bind(this)}),(0,s._)(this,"mfa",{sendPhoneCode:this.sendMFAPhoneCode.bind(this),verifyPhoneCode:this.verifyMFAPhoneCode.bind(this),verifyTOTP:this.verifyTOTP.bind(this),verifyBackupCode:this.verifyBackupCode.bind(this)}),(0,r._)(this,k,{writable:!0,value:void 0}),(0,a._)(this,k,t)}}},90240:function(t,e,i){"use strict";i.d(e,{M:()=>y});var n=i(34056),r=i(12499),a=i(96733),s=i(17431);i(50725),i(87945),i(56113),i(91634),i(98383),i(45261),i(70957),i(24551),i(22349),i(65223),i(92037);var o=i(41024),l=i(51036),c=i(46805),u=i(96620),h=i(4027),d=i(9423),f=i(30529),p=i(26310),_=i(65526),v=i(24152),m=i(94898),g=i(9737);class y extends g.i{get status(){return this._status}set status(t){let e=this._status;this._status=t,t&&e!==t&&c.Z.debug("SignUp.status",{id:this.id,from:e,to:t})}fromJSON(t){return t&&(this.id=t.id,this.status=t.status,this.requiredFields=t.required_fields,this.optionalFields=t.optional_fields,this.missingFields=t.missing_fields,this.unverifiedFields=t.unverified_fields,this.verifications=new g.EJ(t.verifications),this.username=t.username,this.firstName=t.first_name,this.lastName=t.last_name,this.emailAddress=t.email_address,this.phoneNumber=t.phone_number,this.hasPassword=t.has_password,this.unsafeMetadata=t.unsafe_metadata,this.createdSessionId=t.created_session_id,this.createdUserId=t.created_user_id,this.abandonAt=t.abandon_at,this.web3wallet=t.web3_wallet,this.legalAcceptedAt=t.legal_accepted_at,this.locale=t.locale),m.Y.emit("resource:update",{resource:this}),this}__internal_toSnapshot(){var t;return{object:"sign_up",id:this.id||"",status:this.status||null,required_fields:this.requiredFields,optional_fields:this.optionalFields,missing_fields:this.missingFields,unverified_fields:this.unverifiedFields,verifications:this.verifications.__internal_toSnapshot(),username:this.username,first_name:this.firstName,last_name:this.lastName,email_address:this.emailAddress,phone_number:this.phoneNumber,has_password:this.hasPassword,unsafe_metadata:this.unsafeMetadata,created_session_id:this.createdSessionId,created_user_id:this.createdUserId,abandon_at:this.abandonAt,web3_wallet:this.web3wallet,legal_accepted_at:this.legalAcceptedAt,locale:this.locale,external_account:this.externalAccount,external_account_strategy:null==(t=this.externalAccount)?void 0:t.strategy}}clientBypass(){var t;return null==(t=y.clerk.client)?void 0:t.captchaBypass}shouldBypassCaptchaForAttempt(t){let e=y.clerk.__unstable__environment.displayConfig.captchaOauthBypass;return!!(t.transfer&&e.some(t=>t===y.clerk.client.signIn.firstFactorVerification.strategy)||t.strategy&&e.some(e=>e===t.strategy))}constructor(t=null){super(),(0,s._)(this,"pathRoot","/client/sign_ups"),(0,s._)(this,"id",void 0),(0,s._)(this,"_status",null),(0,s._)(this,"requiredFields",[]),(0,s._)(this,"missingFields",[]),(0,s._)(this,"optionalFields",[]),(0,s._)(this,"unverifiedFields",[]),(0,s._)(this,"verifications",new g.EJ(null)),(0,s._)(this,"username",null),(0,s._)(this,"firstName",null),(0,s._)(this,"lastName",null),(0,s._)(this,"emailAddress",null),(0,s._)(this,"phoneNumber",null),(0,s._)(this,"web3wallet",null),(0,s._)(this,"externalAccount",void 0),(0,s._)(this,"hasPassword",!1),(0,s._)(this,"unsafeMetadata",{}),(0,s._)(this,"createdSessionId",null),(0,s._)(this,"createdUserId",null),(0,s._)(this,"abandonAt",null),(0,s._)(this,"legalAcceptedAt",null),(0,s._)(this,"locale",null),(0,s._)(this,"__internal_future",new b(this)),(0,s._)(this,"__internal_basePost",this._basePost.bind(this)),(0,s._)(this,"__internal_basePatch",this._basePatch.bind(this)),(0,s._)(this,"create",async t=>{c.Z.debug("SignUp.create",{id:this.id,strategy:t.strategy});let e={...t};if(!e.locale){let t=(0,u.Q3)();t&&(e.locale=t)}if(!this.clientBypass()&&!this.shouldBypassCaptchaForAttempt(t)){let t=new d.E(y.clerk),i=await t.managedOrInvisible({action:"signup"});if(!i)throw new o.w$("",{code:"captcha_unavailable"});e={...e,...i}}return this._basePost({path:this.pathRoot,body:(0,p.q)(e)})}),(0,s._)(this,"prepareVerification",t=>(c.Z.debug("SignUp.prepareVerification",{id:this.id,strategy:t.strategy}),this._basePost({body:t,action:"prepare_verification"}))),(0,s._)(this,"attemptVerification",t=>(c.Z.debug("SignUp.attemptVerification",{id:this.id,strategy:t.strategy}),this._basePost({body:t,action:"attempt_verification"}))),(0,s._)(this,"prepareEmailAddressVerification",t=>this.prepareVerification(t||{strategy:"email_code"})),(0,s._)(this,"attemptEmailAddressVerification",t=>this.attemptVerification({...t,strategy:"email_code"})),(0,s._)(this,"createEmailLinkFlow",()=>{let{run:t,stop:e}=(0,l.W)();return{startEmailLinkFlow:async i=>{let{redirectUrl:n}=i;return this.id||(0,v.C)("SignUp"),await this.prepareEmailAddressVerification({strategy:"email_link",redirectUrl:n}),new Promise((i,n)=>{t(()=>this.reload().then(t=>{let n=t.verifications.emailAddress.status;("verified"===n||"expired"===n)&&(e(),i(t))}).catch(t=>{e(),n(t)}))})},cancelEmailLinkFlow:e}}),(0,s._)(this,"preparePhoneNumberVerification",t=>this.prepareVerification(t||{strategy:"phone_code"})),(0,s._)(this,"attemptPhoneNumberVerification",t=>this.attemptVerification({...t,strategy:"phone_code"})),(0,s._)(this,"prepareWeb3WalletVerification",t=>this.prepareVerification({strategy:"web3_metamask_signature",...t})),(0,s._)(this,"attemptWeb3WalletVerification",async t=>{let{signature:e,strategy:i="web3_metamask_signature"}=t;return this.attemptVerification({signature:e,strategy:i})}),(0,s._)(this,"authenticateWithWeb3",async t=>{let e,{generateSignature:i,identifier:n,unsafeMetadata:r,strategy:a="web3_metamask_signature",legalAccepted:s,walletName:o}=t||{},l=a.replace("web3_","").replace("_signature","");"function"!=typeof i&&(0,v.WC)("generateSignature");let c=n||this.web3wallet;await this.create({web3Wallet:c,unsafeMetadata:r,legalAccepted:s}),await this.prepareWeb3WalletVerification({strategy:a});let{message:u}=this.verifications.web3Wallet;u||(0,v.lb)("SignUp");try{e=await i({identifier:n,nonce:u,provider:l,walletName:o})}catch(t){if("coinbase_wallet"===l&&4001===t.code)e=await i({identifier:n,nonce:u,provider:l});else throw t}return this.attemptWeb3WalletVerification({signature:e,strategy:a})}),(0,s._)(this,"authenticateWithMetamask",async t=>{let e=await (0,u.M8)();return this.authenticateWithWeb3({identifier:e,generateSignature:u.wO,unsafeMetadata:null==t?void 0:t.unsafeMetadata,strategy:"web3_metamask_signature",legalAccepted:null==t?void 0:t.legalAccepted})}),(0,s._)(this,"authenticateWithCoinbaseWallet",async t=>{let e=await (0,u.$0)();return this.authenticateWithWeb3({identifier:e,generateSignature:u.dR,unsafeMetadata:null==t?void 0:t.unsafeMetadata,strategy:"web3_coinbase_wallet_signature",legalAccepted:null==t?void 0:t.legalAccepted})}),(0,s._)(this,"authenticateWithBase",async t=>{let e=await (0,u.s9)();return this.authenticateWithWeb3({identifier:e,generateSignature:u.Ji,unsafeMetadata:null==t?void 0:t.unsafeMetadata,strategy:"web3_base_signature",legalAccepted:null==t?void 0:t.legalAccepted})}),(0,s._)(this,"authenticateWithOKXWallet",async t=>{let e=await (0,u.ZE)();return this.authenticateWithWeb3({identifier:e,generateSignature:u.C3,unsafeMetadata:null==t?void 0:t.unsafeMetadata,strategy:"web3_okx_wallet_signature",legalAccepted:null==t?void 0:t.legalAccepted})}),(0,s._)(this,"authenticateWithSolana",async t=>{let{walletName:e,unsafeMetadata:i,legalAccepted:n}=t,r=await (0,u.U7)(e);return this.authenticateWithWeb3({identifier:r,generateSignature:t=>(0,u.Dl)({...t,walletName:e}),unsafeMetadata:i,strategy:"web3_solana_signature",legalAccepted:n,walletName:e})}),(0,s._)(this,"authenticateWithRedirectOrPopup",async(t,e)=>{let{redirectUrl:i,redirectUrlComplete:n,strategy:r,continueSignUp:a=!1,unsafeMetadata:s,emailAddress:l,legalAccepted:c,oidcPrompt:u,enterpriseConnectionId:h}=t,d=y.clerk.buildUrlWithAuth(i),f=()=>{let t={strategy:r,redirectUrl:d,actionCompleteRedirectUrl:n,unsafeMetadata:s,emailAddress:l,legalAccepted:c,oidcPrompt:u,enterpriseConnectionId:h};return a&&this.id?this.update(t):this.create(t)},{verifications:p}=await f().catch(async t=>{if((0,o.kD)(t)&&(0,o.pG)(t))return await y.clerk.__unstable__environment.reload(),f();throw t}),{externalAccount:_}=p,{status:m,externalVerificationRedirectURL:g}=_;"unverified"===m&&g?e(g):(0,v.Ws)(m,y.fapiClient.buildEmailAddress("support"))}),(0,s._)(this,"authenticateWithRedirect",async t=>this.authenticateWithRedirectOrPopup(t,u.T7)),(0,s._)(this,"authenticateWithPopup",async t=>{let{popup:e}=t||{};return e||(0,v.WC)("popup"),(0,h.GL)(y.clerk,"signUp",this.authenticateWithRedirectOrPopup,t,t=>{e.location.href=t instanceof URL?t.toString():t})}),(0,s._)(this,"update",t=>this._basePatch({body:(0,p.q)(t)})),(0,s._)(this,"upsert",t=>this.id?this.update(t):this.create(t)),(0,s._)(this,"validatePassword",(t,e)=>{var i,n;if(null==(i=y.clerk.__unstable__environment)?void 0:i.userSettings.passwordSettings)return(0,f.z)({...null==(n=y.clerk.__unstable__environment)?void 0:n.userSettings.passwordSettings,validatePassword:!0})(t,e)}),(0,s._)(this,"__experimental_getEnterpriseConnections",()=>g.i._fetch({path:"/client/sign_ups/".concat(this.id,"/enterprise_connections"),method:"GET"}).then(t=>(null==t?void 0:t.response).map(t=>new k(t)))),this.fromJSON(t)}}var w=new WeakMap;class b{get id(){return(0,n._)(this,w).id}get requiredFields(){return(0,n._)(this,w).requiredFields}get optionalFields(){return(0,n._)(this,w).optionalFields}get missingFields(){return(0,n._)(this,w).missingFields}get status(){return(0,n._)(this,w).status||"missing_requirements"}get username(){return(0,n._)(this,w).username}get firstName(){return(0,n._)(this,w).firstName}get lastName(){return(0,n._)(this,w).lastName}get emailAddress(){return(0,n._)(this,w).emailAddress}get phoneNumber(){return(0,n._)(this,w).phoneNumber}get web3Wallet(){return(0,n._)(this,w).web3wallet}get hasPassword(){return(0,n._)(this,w).hasPassword}get unsafeMetadata(){return(0,n._)(this,w).unsafeMetadata}get createdSessionId(){return(0,n._)(this,w).createdSessionId}get createdUserId(){return(0,n._)(this,w).createdUserId}get abandonAt(){return(0,n._)(this,w).abandonAt}get legalAcceptedAt(){return(0,n._)(this,w).legalAcceptedAt}get locale(){return(0,n._)(this,w).locale}get unverifiedFields(){return(0,n._)(this,w).unverifiedFields}get isTransferable(){var t;return"transferable"===(0,n._)(this,w).verifications.externalAccount.status&&(null==(t=(0,n._)(this,w).verifications.externalAccount.error)?void 0:t.code)==="external_account_exists"}get existingSession(){var t,e,i,r,a;if(("failed"===(0,n._)(this,w).verifications.externalAccount.status||"unverified"===(0,n._)(this,w).verifications.externalAccount.status)&&(null==(t=(0,n._)(this,w).verifications.externalAccount.error)?void 0:t.code)==="identifier_already_signed_in"&&(null==(i=(0,n._)(this,w).verifications.externalAccount.error)||null==(e=i.meta)?void 0:e.sessionId))return{sessionId:null==(a=(0,n._)(this,w).verifications.externalAccount.error)||null==(r=a.meta)?void 0:r.sessionId}}async getCaptchaToken(){let t=new d.E(y.clerk),e=await t.managedOrInvisible({action:"signup"});if(!e)throw Error("Captcha challenge failed");let{captchaError:i,captchaToken:n,captchaWidgetType:r}=e;return{captchaToken:n,captchaWidgetType:r,captchaError:i}}async _create(t){var e;let{captchaToken:i,captchaWidgetType:r,captchaError:a}=await this.getCaptchaToken(),s={transfer:t.transfer,captchaToken:i,captchaWidgetType:r,captchaError:a,...t,unsafeMetadata:t.unsafeMetadata?(0,p.q)(t.unsafeMetadata):void 0,locale:null!=(e=t.locale)?e:(0,u.Q3)()};await (0,n._)(this,w).__internal_basePost({path:(0,n._)(this,w).pathRoot,body:s})}async create(t){return(0,_.a)((0,n._)(this,w),async()=>{await this._create(t)})}async update(t){return(0,_.a)((0,n._)(this,w),async()=>{let e={...t,unsafeMetadata:t.unsafeMetadata?(0,p.q)(t.unsafeMetadata):void 0};await (0,n._)(this,w).__internal_basePatch({path:(0,n._)(this,w).pathRoot,body:e})})}async password(t){return(0,_.a)((0,n._)(this,w),async()=>{let{captchaToken:e,captchaWidgetType:i,captchaError:r}=await this.getCaptchaToken(),a={strategy:"password",captchaToken:e,captchaWidgetType:i,captchaError:r,...t,unsafeMetadata:t.unsafeMetadata?(0,p.q)(t.unsafeMetadata):void 0};await (0,n._)(this,w).__internal_basePost({path:(0,n._)(this,w).pathRoot,body:a})})}async sendEmailCode(){return(0,_.a)((0,n._)(this,w),async()=>{await (0,n._)(this,w).__internal_basePost({body:{strategy:"email_code"},action:"prepare_verification"})})}async verifyEmailCode(t){let{code:e}=t;return(0,_.a)((0,n._)(this,w),async()=>{await (0,n._)(this,w).__internal_basePost({body:{strategy:"email_code",code:e},action:"attempt_verification"})})}async sendPhoneCode(t){let{phoneNumber:e,channel:i="sms"}=t;return(0,_.a)((0,n._)(this,w),async()=>{if(!(0,n._)(this,w).id){let{captchaToken:t,captchaWidgetType:i,captchaError:r}=await this.getCaptchaToken();await (0,n._)(this,w).__internal_basePost({path:(0,n._)(this,w).pathRoot,body:{phoneNumber:e,captchaToken:t,captchaWidgetType:i,captchaError:r}})}await (0,n._)(this,w).__internal_basePost({body:{strategy:"phone_code",channel:i},action:"prepare_verification"})})}async verifyPhoneCode(t){let{code:e}=t;return(0,_.a)((0,n._)(this,w),async()=>{await (0,n._)(this,w).__internal_basePost({body:{strategy:"phone_code",code:e},action:"attempt_verification"})})}async sso(t){let{strategy:e,redirectUrl:i,redirectCallbackUrl:r,unsafeMetadata:a,legalAccepted:s,oidcPrompt:l,enterpriseConnectionId:c,emailAddress:d,popup:f}=t;return(0,_.a)((0,n._)(this,w),async()=>{let{captchaToken:t,captchaWidgetType:p,captchaError:_}=await this.getCaptchaToken(),v=i;try{new URL(i)}catch{v=window.location.origin+i}let m={redirectUrl:y.clerk.buildUrlWithAuth(r),actionCompleteRedirectUrl:v};if(f){let t=(0,h.S_)(y.clerk,{redirectCallbackUrl:m.redirectUrl,redirectUrl:v});m.redirectUrl=t.redirectCallbackUrl,m.actionCompleteRedirectUrl=t.redirectUrl}let g=()=>(0,n._)(this,w).__internal_basePost({path:(0,n._)(this,w).pathRoot,body:{strategy:e,...m,unsafeMetadata:a,legalAccepted:s,oidcPrompt:l,enterpriseConnectionId:c,emailAddress:d,captchaToken:t,captchaWidgetType:p,captchaError:_}});await g().catch(async t=>{if((0,o.kD)(t)&&(0,o.pG)(t))return await y.clerk.__unstable__environment.reload(),g();throw t});let{status:b,externalVerificationRedirectURL:k}=(0,n._)(this,w).verifications.externalAccount;"unverified"===b&&k&&(f?(await (0,h.oC)(y.clerk,{popup:f,externalVerificationRedirectURL:k}),await (0,n._)(this,w).reload()):(0,u.T7)(k))})}async web3(t){let{strategy:e,unsafeMetadata:i,legalAccepted:r}=t,a=e.replace("web3_","").replace("_signature","");return(0,_.a)((0,n._)(this,w),async()=>{let t,s,o;switch(a){case"metamask":t=await (0,u.M8)(),s=u.wO;break;case"coinbase_wallet":t=await (0,u.$0)(),s=u.dR;break;case"base":t=await (0,u.s9)(),s=u.Ji;break;case"okx_wallet":t=await (0,u.ZE)(),s=u.C3;break;default:throw Error("Unsupported Web3 provider: ".concat(a))}let l=t||(0,n._)(this,w).web3wallet;await this._create({web3Wallet:l,unsafeMetadata:i,legalAccepted:r}),await (0,n._)(this,w).__internal_basePost({body:{strategy:e},action:"prepare_verification"});let{message:c}=(0,n._)(this,w).verifications.web3Wallet;c||(0,v.lb)("SignUp");try{o=await s({identifier:t,nonce:c})}catch(e){if("coinbase_wallet"===a&&4001===e.code)o=await s({identifier:t,nonce:c});else throw e}await (0,n._)(this,w).__internal_basePost({body:{signature:o,strategy:e},action:"attempt_verification"})})}async ticket(t){var e;let i=null!=(e=null==t?void 0:t.ticket)?e:(0,u.XV)("__clerk_ticket");return this.create({...t,ticket:null!=i?i:void 0})}async finalize(t){let{navigate:e}=t||{};return(0,_.a)((0,n._)(this,w),async()=>{if(!(0,n._)(this,w).createdSessionId)throw Error("Cannot finalize sign-up without a created session.");await y.clerk.setActive({session:(0,n._)(this,w).createdSessionId,navigate:e})})}constructor(t){(0,s._)(this,"verifications",{sendEmailCode:this.sendEmailCode.bind(this),verifyEmailCode:this.verifyEmailCode.bind(this),sendPhoneCode:this.sendPhoneCode.bind(this),verifyPhoneCode:this.verifyPhoneCode.bind(this)}),(0,r._)(this,w,{writable:!0,value:void 0}),(0,a._)(this,w,t)}}class k extends g.i{fromJSON(t){return t&&(this.id=t.id,this.name=t.name),this}constructor(t){super(),(0,s._)(this,"id",void 0),(0,s._)(this,"name",void 0),this.fromJSON(t)}}},20523:function(t,e,i){"use strict";i.d(e,{W:()=>s});var n=i(17431);i(50725);var r=i(96620),a=i(28069);class s extends a.i{static async create(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new s(await a.i._fetch({method:"POST",path:t,body:e,search:i}),t)}fromJSON(t){return t&&(this.jwt=(0,r.Jx)(t.jwt)),this}__internal_toSnapshot(){return{object:"token",id:this.id||"",jwt:this.getRawString()}}constructor(t,e){super(),(0,n._)(this,"pathRoot","tokens"),(0,n._)(this,"jwt",void 0),(0,n._)(this,"getRawString",()=>{var t;return(null==(t=this.jwt)?void 0:t.claims.__raw)||""}),e&&(this.pathRoot=e),(null==t?void 0:t.jwt)&&(this.jwt=(0,r.Jx)(t.jwt))}}},84640:function(t,e,i){"use strict";i.d(e,{n:()=>d});var n=i(17431),r=i(46630),a=i(26310),s=i(95878),o=i(94898),l=i(41397),c=i(9737);class u extends c.i{fromJSON(t){return t&&(this.id=t.id,this.codes=t.codes,this.updatedAt=(0,r.V)(t.updated_at),this.createdAt=(0,r.V)(t.created_at)),this}constructor(t){super(),(0,n._)(this,"pathRoot","/me"),(0,n._)(this,"id",void 0),(0,n._)(this,"codes",[]),(0,n._)(this,"updatedAt",null),(0,n._)(this,"createdAt",null),this.fromJSON(t)}}i(50725);class h extends c.i{fromJSON(t){if(!t)return this;if(t.advisory){var e;this.advisory=this.withDefault(t.advisory,null!=(e=this.advisory)?e:null)}return t.form&&(this.form.name=this.withDefault(t.form.name,this.form.name),this.form.slug=this.withDefault(t.form.slug,this.form.slug),this.form.logo=this.withDefault(t.form.logo,this.form.logo),this.form.blurHash=this.withDefault(t.form.blur_hash,this.form.blurHash)),this}static async retrieve(){return await c.i._fetch({path:"/me/organization_creation_defaults",method:"GET"}).then(t=>new h(null==t?void 0:t.response))}__internal_toSnapshot(){return{advisory:this.advisory?{code:this.advisory.code,meta:this.advisory.meta,severity:this.advisory.severity}:null,form:{name:this.form.name,slug:this.form.slug,logo:this.form.logo,blur_hash:this.form.blurHash}}}constructor(t=null){super(),(0,n._)(this,"advisory",null),(0,n._)(this,"form",{name:"",slug:"",logo:null,blurHash:null}),this.fromJSON(t)}}class d extends c.i{static isUserResource(t){return!!t&&t instanceof d}path(){return this.pathRoot}get verifiedExternalAccounts(){return this.externalAccounts.filter(t=>{var e;return(null==(e=t.verification)?void 0:e.status)=="verified"})}get unverifiedExternalAccounts(){return this.externalAccounts.filter(t=>{var e;return(null==(e=t.verification)?void 0:e.status)!="verified"})}get verifiedWeb3Wallets(){return this.web3Wallets.filter(t=>{var e;return(null==(e=t.verification)?void 0:e.status)=="verified"})}get hasVerifiedEmailAddress(){return this.emailAddresses.filter(t=>"verified"===t.verification.status).length>0}get hasVerifiedPhoneNumber(){return this.phoneNumbers.filter(t=>"verified"===t.verification.status).length>0}fromJSON(t){return t&&(this.id=t.id,this.externalId=t.external_id||null,this.firstName=t.first_name||null,this.lastName=t.last_name||null,(this.firstName||this.lastName)&&(this.fullName=(0,s.Pp)({firstName:this.firstName,lastName:this.lastName})),this.imageUrl=t.image_url||"",this.hasImage=t.has_image||!1,this.username=t.username||null,this.passwordEnabled=t.password_enabled||!1,this.emailAddresses=(t.email_addresses||[]).map(t=>new c.b5(t,this.path()+"/email_addresses")),this.primaryEmailAddressId=t.primary_email_address_id||null,this.primaryEmailAddress=this.emailAddresses.find(t=>{let{id:e}=t;return e===this.primaryEmailAddressId})||null,this.phoneNumbers=(t.phone_numbers||[]).map(t=>new c.Bh(t,this.path()+"/phone_numbers")),this.primaryPhoneNumberId=t.primary_phone_number_id||null,this.primaryPhoneNumber=this.phoneNumbers.find(t=>{let{id:e}=t;return e===this.primaryPhoneNumberId})||null,this.web3Wallets=(t.web3_wallets||[]).map(t=>new c.q2(t,this.path()+"/web3_wallets")),this.primaryWeb3WalletId=t.primary_web3_wallet_id||null,this.primaryWeb3Wallet=this.web3Wallets.find(t=>{let{id:e}=t;return e===this.primaryWeb3WalletId})||null,this.externalAccounts=(t.external_accounts||[]).map(t=>new c.z(t,this.path()+"/external_accounts")),this.passkeys=(t.passkeys||[]).map(t=>new c.Vk(t)),this.organizationMemberships=(t.organization_memberships||[]).map(t=>new c.fr(t)),this.samlAccounts=(t.saml_accounts||[]).map(t=>new c.gt(t,this.path()+"/saml_accounts")),this.enterpriseAccounts=(t.enterprise_accounts||[]).map(t=>new c.Ye(t,this.path()+"/enterprise_accounts")),this.publicMetadata=t.public_metadata||{},this.unsafeMetadata=t.unsafe_metadata||{},this.totpEnabled=t.totp_enabled||!1,this.backupCodeEnabled=t.backup_code_enabled||!1,this.twoFactorEnabled=t.two_factor_enabled||!1,this.createOrganizationEnabled=t.create_organization_enabled||!1,this.createOrganizationsLimit=t.create_organizations_limit||null,this.deleteSelfEnabled=t.delete_self_enabled||!1,t.last_sign_in_at&&(this.lastSignInAt=(0,r.V)(t.last_sign_in_at)),t.legal_accepted_at&&(this.legalAcceptedAt=(0,r.V)(t.legal_accepted_at)),this.updatedAt=(0,r.V)(t.updated_at||void 0),this.createdAt=(0,r.V)(t.created_at||void 0)),this}__internal_toSnapshot(){var t,e,i,n;return{object:"user",id:this.id,external_id:this.externalId,first_name:this.firstName,last_name:this.lastName,username:this.username,public_metadata:this.publicMetadata,unsafe_metadata:this.unsafeMetadata,image_url:this.imageUrl,has_image:this.hasImage,email_addresses:this.emailAddresses.map(t=>t.__internal_toSnapshot()),phone_numbers:this.phoneNumbers.map(t=>t.__internal_toSnapshot()),web3_wallets:this.web3Wallets.map(t=>t.__internal_toSnapshot()),external_accounts:this.externalAccounts.map(t=>t.__internal_toSnapshot()),passkeys:this.passkeys.map(t=>t.__internal_toSnapshot()),organization_memberships:this.organizationMemberships.map(t=>t.__internal_toSnapshot()),saml_accounts:this.samlAccounts.map(t=>t.__internal_toSnapshot()),enterprise_accounts:this.enterpriseAccounts.map(t=>t.__internal_toSnapshot()),totp_enabled:this.totpEnabled,backup_code_enabled:this.backupCodeEnabled,two_factor_enabled:this.twoFactorEnabled,create_organization_enabled:this.createOrganizationEnabled,create_organizations_limit:this.createOrganizationsLimit,delete_self_enabled:this.deleteSelfEnabled,primary_email_address_id:this.primaryEmailAddressId,primary_phone_number_id:this.primaryPhoneNumberId,primary_web3_wallet_id:this.primaryWeb3WalletId,password_enabled:this.passwordEnabled,profile_image_id:this.imageUrl,last_sign_in_at:(null==(t=this.lastSignInAt)?void 0:t.getTime())||null,legal_accepted_at:(null==(e=this.legalAcceptedAt)?void 0:e.getTime())||null,updated_at:(null==(i=this.updatedAt)?void 0:i.getTime())||null,created_at:(null==(n=this.createdAt)?void 0:n.getTime())||null}}constructor(t){super(),(0,n._)(this,"pathRoot","/me"),(0,n._)(this,"id",""),(0,n._)(this,"externalId",null),(0,n._)(this,"username",null),(0,n._)(this,"emailAddresses",[]),(0,n._)(this,"phoneNumbers",[]),(0,n._)(this,"web3Wallets",[]),(0,n._)(this,"externalAccounts",[]),(0,n._)(this,"enterpriseAccounts",[]),(0,n._)(this,"passkeys",[]),(0,n._)(this,"samlAccounts",[]),(0,n._)(this,"organizationMemberships",[]),(0,n._)(this,"passwordEnabled",!1),(0,n._)(this,"firstName",null),(0,n._)(this,"lastName",null),(0,n._)(this,"fullName",null),(0,n._)(this,"primaryEmailAddressId",null),(0,n._)(this,"primaryEmailAddress",null),(0,n._)(this,"primaryPhoneNumberId",null),(0,n._)(this,"primaryPhoneNumber",null),(0,n._)(this,"primaryWeb3WalletId",null),(0,n._)(this,"primaryWeb3Wallet",null),(0,n._)(this,"imageUrl",""),(0,n._)(this,"hasImage",!1),(0,n._)(this,"twoFactorEnabled",!1),(0,n._)(this,"totpEnabled",!1),(0,n._)(this,"backupCodeEnabled",!1),(0,n._)(this,"publicMetadata",{}),(0,n._)(this,"unsafeMetadata",{}),(0,n._)(this,"createOrganizationEnabled",!1),(0,n._)(this,"createOrganizationsLimit",null),(0,n._)(this,"deleteSelfEnabled",!1),(0,n._)(this,"lastSignInAt",null),(0,n._)(this,"legalAcceptedAt",null),(0,n._)(this,"updatedAt",null),(0,n._)(this,"createdAt",null),(0,n._)(this,"cachedSessionsWithActivities",null),(0,n._)(this,"isPrimaryIdentification",t=>{switch(t.constructor){case c.b5:return this.primaryEmailAddressId===t.id;case c.Bh:return this.primaryPhoneNumberId===t.id;case c.q2:return this.primaryWeb3WalletId===t.id;default:return!1}}),(0,n._)(this,"createEmailAddress",t=>{let{email:e}=t||{};return new c.b5({email_address:e},this.path()+"/email_addresses/").create()}),(0,n._)(this,"createPasskey",()=>c.Vk.registerPasskey()),(0,n._)(this,"createPhoneNumber",t=>{let{phoneNumber:e}=t||{};return new c.Bh({phone_number:e},this.path()+"/phone_numbers/").create()}),(0,n._)(this,"createWeb3Wallet",t=>{let{web3Wallet:e}=t||{};return new c.q2({web3_wallet:e},this.path()+"/web3_wallets/").create()}),(0,n._)(this,"createExternalAccount",async t=>{var e;let{strategy:i,redirectUrl:n,additionalScopes:r}=t||{},a=null==(e=await c.i._fetch({path:"/me/external_accounts",method:"POST",body:{strategy:i,redirect_url:n,additional_scope:r}}))?void 0:e.response;return new c.z(a,this.path()+"/external_accounts")}),(0,n._)(this,"createTOTP",async()=>{var t;let e=null==(t=await c.i._fetch({path:"/me/totp",method:"POST"}))?void 0:t.response;return new c.GF(e)}),(0,n._)(this,"verifyTOTP",async t=>{var e;let{code:i}=t,n=null==(e=await c.i._fetch({path:"/me/totp/attempt_verification",method:"POST",body:{code:i}}))?void 0:e.response;return new c.GF(n)}),(0,n._)(this,"disableTOTP",async()=>{var t;let e=null==(t=await c.i._fetch({path:"/me/totp",method:"DELETE"}))?void 0:t.response;return new c.FF(e)}),(0,n._)(this,"createBackupCode",async()=>{var t;return new u(null==(t=await c.i._fetch({path:this.path()+"/backup_codes/",method:"POST"}))?void 0:t.response)}),(0,n._)(this,"update",t=>this._basePatch({body:(0,a.q)(t)})),(0,n._)(this,"updatePassword",t=>this._basePost({body:t,path:"".concat(this.path(),"/change_password")})),(0,n._)(this,"removePassword",t=>this._basePost({body:t,path:"".concat(this.path(),"/remove_password")})),(0,n._)(this,"delete",()=>this._baseDelete({path:"/me"}).then(t=>(o.Y.emit(o.U.UserSignOut,null),t))),(0,n._)(this,"getSessions",async()=>{if(this.cachedSessionsWithActivities)return this.cachedSessionsWithActivities;let t=await c.Ax.retrieve();return this.cachedSessionsWithActivities=t,t}),(0,n._)(this,"setProfileImage",t=>{let{file:e}=t||{};return null===e?c.Ee.delete("".concat(this.path(),"/profile_image")):c.Ee.create("".concat(this.path(),"/profile_image"),{file:e})}),(0,n._)(this,"getOrganizationInvitations",t=>c.ff.retrieve(t)),(0,n._)(this,"getOrganizationSuggestions",t=>c.wJ.retrieve(t)),(0,n._)(this,"getOrganizationMemberships",t=>c.fr.retrieve(t)),(0,n._)(this,"getOrganizationCreationDefaults",()=>h.retrieve()),(0,n._)(this,"leaveOrganization",async t=>{var e;let i=null==(e=await c.i._fetch({path:"".concat(this.path(),"/organization_memberships/").concat(t),method:"DELETE"}))?void 0:e.response;return new c.FF(i)}),(0,n._)(this,"initializePaymentMethod",t=>(0,l._W)(t)),(0,n._)(this,"addPaymentMethod",t=>(0,l.gP)(t)),(0,n._)(this,"getPaymentMethods",t=>(0,l.Q8)(t)),this.fromJSON(t)}}},69596:function(t,e,i){"use strict";i.d(e,{EJ:()=>u,GX:()=>l,P$:()=>c});var n=i(17431);i(91634),i(98383),i(45261),i(70957),i(24551),i(22349),i(65223);var r=i(41024),a=i(46630),s=i(93367),o=i(9737);class l extends o.i{fromJSON(t){return t&&(this.status=t.status,this.verifiedAtClient=t.verified_at_client,this.strategy=t.strategy,this.nonce=t.nonce||null,this.message=t.message||null,t.external_verification_redirect_url?this.externalVerificationRedirectURL=new URL(t.external_verification_redirect_url):this.externalVerificationRedirectURL=null,this.attempts=t.attempts,this.expireAt=(0,a.V)(t.expire_at||void 0),this.error=t.error?new r.LO(t.error):null,this.channel=t.channel||void 0),this}__internal_toSnapshot(){var t,e;return{object:"verification",id:this.id||"",status:this.status,strategy:this.strategy,nonce:this.nonce,message:this.message,external_verification_redirect_url:(null==(t=this.externalVerificationRedirectURL)?void 0:t.toString())||null,attempts:this.attempts,expire_at:(null==(e=this.expireAt)?void 0:e.getTime())||null,error:(0,r.LT)(this.error),verified_at_client:this.verifiedAtClient}}constructor(t){super(),(0,n._)(this,"pathRoot",""),(0,n._)(this,"status",null),(0,n._)(this,"strategy",null),(0,n._)(this,"nonce",null),(0,n._)(this,"message",null),(0,n._)(this,"externalVerificationRedirectURL",null),(0,n._)(this,"attempts",null),(0,n._)(this,"expireAt",null),(0,n._)(this,"error",null),(0,n._)(this,"verifiedAtClient",null),(0,n._)(this,"channel",void 0),(0,n._)(this,"verifiedFromTheSameClient",()=>{var t,e;return this.verifiedAtClient===(null==(e=o.i.clerk)||null==(t=e.client)?void 0:t.id)}),this.fromJSON(t)}}class c extends l{fromJSON(t){return super.fromJSON(t),(null==t?void 0:t.nonce)&&(this.publicKey=(0,s.GH)(JSON.parse(t.nonce))),this}constructor(t){super(t),(0,n._)(this,"publicKey",null),this.fromJSON(t)}}class u{__internal_toSnapshot(){return{email_address:this.emailAddress.__internal_toSnapshot(),phone_number:this.phoneNumber.__internal_toSnapshot(),web3_wallet:this.web3Wallet.__internal_toSnapshot(),external_account:this.externalAccount.__internal_toSnapshot()}}constructor(t){(0,n._)(this,"emailAddress",void 0),(0,n._)(this,"phoneNumber",void 0),(0,n._)(this,"web3Wallet",void 0),(0,n._)(this,"externalAccount",void 0),t?(this.emailAddress=new h(t.email_address),this.phoneNumber=new h(t.phone_number),this.web3Wallet=new h(t.web3_wallet),this.externalAccount=new l(t.external_account)):(this.emailAddress=new h(null),this.phoneNumber=new h(null),this.web3Wallet=new h(null),this.externalAccount=new l(null))}}class h extends l{__internal_toSnapshot(){return{...super.__internal_toSnapshot(),next_action:this.nextAction,supported_strategies:this.supportedStrategies}}constructor(t){super(t),(0,n._)(this,"nextAction",void 0),(0,n._)(this,"supportedStrategies",void 0),t?(this.nextAction=t.next_action,this.supportedStrategies=t.supported_strategies):(this.nextAction="",this.supportedStrategies=[])}}},32687:function(t,e,i){"use strict";i.d(e,{y:()=>s});var n=i(17431);i(50725);var r=i(46630),a=i(9737);class s extends a.i{fromJSON(t){return t&&(this.id=t.id,this.updatedAt=(0,r.V)(t.updated_at),this.createdAt=(0,r.V)(t.created_at)),this}static async join(t){var e;return new s(null==(e=await a.i._fetch({path:"/waitlist",method:"POST",body:t}))?void 0:e.response)}constructor(t){super(),(0,n._)(this,"pathRoot","/waitlist"),(0,n._)(this,"id",""),(0,n._)(this,"updatedAt",null),(0,n._)(this,"createdAt",null),this.fromJSON(t)}}},34737:function(t,e,i){"use strict";i.d(e,{q:()=>a});var n=i(17431),r=i(9737);class a extends r.i{create(){return this._basePost({body:{web3_wallet:this.web3Wallet}})}destroy(){return this._baseDelete()}toString(){return this.web3Wallet}fromJSON(t){return t&&(this.id=t.id,this.web3Wallet=t.web3_wallet,this.verification=new r.GX(t.verification)),this}__internal_toSnapshot(){return{object:"web3_wallet",id:this.id,web3_wallet:this.web3Wallet,verification:this.verification.__internal_toSnapshot()}}constructor(t,e){super(),(0,n._)(this,"id",void 0),(0,n._)(this,"web3Wallet",""),(0,n._)(this,"verification",void 0),(0,n._)(this,"prepareVerification",t=>this._basePost({action:"prepare_verification",body:{...t}})),(0,n._)(this,"attemptVerification",t=>{let{signature:e}=t;return this._basePost({action:"attempt_verification",body:{signature:e}})}),this.pathRoot=e,this.fromJSON(t)}}},9737:function(t,e,i){"use strict";i.d(e,{Bh:()=>W.B,L0:()=>m,W0:()=>tt,EJ:()=>R.EJ,mM:()=>o,s_:()=>S,$p:()=>k,ff:()=>tc,n5:()=>tl.n,mt:()=>tr,Eo:()=>g,z:()=>T.z,Ee:()=>D.E,cp:()=>K,YN:()=>z.Y,VO:()=>te,Mo:()=>ta.M,WU:()=>ts.W,PG:()=>s,gt:()=>G.g,q2:()=>tu.q,i:()=>n.i,Vk:()=>Q,_h:()=>v,CV:()=>P,b5:()=>E.b,qN:()=>td,z_:()=>H.z,Tg:()=>l.T,Jc:()=>C,u5:()=>x,GF:()=>to,KU:()=>c.K,yk:()=>th.y,Ax:()=>ti.A,wJ:()=>Z,P$:()=>R.P$,GX:()=>R.GX,cL:()=>tn.c,qA:()=>U.q,fr:()=>q,$h:()=>$,ig:()=>w,lR:()=>I.l,Ye:()=>M,FF:()=>O});var n=i(28069),r=i(17431);i(65223),i(56711);let a={enabled:!1,first_factors:[],name:"phone_number",required:!1,second_factors:[],used_for_first_factor:!1,used_for_second_factor:!1,verifications:[],verify_at_sign_up:!1};class s extends n.i{get authenticatableSocialStrategies(){return this.social?Object.entries(this.social).filter(t=>{let[,e]=t;return e.enabled&&e.authenticatable}).map(t=>{let[,e]=t;return e.strategy}).sort():[]}get enabledFirstFactorIdentifiers(){return this.attributes?Object.entries(this.attributes).filter(t=>{let[e,i]=t;return i.used_for_first_factor&&!e.startsWith("web3")}).map(t=>{let[e]=t;return e}):[]}get socialProviderStrategies(){return this.social?Object.entries(this.social).filter(t=>{let[,e]=t;return e.enabled}).map(t=>{let[,e]=t;return e.strategy}).sort():[]}get web3FirstFactors(){return this.attributes?Object.entries(this.attributes).filter(t=>{let[e,i]=t;return i.used_for_first_factor&&e.startsWith("web3")}).map(t=>{let[,e]=t;return e.first_factors}).flat():[]}get alternativePhoneCodeChannels(){return this.attributes?Object.entries(this.attributes).filter(t=>{let[e,i]=t;return i.used_for_first_factor&&"phone_number"===e}).map(t=>{var e;let[,i]=t;return(null==i||null==(e=i.channels)?void 0:e.filter(t=>"sms"!==t))||[]}).flat():[]}get instanceIsPasswordBased(){var t,e;return!!(null==(e=this.attributes)||null==(t=e.password)?void 0:t.enabled)}get hasValidAuthFactor(){var t,e,i,n,r,a;return!!((null==(e=this.attributes)||null==(t=e.email_address)?void 0:t.enabled)||(null==(n=this.attributes)||null==(i=n.phone_number)?void 0:i.enabled)||(null==(r=this.attributes.password)?void 0:r.required)&&(null==(a=this.attributes.username)?void 0:a.required))}fromJSON(t){var e,i,n,r,a,s,o,l,c;return t&&(this.attributes=this.withDefault(t.attributes?Object.fromEntries(Object.entries(t.attributes).map(t=>[t[0],{...t[1],name:t[0]}])):null,this.attributes),this.actions=this.withDefault(t.actions,this.actions),this.enterpriseSSO=this.withDefault(t.enterprise_sso,this.enterpriseSSO),this.passkeySettings=this.withDefault(t.passkey_settings,this.passkeySettings),this.passwordSettings=t.password_settings?{...t.password_settings,min_length:Math.max(null!=(s=null==(e=t.password_settings)?void 0:e.min_length)?s:8,8),max_length:(null==(i=t.password_settings)?void 0:i.max_length)===0?72:Math.min(null!=(o=null==(n=t.password_settings)?void 0:n.max_length)?o:72,72)}:this.passwordSettings,this.saml=this.withDefault(t.saml,this.saml),this.signIn=this.withDefault(t.sign_in,this.signIn),this.signUp=this.withDefault(t.sign_up,this.signUp),this.social=this.withDefault(t.social,this.social),this.usernameSettings=t.username_settings?{...t.username_settings,min_length:Math.max(null!=(l=null==(r=t.username_settings)?void 0:r.min_length)?l:4,4),max_length:Math.min(null!=(c=null==(a=t.username_settings)?void 0:a.max_length)?c:64,64)}:this.usernameSettings),this}__internal_toSnapshot(){return{actions:this.actions,attributes:this.attributes,passkey_settings:this.passkeySettings,password_settings:this.passwordSettings,saml:this.saml,sign_in:this.signIn,sign_up:this.signUp,social:this.social}}constructor(t=null){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"actions",{create_organization:!1,delete_self:!1}),(0,r._)(this,"attributes",{email_address:{enabled:!0,first_factors:["email_code"],name:"email_address",required:!0,second_factors:[],used_for_first_factor:!0,used_for_second_factor:!1,verifications:["email_code"],verify_at_sign_up:!0},phone_number:{...a,name:"phone_number"},username:{...a,name:"username"},web3_wallet:{...a,name:"web3_wallet"},first_name:{...a,name:"first_name"},last_name:{...a,name:"last_name"},password:{enabled:!0,first_factors:[],name:"password",required:!0,second_factors:[],used_for_first_factor:!1,used_for_second_factor:!1,verifications:[],verify_at_sign_up:!1},authenticator_app:{...a,name:"authenticator_app"},backup_code:{...a,name:"backup_code"},passkey:{...a,name:"passkey"}}),(0,r._)(this,"enterpriseSSO",{enabled:!1}),(0,r._)(this,"passkeySettings",{allow_autofill:!1,show_sign_in_button:!1}),(0,r._)(this,"passwordSettings",{}),(0,r._)(this,"saml",{enabled:!1}),(0,r._)(this,"signIn",{second_factor:{required:!1,enabled:!1}}),(0,r._)(this,"signUp",{allowlist_only:!1,captcha_enabled:!1,legal_consent_enabled:!1,mode:"public",progressive:!0,mfa:{required:!1}}),(0,r._)(this,"social",{}),(0,r._)(this,"usernameSettings",{}),this.fromJSON(t)}}class o extends n.i{fromJSON(t){return t&&(this.billing.stripePublishableKey=t.billing.stripe_publishable_key,this.billing.organization.enabled=t.billing.organization.enabled,this.billing.organization.hasPaidPlans=t.billing.organization.has_paid_plans,this.billing.user.enabled=t.billing.user.enabled,this.billing.user.hasPaidPlans=t.billing.user.has_paid_plans),this}__internal_toSnapshot(){return{billing:{stripe_publishable_key:this.billing.stripePublishableKey,organization:{enabled:this.billing.organization.enabled,has_paid_plans:this.billing.organization.hasPaidPlans},user:{enabled:this.billing.user.enabled,has_paid_plans:this.billing.user.hasPaidPlans}}}}constructor(t=null){super(),(0,r._)(this,"billing",{stripePublishableKey:null,organization:{enabled:!1,hasPaidPlans:!1},user:{enabled:!1,hasPaidPlans:!1}}),this.fromJSON(t)}}var l=i(60104),c=i(29401),u=i(41024),h=i(64450),d=i(46630),f=i(96620),p=i(26057);class _ extends n.i{fromJSON(t){return t&&(this.id=t.id,t.created_at&&(this.createdAt=(0,d.V)(t.created_at)),t.updated_at&&(this.updatedAt=(0,d.V)(t.updated_at)),this.imageUrl=t.image_url,this.userId=t.user_id,this.email=t.email,this.firstName=t.first_name,this.lastName=t.last_name,this.organizationId=t.organization_id,this.organizationName=t.organization_name),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"imageUrl",void 0),(0,r._)(this,"userId",null),(0,r._)(this,"email",void 0),(0,r._)(this,"firstName",void 0),(0,r._)(this,"lastName",void 0),(0,r._)(this,"organizationId",null),(0,r._)(this,"organizationName",void 0),this.fromJSON(t)}}class v extends n.i{fromJSON(t){return t&&(this.id=t.id,this.externalClientSecret=t.external_client_secret,this.externalGatewayId=t.external_gateway_id,this.paymentMethod=t.payment_method?new k(t.payment_method):void 0,this.plan=new C(t.plan),this.planPeriod=t.plan_period,this.planPeriodStart=t.plan_period_start,this.status=t.status,this.totals=(0,f.Iz)(t.totals),this.isImmediatePlanChange=t.is_immediate_plan_change,t.free_trial_ends_at&&(this.freeTrialEndsAt=(0,d.V)(t.free_trial_ends_at)),this.payer=new _(t.payer),this.needsPaymentMethod=t.needs_payment_method),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"externalClientSecret",void 0),(0,r._)(this,"externalGatewayId",void 0),(0,r._)(this,"paymentMethod",void 0),(0,r._)(this,"plan",void 0),(0,r._)(this,"planPeriod",void 0),(0,r._)(this,"planPeriodStart",void 0),(0,r._)(this,"status",void 0),(0,r._)(this,"totals",void 0),(0,r._)(this,"isImmediatePlanChange",void 0),(0,r._)(this,"freeTrialEndsAt",void 0),(0,r._)(this,"payer",void 0),(0,r._)(this,"needsPaymentMethod",void 0),(0,r._)(this,"confirm",t=>(0,h.X)(()=>this._basePatch({path:p.N.path("/checkouts/".concat(this.id,"/confirm"),{orgId:this.payer.organizationId}),body:t}),{factor:1.1,maxDelayBetweenRetries:2e3,initialDelay:2e3,jitter:!1,shouldRetry(t,e){var i,n;if(!(0,u.kD)(t)||e>=4)return!1;let r=null==t?void 0:t.status,a=409===r&&(null==(n=t.errors)||null==(i=n[0])?void 0:i.code)==="checkout_already_in_progress";return r>=500||a}})),this.fromJSON(t)}}class m extends n.i{fromJSON(t){return t&&(this.id=t.id,this.name=t.name,this.description=t.description,this.slug=t.slug,this.avatarUrl=t.avatar_url),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"name",void 0),(0,r._)(this,"description",null),(0,r._)(this,"slug",void 0),(0,r._)(this,"avatarUrl",null),this.fromJSON(t)}}class g extends n.i{fromJSON(t){return t&&(this.id=t.id,this.status=t.status,this.timestamp=(0,d.V)(t.timestamp),this.totals=(0,f.Iz)(t.totals),this.groups=t.groups.map(t=>new y(t))),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"status",void 0),(0,r._)(this,"timestamp",void 0),(0,r._)(this,"totals",void 0),(0,r._)(this,"groups",void 0),this.fromJSON(t)}}class y{fromJSON(t){return t&&(this.id=t.id,this.timestamp=(0,d.V)(t.timestamp),this.items=t.items.map(t=>new w(t))),this}constructor(t){(0,r._)(this,"id",void 0),(0,r._)(this,"timestamp",void 0),(0,r._)(this,"items",void 0),this.fromJSON(t)}}class w extends n.i{fromJSON(t){return t&&(this.id=t.id,this.amount=(0,f.CJ)(t.amount),this.paidAt=t.paid_at?(0,d.V)(t.paid_at):null,this.failedAt=t.failed_at?(0,d.V)(t.failed_at):null,this.updatedAt=(0,d.V)(t.updated_at),this.paymentMethod=t.payment_method?new k(t.payment_method):null,this.subscriptionItem=new P(t.subscription_item),this.chargeType=t.charge_type,this.status=t.status),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"amount",void 0),(0,r._)(this,"failedAt",null),(0,r._)(this,"paidAt",null),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"paymentMethod",null),(0,r._)(this,"subscriptionItem",void 0),(0,r._)(this,"chargeType",void 0),(0,r._)(this,"status",void 0),this.fromJSON(t)}}i(50725);var b=i(41397);class k extends n.i{fromJSON(t){return t&&(this.id=t.id,this.last4=t.last4,this.paymentType=t.payment_type,this.cardType=t.card_type,this.isDefault=t.is_default,this.isRemovable=t.is_removable,this.status=t.status,this.walletType=t.wallet_type,this.expiryYear=t.expiry_year,this.expiryMonth=t.expiry_month,this.createdAt=null==t.created_at?t.created_at:(0,d.V)(t.created_at),this.updatedAt=null==t.updated_at?t.updated_at:(0,d.V)(t.updated_at)),this}async remove(t){var e;let{orgId:i}=null!=t?t:{};return new O(null==(e=await n.i._fetch({path:b.Nj.path("/payment_methods/".concat(this.id),{orgId:i}),method:"DELETE"}))?void 0:e.response)}async makeDefault(t){let{orgId:e}=null!=t?t:{};return await n.i._fetch({path:b.Nj.path("/payers/default_payment_method",{orgId:e}),method:"PUT",body:{payment_method_id:this.id}}),null}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"last4",null),(0,r._)(this,"paymentType",void 0),(0,r._)(this,"cardType",null),(0,r._)(this,"isDefault",void 0),(0,r._)(this,"isRemovable",void 0),(0,r._)(this,"status",void 0),(0,r._)(this,"walletType",void 0),(0,r._)(this,"expiryYear",void 0),(0,r._)(this,"expiryMonth",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),this.fromJSON(t)}}class S extends n.i{fromJSON(t){var e;return t&&(this.externalClientSecret=t.external_client_secret,this.externalGatewayId=t.external_gateway_id,this.paymentMethodOrder=null!=(e=t.payment_method_order)?e:["card"]),this}constructor(t){super(),(0,r._)(this,"externalClientSecret",void 0),(0,r._)(this,"externalGatewayId",void 0),(0,r._)(this,"paymentMethodOrder",void 0),this.fromJSON(t)}}var A=i(4113);class C extends n.i{fromJSON(t){return t&&(this.id=t.id,this.name=t.name,this.fee=(0,A.CJ)(t.fee),this.annualFee=t.annual_fee?(0,A.CJ)(t.annual_fee):null,this.annualMonthlyFee=t.annual_monthly_fee?(0,A.CJ)(t.annual_monthly_fee):null,this.description=t.description,this.isDefault=t.is_default,this.isRecurring=t.is_recurring,this.hasBaseFee=t.has_base_fee,this.forPayerType=t.for_payer_type,this.publiclyVisible=t.publicly_visible,this.slug=t.slug,this.avatarUrl=t.avatar_url,this.freeTrialDays=this.withDefault(t.free_trial_days,null),this.freeTrialEnabled=this.withDefault(t.free_trial_enabled,!1),this.features=(t.features||[]).map(t=>new m(t))),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"name",void 0),(0,r._)(this,"fee",void 0),(0,r._)(this,"annualFee",null),(0,r._)(this,"annualMonthlyFee",null),(0,r._)(this,"description",null),(0,r._)(this,"isDefault",void 0),(0,r._)(this,"isRecurring",void 0),(0,r._)(this,"hasBaseFee",void 0),(0,r._)(this,"forPayerType",void 0),(0,r._)(this,"publiclyVisible",void 0),(0,r._)(this,"slug",void 0),(0,r._)(this,"avatarUrl",null),(0,r._)(this,"features",void 0),(0,r._)(this,"freeTrialDays",void 0),(0,r._)(this,"freeTrialEnabled",void 0),this.fromJSON(t)}}class x extends n.i{fromJSON(t){return t&&(this.id=t.id,this.status=t.status,this.createdAt=(0,d.V)(t.created_at),this.updatedAt=t.updated_at?(0,d.V)(t.updated_at):null,this.activeAt=(0,d.V)(t.active_at),this.pastDueAt=t.past_due_at?(0,d.V)(t.past_due_at):null,t.next_payment&&(this.nextPayment={amount:(0,f.CJ)(t.next_payment.amount),date:(0,d.V)(t.next_payment.date)}),this.subscriptionItems=(t.subscription_items||[]).map(t=>new P(t)),this.eligibleForFreeTrial=this.withDefault(t.eligible_for_free_trial,!1)),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"status",void 0),(0,r._)(this,"activeAt",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"pastDueAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"nextPayment",void 0),(0,r._)(this,"subscriptionItems",void 0),(0,r._)(this,"eligibleForFreeTrial",void 0),this.fromJSON(t)}}class P extends n.i{fromJSON(t){return t&&(this.id=t.id,this.plan=new C(t.plan),this.planPeriod=t.plan_period,this.status=t.status,this.createdAt=(0,d.V)(t.created_at),this.pastDueAt=t.past_due_at?(0,d.V)(t.past_due_at):null,this.periodStart=(0,d.V)(t.period_start),this.periodEnd=t.period_end?(0,d.V)(t.period_end):null,this.canceledAt=t.canceled_at?(0,d.V)(t.canceled_at):null,this.amount=t.amount?(0,f.CJ)(t.amount):void 0,this.credit=t.credit&&t.credit.amount?{amount:(0,f.CJ)(t.credit.amount)}:void 0,this.credits=t.credits?(0,f.Cn)(t.credits):void 0,this.isFreeTrial=this.withDefault(t.is_free_trial,!1)),this}async cancel(t){var e;let{orgId:i}=t;return new O(null==(e=await n.i._fetch({path:p.N.path("/subscription_items/".concat(this.id),{orgId:i}),method:"DELETE"}))?void 0:e.response)}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"plan",void 0),(0,r._)(this,"planPeriod",void 0),(0,r._)(this,"status",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"periodStart",void 0),(0,r._)(this,"periodEnd",void 0),(0,r._)(this,"canceledAt",void 0),(0,r._)(this,"pastDueAt",void 0),(0,r._)(this,"amount",void 0),(0,r._)(this,"credit",void 0),(0,r._)(this,"credits",void 0),(0,r._)(this,"isFreeTrial",void 0),this.fromJSON(t)}}class O{fromJSON(t){return t&&(this.object=t.object,this.id=t.id,this.slug=t.slug,this.deleted=t.deleted),this}constructor(t){(0,r._)(this,"object",""),(0,r._)(this,"id",void 0),(0,r._)(this,"slug",void 0),(0,r._)(this,"deleted",!1),this.fromJSON(t)}}var I=i(74498),E=i(82986),U=i(39357),T=i(56516),R=i(69596);class M extends n.i{fromJSON(t){return t&&(this.id=t.id,this.provider=t.provider,this.protocol=t.protocol,this.providerUserId=t.provider_user_id,this.active=t.active,this.emailAddress=t.email_address,this.firstName=t.first_name,this.lastName=t.last_name,this.publicMetadata=t.public_metadata,this.lastAuthenticatedAt=t.last_authenticated_at?(0,d.V)(t.last_authenticated_at):null,this.enterpriseConnectionId=t.enterprise_connection_id,t.verification&&(this.verification=new R.GX(t.verification)),t.enterprise_connection&&(this.enterpriseConnection=new N(t.enterprise_connection))),this}__internal_toSnapshot(){var t,e;return{object:"enterprise_account",id:this.id,provider:this.provider,protocol:this.protocol,provider_user_id:this.providerUserId,active:this.active,email_address:this.emailAddress,first_name:this.firstName,last_name:this.lastName,public_metadata:this.publicMetadata,verification:(null==(t=this.verification)?void 0:t.__internal_toSnapshot())||null,enterprise_connection:(null==(e=this.enterpriseConnection)?void 0:e.__internal_toSnapshot())||null,last_authenticated_at:this.lastAuthenticatedAt?this.lastAuthenticatedAt.getTime():null,enterprise_connection_id:this.enterpriseConnectionId}}constructor(t,e){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"protocol",void 0),(0,r._)(this,"provider",void 0),(0,r._)(this,"providerUserId",null),(0,r._)(this,"active",void 0),(0,r._)(this,"emailAddress",""),(0,r._)(this,"firstName",""),(0,r._)(this,"lastName",""),(0,r._)(this,"publicMetadata",{}),(0,r._)(this,"verification",null),(0,r._)(this,"enterpriseConnection",null),(0,r._)(this,"lastAuthenticatedAt",null),(0,r._)(this,"enterpriseConnectionId",null),this.pathRoot=e,this.fromJSON(t)}}class N extends n.i{fromJSON(t){return t&&(this.id=t.id,this.name=t.name,this.domain=t.domain,this.active=t.active,this.provider=t.provider,this.logoPublicUrl=t.logo_public_url,this.syncUserAttributes=t.sync_user_attributes,this.allowSubdomains=t.allow_subdomains,this.allowIdpInitiated=t.allow_idp_initiated,this.disableAdditionalIdentifications=t.disable_additional_identifications,this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at),this.enterpriseConnectionId=t.enterprise_connection_id),this}__internal_toSnapshot(){return{object:"enterprise_account_connection",id:this.id,name:this.name,domain:this.domain,active:this.active,protocol:this.protocol,provider:this.provider,logo_public_url:this.logoPublicUrl,sync_user_attributes:this.syncUserAttributes,allow_subdomains:this.allowSubdomains,allow_idp_initiated:this.allowIdpInitiated,disable_additional_identifications:this.disableAdditionalIdentifications,enterprise_connection_id:this.enterpriseConnectionId,created_at:this.createdAt.getTime(),updated_at:this.updatedAt.getTime()}}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"active",void 0),(0,r._)(this,"allowIdpInitiated",void 0),(0,r._)(this,"allowSubdomains",void 0),(0,r._)(this,"disableAdditionalIdentifications",void 0),(0,r._)(this,"domain",void 0),(0,r._)(this,"logoPublicUrl",""),(0,r._)(this,"name",void 0),(0,r._)(this,"protocol",void 0),(0,r._)(this,"provider",void 0),(0,r._)(this,"syncUserAttributes",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"enterpriseConnectionId",""),this.fromJSON(t)}}var z=i(71956),D=i(36890),W=i(19210),L=i(90750);class F extends n.i{static async create(t,e){var i;let{name:r}=e;return new F(null==(i=await n.i._fetch({path:"/organizations/".concat(t,"/domains"),method:"POST",body:{name:r}}))?void 0:i.response)}fromJSON(t){return t&&(this.id=t.id,this.name=t.name,this.organizationId=t.organization_id,this.enrollmentMode=t.enrollment_mode,this.affiliationEmailAddress=t.affiliation_email_address,this.totalPendingSuggestions=t.total_pending_suggestions,this.totalPendingInvitations=t.total_pending_invitations,t.verification?this.verification={status:t.verification.status,strategy:t.verification.strategy,attempts:t.verification.attempts,expiresAt:(0,d.V)(t.verification.expires_at)}:this.verification=null),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"name",void 0),(0,r._)(this,"organizationId",void 0),(0,r._)(this,"enrollmentMode",void 0),(0,r._)(this,"verification",void 0),(0,r._)(this,"affiliationEmailAddress",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"totalPendingInvitations",void 0),(0,r._)(this,"totalPendingSuggestions",void 0),(0,r._)(this,"prepareAffiliationVerification",async t=>this._basePost({path:"/organizations/".concat(this.organizationId,"/domains/").concat(this.id,"/prepare_affiliation_verification"),method:"POST",body:t})),(0,r._)(this,"attemptAffiliationVerification",async t=>this._basePost({path:"/organizations/".concat(this.organizationId,"/domains/").concat(this.id,"/attempt_affiliation_verification"),method:"POST",body:t})),(0,r._)(this,"updateEnrollmentMode",t=>this._basePost({path:"/organizations/".concat(this.organizationId,"/domains/").concat(this.id,"/update_enrollment_mode"),body:t})),(0,r._)(this,"delete",()=>this._baseDelete({path:"/organizations/".concat(this.organizationId,"/domains/").concat(this.id)})),this.fromJSON(t)}}class j extends n.i{fromJSON(t){return t&&(this.id=t.id,this.organizationId=t.organization_id,this.status=t.status,this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at),t.public_user_data&&(this.publicUserData=new te(t.public_user_data))),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"organizationId",void 0),(0,r._)(this,"status",void 0),(0,r._)(this,"publicUserData",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"accept",async()=>await this._basePost({path:"/organizations/".concat(this.organizationId,"/membership_requests/").concat(this.id,"/accept")})),(0,r._)(this,"reject",async()=>await this._basePost({path:"/organizations/".concat(this.organizationId,"/membership_requests/").concat(this.id,"/reject")})),this.fromJSON(t)}}class V extends n.i{fromJSON(t){return t&&(this.id=t.id,this.key=t.key,this.name=t.name,this.description=t.description,this.type=t.type,this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at)),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"key",void 0),(0,r._)(this,"name",void 0),(0,r._)(this,"description",void 0),(0,r._)(this,"type",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),this.fromJSON(t)}}class B extends n.i{fromJSON(t){return t&&(this.id=t.id,this.key=t.key,this.name=t.name,this.description=t.description,this.permissions=t.permissions.map(t=>new V(t)),this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at)),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"key",void 0),(0,r._)(this,"name",void 0),(0,r._)(this,"description",void 0),(0,r._)(this,"permissions",[]),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),this.fromJSON(t)}}class K extends n.i{static async create(t){var e;return new K(null==(e=await n.i._fetch({path:"/organizations",method:"POST",body:t}))?void 0:e.response)}static async get(t){var e;return new K(null==(e=await n.i._fetch({path:"/organizations/".concat(t),method:"GET"}))?void 0:e.response)}fromJSON(t){return t&&(this.id=t.id,this.name=t.name,this.slug=t.slug,this.imageUrl=t.image_url||"",this.hasImage=t.has_image||!1,this.publicMetadata=t.public_metadata||{},this.membersCount=t.members_count||0,this.pendingInvitationsCount=t.pending_invitations_count||0,this.maxAllowedMemberships=t.max_allowed_memberships||0,this.adminDeleteEnabled=t.admin_delete_enabled||!1,this.exclusiveMembership=t.exclusive_membership||!1,this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at)),this}__internal_toSnapshot(){return{object:"organization",id:this.id,name:this.name,slug:this.slug,image_url:this.imageUrl,has_image:this.hasImage,public_metadata:this.publicMetadata,members_count:this.membersCount,pending_invitations_count:this.pendingInvitationsCount,max_allowed_memberships:this.maxAllowedMemberships,admin_delete_enabled:this.adminDeleteEnabled,exclusive_membership:this.exclusiveMembership,created_at:this.createdAt.getTime(),updated_at:this.updatedAt.getTime()}}async reload(t){var e;let{rotatingTokenNonce:i}=t||{},r=null==(e=await n.i._fetch({path:"/organizations/".concat(this.id),method:"GET",rotatingTokenNonce:i},{forceUpdateClient:!0}))?void 0:e.response;return this.fromJSON(r)}constructor(t){super(),(0,r._)(this,"pathRoot","/organizations"),(0,r._)(this,"id",void 0),(0,r._)(this,"name",void 0),(0,r._)(this,"slug",void 0),(0,r._)(this,"imageUrl",void 0),(0,r._)(this,"hasImage",void 0),(0,r._)(this,"publicMetadata",{}),(0,r._)(this,"adminDeleteEnabled",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"membersCount",0),(0,r._)(this,"pendingInvitationsCount",0),(0,r._)(this,"maxAllowedMemberships",void 0),(0,r._)(this,"exclusiveMembership",!1),(0,r._)(this,"update",async t=>this._basePatch({body:t})),(0,r._)(this,"getRoles",async t=>await n.i._fetch({path:"/organizations/".concat(this.id,"/roles"),method:"GET",search:(0,L.C)(t)},{forceUpdateClient:!0}).then(t=>{let{data:e,total_count:i,has_role_set_migration:n}=null==t?void 0:t.response;return{total_count:i,data:e.map(t=>new B(t)),has_role_set_migration:n}})),(0,r._)(this,"getDomains",async t=>await n.i._fetch({path:"/organizations/".concat(this.id,"/domains"),method:"GET",search:(0,L.C)(t)},{forceUpdateClient:!0}).then(t=>{let{data:e,total_count:i}=null==t?void 0:t.response;return{total_count:i,data:e.map(t=>new F(t))}})),(0,r._)(this,"getDomain",async t=>{var e;let{domainId:i}=t;return new F(null==(e=await n.i._fetch({path:"/organizations/".concat(this.id,"/domains/").concat(i),method:"GET"}))?void 0:e.response)}),(0,r._)(this,"getMembershipRequests",async t=>await n.i._fetch({path:"/organizations/".concat(this.id,"/membership_requests"),method:"GET",search:(0,L.C)(t)}).then(t=>{let{data:e,total_count:i}=null==t?void 0:t.response;return{total_count:i,data:e.map(t=>new j(t))}})),(0,r._)(this,"createDomain",async t=>F.create(this.id,{name:t})),(0,r._)(this,"getMemberships",async t=>await n.i._fetch({path:"/organizations/".concat(this.id,"/memberships"),method:"GET",search:(0,L.C)({...t,paginated:!0})}).then(t=>{let{data:e,total_count:i}=null==t?void 0:t.response;return{total_count:i,data:e.map(t=>new q(t))}})),(0,r._)(this,"getInvitations",async t=>await n.i._fetch({path:"/organizations/".concat(this.id,"/invitations"),method:"GET",search:(0,L.C)(t)},{forceUpdateClient:!0}).then(t=>{let{data:e,total_count:i}=null==t?void 0:t.response;return{total_count:i,data:e.map(t=>new $(t))}})),(0,r._)(this,"addMember",async t=>{let{userId:e,role:i}=t;return await n.i._fetch({method:"POST",path:"/organizations/".concat(this.id,"/memberships"),body:{userId:e,role:i}}).then(t=>new q(null==t?void 0:t.response))}),(0,r._)(this,"inviteMember",async t=>$.create(this.id,t)),(0,r._)(this,"inviteMembers",async t=>$.createBulk(this.id,t)),(0,r._)(this,"updateMember",async t=>{let{userId:e,role:i}=t;return await n.i._fetch({method:"PATCH",path:"/organizations/".concat(this.id,"/memberships/").concat(e),body:{role:i}}).then(t=>new q(null==t?void 0:t.response))}),(0,r._)(this,"removeMember",async t=>await n.i._fetch({method:"DELETE",path:"/organizations/".concat(this.id,"/memberships/").concat(t)}).then(t=>new q(null==t?void 0:t.response))),(0,r._)(this,"destroy",async()=>this._baseDelete()),(0,r._)(this,"setLogo",async t=>{let e,i,{file:r}=t;return null===r?await n.i._fetch({path:"/organizations/".concat(this.id,"/logo"),method:"DELETE"}).then(t=>new K(null==t?void 0:t.response)):("string"==typeof r?(e=r,i=new Headers({"Content-Type":"application/octet-stream"})):(e=new FormData).append("file",r),await n.i._fetch({path:"/organizations/".concat(this.id,"/logo"),method:"PUT",body:e,headers:i}).then(t=>new K(null==t?void 0:t.response)))}),(0,r._)(this,"initializePaymentMethod",t=>(0,b._W)({...t,orgId:this.id})),(0,r._)(this,"addPaymentMethod",t=>(0,b.gP)({...t,orgId:this.id})),(0,r._)(this,"getPaymentMethods",t=>(0,b.Q8)({...t,orgId:this.id})),this.fromJSON(t)}}class $ extends n.i{static async create(t,e){var i;let{emailAddress:r,role:a}=e;return new $(null==(i=await n.i._fetch({path:"/organizations/".concat(t,"/invitations"),method:"POST",body:{email_address:r,role:a}}))?void 0:i.response)}static async createBulk(t,e){var i;let{emailAddresses:r,role:a}=e;return(null==(i=await n.i._fetch({path:"/organizations/".concat(t,"/invitations/bulk"),method:"POST",body:{email_address:r,role:a}}))?void 0:i.response).map(t=>new $(t))}fromJSON(t){return t&&(this.id=t.id,this.emailAddress=t.email_address,this.organizationId=t.organization_id,this.publicMetadata=t.public_metadata,this.role=t.role,this.roleName=t.role_name,this.status=t.status,this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at)),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"emailAddress",void 0),(0,r._)(this,"organizationId",void 0),(0,r._)(this,"publicMetadata",{}),(0,r._)(this,"status",void 0),(0,r._)(this,"role",void 0),(0,r._)(this,"roleName",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"revoke",async()=>await this._basePost({path:"/organizations/".concat(this.organizationId,"/invitations/").concat(this.id,"/revoke")})),this.fromJSON(t)}}var J=i(24152);class q extends n.i{fromJSON(t){return t&&(this.id=t.id,this.organization=new K(t.organization),this.publicMetadata=t.public_metadata||{},t.public_user_data&&(this.publicUserData=new te(t.public_user_data)),this.permissions=Array.isArray(t.permissions)?[...t.permissions]:[],this.role=t.role,this.roleName=t.role_name,this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at)),this}__internal_toSnapshot(){var t;return{object:"organization_membership",id:this.id,organization:this.organization.__internal_toSnapshot(),public_metadata:this.publicMetadata,public_user_data:null==(t=this.publicUserData)?void 0:t.__internal_toSnapshot(),permissions:this.permissions,role:this.role,role_name:this.roleName,created_at:this.createdAt.getTime(),updated_at:this.updatedAt.getTime()}}reload(t){(0,J.RE)("OrganizationMembership")}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"publicMetadata",{}),(0,r._)(this,"publicUserData",void 0),(0,r._)(this,"organization",void 0),(0,r._)(this,"permissions",[]),(0,r._)(this,"role",void 0),(0,r._)(this,"roleName",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"destroy",async()=>{var t;return await this._baseDelete({path:"/organizations/".concat(this.organization.id,"/memberships/").concat(null==(t=this.publicUserData)?void 0:t.userId)})}),(0,r._)(this,"update",async t=>{var e;let{role:i}=t;return await this._basePatch({path:"/organizations/".concat(this.organization.id,"/memberships/").concat(null==(e=this.publicUserData)?void 0:e.userId),body:{role:i}})}),this.fromJSON(t)}}(0,r._)(q,"retrieve",async t=>await n.i._fetch({path:"/me/organization_memberships",method:"GET",search:(0,L.C)({...t,paginated:!0})}).then(t=>{let{data:e,total_count:i}=null==t?void 0:t.response;return{total_count:i,data:e.map(t=>new q(t))}}));class Z extends n.i{static async retrieve(t){return await n.i._fetch({path:"/me/organization_suggestions",method:"GET",search:(0,L.C)(t)}).then(t=>{let{data:e,total_count:i}=null==t?void 0:t.response;return{total_count:i,data:e.map(t=>new Z(t))}})}fromJSON(t){return t&&(this.id=t.id,this.status=t.status,this.publicOrganizationData={hasImage:t.public_organization_data.has_image,imageUrl:t.public_organization_data.image_url,name:t.public_organization_data.name,id:t.public_organization_data.id,slug:t.public_organization_data.slug},this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at)),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"publicOrganizationData",void 0),(0,r._)(this,"status",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"accept",async()=>await this._basePost({path:"/me/organization_suggestions/".concat(this.id,"/accept")})),this.fromJSON(t)}}var G=i(52724),H=i(34377),Y=i(20645),X=i(93367);class Q extends n.i{static async create(){return n.i._fetch({path:"/me/passkeys",method:"POST"}).then(t=>new Q(null==t?void 0:t.response))}static async attemptVerification(t,e){let i=(0,X.ku)(e);return n.i._fetch({path:"/me/passkeys/".concat(t,"/attempt_verification"),method:"POST",body:{strategy:"passkey",publicKeyCredential:JSON.stringify(i)}}).then(t=>new Q(null==t?void 0:t.response))}static async registerPasskey(){var t;let e=Q.clerk.__internal_isWebAuthnSupported||Y.iW,i=Q.clerk.__internal_createPublicCredentials||X.pr,n=Q.clerk.__internal_isWebAuthnPlatformAuthenticatorSupported||Y.C6;if(!e())throw new u.RK("Passkeys are not supported on this device.",{code:"passkey_not_supported"});let r=await this.create(),{verification:a}=r,s=null==a?void 0:a.publicKey;if(s||(0,J.$C)("create"),(null==(t=s.authenticatorSelection)?void 0:t.authenticatorAttachment)==="platform"&&!await n())throw new u.RK("Registration requires a platform authenticator but the device does not support it.",{code:"passkey_pa_not_supported"});let{publicKeyCredential:o,error:l}=await i(s);if(!o)throw l;return this.attemptVerification(r.id,o)}fromJSON(t){return t&&(this.id=t.id,this.name=t.name,this.lastUsedAt=t.last_used_at?(0,d.V)(t.last_used_at):null,this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at),t.verification&&(this.verification=new R.P$(t.verification))),this}__internal_toSnapshot(){var t,e;return{object:"passkey",id:this.id,name:this.name,verification:(null==(t=this.verification)?void 0:t.__internal_toSnapshot())||null,last_used_at:(null==(e=this.lastUsedAt)?void 0:e.getTime())||null,created_at:this.createdAt.getTime(),updated_at:this.updatedAt.getTime()}}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"pathRoot","/me/passkeys"),(0,r._)(this,"verification",null),(0,r._)(this,"name",null),(0,r._)(this,"lastUsedAt",null),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"update",t=>this._basePatch({body:t})),(0,r._)(this,"delete",async()=>{var t;return new O(null==(t=await n.i._fetch({path:this.path(),method:"DELETE"}))?void 0:t.response)}),this.fromJSON(t)}}class tt extends n.i{fromJSON(t){return t&&(this.id=this.withDefault(t.id,this.id),this.loaders=this.withDefault(t.loaders,this.loaders)),this}__internal_toSnapshot(){return{object:"protect_config",id:this.id,loaders:this.loaders}}constructor(t=null){super(),(0,r._)(this,"id",""),(0,r._)(this,"loaders",void 0),(0,r._)(this,"rollout",void 0),this.fromJSON(t)}}class te{fromJSON(t){return t&&(this.firstName=t.first_name||null,this.lastName=t.last_name||null,this.imageUrl=t.image_url||"",this.hasImage=t.has_image||!1,this.identifier=t.identifier||"",this.userId=t.user_id,this.username=t.username),this}__internal_toSnapshot(){return{first_name:this.firstName,last_name:this.lastName,image_url:this.imageUrl,has_image:this.hasImage,identifier:this.identifier,user_id:this.userId,username:this.username}}constructor(t){(0,r._)(this,"firstName",void 0),(0,r._)(this,"lastName",void 0),(0,r._)(this,"imageUrl",void 0),(0,r._)(this,"hasImage",void 0),(0,r._)(this,"identifier",void 0),(0,r._)(this,"userId",void 0),(0,r._)(this,"username",void 0),this.fromJSON(t)}}var ti=i(28076),tn=i(53898);class tr{fromJSON(t){if(t){var e,i;this.firstName=t.first_name,this.lastName=t.last_name,this.imageUrl=null!=(e=t.image_url)?e:void 0,this.hasImage=null!=(i=t.has_image)?i:void 0}return this}__internal_toSnapshot(){return{first_name:this.firstName,last_name:this.lastName,image_url:this.imageUrl||null,has_image:this.hasImage||null}}constructor(t){(0,r._)(this,"firstName",void 0),(0,r._)(this,"lastName",void 0),(0,r._)(this,"imageUrl",void 0),(0,r._)(this,"hasImage",void 0),this.fromJSON(t)}}var ta=i(90240),ts=i(20523);class to extends n.i{fromJSON(t){return t&&(this.id=t.id,this.secret=t.secret,this.uri=t.uri,this.verified=t.verified,this.backupCodes=t.backup_codes,this.updatedAt=(0,d.V)(t.updated_at),this.createdAt=(0,d.V)(t.created_at)),this}constructor(t){super(),(0,r._)(this,"pathRoot","/me"),(0,r._)(this,"id",""),(0,r._)(this,"secret",void 0),(0,r._)(this,"uri",void 0),(0,r._)(this,"verified",!1),(0,r._)(this,"backupCodes",void 0),(0,r._)(this,"updatedAt",null),(0,r._)(this,"createdAt",null),this.fromJSON(t)}}var tl=i(84640);class tc extends n.i{static async retrieve(t){return await n.i._fetch({path:"/me/organization_invitations",method:"GET",search:(0,L.C)(t)}).then(t=>{let{data:e,total_count:i}=null==t?void 0:t.response;return{total_count:i,data:e.map(t=>new tc(t))}})}fromJSON(t){return t&&(this.id=t.id,this.emailAddress=t.email_address,this.publicOrganizationData={hasImage:t.public_organization_data.has_image,imageUrl:t.public_organization_data.image_url,name:t.public_organization_data.name,id:t.public_organization_data.id,slug:t.public_organization_data.slug},this.publicMetadata=t.public_metadata,this.role=t.role,this.status=t.status,this.createdAt=(0,d.V)(t.created_at),this.updatedAt=(0,d.V)(t.updated_at)),this}constructor(t){super(),(0,r._)(this,"id",void 0),(0,r._)(this,"emailAddress",void 0),(0,r._)(this,"publicOrganizationData",void 0),(0,r._)(this,"publicMetadata",{}),(0,r._)(this,"status",void 0),(0,r._)(this,"role",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),(0,r._)(this,"accept",async()=>await this._basePost({path:"/me/organization_invitations/".concat(this.id,"/accept")})),this.fromJSON(t)}}var tu=i(34737),th=i(32687);class td extends n.i{fromJSON(t){return t&&(this.id=t.id,this.type=t.type,this.name=t.name,this.subject=t.subject,this.scopes=t.scopes,this.claims=t.claims,this.revoked=t.revoked,this.revocationReason=t.revocation_reason,this.expired=t.expired,this.expiration=t.expiration?(0,d.V)(t.expiration):null,this.createdBy=t.created_by,this.description=t.description,this.secret=t.secret,this.lastUsedAt=t.last_used_at?(0,d.V)(t.last_used_at):null,this.updatedAt=(0,d.V)(t.updated_at),this.createdAt=(0,d.V)(t.created_at)),this}__internal_toSnapshot(){return{object:"api_key",id:this.id,type:this.type,name:this.name,subject:this.subject,scopes:this.scopes,claims:this.claims,revoked:this.revoked,revocation_reason:this.revocationReason,expired:this.expired,expiration:this.expiration?this.expiration.getTime():null,created_by:this.createdBy,description:this.description,last_used_at:this.lastUsedAt?this.lastUsedAt.getTime():null,created_at:this.createdAt.getTime(),updated_at:this.updatedAt.getTime()}}constructor(t){super(),(0,r._)(this,"pathRoot","/api_keys"),(0,r._)(this,"id",void 0),(0,r._)(this,"type",void 0),(0,r._)(this,"name",void 0),(0,r._)(this,"subject",void 0),(0,r._)(this,"scopes",void 0),(0,r._)(this,"claims",void 0),(0,r._)(this,"revoked",void 0),(0,r._)(this,"revocationReason",void 0),(0,r._)(this,"expired",void 0),(0,r._)(this,"expiration",void 0),(0,r._)(this,"createdBy",void 0),(0,r._)(this,"description",void 0),(0,r._)(this,"secret",void 0),(0,r._)(this,"lastUsedAt",void 0),(0,r._)(this,"createdAt",void 0),(0,r._)(this,"updatedAt",void 0),this.fromJSON(t)}}},76663:function(t,e,i){"use strict";i.d(e,{$y:()=>l,Mo:()=>s,W8:()=>o,fr:()=>a}),i(28419);var n=i(31881),r=i(96620);let a={"choose-organization":"choose-organization","reset-password":"reset-password","setup-mfa":"setup-mfa"},s=t=>"/tasks/".concat(a[t.key]);function o(t,e){let{navigate:i,baseUrl:n}=e,a=t.currentTask;if(a)return i(function(t,e){let i=(0,r.z3)();return(0,r.KV)({base:e.base,hashPath:s(t),searchParams:i},{stringify:!0})}(a,{base:n}))}function l(t){let e=["taskUrls","navigate"];Object.keys(t).some(t=>e.includes(t))||n.k.warnOnce('Clerk: Session has pending tasks but no handling is configured. To handle pending tasks, provide either "taskUrls" for navigation to custom URLs or "navigate" for programmatic navigation. Without these options, users may get stuck on incomplete flows.')}},7292:function(t,e,i){"use strict";i.d(e,{O:()=>h});var n=i(17431);i(65223),i(56113),i(50725);var r=i(46805),a=i(98382),s=i(9737),o=i(4924);let l={broadcast:!0},c={broadcast:!1};class u{static fromKey(t){let[e,i,n=""]=t.split("::");return new u(e,{audience:n,tokenId:i})}toKey(){let{tokenId:t,audience:e}=this.data;return[this.prefix,t,e||""].join("::")}constructor(t,e){(0,n._)(this,"prefix",void 0),(0,n._)(this,"data",void 0),this.prefix=t,this.data=e,this.prefix=t,this.data=e}}let h=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"clerk",e=new Map,i=Math.random().toString(36).slice(2),n=null,h=()=>n||("undefined"==typeof BroadcastChannel?null:((n=new BroadcastChannel("clerk:session_token")).addEventListener("message",t=>{f(t)}),n));h();let d=function(i){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;h();let r=new u(t,i),a=e.get(r.toKey());if(!a)return;let s=Math.floor(Date.now()/1e3)-a.createdAt;if(a.expiresIn-s<(n||1)+5){void 0!==a.timeoutId&&clearTimeout(a.timeoutId),e.delete(r.toKey());return}return a.entry},f=async t=>{var e,n,l,u;let h,{data:f}=t,_=a.K.build(f.sessionId,f.template,f.organizationId);if(f.tokenId!==_)return void r.Z.warn("Ignoring token broadcast with mismatched tokenId",{expectedTokenId:_,organizationId:f.organizationId,receivedTokenId:f.tokenId,tabId:i,template:f.template,traceId:f.traceId},"tokenCache");try{h=new s.WU({id:f.tokenId,jwt:f.tokenRaw,object:"token"})}catch(t){r.Z.warn("Failed to parse token from broadcast, skipping cache update",{error:t,tabId:i,tokenId:f.tokenId,traceId:f.traceId},"tokenCache");return}let v=null==(n=h.jwt)||null==(e=n.claims)?void 0:e.iat,m=null==(u=h.jwt)||null==(l=u.claims)?void 0:l.exp;if(!v||!m)return void r.Z.warn("Token missing iat/exp claim, skipping cache update",{tabId:i,tokenId:f.tokenId,traceId:f.traceId},"tokenCache");try{let t=d({tokenId:f.tokenId});if(t){let e=await t.tokenResolver;if((0,o.hk)(e,h)===e)return void r.Z.debug("Ignoring staler token broadcast",{tokenId:f.tokenId,traceId:f.traceId},"tokenCache")}}catch(t){r.Z.warn("Existing entry compare failed; proceeding with broadcast update",{error:t,tabId:i,tokenId:f.tokenId,traceId:f.traceId},"tokenCache")}r.Z.info("Updating token cache from broadcast",{iat:v,organizationId:f.organizationId,tabId:i,template:f.template,tokenId:f.tokenId,traceId:f.traceId},"tokenCache"),p({createdAt:v,tokenId:f.tokenId,tokenResolver:Promise.resolve(h)},c)},p=function(s){var o;let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,h=new u(t,{audience:s.audience,tokenId:s.tokenId}).toKey(),d=Math.floor(Date.now()/1e3),f={createdAt:null!=(o=s.createdAt)?o:d,entry:s,expiresIn:void 0},p=()=>{let t=e.get(h);t===f&&(void 0!==t.timeoutId&&clearTimeout(t.timeoutId),e.delete(h))};s.tokenResolver.then(t=>{var e,o;let l=null==(e=t.jwt)?void 0:e.claims;if(!l||"number"!=typeof l.exp||"number"!=typeof l.iat)return p();let u=l.exp-l.iat;f.expiresIn=u;let h=setTimeout(p,1e3*u);f.timeoutId=h,"function"==typeof h.unref&&h.unref();let d=n;if(d&&c.broadcast){let e=t.getRawString();if(e&&l.sid){let t=l.sid,n=l.org_id||(null==(o=l.o)?void 0:o.id),c=a.K.extractTemplate(s.tokenId,t,n),u=a.K.build(t,c,n);if(s.tokenId===u){let a="bc_".concat(Date.now(),"_").concat(Math.random().toString(36).substring(2,11));r.Z.info("Broadcasting token update to other tabs",{organizationId:n,sessionId:t,tabId:i,template:c,tokenId:s.tokenId,traceId:a},"tokenCache");let o={organizationId:n,sessionId:t,template:c,tokenId:s.tokenId,tokenRaw:e,traceId:a};d.postMessage(o)}}}}).catch(()=>{p()}),e.set(h,f)};return{clear:()=>{e.forEach(t=>{void 0!==t.timeoutId&&clearTimeout(t.timeoutId)}),e.clear()},close:()=>{n&&(n.close(),n=null)},get:d,set:t=>{h(),p(t,l)},size:()=>e.size}}()},4924:function(t,e,i){"use strict";function n(t){return"getRawString"in t?t.jwt:t}function r(t,e){var i,r,a,s,o,l,c,u,h,d;if(null==t)return e;let f=null==(r=n(t))||null==(i=r.header)?void 0:i.oiat,p=null==(s=n(e))||null==(a=s.header)?void 0:a.oiat;return null==f&&null==p?e:null==p?t:null==f?e:f>p?t:f<p?e:(null!=(h=null==(l=n(t))||null==(o=l.claims)?void 0:o.iat)?h:0)>(null!=(d=null==(u=n(e))||null==(c=u.claims)?void 0:c.iat)?d:0)?t:e}function a(t){var e,i;return null==(i=n(t))||null==(e=i.header)?void 0:e.oiat}function s(t){var e,i;return null==(i=n(t))||null==(e=i.claims)?void 0:e.sid}function o(t){var e,i,r;let a=null==(e=n(t))?void 0:e.claims;return(null==a?void 0:a.org_id)||(null!=(r=null==a||null==(i=a.o)?void 0:i.id)?r:"")}function l(t){return t||""}i.d(e,{bW:()=>s,hk:()=>r,sq:()=>a,tQ:()=>l,ws:()=>o})},95274:function(t,e,i){"use strict";i.d(e,{q:()=>r}),i(65223);let n=t=>"\uD83D\uDD12 Clerk:\n".concat(t.trim(),"\n(This notice only appears in development)"),r={cannotRenderComponentWhenSessionExists:"The <SignUp/> and <SignIn/> components cannot render when a user is already signed in, unless the application allows multiple sessions. Since a user is signed in and this application only allows a single session, Clerk is redirecting to the Home URL instead.",cannotRenderSignUpComponentWhenSessionExists:"The <SignUp/> component cannot render when a user is already signed in, unless the application allows multiple sessions. Since a user is signed in and this application only allows a single session, Clerk is redirecting to the value set in `afterSignUp` URL instead.",cannotRenderSignUpComponentWhenTaskExists:"The <SignUp/> component cannot render when a user has a pending task, unless the application allows multiple sessions. Since a user is signed in and this application only allows a single session, Clerk is redirecting to the task instead.",cannotRenderComponentWhenTaskDoesNotExist:"<TaskChooseOrganization/> cannot render unless a session task is pending. Clerk is redirecting to the value set in `redirectUrlComplete` instead.",cannotRenderSignInComponentWhenSessionExists:"The <SignIn/> component cannot render when a user is already signed in, unless the application allows multiple sessions. Since a user is signed in and this application only allows a single session, Clerk is redirecting to the `afterSignIn` URL instead.",cannotRenderSignInComponentWhenTaskExists:"The <SignIn/> component cannot render when a user has a pending task, unless the application allows multiple sessions. Since a user is signed in and this application only allows a single session, Clerk is redirecting to the task instead.",cannotRenderComponentWhenUserDoesNotExist:"<UserProfile/> cannot render unless a user is signed in. Since no user is signed in, this is no-op.",cannotRenderComponentWhenOrgDoesNotExist:"<OrganizationProfile/> cannot render unless an organization is active. Since no organization is currently active, this is no-op.",cannotRenderAnyOrganizationComponent:t=>n("The <".concat(t,"/> cannot be rendered when the feature is turned off. Visit 'dashboard.clerk.com' to enable the feature. Since the feature is turned off, this is no-op.")),cannotRenderAnyBillingComponent:t=>n("The <".concat(t,"/> component cannot be rendered when billing is disabled. Visit 'https://dashboard.clerk.com/last-active?path=billing/settings' to follow the necessary steps to enable billing. Since billing is disabled, this is no-op.")),cannotOpenUserProfile:"The UserProfile modal cannot render unless a user is signed in. Since no user is signed in, this is no-op.",cannotOpenCheckout:"The Checkout drawer cannot render unless a user is signed in. Since no user is signed in, this is no-op.",cannotOpenSignInOrSignUp:"The SignIn or SignUp modals do not render when a user is already signed in, unless the application allows multiple sessions. Since a user is signed in and this application only allows a single session, this is no-op.",cannotRenderAPIKeysComponent:"The <APIKeys/> component cannot be rendered when API keys are disabled. Since API keys are disabled, this is no-op.",cannotRenderAPIKeysComponentForUserWhenDisabled:"The <APIKeys/> component cannot be rendered when user API keys are disabled. Since user API keys are disabled, this is no-op.",cannotRenderAPIKeysComponentForOrgWhenDisabled:"The <APIKeys/> component cannot be rendered when organization API keys are disabled. Since organization API keys are disabled, this is no-op."};for(let t of Object.keys(r)){let e=r[t];"function"!=typeof e&&(r[t]=n(e))}},56500:function(t,e,i){"use strict";let n,r,a;i(91634),i(98383),i(45261),i(70957),i(24551),i(22349),i(65223),i(56113),i(87945);try{let t=new URL(document.currentScript.src),e=new URL(t.href.split("/").slice(0,-1).join("/")).href;i.p=(e+=e.endsWith("/")?"":"/").replace(/(^.*\/@clerk\/clerk-js@)(.+?)(\/dist.*)/,"$1".concat("5.127.2","$3"))}catch{}i(34096);var s,o,l,c,u,h=i(34056),d=i(12499),f=i(96733),p=i(17970),_=i(91412),v=i(17431);i(50725),i(92037),i(79876),i(28419);var m=i(58776),g=i(49836);let y="status";var w=i(31924),b=i(41024),k=i(43227),S=i(31881),A=i(26320);function C(t){return/^http(s)?:\/\//.test(t||"")}function x(t){return t.startsWith("/")}var P=i(67964),O=i(45040),I=i(92823),E=i(46805),U=i(96620),T=i(89576);let R="environment",M=JSON.stringify,N=JSON.parse;class z{static _key(t){return"".concat("__clerk_").concat(t)}static isExpired(t){return!!t.exp&&Date.now()>t.exp}static setItem(t,e,i){try{let n={value:e,...i&&{exp:Date.now()+i}};window.localStorage.setItem(this._key(t),M(n))}catch{}}static getItem(t,e){try{var i;let n=window.localStorage.getItem(this._key(t));if(!n)return e;let r=N(n);if(!r)return e;if(this.isExpired(r))return this.removeItem(t),e;return null!=(i=null==r?void 0:r.value)?i:e}catch{return e}}static removeItem(t){try{window.localStorage.removeItem(this._key(t))}catch{}}}var D=i(9737);function W(t,e){var i,n,r,a;return t.id!==e.id||t.updatedAt.getTime()<e.updatedAt.getTime()||(i=e,n=t,i.organizationMemberships.length!==n.organizationMemberships.length||(null==(r=i.organizationMemberships[0])?void 0:r.updatedAt)!==(null==(a=n.organizationMemberships[0])?void 0:a.updatedAt))}function L(t,e){return!function(t,e){if(!t&&e||t&&!e)return!0;if(!t&&t===e)return!1;if(!t||!e)return!0;try{var i,n,r,a,s,o,l,c;if(D.KU.isClientResource(t))return t.id!==e.id||t.updatedAt.getTime()<e.updatedAt.getTime()||t.sessions.length!==e.sessions.length;if(D.z_.isSessionResource(t)){return t.id!==e.id||t.updatedAt.getTime()<e.updatedAt.getTime()||(null==(r=t.lastActiveToken)||null==(n=r.jwt)||null==(i=n.claims)?void 0:i.__raw)!==(null==(o=e.lastActiveToken)||null==(s=o.jwt)||null==(a=s.claims)?void 0:a.__raw)||function(t,e){var i,n,r,a,s,o;if(t.lastActiveOrganizationId!==e.lastActiveOrganizationId)return!0;let l=null==(n=t.user)||null==(i=n.organizationMemberships)?void 0:i.find(e=>e.organization.id===t.lastActiveOrganizationId),c=null==(a=e.user)||null==(r=a.organizationMemberships)?void 0:r.find(e=>e.organization.id===t.lastActiveOrganizationId);return(null==l||null==(s=l.permissions)?void 0:s.length)!==(null==c||null==(o=c.permissions)?void 0:o.length)}(t,e)||(l=t,c=e,!!l.user!=!!c.user||!!l.user&&!!c.user&&W(l.user,c.user))}if(D.n5.isUserResource(t))return W(t,e)}catch{}return!0}(t,e)?t:e}var F=i(80499);let j="__clerk_db_jwt";function V(t,e){let i=new URL(t),n=i.searchParams.get(j);i.searchParams.delete(j);let r=n||e;return r&&i.searchParams.set(j,r),i}let B=t=>K($(t)),K=t=>{let e=new URL(t);return e.searchParams.delete(j),e},$=t=>{let e=new URL(t);return e.searchParams.delete("__dev_session"),e.hash=decodeURI(e.hash).replace(/__clerk_db_jwt\[(.*)\]/,""),e.href.endsWith("#")&&(e.hash=""),e};var J=i(24152),q=i(94898),Z=i(39357),G=i(20523),H=i(4924);function Y(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)"__proto__"!==n&&(t[n]=i[n])}return t}var X=function t(e,i){function n(t,n,r){if("undefined"!=typeof document){"number"==typeof(r=Y({},i,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in r)r[s]&&(a+="; "+s,!0!==r[s]&&(a+="="+r[s].split(";")[0]));return document.cookie=t+"="+e.write(n,t)+a}}return Object.create({set:n,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var i=document.cookie?document.cookie.split("; "):[],n={},r=0;r<i.length;r++){var a=i[r].split("="),s=a.slice(1).join("=");try{var o=decodeURIComponent(a[0]);if(o in n||(n[o]=e.read(s,o)),t===o)break}catch{}}return t?n[t]:n}},remove:function(t,e){n(t,"",Y({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,Y({},this.attributes,e))},withConverter:function(e){return t(Y({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function Q(t){return{get:()=>X.get(t),set(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};X.set(t,e,i)},remove(e){X.remove(t,e)}}}let tt=t=>"https:"===window.location.protocol||"None"===t&&void 0===window.safari&&(void 0!==window.isSecureContext?window.isSecureContext:"localhost"===window.location.hostname);var te=i(30474);let ti=Q("__clerk_test_etld");var tn=i(24148);let tr="__client_uat",ta="__session",ts=t=>{let e=t.usePartitionedCookies(),i=e||(0,U.TI)()||(0,tn.f)()?"None":"Lax",n=tt(i);return{sameSite:i,secure:n,partitioned:e&&n}};async function to(t){let e;try{e=await (0,k.P)(t)}catch(s){S.k.logOnce("Suffixed cookie failed due to ".concat(s.message," (secure-context: ").concat(window.isSecureContext,", url: ").concat(window.location.href,")"));let{default:n}=await Promise.all([i.e("1192"),i.e("1199")]).then(i.t.bind(i,70394,23)),{default:r}=await Promise.all([i.e("1192"),i.e("1199")]).then(i.t.bind(i,87202,23)),a=n(t);e=r.stringify(a).replace(/\+/gi,"-").replace(/\//gi,"_").substring(0,8)}return e}let tl=t=>{let e=t.usePartitionedCookies(),i=e||(0,U.TI)()||(0,tn.f)()?"None":"Lax",n=tt(i);return{sameSite:i,secure:n,partitioned:e&&n}};var tc=i(88003),tu=i(82788),th=i.n(tu);class td{startPollingForSessionToken(t){if(this.timerId||this.initiated)return;let e=async()=>{this.initiated=!0,await this.lock.acquireLockAndRun(t),this.timerId=this.workerTimers.setTimeout(e,5e3)};e()}stopPollingForSessionToken(){null!=this.timerId&&(this.workerTimers.clearTimeout(this.timerId),this.timerId=null),this.initiated=!1}constructor(){(0,v._)(this,"lock",function(t){let e=new(th());return{acquireLockAndRun:async i=>{if("locks"in navigator&&isSecureContext){let e=new AbortController,n=setTimeout(()=>e.abort(),4999);return await navigator.locks.request(t,{signal:e.signal},async()=>(clearTimeout(n),await i())).catch(()=>!1)}if(await e.acquireLock(t,5e3))try{return await i()}finally{await e.releaseLock(t)}}}}("clerk.lock.refreshSessionToken")),(0,v._)(this,"workerTimers",(0,tc.Q)()),(0,v._)(this,"timerId",null),(0,v._)(this,"initiated",!1)}}var tf=new WeakSet,tp=new WeakSet;class t_{static async create(t,e,i,n){let r=await to(t.publishableKey),a=new t_(t,e,r,i,n);return await a.setup(),a}async setup(){return"production"===this.instanceType?this.setupProduction():this.setupDevelopment()}isSignedOut(){return this.clerk.loaded?!!this.clerk.user:0>=this.clientUat.get()}async handleUnauthenticatedDevBrowser(){this.devBrowser.clear(),await this.devBrowser.setup()}decorateUrlWithDevBrowserToken(t){let e=this.devBrowser.getDevBrowserJWT();return e?V(t,e):(0,J.qO)()}async setupDevelopment(){await this.devBrowser.setup()}setupProduction(){this.devBrowser.clear()}startPollingForToken(){this.poller||(this.poller=new td,this.poller.startPollingForSessionToken(()=>this.refreshSessionToken()))}stopPollingForToken(){this.poller&&(this.poller.stopPollingForSessionToken(),this.poller=null)}refreshTokenOnFocus(){window.addEventListener("focus",()=>{"visible"===document.visibilityState&&this.refreshSessionToken({updateCookieImmediately:!0})})}async refreshSessionToken(){let{updateCookieImmediately:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.clerk.session)try{let e=await this.clerk.session.getToken();t&&this.updateSessionCookie(e)}catch(t){return this.handleGetTokenError(t)}}updateSessionCookie(t){var e,i,n,r;if(!document.hasFocus()&&!this.isCurrentContextActive()||t&&(0,p._)(this,tf,tv).call(this,t))return;let a=null==(e=this.clerk.client)?void 0:e.sessions;return(null==a?void 0:a.length)>1&&t&&E.Z.info("Updating session cookie (multi-session client)",{activeSessionId:null==(i=this.clerk.session)?void 0:i.id,sessionCount:a.length,hasActor:!!(null==(n=this.clerk.session)?void 0:n.actor)},"authCookieService"),t||(0,m.af)()||E.Z.warn("Removing session cookie (offline)",{sessionId:null==(r=this.clerk.session)?void 0:r.id},"authCookieService"),this.setActiveContextInStorage(),t?this.sessionCookie.set(t):this.sessionCookie.remove()}setClientUatCookieForDevelopmentInstances(){"production"!==this.instanceType&&this.inCustomDevelopmentDomain()&&this.clientUat.set(this.clerk.client)}inCustomDevelopmentDomain(){let t=this.clerk.frontendApi.replace("clerk.","");return!window.location.host.endsWith(t)}handleGetTokenError(t){var e,i,n;if((0,b.kD)(t)||(0,b.uX)(t)||(0,b.eE)(t)){if((0,b.ix)(t)){E.Z.warn("Token fetch failed with 4xx, triggering unauthenticated flow",{errorCode:(0,b.kD)(t)?null==(i=t.errors[0])?void 0:i.code:void 0,sessionId:null==(n=this.clerk.session)?void 0:n.id},"authCookieService"),this.clerk.handleUnauthenticated().catch(I.ZT);return}this.clerkEventBus.emit(y,"degraded"),E.Z.warn("Token fetch failed, status degraded",{errorName:null==t?void 0:t.name,sessionId:null==(e=this.clerk.session)?void 0:e.id},"authCookieService")}}handleSignOut(){this.activeCookie.remove(),this.sessionCookie.remove(),this.setClientUatCookieForDevelopmentInstances()}setActiveContextInStorage(){var t,e;let i=(null==(t=this.clerk.session)?void 0:t.id)||"",n=(null==(e=this.clerk.organization)?void 0:e.id)||"",r="".concat(i,":").concat(n);":"!==r?this.activeCookie.set(r):this.activeCookie.remove()}isCurrentContextActive(){var t,e;let i=this.activeCookie.get();if(!i)return!0;let[n,r]=i.split(":"),a=(null==(t=this.clerk.session)?void 0:t.id)||"",s=(null==(e=this.clerk.organization)?void 0:e.id)||"";return n===a&&r===s}getSessionCookie(){return this.sessionCookie.get()}constructor(t,e,i,r,a){(0,_._)(this,tf),(0,_._)(this,tp),(0,v._)(this,"clerk",void 0),(0,v._)(this,"instanceType",void 0),(0,v._)(this,"clerkEventBus",void 0),(0,v._)(this,"poller",void 0),(0,v._)(this,"clientUat",void 0),(0,v._)(this,"sessionCookie",void 0),(0,v._)(this,"activeCookie",void 0),(0,v._)(this,"devBrowser",void 0),this.clerk=t,this.instanceType=r,this.clerkEventBus=a,this.poller=null,q.Y.on(q.U.TokenUpdate,t=>{let{token:e}=t;this.updateSessionCookie(e&&e.getRawString()),this.setClientUatCookieForDevelopmentInstances()}),q.Y.on(q.U.UserSignOut,()=>this.handleSignOut()),q.Y.on(q.U.EnvironmentUpdate,()=>{this.devBrowser.refreshCookies()}),this.refreshTokenOnFocus(),this.startPollingForToken();let s={usePartitionedCookies:()=>Z.q.getInstance().partitionedCookies};this.clientUat=((t,e)=>{let i=Q(tr),r=Q((0,k._d)(tr,t));return{set:t=>{let a=(0,te.Bc)(Date.now(),1),s=e.usePartitionedCookies(),o=s||(0,U.TI)()||(0,tn.f)()?"None":"Strict",l=tt(o),c=s&&l,u=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ti,i=arguments.length>2?arguments[2]:void 0;if(n)return n;if(["localhost","127.0.0.1","0.0.0.0"].includes(t))return t;let r=t.split(".");if(1===r.length)return t;for(let t=r.length-2;t>=0;t--){let a=r.slice(t).join(".");if(e.set("1",{...i,domain:a}),"1"===e.get())return e.remove({...i,domain:a}),n=a,a;e.remove({...i,domain:a})}return n=t,t}(void 0,void 0,{sameSite:o,secure:l}),h="0";t&&t.updatedAt&&t.signedInSessions.length>0&&(h=Math.floor(t.updatedAt.getTime()/1e3).toString()),r.remove(),i.remove(),r.set(h,{domain:u,expires:a,partitioned:c,sameSite:o,secure:l}),i.set(h,{domain:u,expires:a,partitioned:c,sameSite:o,secure:l})},get:()=>parseInt(r.get()||i.get()||"0",10)}})(i,s),this.sessionCookie=((t,e)=>{let i=Q(ta),n=Q((0,k._d)(ta,t));return{set:t=>{let r=(0,te.Bc)(Date.now(),1),{sameSite:a,secure:s,partitioned:o}=ts(e);o&&(i.remove(),n.remove()),i.set(t,{expires:r,sameSite:a,secure:s,partitioned:o}),n.set(t,{expires:r,sameSite:a,secure:s,partitioned:o})},remove:()=>{let t=ts(e);i.remove(t),n.remove(t),t.partitioned&&(i.remove(),n.remove())},get:()=>n.get()||i.get()}})(i,s),this.activeCookie=(()=>{let t=Q("clerk_active_context"),e={secure:tt("None")};return{set:i=>{t.set(i,e)},get:()=>t.get(),remove:()=>t.remove(e)}})(),this.devBrowser=function(t){let e,{cookieSuffix:i,frontendApi:n,fapiClient:r,cookieOptions:a}=t,s=((t,e)=>{let i=Q(j),n=Q((0,k._d)(j,t));return{get:()=>n.get()||i.get(),set:t=>{let r=(0,te.Bc)(Date.now(),1),{sameSite:a,secure:s,partitioned:o}=tl(e);o&&(n.remove(),i.remove()),n.set(t,{expires:r,sameSite:a,secure:s,partitioned:o}),i.set(t,{expires:r,sameSite:a,secure:s,partitioned:o})},remove:()=>{let t=tl(e);n.remove(t),i.remove(t),t.partitioned&&(n.remove(),i.remove())}}})(i,a);function o(){return e||s.get()}function l(t){e=t,s.set(t)}function c(){e=void 0,s.remove()}return{clear:function(){c()},setup:async function t(){if(!(0,U.un)(n))return;r.onBeforeRequest(t=>{let e=o();e&&(null==t?void 0:t.url)&&(t.url=V(t.url,e))}),r.onAfterResponse((t,e)=>{var i;let n=null==e||null==(i=e.headers)?void 0:i.get("Clerk-Db-Jwt");n&&l(n)});let t=function(t){let e=t.searchParams.get(j)||"";return B(t).href!==t.href&&void 0!==globalThis.history&&globalThis.history.replaceState(null,"",B(t)),e}(new URL(window.location.href));if(t)return void l(t);let i=s.get();if(i){e=i;return}let a=r.buildUrl({path:"/dev_browser"}),c=await fetch(a.toString(),{method:"POST"});if(!c.ok){let t=await c.json(),e=(0,b.iR)(t.errors);e[0]?(0,J.Dg)(e[0].longMessage):(0,J.Dg)()}let u=await c.json();l(null==u?void 0:u.id)},getDevBrowserJWT:o,setDevBrowserJWT:l,removeDevBrowserJWT:c,refreshCookies:function(){let t=o();t&&l(t)}}}({frontendApi:t.frontendApi,fapiClient:e,cookieSuffix:i,cookieOptions:s})}}function tv(t){var e,i;let n=(0,p._)(this,tp,tm).call(this,t);if(!n||null==(0,H.sq)(n))return!1;let r=(0,p._)(this,tp,tm).call(this,this.sessionCookie.get());if(!r||null==(0,H.sq)(r))return!1;let a=null==(i=r.jwt)||null==(e=i.claims)?void 0:e.exp;return!("number"!=typeof a||a<=Math.floor(Date.now()/1e3))&&(0,H.bW)(r)===(0,H.bW)(n)&&(0,H.tQ)((0,H.ws)(r))===(0,H.tQ)((0,H.ws)(n))&&(0,H.hk)(r,n)===r}function tm(t){if(!t)return null;try{let e=new G.W({id:"__session",jwt:t,object:"token"});return e.jwt?e:null}catch{return null}}var tg=i(9423);class ty{async start(){this.isEnabled()&&(await this.challengeAndSend(),this.timers.setInterval(()=>{this.challengeAndSend()},this.intervalInMs()))}async challengeAndSend(){if(!(!this.clerk.client||this.clientBypass()))try{let t=await this.captchaChallenge.invisible({action:"heartbeat"});await this.clerk.client.__internal_sendCaptchaToken(t)}catch{}}isEnabled(){var t,e;return!!(null==(e=this.clerk.__unstable__environment)||null==(t=e.displayConfig)?void 0:t.captchaHeartbeat)}clientBypass(){var t;return null==(t=this.clerk.client)?void 0:t.captchaBypass}intervalInMs(){var t,e,i;return null!=(i=null==(e=this.clerk.__unstable__environment)||null==(t=e.displayConfig)?void 0:t.captchaHeartbeatIntervalMs)?i:6e5}constructor(t,e=new tg.E(t),i=(0,tc.Q)()){(0,v._)(this,"clerk",void 0),(0,v._)(this,"captchaChallenge",void 0),(0,v._)(this,"timers",void 0),this.clerk=t,this.captchaChallenge=e,this.timers=i}}var tw=i(80753);i(93008);var tb=i(64450),tk=i(72642);let tS=["/client","/waitlist"];var tA=i(75044);i(60104);var tC=i(29401);i(74498),i(82986),i(56516),i(71956),i(36890),i(19210),i(52724),i(34377),i(28076);var tx=i(53898),tP=i(90240);function tO(t){let e;try{e=new G.W({jwt:t||"",object:"token",id:void 0})}catch{e=null}if(tC.K.clearInstance(),!(null==e?void 0:e.jwt))return tC.K.getOrCreateInstance({object:"client",last_active_session_id:null,id:"client_init",sessions:[]});let{sessionId:i,userId:n,orgId:r,orgRole:a,orgPermissions:s,orgSlug:o,factorVerificationAge:l}=(t=>{var e,i,n,r,a,s,o,l;let c,u,h,d,f=null!=(e=t.fva)?e:null,p=null!=(i=t.sts)?i:null;if(2===t.v){if(t.o){c=null==(n=t.o)?void 0:n.id,h=null==(r=t.o)?void 0:r.slg,(null==(a=t.o)?void 0:a.rol)&&(u="org:".concat(null==(s=t.o)?void 0:s.rol));let{org:e}=(0,tA.Ly)(t.fea),{permissions:i,featurePermissionMap:f}=(t=>{let{per:e,fpm:i}=t;if(!e||!i)return{permissions:[],featurePermissionMap:[]};let n=e.split(",").map(t=>t.trim());return{permissions:n,featurePermissionMap:i.split(",").map(t=>Number.parseInt(t.trim(),10)).map(t=>t.toString(2).padStart(n.length,"0").split("").map(t=>Number.parseInt(t,10)).reverse()).filter(Boolean)}})({per:null==(o=t.o)?void 0:o.per,fpm:null==(l=t.o)?void 0:l.fpm});d=function(t){let{features:e,permissions:i,featurePermissionMap:n}=t;if(!e||!i||!n)return[];let r=[];for(let t=0;t<e.length;t++){let a=e[t];if(t>=n.length)continue;let s=n[t];if(s)for(let t=0;t<s.length;t++)1===s[t]&&r.push("org:".concat(a,":").concat(i[t]))}return r}({features:e,featurePermissionMap:f,permissions:i})}}else c=t.org_id,u=t.org_role,h=t.org_slug,d=t.org_permissions;return{sessionClaims:t,sessionId:t.sid,sessionStatus:p,actor:t.act,userId:t.sub,orgId:c,orgRole:u,orgSlug:h,orgPermissions:d,factorVerificationAge:f}})(e.jwt.claims),c={object:"client",last_active_session_id:i,id:"client_init",sessions:[{object:"session",id:i,status:"active",last_active_organization_id:r||null,last_active_token:{id:void 0,object:"token",jwt:t},factor_verification_age:l||null,public_user_data:{user_id:n},user:{object:"user",id:n,updated_at:1,organization_memberships:r&&o&&a?[{object:"organization_membership",id:r,role:a,permissions:s||[],organization:{object:"organization",id:r,name:o,slug:o,members_count:1,max_allowed_memberships:1}}]:[]}}]};return tC.K.getOrCreateInstance(c)}i(84640),i(69596),i(32687),i(34737);var tI=i(90750);class tE{async getBaseFapiProxyOptions(){var t;let e=await (null==(t=D.i.clerk.session)?void 0:t.getToken());if(!e)throw new b.w$("No valid session token available",{code:"no_session_token"});return{pathPrefix:"",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},credentials:"same-origin"}}async getAll(t){var e,i,n,r,a,s;return D.i._fetch({...await this.getBaseFapiProxyOptions(),method:"GET",path:"/api_keys",search:(0,tI.C)({...t,subject:null!=(a=null!=(r=null!=(n=null==t?void 0:t.subject)?n:null==(e=D.i.clerk.organization)?void 0:e.id)?r:null==(i=D.i.clerk.user)?void 0:i.id)?a:"",query:null!=(s=null==t?void 0:t.query)?s:""})}).then(t=>{let{data:e,total_count:i}=t;return{total_count:i,data:e.map(t=>new D.qN(t))}})}async create(t){var e,i,n,r,a;let s=await D.i._fetch({...await this.getBaseFapiProxyOptions(),path:"/api_keys",method:"POST",body:JSON.stringify({type:"api_key",name:t.name,subject:null!=(a=null!=(r=null!=(n=t.subject)?n:null==(e=D.i.clerk.organization)?void 0:e.id)?r:null==(i=D.i.clerk.user)?void 0:i.id)?a:"",description:t.description,seconds_until_expiration:t.secondsUntilExpiration})});return new D.qN(s)}async revoke(t){let e=await D.i._fetch({...await this.getBaseFapiProxyOptions(),method:"POST",path:"/api_keys/".concat(t.apiKeyID,"/revoke"),body:JSON.stringify({revocation_reason:t.revocationReason})});return new D.qN(e)}}var tU=i(41397);i(13189),i(63277),i(82230),i(27899),i(37389),i(27968),i(46299);let tT=(()=>{let t=new Map;return{cache:t,listeners:new Map,pendingOperations:new Map,safeGet:(t,e)=>(e.has(t)||e.set(t,new Set),e.get(t)),safeGetOperations(t){return this.pendingOperations.has(t)||this.pendingOperations.set(t,new Map),this.pendingOperations.get(t)}}})(),tR="completed";function tM(t){var e;let i=t.isStarting||t.isConfirming?"fetching":t.error?"error":"idle",n=(null==(e=t.checkout)?void 0:e.status)===tR?tR:t.checkout?"needs_confirmation":"needs_initialization";return{...t,fetchStatus:i,status:n}}let tN=Object.freeze(tM({isStarting:!1,isConfirming:!1,error:null,checkout:null}));var tz=new WeakMap;class tD{load(t){let e=null==t?void 0:t.protectConfig;if(!(!(null==e?void 0:e.loaders)||!Array.isArray(e.loaders)||0===e.loaders.length||(0,h._)(this,tz))){if((0,m._f)())for(let t of((0,f._)(this,tz,!0),e.loaders))try{this.applyLoader(t)}catch(t){S.k.warnOnce("[protect] failed to apply loader: ".concat(t))}}}applyLoader(t){if(void 0!==t.rollout){let e=t.rollout;if("number"!=typeof e||e<0)return void S.k.warnOnce("[protect] loader rollout value is invalid: ".concat(e));if(0===e||Math.random()>e)return}let e=t.type||"script",i=t.target||"body",n=document.createElement(e);if(t.attributes)for(let[e,i]of Object.entries(t.attributes))switch(typeof i){case"string":case"number":case"boolean":n.setAttribute(e,String(i));break;default:S.k.warnOnce("[protect] loader attribute is invalid type: ".concat(e,"=").concat(i))}switch(t.textContent&&"string"==typeof t.textContent&&(n.textContent=t.textContent),i){case"head":document.head.appendChild(n);break;case"body":document.body.appendChild(n);break;default:if(null==i?void 0:i.startsWith("#")){let t=document.getElementById(i.substring(1));if(!t)return void S.k.warnOnce("[protect] loader target element not found: ".concat(i));t.appendChild(n);return}S.k.warnOnce("[protect] loader target is invalid: ".concat(i))}}constructor(){(0,d._)(this,tz,{writable:!0,value:!1})}}var tW=i(76663);i(50887),(s=o||(o={}))[s.None=0]="None",s[s.Mutable=1]="Mutable",s[s.Watching=2]="Watching",s[s.RecursedCheck=4]="RecursedCheck",s[s.Recursed=8]="Recursed",s[s.Dirty=16]="Dirty",s[s.Pending=32]="Pending";let tL=[],{link:tF,unlink:tj,propagate:tV,checkDirty:tB,endTracking:tK,startTracking:t$,shallowPropagate:tJ}=function(t){let{update:e,notify:i,unwatched:n}=t,r=0;return{link:function(t,e){let i,n=e.depsTail;if(void 0!==n&&n.dep===t)return;if(4&e.flags&&void 0!==(i=void 0!==n?n.nextDep:e.deps)&&i.dep===t){i.version=r,e.depsTail=i;return}let a=t.subsTail;if(void 0!==a&&a.version===r&&a.sub===e)return;let s=e.depsTail=t.subsTail={version:r,dep:t,sub:e,prevDep:n,nextDep:i,prevSub:a,nextSub:void 0};void 0!==i&&(i.prevDep=s),void 0!==n?n.nextDep=s:e.deps=s,void 0!==a?a.nextSub=s:t.subs=s},unlink:a,propagate:function(t){let e,n=t.nextSub;t:for(;;){let r=t.sub,a=r.flags;if(3&a&&(60&a?12&a?4&a?!(48&a)&&function(t,e){let i=e.depsTail;if(void 0!==i){let n=e.deps;do{if(n===t)return!0;if(n===i)break;n=n.nextDep}while(void 0!==n)}return!1}(t,r)?(r.flags=40|a,a&=1):a=0:r.flags=-9&a|32:a=0:r.flags=32|a,2&a&&i(r),1&a)){let i=r.subs;if(void 0!==i){t=i,void 0!==i.nextSub&&(e={value:n,prev:e},n=t.nextSub);continue}}if(void 0!==(t=n)){n=t.nextSub;continue}for(;void 0!==e;)if(t=e.value,e=e.prev,void 0!==t){n=t.nextSub;continue t}break}},checkDirty:function(t,i){let n,r=0;t:for(;;){let a=t.dep,o=a.flags,l=!1;if(16&i.flags)l=!0;else if((17&o)==17){if(e(a)){let t=a.subs;void 0!==t.nextSub&&s(t),l=!0}}else if((33&o)==33){(void 0!==t.nextSub||void 0!==t.prevSub)&&(n={value:t,prev:n}),t=a.deps,i=a,++r;continue}if(!l&&void 0!==t.nextDep){t=t.nextDep;continue}for(;r;){--r;let a=i.subs,o=void 0!==a.nextSub;if(o?(t=n.value,n=n.prev):t=a,l){if(e(i)){o&&s(a),i=t.sub;continue}}else i.flags&=-33;if(i=t.sub,void 0!==t.nextDep){t=t.nextDep;continue t}l=!1}return l}},endTracking:function(t){let e=t.depsTail,i=void 0!==e?e.nextDep:t.deps;for(;void 0!==i;)i=a(i,t);t.flags&=-5},startTracking:function(t){++r,t.depsTail=void 0,t.flags=-57&t.flags|4},shallowPropagate:s};function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.sub,i=t.dep,r=t.prevDep,a=t.nextDep,s=t.nextSub,o=t.prevSub;return void 0!==a?a.prevDep=r:e.depsTail=r,void 0!==r?r.nextDep=a:e.deps=a,void 0!==s?s.prevSub=o:i.subsTail=o,void 0!==o?o.nextSub=s:void 0===(i.subs=s)&&n(i),a}function s(t){do{let e=t.sub,n=t.nextSub,r=e.flags;(48&r)==32&&(e.flags=16|r,2&r&&i(e)),t=n}while(void 0!==t)}}({update:t=>"getter"in t?tQ(t):t0(t,t.value),notify:function t(e){let i=e.flags;if(!(64&i)){e.flags=64|i;let n=e.subs;void 0!==n?t(n.sub):tL[tZ++]=e}},unwatched(t){if("getter"in t){let e=t.deps;if(void 0!==e){t.flags=17;do e=tj(e,t);while(void 0!==e)}}else"previousValue"in t||t3.call(t)}}),tq=0,tZ=0;function tG(t){let e=r;return r=t,e}function tH(t){return t2.bind({previousValue:t,value:t,subs:void 0,subsTail:void 0,flags:1})}function tY(t){return t1.bind({value:void 0,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:17,getter:t})}function tX(t){let e={fn:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:2};void 0!==r?tF(e,r):void 0!==a&&tF(e,a);let i=tG(e);try{e.fn()}finally{tG(i)}return t3.bind(e)}function tQ(t){let e=tG(t);t$(t);try{let e=t.value;return e!==(t.value=t.getter(e))}finally{tG(e),tK(t)}}function t0(t,e){return t.flags=1,t.previousValue!==(t.previousValue=e)}function t1(){let t=this.flags;if(16&t||32&t&&tB(this.deps,this)){if(tQ(this)){let t=this.subs;void 0!==t&&tJ(t)}}else 32&t&&(this.flags=-33&t);return void 0!==r?tF(this,r):void 0!==a&&tF(this,a),this.value}function t2(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length){let t=e[0];if(this.value!==(this.value=t)){this.flags=17;let t=this.subs;void 0!==t&&(tV(t),function(){for(;tq<tZ;){let t=tL[tq];tL[tq++]=void 0,function t(e,i){if(16&i||32&i&&tB(e.deps,e)){let t=tG(e);t$(e);try{e.fn()}finally{tG(t),tK(e)}return}32&i&&(e.flags=-33&i);let n=e.deps;for(;void 0!==n;){let e=n.dep,i=e.flags;64&i&&t(e,e.flags=-65&i),n=n.nextDep}}(t,t.flags&=-65)}tq=0,tZ=0}())}}else{let t=this.value;if(16&this.flags&&t0(this,t)){let t=this.subs;void 0!==t&&tJ(t)}return void 0!==r&&tF(this,r),t}}function t3(){let t=this.deps;for(;void 0!==t;)t=tj(t,this);let e=this.subs;void 0!==e&&tj(e),this.flags=0}let t5=tH({resource:null}),t9=tH({error:null}),t4=tH({status:"idle"}),t7=tY(()=>{let t=t5().resource,e=t9().error,i=t4().status;return{errors:ei(e,{identifier:null,password:null,code:null}),fetchStatus:i,signIn:t?t.__internal_future:null}}),t6=tH({resource:null}),t8=tH({error:null}),et=tH({status:"idle"}),ee=tY(()=>{let t=t6().resource,e=t8().error,i=et().status;return{errors:ei(e,{firstName:null,lastName:null,emailAddress:null,phoneNumber:null,password:null,username:null,code:null,captcha:null,legalAccepted:null}),fetchStatus:i,signUp:t?t.__internal_future:null}});function ei(t,e){let i={fields:{...e},raw:null,global:null};return t&&((0,b.kD)(t)?t.errors.some(t=>"meta"in t&&t.meta&&"paramName"in t.meta)?t.errors.forEach(t=>{if(i.raw?i.raw.push(t):i.raw=[t],"meta"in t&&t.meta&&"paramName"in t.meta){let e=(0,tk.TD)(t.meta.paramName);e in i.fields&&(i.fields[e]=t)}}):(i.raw=[t],i.global=[(0,b.Vn)(t)]):(i.raw=[t],i.global=[(0,b.Vn)(t)])),i}class en{constructor(){(0,v._)(this,"signInResourceSignal",t5),(0,v._)(this,"signInErrorSignal",t9),(0,v._)(this,"signInFetchSignal",t4),(0,v._)(this,"signInSignal",t7),(0,v._)(this,"signUpResourceSignal",t6),(0,v._)(this,"signUpErrorSignal",t8),(0,v._)(this,"signUpFetchSignal",et),(0,v._)(this,"signUpSignal",ee),(0,v._)(this,"__internal_effect",tX),(0,v._)(this,"__internal_computed",tY),(0,v._)(this,"onResourceError",t=>{t.resource instanceof tx.c&&this.signInErrorSignal({error:t.error}),t.resource instanceof tP.M&&this.signUpErrorSignal({error:t.error})}),(0,v._)(this,"onResourceUpdated",t=>{t.resource instanceof tx.c&&this.signInResourceSignal({resource:t.resource}),t.resource instanceof tP.M&&this.signUpResourceSignal({resource:t.resource})}),(0,v._)(this,"onResourceFetch",t=>{t.resource instanceof tx.c&&this.signInFetchSignal({status:t.status}),t.resource instanceof tP.M&&this.signUpFetchSignal({status:t.status})}),q.Y.on("resource:update",this.onResourceUpdated),q.Y.on("resource:error",this.onResourceError),q.Y.on("resource:fetch",this.onResourceFetch)}}var er=i(95274);let ea="cannot_render_billing_disabled",es="cannot_render_user_missing",eo="cannot_render_organizations_disabled",el="cannot_render_organization_missing",ec="cannot_render_single_session_enabled",eu={polling:!0,standardBrowser:!0,touchSession:!0,isSatellite:!1,signInUrl:void 0,signUpUrl:void 0,afterSignOutUrl:void 0,signInFallbackRedirectUrl:void 0,signUpFallbackRedirectUrl:void 0,signInForceRedirectUrl:void 0,signUpForceRedirectUrl:void 0,newSubscriptionRedirectUrl:void 0};var eh=new WeakMap,ed=new WeakMap,ef=new WeakMap,ep=new WeakMap,e_=new WeakMap,ev=new WeakMap,em=new WeakMap,eg=new WeakMap,ey=new WeakMap,ew=new WeakMap,eb=new WeakMap,ek=new WeakMap,eS=new WeakMap,eA=new WeakMap,eC=new WeakMap,ex=new WeakMap,eP=new WeakMap,eO=new WeakMap,eI=new WeakSet,eE=new WeakMap,eU=new WeakMap,eT=new WeakMap,eR=new WeakMap,eM=new WeakMap,eN=new WeakMap,ez=new WeakMap,eD=new WeakMap,eW=new WeakMap,eL=new WeakMap,eF=new WeakMap,ej=new WeakMap,eV=new WeakMap,eB=new WeakMap,eK=new WeakMap,e$=new WeakMap,eJ=new WeakMap,eq=new WeakMap,eZ=new WeakMap,eG=new WeakMap,eH=new WeakMap,eY=new WeakMap,eX=new WeakMap,eQ=new WeakMap,e0=new WeakMap,e1=new WeakMap;class e2{get __internal_queryClient(){return(0,h._)(this,eh)||Promise.all([i.e("6298"),i.e("9573")]).then(i.bind(i,54586)).then(t=>t.QueryClient).then(t=>{(0,h._)(this,eh)||((0,f._)(this,eh,new t),(0,h._)(this,eO).emit("queryClientStatus","ready"))}),(0,h._)(this,eh)?{__tag:"clerk-rq-client",client:(0,h._)(this,eh)}:void 0}get publishableKey(){return(0,h._)(this,ed)}get version(){return e2.version}set sdkMetadata(t){e2.sdkMetadata=t}get sdkMetadata(){return e2.sdkMetadata}get loaded(){return"degraded"===this.status||"ready"===this.status}get status(){return(0,h._)(this,ek)}get isSatellite(){return!!(0,U._f)()&&(0,I.YZ)((0,h._)(this,eC).isSatellite,new URL(window.location.href),!1)}get domain(){if((0,U._f)()){let t=(0,O.d5)((0,I.YZ)((0,h._)(this,ef),new URL(window.location.href)));return"production"===(0,h._)(this,eb)?(0,O.xy)(t):t}return""}get proxyUrl(){if((0,U._f)()){let t=(0,I.YZ)((0,h._)(this,ep),new URL(window.location.href));return!t||C(t)||x(t)||U.RM.throwInvalidProxyUrl({url:t}),t?x(t)?new URL(t,window.location.origin).toString():t:""}return""}get frontendApi(){let t=(0,k.nQ)(this.publishableKey);return t?t.frontendApi:U.RM.throwInvalidPublishableKeyError({key:this.publishableKey})}get instanceType(){return(0,h._)(this,eb)}get isStandardBrowser(){return(0,h._)(this,eC).standardBrowser||!1}get billing(){return e2._billing||(e2._billing=new tU.Nj),e2._billing}get apiKeys(){return e2._apiKeys||(e2._apiKeys=new tE),e2._apiKeys}__experimental_checkout(t){return this._checkout||(this._checkout=t=>(function(t,e){var i;let{for:n,planId:r,planPeriod:a}=e;if(!t.isSignedIn||!t.user)throw Error("Clerk: User is not authenticated");if("organization"===n&&!t.organization)throw Error("Clerk: Use `setActive` to set the organization");let s=function(t){let e=tT.safeGet(t,tT.listeners),i=tT.safeGetOperations(t),n=()=>tT.cache.get(t)||tN,r=i=>{let r=tM({...n(),...i});tT.cache.set(t,Object.freeze(r)),e.forEach(t=>t(n()))};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getCacheState:n,async executeOperation(e,n){let a="".concat(t,"-").concat(e),s="start"===e?"isStarting":"isConfirming",o=i.get(a);if(o)return await o;let l=(async()=>{let t=null,o=null;try{r({[s]:!0,error:null,..."start"===e?{checkout:null}:{}});let i=await n();r({[s]:!1,error:null,checkout:i}),t=i}catch(t){o=t,r({[s]:!1,error:t})}finally{i.delete(a)}return{data:t,error:o}})();return i.set(a,l),l},clearCheckout(){0===i.size&&r(tN)}}}(function(t){let{userId:e,orgId:i,planId:n,planPeriod:r}=t;return"".concat(e,"-").concat(i||"user","-").concat(n,"-").concat(r)}({userId:t.user.id,orgId:"organization"===n?null==(i=t.organization)?void 0:i.id:void 0,planId:r,planPeriod:a}));return{start:async()=>s.executeOperation("start",async()=>{var e,i;return await (null==(i=t.billing)?void 0:i.startCheckout({..."organization"===n?{orgId:null==(e=t.organization)?void 0:e.id}:{},planId:r,planPeriod:a}))}),confirm:async t=>s.executeOperation("confirm",async()=>{let e=s.getCacheState().checkout;if(!e)throw Error("Clerk: Call `start` before `confirm`");return e.confirm(t)}),finalize:e=>{var i;let{navigate:n}=e||{};return t.setActive({session:null==(i=t.session)?void 0:i.id,navigate:n})},clear:()=>s.clearCheckout(),subscribe:t=>s.subscribe(t),getState:s.getCacheState}})(this,t)),this._checkout(t)}__internal_getOption(t){return(0,h._)(this,eC)[t]}get isSignedIn(){var t;return(null===this||void 0===this||null==(t=this.session)?void 0:t.status)!=="pending"&&!!this.session}buildUrlWithAuth(t){if("production"===(0,h._)(this,eb))return t;let e=new URL(t,window.location.origin);return e.origin!==window.location.origin&&(0,h._)(this,e_)?(0,h._)(this,e_).decorateUrlWithDevBrowserToken(e).href:e.href}buildSignInUrl(t){return(0,h._)(this,eY).call(this,"signInUrl",{...t,redirectUrl:(null==t?void 0:t.redirectUrl)||window.location.href},null==t?void 0:t.initialValues)}buildSignUpUrl(t){return(0,h._)(this,eY).call(this,"signUpUrl",{...t,redirectUrl:(null==t?void 0:t.redirectUrl)||window.location.href},null==t?void 0:t.initialValues)}buildUserProfileUrl(){return this.environment&&this.environment.displayConfig?this.buildUrlWithAuth(this.environment.displayConfig.userProfileUrl):""}buildHomeUrl(){return this.environment&&this.environment.displayConfig?this.buildUrlWithAuth(this.environment.displayConfig.homeUrl):""}buildAfterSignInUrl(){let{params:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.buildUrlWithAuth(new F.O((0,h._)(this,eC),{},t).getAfterSignInUrl())}buildAfterSignUpUrl(){let{params:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.buildUrlWithAuth(new F.O((0,h._)(this,eC),{},t).getAfterSignUpUrl())}buildAfterSignOutUrl(){return(0,h._)(this,eC).afterSignOutUrl?this.buildUrlWithAuth((0,h._)(this,eC).afterSignOutUrl):"/"}buildNewSubscriptionRedirectUrl(){return(0,h._)(this,eC).newSubscriptionRedirectUrl?(0,h._)(this,eC).newSubscriptionRedirectUrl:this.buildAfterSignInUrl()}buildWaitlistUrl(t){if(!this.environment||!this.environment.displayConfig)return"";let e=(0,h._)(this,eC).waitlistUrl||this.environment.displayConfig.waitlistUrl,i=new URLSearchParams((null==t?void 0:t.initialValues)||{});return(0,U.KV)({base:e,hashSearchParams:[i]},{stringify:!0})}buildAfterMultiSessionSingleSignOutUrl(){return this.environment?(0,h._)(this,eC).afterMultiSessionSingleSignOutUrl?this.buildUrlWithAuth((0,h._)(this,eC).afterMultiSessionSingleSignOutUrl):(0,h._)(this,eC).signInUrl?this.buildUrlWithAuth((0,U.KV)({base:(0,h._)(this,eC).signInUrl,hashPath:"choose"},{stringify:!0})):this.buildUrlWithAuth(this.environment.displayConfig.afterSignOutOneUrl):""}buildCreateOrganizationUrl(){return this.environment&&this.environment.displayConfig?this.buildUrlWithAuth(this.environment.displayConfig.createOrganizationUrl):""}buildOrganizationProfileUrl(){return this.environment&&this.environment.displayConfig?this.buildUrlWithAuth(this.environment.displayConfig.organizationProfileUrl):""}buildTasksUrl(t){var e,i;let n=null==(e=this.session)?void 0:e.currentTask;if(!n)return"";let r=null==(i=(0,h._)(this,eC).taskUrls)?void 0:i[n.key];return r||(0,U.KV)({base:this.buildSignInUrl(t),hashPath:(0,tW.Mo)(n)},{stringify:!0})}updateEnvironment(t){this.environment=t}get __internal_last_error(){let t=this.internal_last_error;return this.internal_last_error=null,t}set __internal_last_error(t){this.internal_last_error=t}get __unstable__environment(){return this.environment}__internal_navigateWithError(t,e){return this.__internal_last_error=e,this.navigate(t)}assertComponentsReady(t){if(!e2.mountComponentRenderer)throw Error("ClerkJS was loaded without UI components.");if(!t)throw Error("ClerkJS components are not ready yet.")}constructor(t,e){var n=this;if((0,_._)(this,eI),(0,d._)(this,e1,{get:e5,set:void 0}),(0,v._)(this,"_checkout",void 0),(0,v._)(this,"client",void 0),(0,v._)(this,"session",void 0),(0,v._)(this,"organization",void 0),(0,v._)(this,"user",void 0),(0,v._)(this,"__internal_country",void 0),(0,v._)(this,"telemetry",void 0),(0,v._)(this,"__internal_state",new en),(0,v._)(this,"internal_last_error",null),(0,v._)(this,"environment",void 0),(0,d._)(this,eh,{writable:!0,value:void 0}),(0,d._)(this,ed,{writable:!0,value:""}),(0,d._)(this,ef,{writable:!0,value:void 0}),(0,d._)(this,ep,{writable:!0,value:void 0}),(0,d._)(this,e_,{writable:!0,value:void 0}),(0,d._)(this,ev,{writable:!0,value:void 0}),(0,d._)(this,em,{writable:!0,value:void 0}),(0,d._)(this,eg,{writable:!0,value:null}),(0,d._)(this,ey,{writable:!0,value:void 0}),(0,d._)(this,ew,{writable:!0,value:void 0}),(0,d._)(this,eb,{writable:!0,value:void 0}),(0,d._)(this,ek,{writable:!0,value:"loading"}),(0,d._)(this,eS,{writable:!0,value:[]}),(0,d._)(this,eA,{writable:!0,value:[]}),(0,d._)(this,eC,{writable:!0,value:{}}),(0,d._)(this,ex,{writable:!0,value:null}),(0,d._)(this,eP,{writable:!0,value:0}),(0,d._)(this,eO,{writable:!0,value:(0,g.n)()}),(0,v._)(this,"__internal_getCachedResources",void 0),(0,v._)(this,"__internal_createPublicCredentials",void 0),(0,v._)(this,"__internal_getPublicCredentials",void 0),(0,v._)(this,"__internal_isWebAuthnSupported",void 0),(0,v._)(this,"__internal_isWebAuthnAutofillSupported",void 0),(0,v._)(this,"__internal_isWebAuthnPlatformAuthenticatorSupported",void 0),(0,v._)(this,"__internal_setActiveInProgress",!1),(0,v._)(this,"getFapiClient",()=>(0,h._)(this,ew)),(0,v._)(this,"load",async t=>{if(E.Z.info("load() start",{},"clerk"),!this.loaded){if("development"===(0,h._)(this,eb)&&S.k.warnOnce("Clerk: Clerk has been loaded with development keys. Development instances have strict usage limits and should not be used when deploying your application to production. Learn more: https://clerk.com/docs/deployments/overview"),(0,f._)(this,eC,(0,h._)(this,eQ).call(this,t)),"development"===(0,h._)(this,eb)&&((0,h._)(this,eC).routerPush||(0,h._)(this,eC).routerReplace)&&(!(0,h._)(this,eC).routerPush||!(0,h._)(this,eC).routerReplace)){let t=(0,h._)(this,eC).routerPush?"routerReplace":"routerPush";S.k.warnOnce("Clerk: Both `routerPush` and `routerReplace` need to be defined, but `".concat(t,"` is not defined. This may cause issues with navigation in your application."))}q.Y.on(q.U.SessionTokenResolved,()=>{(0,h._)(this,eq).call(this,this.session),(0,h._)(this,eB).call(this)}),(0,T.v)((0,h._)(this,eC)),(0,h._)(this,eC).sdkMetadata&&(e2.sdkMetadata=(0,h._)(this,eC).sdkMetadata),!1!==(0,h._)(this,eC).telemetry&&(this.telemetry=new P.NS({clerkVersion:e2.version,samplingRate:1,perEventSampling:!(0,h._)(this,eC).__internal_keyless_claimKeylessApplicationUrl&&void 0,publishableKey:this.publishableKey,...(0,h._)(this,eC).telemetry}),(0,h._)(this,eC).appearance&&this.telemetry.record((0,P.Ty)((0,h._)(this,eC).appearance)));try{var e,i,n,r,a;(0,h._)(this,eC).standardBrowser?await (0,h._)(this,eW).call(this):await (0,h._)(this,eL).call(this);let t=(0,h._)(this,eC).telemetry,s=!1!==t&&!(null==t?void 0:t.disabled),o=!!(0,h._)(this,eC).__internal_keyless_claimKeylessApplicationUrl,l=!!(null==(e=this.environment)?void 0:e.clientDebugMode),c=null!=(a=null==(n=this.environment)||null==(i=n.isProduction)?void 0:i.call(n))&&a,u=l||o&&!c,d=o&&!l?"error":void 0;u&&(0,E.e)({enabled:!0,...d?{logLevel:d}:{},...s&&this.telemetry?{telemetryCollector:this.telemetry}:{}}),null==(r=(0,h._)(this,ev))||r.load(this.environment),E.Z.info("load() complete",{},"clerk")}catch(t){throw(0,h._)(this,eO).emit(y,"error"),E.Z.error("load() failed",{error:t},"clerk"),t}}}),(0,v._)(this,"signOut",async(t,e)=>{var i,n,r,a,s,o;if(!this.client||0===this.client.sessions.length)return;let l="undefined"!=typeof window&&"function"==typeof window.__unstable__onBeforeSetActive?window.__unstable__onBeforeSetActive:I.ZT,c="undefined"!=typeof window&&"function"==typeof window.__unstable__onAfterSetActive?window.__unstable__onAfterSetActive:I.ZT,u=t&&"object"==typeof t?t:e||{},d=(null==u?void 0:u.redirectUrl)||this.buildAfterSignOutUrl();E.Z.debug("signOut() start",{hasClient:!!this.client,multiSessionCount:null!=(r=null==(i=this.client)?void 0:i.signedInSessions.length)?r:0,redirectUrl:d,sessionTarget:null!=(a=null==u?void 0:u.sessionId)?a:null},"clerk");let f="function"==typeof t?t:void 0,p=async()=>{let t=(0,U.HV)((0,h._)(this,eC).standardBrowser);q.Y.emit(q.U.UserSignOut,null),(0,h._)(this,e$).call(this),await t.track(async()=>{f?await f():await this.navigate(d)}),t.isUnloading()||((0,h._)(this,eq).call(this),(0,h._)(this,eB).call(this),await c())};if(await l(),!u.sessionId||1===this.client.signedInSessions.length){null==(o=null==(s=(0,h._)(this,eC).experimental)?void 0:s.persistClient)||o?await this.client.removeSessions():await this.client.destroy(),await p(),E.Z.info("signOut() complete",{redirectUrl:(0,U.M)(d)},"clerk");return}let _=this.client.signedInSessions.find(t=>t.id===u.sessionId),v=(null==_?void 0:_.id)&&(null==(n=this.session)?void 0:n.id)===_.id;await (null==_?void 0:_.remove()),v&&(await p(),E.Z.info("signOut() complete",{redirectUrl:(0,U.M)(d)},"clerk"))}),(0,v._)(this,"openGoogleOneTap",t=>{var e;let i="GoogleOneTap";this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted({preloadHint:i}).then(e=>e.openModal("googleOneTap",t||{})),null==(e=this.telemetry)||e.record((0,P.uT)(i,t))}),(0,v._)(this,"closeGoogleOneTap",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeModal("googleOneTap"))}),(0,v._)(this,"openSignIn",t=>{var e,i;if(this.assertComponentsReady((0,h._)(this,ey)),(0,U.dj)(this,this.environment)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotOpenSignInOrSignUp,{code:ec});return}let n="SignIn";(0,h._)(this,ey).ensureMounted({preloadHint:n}).then(e=>e.openModal("signIn",t||{}));let r={withSignUp:null!=(i=null==t?void 0:t.withSignUp)?i:(0,p._)(this,eI,e3).call(this)};null==(e=this.telemetry)||e.record((0,P.uT)(n,t,r))}),(0,v._)(this,"closeSignIn",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeModal("signIn"))}),(0,v._)(this,"__internal_openCheckout",t=>{if(this.assertComponentsReady((0,h._)(this,ey)),(0,U.DT)(this,this.environment)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotRenderAnyBillingComponent("Checkout"),{code:ea});return}if((0,U.f)(this)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotOpenCheckout,{code:es});return}(0,h._)(this,ey).ensureMounted({preloadHint:"Checkout"}).then(e=>e.openDrawer("checkout",t||{}))}),(0,v._)(this,"__internal_closeCheckout",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeDrawer("checkout"))}),(0,v._)(this,"__internal_openPlanDetails",t=>{var e;if(this.assertComponentsReady((0,h._)(this,ey)),(0,U.DT)(this,this.environment)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotRenderAnyBillingComponent("PlanDetails"),{code:ea});return}let i="PlanDetails";(0,h._)(this,ey).ensureMounted({preloadHint:i}).then(e=>e.openDrawer("planDetails",t||{})),null==(e=this.telemetry)||e.record((0,P.uT)(i,t))}),(0,v._)(this,"__internal_closePlanDetails",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeDrawer("planDetails"))}),(0,v._)(this,"__internal_openSubscriptionDetails",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted({preloadHint:"SubscriptionDetails"}).then(e=>e.openDrawer("subscriptionDetails",t||{}))}),(0,v._)(this,"__internal_closeSubscriptionDetails",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeDrawer("subscriptionDetails"))}),(0,v._)(this,"__internal_openReverification",t=>{var e;if(this.assertComponentsReady((0,h._)(this,ey)),(0,U.f)(this)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotOpenUserProfile,{code:es});return}(0,h._)(this,ey).ensureMounted({preloadHint:"UserVerification"}).then(e=>e.openModal("userVerification",t||{})),null==(e=this.telemetry)||e.record((0,P.uT)("UserVerification",t))}),(0,v._)(this,"__internal_closeReverification",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeModal("userVerification"))}),(0,v._)(this,"__internal_attemptToEnableEnvironmentSetting",t=>{let{for:e,caller:i}=t;if(this.user||"development"!==(0,h._)(this,eb)||S.k.warnOnce('Clerk: "'.concat(i,'" requires an active user session. Ensure a user is signed in before executing ').concat(i,".")),"organizations"===e){var n,r;return(0,U.sW)(this,this.environment)&&(null==(r=this.session)||null==(n=r.currentTask)?void 0:n.key)!=="choose-organization"?("development"===(0,h._)(this,eb)&&this.__internal_openEnableOrganizationsPrompt({caller:i,onSuccess:()=>window.location.reload(),onClose:t.onClose}),{isEnabled:!1}):{isEnabled:!0}}throw Error('Attempted to enable an unknown or unsupported setting "'.concat(e,'".'))}),(0,v._)(this,"__internal_openEnableOrganizationsPrompt",t=>{var e;this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted({preloadHint:"EnableOrganizationsPrompt"}).then(e=>e.openModal("enableOrganizationsPrompt",t||{})),null==(e=this.telemetry)||e.record((0,P.nx)("EnableOrganizationsPrompt",t))}),(0,v._)(this,"__internal_closeEnableOrganizationsPrompt",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeModal("enableOrganizationsPrompt"))}),(0,v._)(this,"__internal_openBlankCaptchaModal",()=>(this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted({preloadHint:"BlankCaptchaModal"}).then(t=>t.openModal("blankCaptcha",{})))),(0,v._)(this,"__internal_closeBlankCaptchaModal",()=>(this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted({preloadHint:"BlankCaptchaModal"}).then(t=>t.closeModal("blankCaptcha")))),(0,v._)(this,"__internal_loadStripeJs",async()=>{let{loadStripe:t}=await i.e("832").then(i.bind(i,78823));return t}),(0,v._)(this,"openSignUp",t=>{var e;if(this.assertComponentsReady((0,h._)(this,ey)),(0,U.dj)(this,this.environment)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotOpenSignInOrSignUp,{code:ec});return}(0,h._)(this,ey).ensureMounted({preloadHint:"SignUp"}).then(e=>e.openModal("signUp",t||{})),null==(e=this.telemetry)||e.record((0,P.uT)("SignUp",t))}),(0,v._)(this,"closeSignUp",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeModal("signUp"))}),(0,v._)(this,"openUserProfile",t=>{var e,i;if(this.assertComponentsReady((0,h._)(this,ey)),(0,U.f)(this)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotOpenUserProfile,{code:es});return}(0,h._)(this,ey).ensureMounted({preloadHint:"UserProfile"}).then(e=>e.openModal("userProfile",t||{}));let n=((null==t||null==(e=t.customPages)?void 0:e.length)||0)>0?{customPages:!0}:void 0;null==(i=this.telemetry)||i.record((0,P.uT)("UserProfile",t,n))}),(0,v._)(this,"closeUserProfile",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeModal("userProfile"))}),(0,v._)(this,"openOrganizationProfile",t=>{var e;this.assertComponentsReady((0,h._)(this,ey));let{isEnabled:i}=this.__internal_attemptToEnableEnvironmentSetting({for:"organizations",caller:"OrganizationProfile",onClose:()=>{throw new b.w$(er.q.cannotRenderAnyOrganizationComponent("OrganizationProfile"),{code:eo})}});if(i){if((0,U.n$)(this)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotRenderComponentWhenOrgDoesNotExist,{code:el});return}(0,h._)(this,ey).ensureMounted({preloadHint:"OrganizationProfile"}).then(e=>e.openModal("organizationProfile",t||{})),null==(e=this.telemetry)||e.record((0,P.uT)("OrganizationProfile",t))}}),(0,v._)(this,"closeOrganizationProfile",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeModal("organizationProfile"))}),(0,v._)(this,"openCreateOrganization",t=>{var e;this.assertComponentsReady((0,h._)(this,ey));let{isEnabled:i}=this.__internal_attemptToEnableEnvironmentSetting({for:"organizations",caller:"CreateOrganization",onClose:()=>{throw new b.w$(er.q.cannotRenderAnyOrganizationComponent("CreateOrganization"),{code:eo})}});i&&((0,h._)(this,ey).ensureMounted({preloadHint:"CreateOrganization"}).then(e=>e.openModal("createOrganization",t||{})),null==(e=this.telemetry)||e.record((0,P.uT)("CreateOrganization",t)))}),(0,v._)(this,"closeCreateOrganization",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeModal("createOrganization"))}),(0,v._)(this,"openWaitlist",t=>{var e;this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted({preloadHint:"Waitlist"}).then(e=>e.openModal("waitlist",t||{})),null==(e=this.telemetry)||e.record((0,P.uT)("Waitlist",t))}),(0,v._)(this,"closeWaitlist",()=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(t=>t.closeModal("waitlist"))}),(0,v._)(this,"mountSignIn",(t,e)=>{var i,n;this.assertComponentsReady((0,h._)(this,ey));let r="SignIn";(0,h._)(this,ey).ensureMounted({preloadHint:r}).then(i=>i.mountComponent({name:r,appearanceKey:"signIn",node:t,props:e}));let a={withSignUp:null!=(n=null==e?void 0:e.withSignUp)?n:(0,p._)(this,eI,e3).call(this)};null==(i=this.telemetry)||i.record((0,P.nx)(r,e,a))}),(0,v._)(this,"unmountSignIn",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountUserAvatar",(t,e)=>{var i;this.assertComponentsReady((0,h._)(this,ey));let n="UserAvatar";(0,h._)(this,ey).ensureMounted({preloadHint:n}).then(i=>i.mountComponent({name:n,appearanceKey:"userAvatar",node:t,props:e})),null==(i=this.telemetry)||i.record((0,P.nx)(n,e))}),(0,v._)(this,"unmountUserAvatar",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountSignUp",(t,e)=>{var i;this.assertComponentsReady((0,h._)(this,ey));let n="SignUp";(0,h._)(this,ey).ensureMounted({preloadHint:n}).then(i=>i.mountComponent({name:n,appearanceKey:"signUp",node:t,props:e})),null==(i=this.telemetry)||i.record((0,P.nx)(n,e))}),(0,v._)(this,"unmountSignUp",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountUserProfile",(t,e)=>{var i,n;if(this.assertComponentsReady((0,h._)(this,ey)),(0,U.f)(this)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotRenderComponentWhenUserDoesNotExist,{code:es});return}let r="UserProfile";(0,h._)(this,ey).ensureMounted({preloadHint:r}).then(i=>i.mountComponent({name:r,appearanceKey:"userProfile",node:t,props:e}));let a=((null==e||null==(i=e.customPages)?void 0:i.length)||0)>0?{customPages:!0}:void 0;null==(n=this.telemetry)||n.record((0,P.nx)(r,e,a))}),(0,v._)(this,"unmountUserProfile",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountOrganizationProfile",(t,e)=>{var i;this.assertComponentsReady((0,h._)(this,ey));let{isEnabled:n}=this.__internal_attemptToEnableEnvironmentSetting({for:"organizations",caller:"OrganizationProfile",onClose:()=>{throw new b.w$(er.q.cannotRenderAnyOrganizationComponent("OrganizationProfile"),{code:eo})}});if(!n)return;let r=!(0,U.f)(this);if((0,U.n$)(this)&&r){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotRenderComponentWhenOrgDoesNotExist,{code:el});return}(0,h._)(this,ey).ensureMounted({preloadHint:"OrganizationProfile"}).then(i=>i.mountComponent({name:"OrganizationProfile",appearanceKey:"userProfile",node:t,props:e})),null==(i=this.telemetry)||i.record((0,P.nx)("OrganizationProfile",e))}),(0,v._)(this,"unmountOrganizationProfile",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountCreateOrganization",(t,e)=>{var i,n;this.assertComponentsReady((0,h._)(this,ey));let{isEnabled:r}=this.__internal_attemptToEnableEnvironmentSetting({for:"organizations",caller:"CreateOrganization",onClose:()=>{throw new b.w$(er.q.cannotRenderAnyOrganizationComponent("CreateOrganization"),{code:eo})}});r&&(null==(i=(0,h._)(this,ey))||i.ensureMounted({preloadHint:"CreateOrganization"}).then(i=>i.mountComponent({name:"CreateOrganization",appearanceKey:"createOrganization",node:t,props:e})),null==(n=this.telemetry)||n.record((0,P.nx)("CreateOrganization",e)))}),(0,v._)(this,"unmountCreateOrganization",t=>{var e;this.assertComponentsReady((0,h._)(this,ey)),null==(e=(0,h._)(this,ey))||e.ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountOrganizationSwitcher",(t,e)=>{var i,n,r;this.assertComponentsReady((0,h._)(this,ey));let{isEnabled:a}=this.__internal_attemptToEnableEnvironmentSetting({for:"organizations",caller:"OrganizationSwitcher",onClose:()=>{throw new b.w$(er.q.cannotRenderAnyOrganizationComponent("OrganizationSwitcher"),{code:eo})}});a&&(null==(i=(0,h._)(this,ey))||i.ensureMounted({preloadHint:"OrganizationSwitcher"}).then(i=>i.mountComponent({name:"OrganizationSwitcher",appearanceKey:"organizationSwitcher",node:t,props:e})),null==(r=this.telemetry)||r.record((0,P.nx)("OrganizationSwitcher",{...e,forceOrganizationSelection:null==(n=this.environment)?void 0:n.organizationSettings.forceOrganizationSelection})))}),(0,v._)(this,"unmountOrganizationSwitcher",t=>{var e;this.assertComponentsReady((0,h._)(this,ey)),null==(e=(0,h._)(this,ey))||e.ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"__experimental_prefetchOrganizationSwitcher",()=>{var t;this.assertComponentsReady((0,h._)(this,ey)),null==(t=(0,h._)(this,ey))||t.ensureMounted({preloadHint:"OrganizationSwitcher"}).then(t=>t.prefetch("organizationSwitcher"))}),(0,v._)(this,"mountOrganizationList",(t,e)=>{var i,n,r;this.assertComponentsReady((0,h._)(this,ey));let{isEnabled:a}=this.__internal_attemptToEnableEnvironmentSetting({for:"organizations",caller:"OrganizationList",onClose:()=>{throw new b.w$(er.q.cannotRenderAnyOrganizationComponent("OrganizationList"),{code:eo})}});a&&(null==(i=(0,h._)(this,ey))||i.ensureMounted({preloadHint:"OrganizationList"}).then(i=>i.mountComponent({name:"OrganizationList",appearanceKey:"organizationList",node:t,props:e})),null==(r=this.telemetry)||r.record((0,P.nx)("OrganizationList",{...e,forceOrganizationSelection:null==(n=this.environment)?void 0:n.organizationSettings.forceOrganizationSelection})))}),(0,v._)(this,"unmountOrganizationList",t=>{var e;this.assertComponentsReady((0,h._)(this,ey)),null==(e=(0,h._)(this,ey))||e.ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountUserButton",(t,e)=>{var i,n,r;this.assertComponentsReady((0,h._)(this,ey)),null==(i=(0,h._)(this,ey))||i.ensureMounted({preloadHint:"UserButton"}).then(i=>i.mountComponent({name:"UserButton",appearanceKey:"userButton",node:t,props:e}));let a={...(null==e||null==(n=e.customMenuItems)?void 0:n.length)||0?{customItems:!0}:void 0,...(null==e?void 0:e.__experimental_asStandalone)?{standalone:!0}:void 0};null==(r=this.telemetry)||r.record((0,P.nx)("UserButton",e,a))}),(0,v._)(this,"unmountUserButton",t=>{var e;this.assertComponentsReady((0,h._)(this,ey)),null==(e=(0,h._)(this,ey))||e.ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountWaitlist",(t,e)=>{var i,n;this.assertComponentsReady((0,h._)(this,ey)),null==(i=(0,h._)(this,ey))||i.ensureMounted({preloadHint:"Waitlist"}).then(i=>i.mountComponent({name:"Waitlist",appearanceKey:"waitlist",node:t,props:e})),null==(n=this.telemetry)||n.record((0,P.nx)("Waitlist",e))}),(0,v._)(this,"unmountWaitlist",t=>{var e;this.assertComponentsReady((0,h._)(this,ey)),null==(e=(0,h._)(this,ey))||e.ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountPricingTable",(t,e)=>{var i;if(this.assertComponentsReady((0,h._)(this,ey)),(0,U.DT)(this,this.environment)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotRenderAnyBillingComponent("PricingTable"),{code:ea});return}let n={...e};void 0!==(null==e?void 0:e.forOrganizations)&&S.k.warnOnce('Clerk: [IMPORTANT] <PricingTable /> prop `forOrganizations` is deprecated and will be removed in the coming minors. Use `for="organization"` instead.'),(0,h._)(this,ey).ensureMounted({preloadHint:"PricingTable"}).then(e=>e.mountComponent({name:"PricingTable",appearanceKey:"pricingTable",node:t,props:n})),null==(i=this.telemetry)||i.record((0,P.nx)("PricingTable",n))}),(0,v._)(this,"unmountPricingTable",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"__internal_mountOAuthConsent",(t,e)=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted({preloadHint:"OAuthConsent"}).then(i=>i.mountComponent({name:"OAuthConsent",appearanceKey:"__internal_oauthConsent",node:t,props:e}))}),(0,v._)(this,"__internal_unmountOAuthConsent",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountAPIKeys",(t,e)=>{var i;if(this.assertComponentsReady((0,h._)(this,ey)),S.k.warnOnce("Clerk: <APIKeys /> component is in early access and not yet recommended for production use."),(0,U.vS)(this,this.environment)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotRenderAPIKeysComponent,{code:"cannot_render_api_keys_disabled"});return}if(this.organization&&(0,U.Mg)(this,this.environment)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotRenderAPIKeysComponentForOrgWhenDisabled,{code:"cannot_render_api_keys_org_disabled"});return}if((0,U.Dk)(this,this.environment)){if("development"===(0,h._)(this,eb))throw new b.w$(er.q.cannotRenderAPIKeysComponentForUserWhenDisabled,{code:"cannot_render_api_keys_user_disabled"});return}(0,h._)(this,ey).ensureMounted({preloadHint:"APIKeys"}).then(i=>i.mountComponent({name:"APIKeys",appearanceKey:"apiKeys",node:t,props:e})),null==(i=this.telemetry)||i.record((0,P.nx)("APIKeys",e))}),(0,v._)(this,"unmountAPIKeys",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountTaskChooseOrganization",(t,e)=>{var i;this.assertComponentsReady((0,h._)(this,ey));let{isEnabled:n}=this.__internal_attemptToEnableEnvironmentSetting({for:"organizations",caller:"TaskChooseOrganization",onClose:()=>{throw new b.w$(er.q.cannotRenderAnyOrganizationComponent("TaskChooseOrganization"),{code:eo})}});n&&((0,h._)(this,ey).ensureMounted({preloadHint:"TaskChooseOrganization"}).then(i=>i.mountComponent({name:"TaskChooseOrganization",appearanceKey:"taskChooseOrganization",node:t,props:e})),null==(i=this.telemetry)||i.record((0,P.nx)("TaskChooseOrganization",e)))}),(0,v._)(this,"unmountTaskChooseOrganization",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountTaskResetPassword",(t,e)=>{var i;this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted({preloadHint:"TaskResetPassword"}).then(i=>i.mountComponent({name:"TaskResetPassword",appearanceKey:"taskResetPassword",node:t,props:e})),null==(i=this.telemetry)||i.record((0,P.nx)("TaskResetPassword",e))}),(0,v._)(this,"unmountTaskResetPassword",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"mountTaskSetupMFA",(t,e)=>{var i;this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted({preloadHint:"TaskSetupMFA"}).then(i=>i.mountComponent({name:"TaskSetupMFA",appearanceKey:"taskSetupMfa",node:t,props:e})),null==(i=this.telemetry)||i.record((0,P.nx)("TaskSetupMFA",e))}),(0,v._)(this,"unmountTaskSetupMFA",t=>{this.assertComponentsReady((0,h._)(this,ey)),(0,h._)(this,ey).ensureMounted().then(e=>e.unmountComponent({node:t}))}),(0,v._)(this,"setActive",async t=>{var e,i,n,r,a,s,o;let{organization:l,beforeEmit:c,redirectUrl:u,navigate:d}=t,{session:f}=t;this.__internal_setActiveInProgress=!0,E.Z.debug("setActive() start",{hasClient:!!this.client,sessionTarget:"string"==typeof f?f:null!=(i=null!=(e=null==f?void 0:f.id)?e:f)?i:null,organizationTarget:"string"==typeof l?l:null!=(r=null!=(n=null==l?void 0:l.id)?n:l)?r:null,redirectUrl:null!=u?u:null},"clerk");try{if(!this.client)throw E.Z.warn("Clerk setActive called before client is loaded",{},"clerk"),Error("setActive is being called before the client is loaded. Wait for init.");if(void 0===f&&!this.session)throw E.Z.warn("Clerk setActive precondition not met: no target session and no active session",{},"clerk"),Error("setActive should either be called with a session param or there should be already an active session.");"string"==typeof f&&(f=this.client.sessions.find(t=>t.id===f)||null);let e="undefined"!=typeof window&&"function"==typeof window.__unstable__onBeforeSetActive?window.__unstable__onBeforeSetActive:I.ZT,i="undefined"!=typeof window&&"function"==typeof window.__unstable__onAfterSetActive?window.__unstable__onAfterSetActive:I.ZT,n=void 0===f?this.session:f;(null==n?void 0:n.status)==="pending"&&(0,tW.$y)({...(0,h._)(this,eC),...t});let r=void 0!==l;if(n&&r){let t="string"==typeof l?l:null==l?void 0:l.id;if((0,U.ir)(t))n.lastActiveOrganizationId=t||null;else{let e=n.user.organizationMemberships.find(e=>e.organization.slug===t),i=(null==e?void 0:e.organization.id)||null,r=null===i;if((null==(o=this.environment)||null==(s=o.organizationSettings)?void 0:s.forceOrganizationSelection)&&r)return;n.lastActiveOrganizationId=i}}(null==n?void 0:n.status)!=="pending"&&await e(null===n?"sign-out":void 0),((0,U.oH)()||!(0,h._)(this,eC).standardBrowser)&&(await (0,h._)(this,eV).call(this,n,r?"select_org":"select_session"),n=(0,h._)(this,eZ).call(this,null==n?void 0:n.id)),await (null==n?void 0:n.getToken())||((0,m.af)()||E.Z.warn("Token is null when setting active session (offline)",{sessionId:null==n?void 0:n.id},"clerk"),q.Y.emit(q.U.TokenUpdate,{token:null}));let p=(0,U.HV)((0,h._)(this,eC).standardBrowser);c&&((0,w.x9)("Clerk.setActive({beforeEmit})",'Use the `redirectUrl` property instead. Example `Clerk.setActive({redirectUrl:"/"})`'),await p.track(async()=>{(0,h._)(this,e$).call(this),await c(n)}));let _=(null==n?void 0:n.status)==="pending"&&(null==n?void 0:n.currentTask)&&(null==(a=(0,h._)(this,eC).taskUrls)?void 0:a[null==n?void 0:n.currentTask.key]);if(!c&&(u||_||d)&&await p.track(async()=>{if(this.client){if((null==n?void 0:n.status)!=="pending"&&(0,h._)(this,e$).call(this),_){let t=u?(0,U.KV)({base:_,hashSearchParams:{redirectUrl:u}},{stringify:!0}):_;await this.navigate(t)}else if(d&&n)await d({session:n});else if(u){if(this.client.isEligibleForTouch()){let t=new URL(u,window.location.href),e=this.buildUrlWithAuth(this.client.buildTouchUrl({redirectUrl:t}));await this.navigate(e)}await this.navigate(u)}}}),p.isUnloading())return;(0,h._)(this,eq).call(this,n),(0,h._)(this,eB).call(this),(null==n?void 0:n.status)!=="pending"&&await i()}finally{this.__internal_setActiveInProgress=!1}}),(0,v._)(this,"addListener",t=>(t=function(t){let e;return i=>{var n;e||(e={...i}),t(e={...{client:L((n=e).client,i.client),session:L(n.session,i.session),user:L(n.user,i.user),organization:L(n.organization,i.organization)}})}}(t),(0,h._)(this,eS).push(t),this.client&&t({client:this.client,session:this.session,user:this.user,organization:this.organization}),()=>{(0,f._)(this,eS,(0,h._)(this,eS).filter(e=>e!==t))})),(0,v._)(this,"on",function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];(0,h._)(n,eO).on(...e)}),(0,v._)(this,"off",function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];(0,h._)(n,eO).off(...e)}),(0,v._)(this,"__internal_addNavigationListener",t=>((0,h._)(this,eA).push(t),()=>{(0,f._)(this,eA,(0,h._)(this,eA).filter(e=>e!==t))})),(0,v._)(this,"navigate",async(t,e)=>{if(!t||!(0,U._f)())return;if(void 0===window.location){let i=(null==e?void 0:e.replace)&&(0,h._)(this,eC).routerReplace?(0,h._)(this,eC).routerReplace:(0,h._)(this,eC).routerPush;return i?(E.Z.info("Clerk is navigating to: ".concat(t)),await i(t,{windowNavigate:U.T7})):void 0}setTimeout(()=>{(0,h._)(this,eK).call(this)},0);let i=new URL(t,window.location.href);(0,h._)(this,e1).includes(i.protocol)||(console.warn('Clerk: "'.concat(i.protocol,'" is not a valid protocol. Redirecting to "/" instead. If you think this is a mistake, please open an issue.')),i=new URL("/",window.location.href));let n=(null==e?void 0:e.replace)&&(0,h._)(this,eC).routerReplace?(0,h._)(this,eC).routerReplace:(0,h._)(this,eC).routerPush;if(E.Z.info("Clerk is navigating to: ".concat(i)),(0,h._)(this,eC).routerDebug&&console.log("Clerk is navigating to: ".concat(i)),"null"!==i.origin&&i.origin!==window.location.origin||!n)return void(0,U.T7)(i);let r={...(null==e?void 0:e.metadata)?{__internal_metadata:null==e?void 0:e.metadata}:{},windowNavigate:U.T7};return await n((0,U.M)(i),r)}),(0,d._)(this,eE,{writable:!0,value:async()=>{if(!(0,U._f)())return;let t=new URLSearchParams({[tw.cD]:"true"}),e=(0,U.XV)(tw.w9);e&&C(e)||(0,J.sY)();let i=(0,U.KV)({base:(0,U.XV)(tw.w9),searchParams:t},{stringify:!0});return this.navigate(this.buildUrlWithAuth(i))}}),(0,v._)(this,"redirectWithAuth",async t=>{if((0,U._f)())return this.navigate(this.buildUrlWithAuth(t))}),(0,v._)(this,"redirectToSignIn",async t=>{if((0,U._f)())return this.navigate(this.buildSignInUrl(t))}),(0,v._)(this,"redirectToSignUp",async t=>{if((0,U._f)())return this.navigate(this.buildSignUpUrl(t))}),(0,v._)(this,"redirectToUserProfile",async()=>{if((0,U._f)())return this.navigate(this.buildUserProfileUrl())}),(0,v._)(this,"redirectToCreateOrganization",async()=>{if((0,U._f)())return this.navigate(this.buildCreateOrganizationUrl())}),(0,v._)(this,"redirectToOrganizationProfile",async()=>{if((0,U._f)())return this.navigate(this.buildOrganizationProfileUrl())}),(0,v._)(this,"redirectToAfterSignIn",async()=>{if((0,U._f)())return this.navigate(this.buildAfterSignInUrl())}),(0,v._)(this,"redirectToAfterSignUp",async()=>{if((0,U._f)())return this.navigate(this.buildAfterSignUpUrl())}),(0,v._)(this,"redirectToAfterSignOut",async()=>{if((0,U._f)())return this.navigate(this.buildAfterSignOutUrl())}),(0,v._)(this,"redirectToWaitlist",async()=>{if((0,U._f)())return this.navigate(this.buildWaitlistUrl())}),(0,v._)(this,"redirectToTasks",async t=>{if((0,U._f)())return this.navigate(this.buildTasksUrl(t))}),(0,v._)(this,"handleEmailLinkVerification",async(t,e)=>{if(!this.client)return;let i=(0,U.XV)("__clerk_status");if("expired"===i)throw new b.N(b.u$.Expired);if("client_mismatch"===i)throw new b.N(b.u$.ClientMismatch);if("verified"!==i)throw new b.N(b.u$.Failed);let n=(0,U.XV)("__clerk_created_session"),{signIn:r,signUp:a,sessions:s}=this.client,o=s.some(t=>t.id===n),l="needs_second_factor"===r.status||"missing_requirements"===a.status,c=t=>e&&"function"==typeof e?e(t):this.navigate(t),u=t.redirectUrl?()=>c(t.redirectUrl):I.ZT;return o?this.setActive({session:n,redirectUrl:t.redirectUrlComplete}):l?u():("function"==typeof t.onVerifiedOnOtherDevice&&t.onVerifiedOnOtherDevice(),null)}),(0,v._)(this,"handleGoogleOneTapCallback",async(t,e,i)=>{if(!this.loaded||!this.environment||!this.client)return;let{signIn:n,signUp:r}=this.client,a="identifier"in(t||{})?t:n,s="missingFields"in(t||{})?t:r,o=t=>i&&"function"==typeof i?i(this.buildUrlWithAuth(t)):this.navigate(this.buildUrlWithAuth(t));return this._handleRedirectCallback(e,{signUp:s,signIn:a,navigate:o})}),(0,v._)(this,"_handleRedirectCallback",async(t,e)=>{var i,n,r,a,s,o,l,c;let{signIn:u,signUp:d,navigate:f}=e;if(!this.loaded||!this.environment||!this.client)return;if(!window.opener&&t.reloadResource)try{"signIn"===t.reloadResource?await u.reload():"signUp"===t.reloadResource&&await d.reload()}catch{}let{displayConfig:p}=this.environment,{firstFactorVerification:_}=u,{externalAccount:v}=d.verifications,m={status:d.status,missingFields:d.missingFields,externalAccountStatus:v.status,externalAccountErrorCode:null==(i=v.error)?void 0:i.code,externalAccountSessionId:null==(r=v.error)||null==(n=r.meta)?void 0:n.sessionId,sessionId:d.createdSessionId},g={status:u.status,firstFactorVerificationStatus:_.status,firstFactorVerificationErrorCode:null==(a=_.error)?void 0:a.code,firstFactorVerificationSessionId:null==(o=_.error)||null==(s=o.meta)?void 0:s.sessionId,sessionId:u.createdSessionId},y=t=>()=>f(t),w=y(t.signInUrl||p.signInUrl),b=y(t.signUpUrl||p.signUpUrl),k=y(t.firstFactorUrl||(0,U.KV)({base:p.signInUrl,hashPath:"/factor-one"},{stringify:!0})),S=y(t.secondFactorUrl||(0,U.KV)({base:p.signInUrl,hashPath:"/factor-two"},{stringify:!0})),A=y(t.resetPasswordUrl||(0,U.KV)({base:p.signInUrl,hashPath:"/reset-password"},{stringify:!0})),C=new F.O((0,h._)(this,eC),t),x=y(t.continueSignUpUrl||(0,U.KV)({base:p.signUpUrl,hashPath:"/continue"},{stringify:!0})),P=e=>{let{missingFields:i}=e;return i.length?x():(0,U.vx)({signUp:d,verifyEmailPath:t.verifyEmailAddressUrl||(0,U.KV)({base:p.signUpUrl,hashPath:"/verify-email-address"},{stringify:!0}),verifyPhonePath:t.verifyPhoneNumberUrl||(0,U.KV)({base:p.signUpUrl,hashPath:"/verify-phone-number"},{stringify:!0}),navigate:f})},O=t.signInUrl||p.signInUrl,I=t.signUpUrl||p.signUpUrl,E=async t=>{let{session:e,baseUrl:i,redirectUrl:n}=t;if(!e.currentTask)return void await this.navigate(n);await (0,tW.W8)(e,{baseUrl:i,navigate:this.navigate})};if("complete"===g.status)return this.setActive({session:g.sessionId,navigate:async t=>{let{session:e}=t;await E({session:e,baseUrl:O,redirectUrl:C.getAfterSignInUrl()})}});if("transferable"===m.externalAccountStatus&&"external_account_exists"===m.externalAccountErrorCode){let t=await u.create({transfer:!0});switch(t.status){case"complete":return this.setActive({session:t.createdSessionId,navigate:async t=>{let{session:e}=t;await E({session:e,baseUrl:I,redirectUrl:C.getAfterSignInUrl()})}});case"needs_first_factor":return k();case"needs_second_factor":return S();case"needs_new_password":return A();default:(0,J.O7)("sign in")}}let T="user_locked"===m.externalAccountErrorCode,R="user_locked"===g.firstFactorVerificationErrorCode;if(T)return b();if(R)return w();if("needs_first_factor"===g.status&&!(null==(l=u.supportedFirstFactors)?void 0:l.every(t=>"enterprise_sso"===t.strategy)))return k();if("needs_new_password"===g.status)return A();if("transferable"===g.firstFactorVerificationStatus){if(!1===t.transferable)return w();let e=await d.create({transfer:!0,unsafeMetadata:t.unsafeMetadata});switch(e.status){case"complete":return this.setActive({session:e.createdSessionId,navigate:async t=>{let{session:e}=t;await E({session:e,baseUrl:I,redirectUrl:C.getAfterSignUpUrl()})}});case"missing_requirements":return P({missingFields:e.missingFields});default:(0,J.O7)("sign in")}}if("complete"===m.status)return this.setActive({session:m.sessionId,navigate:async t=>{let{session:e}=t;await E({session:e,baseUrl:I,redirectUrl:C.getAfterSignUpUrl()})}});if("needs_second_factor"===g.status)return S();let M=("failed"===m.externalAccountStatus||"unverified"===m.externalAccountStatus)&&"identifier_already_signed_in"===m.externalAccountErrorCode&&m.externalAccountSessionId,N="failed"===g.firstFactorVerificationStatus&&"identifier_already_signed_in"===g.firstFactorVerificationErrorCode&&g.firstFactorVerificationSessionId;if(M||N){let t=g.firstFactorVerificationSessionId||m.externalAccountSessionId;if(t)return this.setActive({session:t,navigate:async t=>{let{session:e}=t;await E({session:e,baseUrl:M?I:O,redirectUrl:C.getAfterSignInUrl()})}})}return(0,U.l1)(d)?b():"verified"===m.externalAccountStatus&&"missing_requirements"===m.status?P({missingFields:d.missingFields}):(null==(c=this.session)?void 0:c.currentTask)?void await this.redirectToTasks({redirectUrl:this.buildAfterSignInUrl()}):w()}),(0,v._)(this,"handleRedirectCallback",async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(!n.loaded||!n.environment||!n.client)return;let{signIn:i,signUp:r}=n.client;return n._handleRedirectCallback(t,{signUp:r,signIn:i,navigate:t=>e&&"function"==typeof e?e(t):n.navigate(t)})}),(0,v._)(this,"handleUnauthenticated",async function(){var t,e;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{broadcast:!0};if(n.client&&n.session){E.Z.warn("handleUnauthenticated triggered",{activeSessionId:n.session.id,hasActor:!!n.session.actor,totalSessions:null!=(e=null==(t=n.client.sessions)?void 0:t.length)?e:0},"clerk");try{let t=await D.KU.getOrCreateInstance().fetch();if(n.updateClient(t),n.session)return;return i.broadcast&&q.Y.emit(q.U.UserSignOut,null),n.setActive({session:null})}catch(t){if((0,b.kD)(t)&&[403,500].includes(t.status))return n.setActive({session:null});throw t}}}),(0,v._)(this,"authenticateWithGoogleOneTap",async t=>{var e;return null==(e=this.client)?void 0:e.signIn.create({strategy:"google_one_tap",token:t.token}).catch(e=>{if((0,b.kD)(e)&&"external_account_not_found"===e.errors[0].code){var i;return null==(i=this.client)?void 0:i.signUp.create({strategy:"google_one_tap",token:t.token,legalAccepted:t.legalAccepted})}throw e})}),(0,v._)(this,"authenticateWithMetamask",async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await n.authenticateWithWeb3({...t,strategy:"web3_metamask_signature"})}),(0,v._)(this,"authenticateWithCoinbaseWallet",async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await n.authenticateWithWeb3({...t,strategy:"web3_coinbase_wallet_signature"})}),(0,v._)(this,"authenticateWithBase",async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await n.authenticateWithWeb3({...t,strategy:"web3_base_signature"})}),(0,v._)(this,"authenticateWithOKXWallet",async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await n.authenticateWithWeb3({...t,strategy:"web3_okx_wallet_signature"})}),(0,v._)(this,"authenticateWithSolana",async t=>{await this.authenticateWithWeb3({...t,strategy:"web3_solana_signature"})}),(0,v._)(this,"authenticateWithWeb3",async t=>{let e,i,{redirectUrl:n,signUpContinueUrl:r,customNavigate:a,unsafeMetadata:s,strategy:o,legalAccepted:l,secondFactorUrl:c,walletName:u}=t;if(!this.client||!this.environment)return;let{displayConfig:h}=this.environment,d=o.replace("web3_","").replace("_signature",""),f=await (0,U.Ly)({provider:d,walletName:u});switch(d){case"metamask":e=U.wO;break;case"base":e=U.Ji;break;case"coinbase_wallet":e=U.dR;break;case"solana":if(!u)throw new b.w$("Wallet name is required for Solana authentication.",{code:"web3_solana_wallet_name_required"});e=t=>(0,U.Dl)({...t,walletName:u});break;default:e=U.C3}let p=t=>()=>a&&"function"==typeof a?a(t):this.navigate(t),_=p(c||(0,U.KV)({base:h.signInUrl,hashPath:"/factor-two"},{stringify:!0})),v=p(r||(0,U.KV)({base:h.signUpUrl,hashPath:"/continue"},{stringify:!0}));try{i=await this.client.signIn.authenticateWithWeb3({identifier:f,generateSignature:e,strategy:o,walletName:u})}catch(t){if((0,U.VZ)(t,tw.O1.FORM_IDENTIFIER_NOT_FOUND))i=await this.client.signUp.authenticateWithWeb3({identifier:f,generateSignature:e,unsafeMetadata:s,strategy:o,legalAccepted:l,walletName:u}),r&&"missing_requirements"===i.status&&"verified"===i.verifications.web3Wallet.status&&await v();else throw t}let m=async t=>{let{session:e,redirectUrl:i}=t;if(!e.currentTask)return void await this.navigate(i);await (0,tW.W8)(e,{baseUrl:h.signInUrl,navigate:this.navigate})};switch(i.status){case"needs_second_factor":await _();break;case"complete":i.createdSessionId&&await this.setActive({session:i.createdSessionId,navigate:async t=>{let{session:e}=t;await m({session:e,redirectUrl:null!=n?n:this.buildAfterSignInUrl()})}});break;default:return}}),(0,v._)(this,"createOrganization",async t=>{let{name:e,slug:i}=t;return D.cp.create({name:e,slug:i})}),(0,v._)(this,"getOrganization",async t=>D.cp.get(t)),(0,v._)(this,"joinWaitlist",async t=>{let{emailAddress:e}=t;return D.yk.join({emailAddress:e})}),(0,v._)(this,"__internal_setCountry",t=>{this.__internal_country||(this.__internal_country=t)}),(0,v._)(this,"updateClient",t=>{if(!this.client){let e=(0,h._)(this,eC).selectInitialSession?(0,h._)(this,eC).selectInitialSession(t):(0,h._)(this,eF).call(this,t);(0,h._)(this,eq).call(this,e)}if(this.client=t,this.session){var e,i,n;let t=(0,h._)(this,eZ).call(this,this.session.id);"active"===this.session.status&&(null==t?void 0:t.status)==="pending"&&("undefined"!=typeof window&&"function"==typeof window.__unstable__onAfterSetActive?window.__unstable__onAfterSetActive:I.ZT)(),(0,h._)(this,eq).call(this,t),(null==(e=this.session)?void 0:e.lastActiveToken)||(0,m.af)()||E.Z.warn("No last active token when updating client (offline)",{sessionId:null==(n=this.session)?void 0:n.id},"clerk"),q.Y.emit(q.U.TokenUpdate,{token:null==(i=this.session)?void 0:i.lastActiveToken})}(0,h._)(this,eB).call(this)}),(0,v._)(this,"__unstable__setEnvironment",async t=>{this.environment=new D.qA(t),e2.mountComponentRenderer&&(0,f._)(this,ey,e2.mountComponentRenderer(this,this.environment,(0,h._)(this,eC)))}),(0,v._)(this,"__unstable__onBeforeRequest",t=>{(0,h._)(this,ew).onBeforeRequest(t)}),(0,v._)(this,"__unstable__onAfterResponse",t=>{(0,h._)(this,ew).onAfterResponse(t)}),(0,v._)(this,"__unstable__updateProps",t=>{var e;let i={...t,options:(0,h._)(this,eQ).call(this,{...(0,h._)(this,eC),...t.options})};return null==(e=(0,h._)(this,ey))?void 0:e.ensureMounted().then(t=>t.updateProps(i))}),(0,d._)(this,eU,{writable:!0,value:()=>{let t=new URLSearchParams({[tw.w9]:window.location.href});return(0,U.KV)({base:(0,h._)(this,eC).signInUrl,searchParams:t},{stringify:!0})}}),(0,d._)(this,eT,{writable:!0,value:()=>{let t;if(this.proxyUrl){let e=new URL(this.proxyUrl);t=new URL("".concat(e.pathname,"/v1/client/sync"),e.origin)}else this.domain&&(t=new URL("/v1/client/sync","https://".concat(this.domain)));return null==t||t.searchParams.append("redirect_url",window.location.href),(null==t?void 0:t.toString())||""}}),(0,d._)(this,eR,{writable:!0,value:()=>{var t;return"true"!==(0,U.XV)(tw.cD)&&!!this.isSatellite&&!!(null==(t=(0,h._)(this,e_))?void 0:t.isSignedOut())}}),(0,d._)(this,eM,{writable:!0,value:()=>"production"!==(0,h._)(this,eb)&&!this.isSatellite&&!!(0,U.XV)(tw.w9)}),(0,d._)(this,eN,{writable:!0,value:async()=>{"development"===this.instanceType?await this.navigate((0,h._)(this,eU).call(this)):"production"===this.instanceType&&await this.navigate((0,h._)(this,eT).call(this))}}),(0,d._)(this,ez,{writable:!0,value:(t,e)=>{let i;try{i=new URL(t)}catch{(0,J._5)()}i.origin===e&&(0,J.cT)()}}),(0,d._)(this,eD,{writable:!0,value:()=>{this.isSatellite&&("development"!==(0,h._)(this,eb)||(0,h._)(this,eC).signInUrl||(0,J.qW)(),this.proxyUrl||this.domain||(0,J.xZ)(),(0,h._)(this,eC).signInUrl&&(0,h._)(this,ez).call(this,(0,h._)(this,eC).signInUrl,window.location.origin))}}),(0,d._)(this,eW,{writable:!0,value:async()=>{var t,e;if((0,f._)(this,e_,await t_.create(this,(0,h._)(this,ew),(0,h._)(this,eb),(0,h._)(this,eO))),(0,h._)(this,eD).call(this),(0,h._)(this,eR).call(this))return void await (0,h._)(this,eN).call(this);if((0,h._)(this,eM).call(this))return void await (0,h._)(this,eE).call(this);(0,f._)(this,ex,(0,U.LM)()),"undefined"!=typeof BroadcastChannel&&(0,f._)(this,eg,new BroadcastChannel("clerk")),(0,h._)(this,ej).call(this);let i=(0,U.u9)(null==(t=window)?void 0:t.location.hostname),n="development"===(0,h._)(this,eb)&&!i,r=0,a=0;for(;a<2;){a++;try{let t=D.qA.getInstance().fetch({touch:n}).then(t=>this.updateEnvironment(t)).catch(()=>{++r;let t=z.getItem(R,null);t&&this.updateEnvironment(new D.qA(t))}),i=async()=>{let t=new AbortController;return(0,I.AW)(D.KU.getOrCreateInstance().fetch({abortSignal:t.signal}),7e3,t).then(t=>this.updateClient(t)).catch(async t=>{var e,i,n,a;if((0,b.ix)(t))throw t;++r,null==(e=(0,h._)(this,e_))||e.stopPollingForToken();try{let t=(0,h._)(this,eF).call(this,tO(null==(i=(0,h._)(this,e_))?void 0:i.getSessionCookie()));null==t||t.clearCache();let e=t?await (0,I.AW)(t.getToken(),7e3).catch(()=>{var e;return t.clearCache(),null==(e=(0,h._)(this,e_))?void 0:e.getSessionCookie()}):null==(n=(0,h._)(this,e_))?void 0:n.getSessionCookie();this.updateClient(tO(e))}finally{null==(a=(0,h._)(this,e_))||a.startPollingForToken()}return D.KU.getOrCreateInstance().fetch().then(t=>this.updateClient(t)).catch(I.ZT),null})},a=()=>{e2.mountComponentRenderer&&!(0,h._)(this,ey)&&(0,f._)(this,ey,e2.mountComponentRenderer(this,this.environment,(0,h._)(this,eC)))},[,s]=await (0,I.Lu)([t,i()]);if("rejected"===s.status){let t=s.reason;if((0,U.VZ)(t,"requires_captcha"))a(),await i();else throw t}if(null==(e=(0,h._)(this,e_))||e.setClientUatCookieForDevelopmentInstances(),await (0,h._)(this,eX).call(this))return;a();break}catch(t){if((0,U.VZ)(t,"dev_browser_unauthenticated"))await (0,h._)(this,e_).handleUnauthenticatedDevBrowser();else if(!(0,m.af)())return void console.warn(t);else throw t}a>=2&&(0,J.Xp)()}(0,f._)(this,em,new ty(this)),(0,h._)(this,em).start(),(0,h._)(this,e0).call(this),(0,h._)(this,eG).call(this),(0,h._)(this,eH).call(this),(0,h._)(this,eO).emit(y,r>0?"degraded":"ready")}}),(0,v._)(this,"shouldFallbackToCachedResources",()=>!!this.__internal_getCachedResources),(0,d._)(this,eL,{writable:!0,value:async()=>{let t,e,i=this.shouldFallbackToCachedResources()?1:void 0,n=0;try{[t,e]=await Promise.all([D.qA.getInstance().fetch({touch:!1,fetchMaxTries:i}),D.KU.getOrCreateInstance().fetch({fetchMaxTries:i})])}catch(i){if((0,b.uX)(i)&&"network_error"===i.code&&this.shouldFallbackToCachedResources()){var r;let i=await (null==(r=this.__internal_getCachedResources)?void 0:r.call(this));t=new D.qA(null==i?void 0:i.environment),D.KU.clearInstance(),e=D.KU.getOrCreateInstance(null==i?void 0:i.client),++n}else throw i}this.updateClient(e),this.updateEnvironment(t),e2.mountComponentRenderer&&(0,f._)(this,ey,e2.mountComponentRenderer(this,this.environment,(0,h._)(this,eC))),(0,h._)(this,eO).emit(y,n>0?"degraded":"ready")}}),(0,v._)(this,"__internal_reloadInitialResources",async()=>{let[t,e]=await Promise.all([D.qA.getInstance().fetch({touch:!1,fetchMaxTries:1}),D.KU.getOrCreateInstance().fetch({fetchMaxTries:1})]);this.updateClient(e),this.updateEnvironment(t),(0,h._)(this,eB).call(this)}),(0,d._)(this,eF,{writable:!0,value:t=>{if(t.lastActiveSessionId){let e=t.signedInSessions.find(e=>e.id===t.lastActiveSessionId);if(e)return e}return t.signedInSessions[0]||null}}),(0,d._)(this,ej,{writable:!0,value:()=>{var t,e;(0,m._f)()&&(null==(t=(0,h._)(this,ex))||t.onPageFocus(()=>{this.session&&!(!(this.environment&&!this.environment.authConfig.singleSessionMode)&&(0,h._)(this,eP)>Date.now())&&((0,f._)(this,eP,Date.now()+5e3),(0,h._)(this,eC).touchSession&&(0,h._)(this,eV).call(this,this.session,"focus"))}),null==(e=(0,h._)(this,eg))||e.addEventListener("message",t=>{var e;(null==(e=t.data)?void 0:e.type)==="signout"&&this.handleUnauthenticated({broadcast:!1})}),q.Y.on(q.U.UserSignOut,()=>{var t;null==(t=(0,h._)(this,eg))||t.postMessage({type:"signout"})}),q.Y.on(q.U.EnvironmentUpdate,()=>{var t;z.setItem(R,null==(t=this.environment)?void 0:t.__internal_toSnapshot(),864e5)}))}}),(0,d._)(this,eV,{writable:!0,value:async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"focus";if(!t)return Promise.resolve();await t.touch({intent:e}).catch(t=>{(0,b.ix)(t)&&n.handleUnauthenticated()})}}),(0,d._)(this,eB,{writable:!0,value:()=>{if(this.client)for(let t of(0,h._)(this,eS))t({client:this.client,session:this.session,user:this.user,organization:this.organization})}}),(0,d._)(this,eK,{writable:!0,value:()=>{for(let t of(0,h._)(this,eA))t()}}),(0,d._)(this,e$,{writable:!0,value:()=>{this.session=void 0,this.organization=void 0,this.user=void 0,(0,h._)(this,eB).call(this)}}),(0,d._)(this,eJ,{writable:!0,value:()=>{var t;return((null==(t=this.session)?void 0:t.user.organizationMemberships)||[]).map(t=>t.organization).find(t=>{var e;return t.id===(null==(e=this.session)?void 0:e.lastActiveOrganizationId)})||null}}),(0,d._)(this,eq,{writable:!0,value:t=>{this.session=t||null,this.organization=(0,h._)(this,eJ).call(this),this.user=this.session?this.session.user:null}}),(0,d._)(this,eZ,{writable:!0,value:t=>{var e;return(null==(e=this.client)?void 0:e.signedInSessions.find(e=>e.id===t))||null}}),(0,d._)(this,eG,{writable:!0,value:()=>{this.addListener(t=>{let{session:e}=t;if(null==e?void 0:e.actor){var i;null==(i=(0,h._)(this,ey))||i.ensureMounted().then(t=>t.mountImpersonationFab())}})}}),(0,d._)(this,eH,{writable:!0,value:()=>{if((0,h._)(this,eC).__internal_keyless_claimKeylessApplicationUrl){var t;null==(t=(0,h._)(this,ey))||t.ensureMounted().then(t=>{t.updateProps({options:{__internal_keyless_claimKeylessApplicationUrl:(0,h._)(this,eC).__internal_keyless_claimKeylessApplicationUrl,__internal_keyless_copyInstanceKeysUrl:(0,h._)(this,eC).__internal_keyless_copyInstanceKeysUrl,__internal_keyless_dismissPrompt:(0,h._)(this,eC).__internal_keyless_dismissPrompt}})})}}}),(0,d._)(this,eY,{writable:!0,value:(t,e,i)=>{if(!t||!this.loaded||!this.environment||!this.environment.displayConfig)return"";let n=(0,h._)(this,eC)[t]||this.environment.displayConfig[t];(0,p._)(this,eI,e3).call(this)&&(n=(0,h._)(this,eC).signInUrl);let r=new F.O((0,h._)(this,eC),e).toSearchParams(),a=new URLSearchParams(i||{}),s=(0,U.KV)({base:n,hashPath:(0,p._)(this,eI,e3).call(this)&&"signUpUrl"===t?"/create":"",hashSearchParams:[a,r]},{stringify:!0});return this.buildUrlWithAuth(s)}}),(0,d._)(this,eX,{writable:!0,value:async()=>{var t,e;let i=new URLSearchParams(window.location.search).get("redirect_url"),n="production"===this.instanceType,r=null!==i&&(0,U.To)(this.frontendApi,i);if(n||!r)return!1;let a=this.session,s=(0,h._)(this,eC).signInUrl||(null==(t=this.environment)?void 0:t.displayConfig.signInUrl),o=s&&window.location.href.startsWith(s),l=(0,h._)(this,eC).signUpUrl||(null==(e=this.environment)?void 0:e.displayConfig.signUpUrl),c=l&&window.location.href.startsWith(l);return(!(0,U.WW)(i)||!!a||!o&&!c)&&(await this.navigate(this.buildUrlWithAuth(i)),!0)}}),(0,d._)(this,eQ,{writable:!0,value:t=>{let e=t?{...t}:{};return e.appearance&&(e.appearance=(0,U.nD)(e.appearance)),{...eu,...e,allowedRedirectOrigins:(0,U.$1)(null==t?void 0:t.allowedRedirectOrigins,this.frontendApi,this.instanceType)}}}),(0,d._)(this,e0,{writable:!0,value:()=>{try{(0,U.xy)(tw.cD),(0,U.xy)(A.A),(0,U.xy)(tw.cc),(0,U.xy)("__clerk_handshake"),(0,U.xy)("__clerk_handshake_nonce"),(0,U.xy)("__clerk_help")}catch{}}}),!(t=(t||"").trim()))return U.RM.throwMissingPublishableKeyError();let r=(0,k.nQ)(t);if(!r)return U.RM.throwInvalidPublishableKeyError({key:t});(0,f._)(this,ef,null==e?void 0:e.domain),(0,f._)(this,ep,null==e?void 0:e.proxyUrl),this.environment=D.qA.getInstance(),(0,f._)(this,eb,r.instanceType),(0,f._)(this,ed,t),(0,f._)(this,ew,function(t){let e=[],i=[];async function n(t){for await(let i of["undefined"!=typeof window&&window.__unstable__onBeforeRequest,...e].filter(t=>t))if(await i(t)===!1)return!1;return!0}async function r(t,e){for await(let n of["undefined"!=typeof window&&window.__unstable__onAfterResponse,...i].filter(t=>t))if(await n(t,e)===!1)return!1;return!0}function a(e){let{method:i,path:n,sessionId:r,search:a,rotatingTokenNonce:s}=e,o=new URLSearchParams(a);o.append("__clerk_api_version",tw.gR),o.append("_clerk_js_version","5.127.2"),s&&o.append("rotating_token_nonce",s),t.domain&&"development"===t.instanceType&&t.isSatellite&&o.append("__domain",t.domain),i&&"GET"!==i&&"POST"!==i&&o.append("_method",i),n&&!tS.some(t=>n.startsWith(t))&&r&&o.append("_clerk_session_id",r);let l=[...o.entries()].reduce((t,e)=>{let[i,n]=e;return t[i]=n.includes(",")?n.split(","):n,t},{});return(0,U.f0)(l)}function s(e){let{path:i,pathPrefix:n="v1"}=e;if(t.proxyUrl){let r=new URL(t.proxyUrl),s=r.pathname.slice(1);return s.endsWith("/")&&(s=s.slice(0,-1)),(0,U.KV)({base:r.origin,pathname:"".concat(s,"/").concat(n).concat(i),search:a(e)},{stringify:!1})}let r="production"===t.instanceType?t.domain:"",s="https://".concat(r||t.frontendApi);return(0,U.KV)({base:s,pathname:"".concat(n).concat(i),search:a(e)},{stringify:!1})}async function o(e,i){let a,o={...e},{method:l="GET",body:c}=o;!c||"object"!=typeof c||c instanceof FormData||(o.body=(0,U.h_)(c)),o.url=s({...o,sessionId:t.getSessionId()}),o.headers=new Headers(o.headers),"GET"===l||c instanceof FormData||o.headers.has("content-type")||o.headers.set("content-type","application/x-www-form-urlencoded"),"application/x-www-form-urlencoded"===o.headers.get("content-type")&&(o.body=c?(0,U.f0)(c,{keyEncoder:tk.a1}):c);let u=await n(o),h="GET"===l?"GET":"POST",d=o.url,f={...o,method:h,credentials:o.credentials||"include"};try{if(u){var p;let t=null!=(p=null==i?void 0:i.fetchMaxTries)?p:(0,m.TN)()?4:11;a=await (0,tb.X)(()=>fetch(d,f),{retryImmediately:!0,initialDelay:700,maxDelayBetweenRetries:5e3,shouldRetry:(e,i)=>{var n;return"GET"===h&&i<t&&!(null==(n=f.signal)?void 0:n.aborted)},onBeforeRetry:t=>{d.searchParams.set("_clerk_retry_attempt",t.toString())}})}else a=new Response("{}",o)}catch(e){let t=d.toString();E.Z.error("network error",{error:e,url:t,method:l},"fapiClient"),(0,J.an)(t,e)}let _=204!==a.status?await a.json():null,v=Object.assign(a,{payload:_});return a.ok||E.Z.error("request failed",{method:l,path:o.path,status:a.status},"fapiClient"),await r(o,v),v}return{buildEmailAddress:function(e){return(0,U.aR)({localPart:e,frontendApi:t.frontendApi})},buildUrl:s,onAfterResponse:function(t){i.push(t)},onBeforeRequest:function(t){e.push(t)},request:o}}({domain:this.domain,frontendApi:this.frontendApi,instanceType:this.instanceType,isSatellite:this.isSatellite,getSessionId:()=>{var t;return null==(t=this.session)?void 0:t.id},proxyUrl:this.proxyUrl})),(0,h._)(this,eO).emit(y,"loading"),(0,h._)(this,eO).prioritizedOn(y,t=>(0,f._)(this,ek,t)),D.i.clerk=this,(0,f._)(this,ev,new tD)}}function e3(){return!!(!(0,h._)(this,eC).signUpUrl&&(0,h._)(this,eC).signInUrl&&!(0,O.sD)((0,h._)(this,eC).signInUrl))}function e5(){let t=U.Sk;return(0,h._)(this,eC).allowedRedirectProtocols&&(t=t.concat((0,h._)(this,eC).allowedRedirectProtocols)),t}(0,v._)(e2,"mountComponentRenderer",void 0),(0,v._)(e2,"version","5.127.2"),(0,v._)(e2,"sdkMetadata",{name:"@clerk/clerk-js",version:"5.127.2"}),(0,v._)(e2,"_billing",void 0),(0,v._)(e2,"_apiKeys",void 0);var e9=i(73312),e4=i(69144);function e7(t,e){if(!t)return{};let i="signin"===e?"signIn":"signUp",n={["".concat(i,"ForceRedirectUrl")]:t.forceRedirectUrl,["".concat(i,"FallbackRedirectUrl")]:t.fallbackRedirectUrl},r={...t,...n};return delete r.forceRedirectUrl,delete r.fallbackRedirectUrl,r}var e6=i(91139),e8=i(7508);let it=(0,e4.lazy)(()=>Promise.all([i.e("1192"),i.e("9573")]).then(i.bind(i,88742)).then(t=>({default:t.MountedCheckoutDrawer}))),ie=(0,e4.lazy)(()=>Promise.all([i.e("1192"),i.e("9573")]).then(i.bind(i,78902)).then(t=>({default:t.MountedPlanDetailDrawer}))),ii=(0,e4.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("6965")]).then(i.bind(i,4725)).then(t=>({default:t.MountedSubscriptionDetailDrawer})));var ir=i(56556);let ia="undefined"!=typeof window?e4.useLayoutEffect:e4.useEffect,is=0,io={},il=Object.freeze({SignUp:"signUpModal",SignIn:"signInModal",UserProfile:"userProfileModal",OrganizationProfile:"organizationProfileModal",CreateOrganization:"createOrganizationModal",Waitlist:"waitlistModal"}),ic=t=>{var e,i;let[n,r]=e4.useState({appearance:t.options.appearance,options:t.options,googleOneTapModal:null,signInModal:null,signUpModal:null,userProfileModal:null,userVerificationModal:null,organizationProfileModal:null,createOrganizationModal:null,enableOrganizationsPromptModal:null,organizationSwitcherPrefetch:!1,waitlistModal:null,blankCaptchaModal:null,checkoutDrawer:{open:!1,props:null},planDetailsDrawer:{open:!1,props:null},subscriptionDetailsDrawer:{open:!1,props:null},nodes:new Map,impersonationFab:!1}),{googleOneTapModal:a,signInModal:s,signUpModal:o,userProfileModal:l,userVerificationModal:c,organizationProfileModal:u,createOrganizationModal:h,waitlistModal:d,blankCaptchaModal:f,checkoutDrawer:p,planDetailsDrawer:_,subscriptionDetailsDrawer:v,nodes:m}=n,{urlStateParam:g,clearUrlStateParam:y,decodedRedirectParams:w}=(0,e6._)();ia(()=>{w&&r(t=>({...t,[il[w.componentName]]:!0})),io.mountComponent=t=>{let{node:e,name:i,props:n,appearanceKey:a}=t;e||(0,J.HE)(),r(t=>(t.nodes.set(e,{key:"p".concat(++is),name:i,props:n,appearanceKey:a}),{...t,nodes:m}))},io.unmountComponent=t=>{let{node:e}=t;r(t=>(t.nodes.delete(e),{...t,nodes:m}))},io.updateProps=t=>{let{node:e,props:i,...a}=t;if(e&&i&&"object"==typeof i){let t=n.nodes.get(e);if(t){t.props={...i},r(t=>({...t}));return}}r(t=>({...t,...a,options:{...t.options,...a.options}}))},io.closeModal=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{notify:i=!0}=e;y(),r(e=>{let n=e["".concat(t,"Modal")];if(n&&"object"==typeof n&&"afterVerificationCancelled"in n&&i){var r;null==(r=n.afterVerificationCancelled)||r.call(n)}return{...e,["".concat(t,"Modal")]:null}})},io.openModal=(t,e)=>{if("enableOrganizationsPrompt"===t)return void r(i=>i.enableOrganizationsPromptModal?i:{...i,["".concat(t,"Modal")]:e});"afterVerificationCancelled"in e?"afterVerificationCancelled"in e&&r(i=>({...i,["".concat(t,"Modal")]:{...e,afterVerification(){var i;null==(i=e.afterVerification)||i.call(e),io.closeModal(t,{notify:!1})}}})):r(i=>({...i,["".concat(t,"Modal")]:e}))},io.mountImpersonationFab=()=>{r(t=>({...t,impersonationFab:!0}))},io.openDrawer=(t,e)=>{r(i=>({...i,["".concat(t,"Drawer")]:{open:!0,props:e}}))},io.closeDrawer=t=>{r(e=>{var i,n;let r=e["".concat(t,"Drawer")];return null==r||null==(n=r.props)||null==(i=n.onClose)||i.call(n),{...e,["".concat(t,"Drawer")]:{...e["".concat(t,"Drawer")],open:!1}}})},io.prefetch=t=>{r(e=>({...e,["".concat(t,"Prefetch")]:!0}))},t.onComponentsMounted()},[]);let b=(0,e9.tZ)(ir._,{componentProps:a,globalAppearance:n.appearance,componentAppearance:null==a?void 0:a.appearance,startPath:(0,U.e1)({base:"/one-tap",path:""})}),k=(0,e9.BX)(ir.mA,{globalAppearance:n.appearance,appearanceKey:"signIn",componentAppearance:null==s?void 0:s.appearance,flowName:"signIn",onClose:()=>io.closeModal("signIn"),onExternalNavigate:()=>io.closeModal("signIn"),startPath:(0,U.e1)({base:"/sign-in",path:null==g?void 0:g.path}),componentName:"SignInModal",children:[(0,e9.tZ)(e8.fA,{...s}),(0,e9.tZ)(e8.XL,{...e7(s,"signin")}),(0,e9.tZ)(e8.ql,{...d})]}),S=(0,e9.BX)(ir.mA,{globalAppearance:n.appearance,appearanceKey:"signUp",componentAppearance:null==o?void 0:o.appearance,flowName:"signUp",onClose:()=>io.closeModal("signUp"),onExternalNavigate:()=>io.closeModal("signUp"),startPath:(0,U.e1)({base:"/sign-up",path:null==g?void 0:g.path}),componentName:"SignUpModal",children:[(0,e9.tZ)(e8.fA,{...e7(o,"signup")}),(0,e9.tZ)(e8.XL,{...o}),(0,e9.tZ)(e8.ql,{...d})]}),A=(0,e9.tZ)(ir.mA,{globalAppearance:n.appearance,appearanceKey:"userProfile",componentAppearance:null==l?void 0:l.appearance,flowName:"userProfile",onClose:()=>io.closeModal("userProfile"),onExternalNavigate:()=>io.closeModal("userProfile"),startPath:(0,U.e1)({base:"/user",path:(null==l?void 0:l.__experimental_startPath)||(null==g?void 0:g.path)}),componentName:"UserProfileModal",modalContainerSx:{alignItems:"center"},modalContentSx:t=>({height:"min(".concat(t.sizes.$176,", calc(100% - ").concat(t.sizes.$12,"))"),margin:0}),children:(0,e9.tZ)(e8.FI,{...l})}),C=(0,e9.tZ)(ir.mA,{globalAppearance:n.appearance,appearanceKey:"userVerification",componentAppearance:null==c?void 0:c.appearance,flowName:"userVerification",onClose:()=>io.closeModal("userVerification"),onExternalNavigate:()=>io.closeModal("userVerification"),startPath:(0,U.e1)({base:"/user-verification",path:null==g?void 0:g.path}),componentName:"UserVerificationModal",modalContainerSx:{alignItems:"center"},children:(0,e9.tZ)(e8.$D,{...c})}),x=(0,e9.tZ)(ir.mA,{globalAppearance:n.appearance,appearanceKey:"organizationProfile",componentAppearance:null==u?void 0:u.appearance,flowName:"organizationProfile",onClose:()=>io.closeModal("organizationProfile"),onExternalNavigate:()=>io.closeModal("organizationProfile"),startPath:(0,U.e1)({base:"/organizationProfile",path:(null==u?void 0:u.__experimental_startPath)||(null==g?void 0:g.path)}),componentName:"OrganizationProfileModal",modalContainerSx:{alignItems:"center"},modalContentSx:t=>({height:"min(".concat(t.sizes.$176,", calc(100% - ").concat(t.sizes.$12,"))"),margin:0}),children:(0,e9.tZ)(e8.J3,{...u})}),P=(0,e9.tZ)(ir.mA,{globalAppearance:n.appearance,appearanceKey:"createOrganization",componentAppearance:null==h?void 0:h.appearance,flowName:"createOrganization",onClose:()=>io.closeModal("createOrganization"),onExternalNavigate:()=>io.closeModal("createOrganization"),startPath:(0,U.e1)({base:"/createOrganization",path:null==g?void 0:g.path}),componentName:"CreateOrganizationModal",modalContainerSx:{alignItems:"center"},modalContentSx:t=>({height:"min(".concat(t.sizes.$120,", calc(100% - ").concat(t.sizes.$12,"))"),margin:0}),children:(0,e9.tZ)(e8.yh,{...h})}),O=(0,e9.BX)(ir.mA,{globalAppearance:n.appearance,appearanceKey:"waitlist",componentAppearance:null==d?void 0:d.appearance,flowName:"waitlist",onClose:()=>io.closeModal("waitlist"),onExternalNavigate:()=>io.closeModal("waitlist"),startPath:(0,U.e1)({base:"/waitlist",path:null==g?void 0:g.path}),componentName:"WaitlistModal",children:[(0,e9.tZ)(e8.ql,{...d}),(0,e9.tZ)(e8.fA,{...d})]}),I=(0,e9.tZ)(ir.mA,{globalAppearance:n.appearance,appearanceKey:"blankCaptcha",componentAppearance:{},flowName:"blankCaptcha",onClose:()=>io.closeModal("blankCaptcha"),startPath:(0,U.e1)({base:"/blank-captcha",path:null==g?void 0:g.path}),componentName:"BlankCaptchaModal",canCloseModal:!1,modalId:"cl-modal-captcha-wrapper",modalStyle:{visibility:"hidden",pointerEvents:"none"},children:(0,e9.tZ)(e8.U3,{})});return(0,e9.tZ)(e4.Suspense,{fallback:"",children:(0,e9.BX)(ir.Jk,{clerk:t.clerk,environment:t.environment,options:n.options,children:[[...m].map(t=>{var e;let[i,r]=t;return(0,e9.tZ)(ir.P3,{node:i,globalAppearance:n.appearance,appearanceKey:r.appearanceKey,componentAppearance:null==(e=r.props)?void 0:e.appearance,componentName:r.name,componentProps:r.props},r.key)}),a&&b,s&&k,o&&S,l&&A,c&&C,u&&x,h&&P,d&&O,f&&I,(0,e9.tZ)(it,{appearance:n.appearance,checkoutDrawer:p,onOpenChange:()=>io.closeDrawer("checkout")}),(0,e9.tZ)(ie,{appearance:n.appearance,planDetailsDrawer:_,onOpenChange:()=>io.closeDrawer("planDetails")}),(0,e9.tZ)(ii,{appearance:n.appearance,subscriptionDetailsDrawer:v,onOpenChange:()=>io.closeDrawer("subscriptionDetails")}),n.impersonationFab&&(0,e9.tZ)(ir.$9,{globalAppearance:n.appearance,children:(0,e9.tZ)(e8.Qm,{})}),n.enableOrganizationsPromptModal&&(0,e9.tZ)(ir.MB,{globalAppearance:n.appearance,children:(0,e9.tZ)(e8.gd,{...n.enableOrganizationsPromptModal})}),(null==(e=n.options)?void 0:e.__internal_keyless_claimKeylessApplicationUrl)&&(null==(i=n.options)?void 0:i.__internal_keyless_copyInstanceKeysUrl)&&(0,e9.tZ)(ir.$9,{globalAppearance:n.appearance,children:(0,e9.tZ)(e8.B1,{claimUrl:n.options.__internal_keyless_claimKeylessApplicationUrl,copyKeysUrl:n.options.__internal_keyless_copyInstanceKeysUrl,onDismiss:n.options.__internal_keyless_dismissPrompt})}),(0,e9.tZ)(e4.Suspense,{children:n.organizationSwitcherPrefetch&&(0,e9.tZ)(ir.oL,{})})]})})};t=i.hmd(t),e2.mountComponentRenderer=(t,e,n)=>{let r,a=document.getElementById("clerk-components");return a||((a=document.createElement("div")).setAttribute("id","clerk-components"),document.body.appendChild(a)),{ensureMounted:async s=>{let{preloadHint:o}=s||{};if(!r){let s=(0,I.WK)();o&&(0,e8.fQ)(o),r=Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,5681)).then(i=>{let{createRoot:r}=i;return r(a).render((0,e9.tZ)(ic,{clerk:t,environment:e,options:n,onComponentsMounted:s.resolve})),s.promise.then(()=>io)})}return r.then(t=>t)}}};let iu=(null==(l=document.querySelector("script[data-clerk-publishable-key]"))?void 0:l.getAttribute("data-clerk-publishable-key"))||window.__clerk_publishable_key||"",ih=(null==(c=document.querySelector("script[data-clerk-proxy-url]"))?void 0:c.getAttribute("data-clerk-proxy-url"))||window.__clerk_proxy_url||"",id=(null==(u=document.querySelector("script[data-clerk-domain]"))?void 0:u.getAttribute("data-clerk-domain"))||window.__clerk_domain||"";window.Clerk||(window.Clerk=new e2(iu,{proxyUrl:ih,domain:id})),t.hot&&t.hot.accept()},91139:function(t,e,i){"use strict";i.d(e,{_:()=>s}),i(65223);var n=i(69144),r=i(80753),a=i(96620);let s=()=>{let[t,e]=n.useState({startPath:"",path:"",componentName:"",socialProvider:""}),i=(0,a.w$)();n.useLayoutEffect(()=>{i&&e(i)},[]);let s=()=>{e({startPath:"",path:"",componentName:"",socialProvider:""})};return{urlStateParam:{...t,clearUrlStateParam:s},decodedRedirectParams:i,clearUrlStateParam:s,removeQueryParam:()=>(0,a.xy)(r.v_)}}},7508:function(t,e,i){"use strict";i.d(e,{$D:()=>c,B1:()=>P,FI:()=>v,J3:()=>w,KO:()=>M,NQ:()=>L,Qm:()=>x,U3:()=>C,XL:()=>d,fA:()=>s,fQ:()=>W,gd:()=>u,hZ:()=>E,ql:()=>A,x7:()=>D,yh:()=>g}),i(50725);var n=i(69144);let r={SignIn:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("8043"),i.e("6722")]).then(i.bind(i,16241)),SignUp:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("1710")]).then(i.bind(i,73041)),UserAvatar:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("4283")]).then(i.bind(i,28128)),UserButton:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("8043"),i.e("2270")]).then(i.bind(i,37322)),UserProfile:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("3470")]).then(i.bind(i,23742)),CreateOrganization:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("5192"),i.e("5096")]).then(i.bind(i,21441)),OrganizationProfile:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("5192"),i.e("8554")]).then(i.bind(i,51853)),OrganizationSwitcher:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("4780")]).then(i.bind(i,96061)),OrganizationList:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("5192"),i.e("3158")]).then(i.bind(i,30683)),ImpersonationFab:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("378")]).then(i.bind(i,75692)),GoogleOneTap:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("9920")]).then(i.bind(i,41491)),BlankCaptchaModal:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("3875")]).then(i.bind(i,59900)),UserVerification:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("8662")]).then(i.bind(i,61419)),Waitlist:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("1861")]).then(i.bind(i,46522)),KeylessPrompt:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("4307")]).then(i.bind(i,48641)),PricingTable:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("4170"),i.e("3219")]).then(i.bind(i,29828)),Checkout:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("8237")]).then(i.bind(i,10670)),SessionTasks:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("9607"),i.e("7067"),i.e("8877")]).then(i.bind(i,51618)),TaskChooseOrganization:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("7067"),i.e("7814")]).then(i.bind(i,7008)),TaskResetPassword:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("196")]).then(i.bind(i,13678)),TaskSetupMFA:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("9607")]).then(i.bind(i,95710)),PlanDetails:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("1033")]).then(i.bind(i,65207)),SubscriptionDetails:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("6965")]).then(i.bind(i,51367)),APIKeys:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("4616")]).then(i.bind(i,84808)),OAuthConsent:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("8776")]).then(i.bind(i,40429)),EnableOrganizationsPrompt:()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573"),i.e("7210")]).then(i.bind(i,91219))},a=(0,n.lazy)(()=>r.SignIn().then(t=>({default:t.SignIn}))),s=(0,n.lazy)(()=>r.SignIn().then(t=>({default:t.SignInModal}))),o=(0,n.lazy)(()=>r.GoogleOneTap().then(t=>({default:t.OneTap}))),l=(0,n.lazy)(()=>r.UserVerification().then(t=>({default:t.UserVerification}))),c=(0,n.lazy)(()=>r.UserVerification().then(t=>({default:t.UserVerificationModal}))),u=(0,n.lazy)(()=>r.EnableOrganizationsPrompt().then(t=>({default:t.EnableOrganizationsPrompt}))),h=(0,n.lazy)(()=>r.SignUp().then(t=>({default:t.SignUp}))),d=(0,n.lazy)(()=>r.SignUp().then(t=>({default:t.SignUpModal}))),f=(0,n.lazy)(()=>r.UserAvatar().then(t=>({default:t.UserAvatar}))),p=(0,n.lazy)(()=>r.UserButton().then(t=>({default:t.UserButton}))),_=(0,n.lazy)(()=>r.UserProfile().then(t=>({default:t.UserProfile}))),v=(0,n.lazy)(()=>r.UserProfile().then(t=>({default:t.UserProfileModal}))),m=(0,n.lazy)(()=>r.CreateOrganization().then(t=>({default:t.CreateOrganization}))),g=(0,n.lazy)(()=>r.CreateOrganization().then(t=>({default:t.CreateOrganizationModal}))),y=(0,n.lazy)(()=>r.OrganizationProfile().then(t=>({default:t.OrganizationProfile}))),w=(0,n.lazy)(()=>r.OrganizationProfile().then(t=>({default:t.OrganizationProfileModal}))),b=(0,n.lazy)(()=>r.OrganizationSwitcher().then(t=>({default:t.OrganizationSwitcher}))),k=(0,n.lazy)(()=>r.OrganizationList().then(t=>({default:t.OrganizationList}))),S=(0,n.lazy)(()=>r.Waitlist().then(t=>({default:t.Waitlist}))),A=(0,n.lazy)(()=>r.Waitlist().then(t=>({default:t.WaitlistModal}))),C=(0,n.lazy)(()=>r.BlankCaptchaModal().then(t=>({default:t.BlankCaptchaModal}))),x=(0,n.lazy)(()=>r.ImpersonationFab().then(t=>({default:t.ImpersonationFab}))),P=(0,n.lazy)(()=>r.KeylessPrompt().then(t=>({default:t.KeylessPrompt}))),O=(0,n.lazy)(()=>r.PricingTable().then(t=>({default:t.PricingTable}))),I=(0,n.lazy)(()=>r.APIKeys().then(t=>({default:t.APIKeys}))),E=(0,n.lazy)(()=>r.Checkout().then(t=>({default:t.Checkout}))),U=(0,n.lazy)(()=>r.TaskChooseOrganization().then(t=>({default:t.TaskChooseOrganization}))),T=(0,n.lazy)(()=>r.TaskResetPassword().then(t=>({default:t.TaskResetPassword}))),R=(0,n.lazy)(()=>r.TaskSetupMFA().then(t=>({default:t.TaskSetupMFA}))),M=(0,n.lazy)(()=>r.PlanDetails().then(t=>({default:t.PlanDetails}))),N=(0,n.lazy)(()=>r.SubscriptionDetails().then(t=>({default:t.SubscriptionDetails}))),z=(0,n.lazy)(()=>r.OAuthConsent().then(t=>({default:t.OAuthConsent}))),D=(0,n.lazy)(()=>r.SessionTasks().then(t=>({default:t.SessionTasks}))),W=async t=>{var e;return null==(e=r[t])?void 0:e.call(r)},L={SignIn:a,SignUp:h,UserAvatar:f,UserButton:p,UserProfile:_,UserVerification:l,EnableOrganizationsPrompt:u,OrganizationSwitcher:b,OrganizationList:k,OrganizationProfile:y,CreateOrganization:m,SignInModal:s,SignUpModal:d,UserProfileModal:v,OrganizationProfileModal:w,CreateOrganizationModal:g,UserVerificationModal:c,GoogleOneTap:o,Waitlist:S,WaitlistModal:A,BlankCaptchaModal:C,PricingTable:O,Checkout:E,PlanDetails:M,APIKeys:I,OAuthConsent:z,SubscriptionDetails:N,TaskChooseOrganization:U,TaskResetPassword:T,TaskSetupMFA:R}},56556:function(t,e,i){"use strict";i.d(e,{$9:()=>C,Jk:()=>b,MB:()=>x,Ni:()=>A,P3:()=>k,_:()=>P,mA:()=>S,oL:()=>w}),i(50725);var n=i(73312),r=i(31924),a=i(69144),s=i(7508);let o=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,11576)).then(t=>({default:t.CoreClerkContextWrapper}))),l=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,11576)).then(t=>({default:t.EnvironmentProvider}))),c=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,11576)).then(t=>({default:t.OptionsProvider}))),u=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,64204)).then(t=>({default:t.AppearanceProvider}))),h=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,24676)).then(t=>({default:t.VirtualRouter}))),d=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,51217)).then(t=>({default:t.InternalThemeProvider}))),f=(0,a.lazy)(()=>i.e("9573").then(i.bind(i,26560)).then(t=>({default:t.StyleCacheProvider}))),p=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,64750)).then(t=>({default:t.Portal}))),_=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,64750)).then(t=>({default:t.VirtualBodyRootPortal}))),v=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,2672)).then(t=>({default:t.FlowMetadataProvider}))),m=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,56459)).then(t=>({default:t.Modal}))),g=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,81102)).then(t=>({default:t.Drawer.Root}))),y=(0,a.lazy)(()=>Promise.all([i.e("344"),i.e("1192"),i.e("9573")]).then(i.bind(i,81102)).then(t=>({default:t.Drawer.Overlay}))),w=(0,a.lazy)(()=>Promise.all([i.e("1192"),i.e("9573"),i.e("2211")]).then(i.bind(i,66703)).then(t=>({default:t.OrganizationSwitcherPrefetch}))),b=t=>{var e;return(0,n.tZ)(f,{nonce:t.options.nonce,cssLayerName:null==(e=t.options.appearance)?void 0:e.cssLayerName,children:(0,n.tZ)(o,{clerk:t.clerk,children:(0,n.tZ)(l,{value:t.environment,children:(0,n.tZ)(c,{value:t.options,children:t.children})})})})},k=t=>{var e;return(null==t||null==(e=t.componentProps)?void 0:e.routing)==="virtual"&&(0,r.x9)('routing="virtual"','Use routing="hash" instead.'),(0,n.tZ)(u,{globalAppearance:t.globalAppearance,appearanceKey:t.appearanceKey,appearance:t.componentAppearance,children:(0,n.tZ)(p,{node:t.node,component:s.NQ[t.componentName],props:t.componentProps,componentName:t.componentName})})},S=t=>(0,n.tZ)(a.Suspense,{fallback:"",children:(0,n.tZ)(u,{globalAppearance:t.globalAppearance,appearanceKey:t.appearanceKey,appearance:t.componentAppearance,children:(0,n.tZ)(v,{flow:t.flowName||"",children:(0,n.tZ)(d,{children:(0,n.tZ)(m,{id:t.modalId,style:t.modalStyle,handleClose:t.onClose,containerSx:t.modalContainerSx,contentSx:t.modalContentSx,canCloseModal:t.canCloseModal,children:t.startPath?(0,n.tZ)(a.Suspense,{children:(0,n.tZ)(h,{startPath:t.startPath,onExternalNavigate:t.onExternalNavigate,children:t.children})}):t.children})})})})}),A=t=>(0,n.tZ)(a.Suspense,{fallback:"",children:(0,n.tZ)(h,{startPath:"",children:(0,n.tZ)(u,{globalAppearance:t.globalAppearance,appearanceKey:t.appearanceKey,appearance:t.componentAppearance,children:(0,n.tZ)(v,{flow:t.flowName||"",children:(0,n.tZ)(d,{children:(0,n.BX)(g,{open:t.open,onOpenChange:t.onOpenChange,strategy:t.portalId||t.portalRoot?"absolute":"fixed",portalProps:{id:t.portalId?t.portalId:void 0,root:t.portalRoot?t.portalRoot:void 0},children:[(0,n.tZ)(y,{}),t.children]})})})})})}),C=t=>(0,n.tZ)(a.Suspense,{children:(0,n.tZ)(h,{startPath:"",children:(0,n.tZ)(u,{globalAppearance:t.globalAppearance,appearanceKey:"impersonationFab",children:t.children})})}),x=t=>(0,n.tZ)(a.Suspense,{children:(0,n.tZ)(h,{startPath:"",children:(0,n.tZ)(u,{globalAppearance:t.globalAppearance,appearanceKey:"enableOrganizationsPrompt",children:t.children})})}),P=t=>(0,n.tZ)(u,{globalAppearance:t.globalAppearance,appearanceKey:"oneTap",appearance:t.componentAppearance,children:(0,n.tZ)(_,{startPath:t.startPath,component:s.NQ.GoogleOneTap,props:t.componentProps,componentName:"GoogleOneTap"})})},89576:function(t,e,i){"use strict";i.d(e,{L:()=>a,v:()=>r}),i(28419);var n=i(31881);function r(t){let e=["redirectUrl","afterSignInUrl","afterSignUpUrl","after_sign_in_url","after_sign_up_url"],i=Object.keys(t).find(t=>e.includes(t));i&&t[i]&&n.k.warnOnce('Clerk: The prop "'.concat(i,'" is deprecated and should be replaced with the new "fallbackRedirectUrl" or "forceRedirectUrl" props instead. Learn more: https://clerk.com/docs/guides/custom-redirects#redirect-url-props'))}function a(t,e,i,r){e&&r&&n.k.warnOnce('Clerk: The "'.concat(t,'" prop ("').concat(e,'") has priority over the legacy "').concat(i,'" (or "redirectUrl") ("').concat(r,'"), which will be completely ignored in this case. "').concat(i,'" (or "redirectUrl" prop) should be replaced with the new "fallbackRedirectUrl" or "forceRedirectUrl" props instead. Learn more: https://clerk.com/docs/guides/custom-redirects#redirect-url-props'))}},4027:function(t,e,i){"use strict";function n(t){return t?"https://".concat(t.replace(/clerk\.accountsstage\./,"accountsstage.").replace(/clerk\.accounts\.|clerk\./,"accounts.")):""}async function r(t,e,i,r,a){if(!t.client||!r.popup)return;let s=n(t.frontendApi),{redirectUrl:o}=r,l=new URL(o);l.searchParams.set("sign_in_force_redirect_url",r.redirectUrlComplete),l.searchParams.set("sign_up_force_redirect_url",r.redirectUrlComplete),l.searchParams.set("intent",e);let c=t.buildUrlWithAuth(l.toString()),u=t.buildUrlWithAuth("".concat(s,"/popup-callback")),h=t.buildUrlWithAuth("".concat(s,"/popup-callback?return_url=").concat(encodeURIComponent(c))),d=async e=>{if(e.origin!==s)return;let i=!1;if(e.data.session){var n,a;if(!(null==(n=t.client)?void 0:n.sessions.find(t=>t.id===e.data.session)))try{await (null==(a=t.client)?void 0:a.reload())}catch(t){console.error(t)}await t.setActive({session:e.data.session,redirectUrl:r.redirectUrlComplete}),i=!0}else e.data.return_url&&(t.navigate(e.data.return_url),i=!0);i&&window.removeEventListener("message",d)};window.addEventListener("message",d),await i({...r,redirectUrlComplete:u,redirectUrl:h},a)}function a(t,e){let{redirectCallbackUrl:i,redirectUrl:r}=e,a=n(t.frontendApi),s=new URL(i);s.searchParams.set("sign_in_force_redirect_url",r),s.searchParams.set("sign_up_force_redirect_url",r);let o=t.buildUrlWithAuth(s.toString()),l=t.buildUrlWithAuth("".concat(a,"/popup-callback"));return{redirectCallbackUrl:t.buildUrlWithAuth("".concat(a,"/popup-callback?return_url=").concat(encodeURIComponent(o))),redirectUrl:l}}function s(t,e){return new Promise((i,r)=>{if(!t.client||!e.popup)return void r();let a=async e=>{e.origin===n(t.frontendApi)&&(e.data.session||e.data.return_url?(window.removeEventListener("message",a),i()):r())};window.addEventListener("message",a),e.popup.location.href=e.externalVerificationRedirectURL.toString()})}i.d(e,{oC:()=>s,GL:()=>r,S_:()=>a}),i(91634),i(98383),i(45261),i(70957),i(24551),i(22349),i(65223),i(50725),i(87945),i(56113)},4113:function(t,e,i){"use strict";i.d(e,{CJ:()=>n,Cn:()=>r,Iz:()=>a});let n=t=>({amount:t.amount,amountFormatted:t.amount_formatted,currency:t.currency,currencySymbol:t.currency_symbol}),r=t=>({proration:t.proration?{amount:n(t.proration.amount),cycleDaysRemaining:t.proration.cycle_days_remaining,cycleDaysTotal:t.proration.cycle_days_total,cycleRemainingPercent:t.proration.cycle_remaining_percent}:null,payer:t.payer?{remainingBalance:n(t.payer.remaining_balance),appliedAmount:n(t.payer.applied_amount)}:null,total:n(t.total)}),a=t=>{let e={grandTotal:n(t.grand_total),subtotal:n(t.subtotal),taxTotal:n(t.tax_total)};return"past_due"in t&&(e.pastDue=t.past_due?n(t.past_due):null),"credit"in t&&(e.credit=t.credit?n(t.credit):null),"credits"in t&&(e.credits=t.credits?r(t.credits):null),"total_due_now"in t&&(e.totalDueNow=n(t.total_due_now)),"total_due_after_free_trial"in t&&(e.totalDueAfterFreeTrial=t.total_due_after_free_trial?n(t.total_due_after_free_trial):null),e}},9423:function(t,e,i){"use strict";i.d(e,{E:()=>f});var n=i(17431);i(50725),i(92037),i(79876),i(65223);var r=i(78167),a=i(46805),s=i(83935);async function o(t){return window.turnstile||await l(t).catch(()=>{throw{captchaError:"captcha_script_failed_to_load"}}),window.turnstile}async function l(t){try{return await (0,r.v)("https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",{defer:!0,nonce:t})}catch(t){throw console.warn("Clerk: Failed to load the CAPTCHA script from Cloudflare. If you see a CSP error in your browser, please add the necessary CSP rules to your app. Visit https://clerk.com/docs/security/clerk-csp for more information."),t}}function c(t){try{let e=t.getAttribute("data-cl-theme")||void 0,i=t.getAttribute("data-cl-language")||void 0,n=t.getAttribute("data-cl-size")||void 0;return{theme:e,language:i,size:n}}catch{return{theme:void 0,language:void 0,size:void 0}}}let u=async t=>{let e,i,n,r,{siteKey:l,widgetType:u,invisibleSiteKey:h,nonce:d}=t,{modalContainerQuerySelector:f,modalWrapperQuerySelector:p,closeModal:_,openModal:v}=t,m=await o(d),g=[],y=0,w=[],b="";try{y=Date.now(),b="undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).substring(2,9)}catch{}let k="",S="",A=l,C=0,x=null,P="invisible";if(f&&p){x=u,r=f,P="modal";try{await (null==v?void 0:v())}catch{throw{captchaError:"modal_component_not_ready"}}let t=await new Promise(t=>{if(document.querySelector(f))return t(document.querySelector(f));let e=new MutationObserver(()=>{document.querySelector(f)&&(e.disconnect(),t(document.querySelector(f)))});e.observe(document.body,{childList:!0,subtree:!0})});if(t){let{theme:r,language:a,size:s}=c(t);e=r,n=a,i=s}}if(!r&&"smart"===u){let t=document.getElementById(s.M);if(t){P="smart",x="smart",r="#".concat(s.M),t.style.maxHeight="0";let{theme:a,language:o,size:l}=c(t);e=a,n=o,i=l}else console.error("Cannot initialize Smart CAPTCHA widget because the `clerk-captcha` DOM element was not found; falling back to Invisible CAPTCHA widget. If you are using a custom flow, visit https://clerk.com/docs/guides/development/custom-flows/bot-sign-up-protection for instructions")}if(!r){P="invisible",A=h,x="invisible",r=".".concat(s.G);let t=document.createElement("div");t.classList.add(s.G),t.style.display="none",document.body.appendChild(t)}let O=async()=>new Promise((a,o)=>{try{let l=m.render(r,{sitekey:A,appearance:"interaction-only",theme:e||"auto",size:i||"normal",language:n||"auto",action:t.action,retry:"never","refresh-expired":"auto",callback:function(t){null==_||_(),a([t,l])},"before-interactive-callback":()=>{if(p){let t=document.querySelector(p);null==t||t.style.setProperty("visibility","visible"),null==t||t.style.setProperty("pointer-events","all")}else{let t=document.getElementById(s.M);t&&(t.style.maxHeight="unset",t.style.minHeight="compact"===i?"140px":"68px",t.style.marginBottom="1.5rem",t.dataset.clInteractive="true")}},"error-callback":function(t){var e;g.push(t);try{w.push({code:t,t:Date.now()-y})}catch{}if(C<2&&(e=t.toString(),["crashed","undefined_error","102","103","104","106","110600","300","600"].find(t=>e.startsWith(t))))return void setTimeout(()=>{if(r&&!document.querySelector(r))return void o([g.join(","),l]);m.reset(l),C++},250);o([g.join(","),l])},"unsupported-callback":function(){return o(["This browser is not supported by the CAPTCHA.",l]),!0}})}catch(t){o([t,void 0])}});try{[k,S]=await O(),m.remove(S)}catch(i){let[t,e]=i;e&&m.remove(e);try{let e=!!r&&!!document.querySelector(r);a.Z.error("Turnstile captcha challenge failed",{captchaAttemptId:b,errorTimeline:w,lastErrorCode:w.length>0?w[w.length-1].code:null,finalError:String(t),retriesAttempted:C,widgetType:P,containerExistsAtFailure:e,totalDurationMs:Date.now()-y},"captcha")}catch{}throw{captchaError:t}}finally{if("modal"===P&&(null==_||_()),"invisible"===P){let t=document.querySelector(".".concat(s.G));t&&document.body.removeChild(t)}if("smart"===P){let t=document.getElementById(s.M);t&&(delete t.dataset.clInteractive,t.style.maxHeight="0",t.style.minHeight="unset",t.style.marginBottom="unset")}}return{captchaToken:k,captchaWidgetType:x}},h=t=>u(t),d=t=>{var e;let i=t.__unstable__environment,n=i?i.displayConfig.captchaProvider:"turnstile",r=null==(e=t.__internal_getOption)?void 0:e.call(t,"nonce");return{captchaSiteKey:i?i.displayConfig.captchaPublicKey:null,captchaWidgetType:i?i.displayConfig.captchaWidgetType:null,captchaProvider:n,captchaPublicKeyInvisible:i?i.displayConfig.captchaPublicKeyInvisible:null,canUseCaptcha:i?i.userSettings.signUp.captcha_enabled&&t.isStandardBrowser:null,nonce:r||void 0}};class f{async invisible(t){let{captchaSiteKey:e,canUseCaptcha:i,captchaPublicKeyInvisible:n,nonce:r}=d(this.clerk);return i&&e&&n?{...await h({action:null==t?void 0:t.action,captchaProvider:"turnstile",invisibleSiteKey:n,nonce:(null==t?void 0:t.nonce)||r||void 0,siteKey:n,widgetType:"invisible"}).catch(t=>t.captchaError?{captchaError:t.captchaError}:{captchaError:(null==t?void 0:t.message)||t||"unexpected_captcha_error"}),captchaAction:null==t?void 0:t.action}:{captchaError:"captcha_unavailable",captchaAction:null==t?void 0:t.action}}async managedOrInvisible(t){let{captchaSiteKey:e,canUseCaptcha:i,captchaWidgetType:n,captchaProvider:r,captchaPublicKeyInvisible:a,nonce:s}=d(this.clerk);if(i&&e&&a){let i=await h({captchaProvider:r,invisibleSiteKey:a,nonce:s||void 0,siteKey:e,widgetType:n,...t}).catch(e=>e.captchaError?{captchaError:e.captchaError}:(null==t?void 0:t.action)==="verify"?{captchaError:(null==e?void 0:e.message)||e||"unexpected_captcha_error"}:void 0);return(null==t?void 0:t.action)==="verify"?{...i,captchaAction:"verify"}:i}return(null==t?void 0:t.action)==="verify"?{captchaError:"captcha_unavailable",captchaAction:null==t?void 0:t.action}:{}}async managedInModal(t){return this.managedOrInvisible({modalWrapperQuerySelector:"#cl-modal-captcha-wrapper",modalContainerQuerySelector:"#cl-modal-captcha-container",openModal:()=>this.clerk.__internal_openBlankCaptchaModal(),closeModal:()=>this.clerk.__internal_closeBlankCaptchaModal(),action:null==t?void 0:t.action})}constructor(t){(0,n._)(this,"clerk",void 0),this.clerk=t}}},83935:function(t,e,i){"use strict";i.d(e,{G:()=>r,M:()=>n});let n="clerk-captcha",r="clerk-invisible-captcha"},65756:function(t,e,i){"use strict";i.d(e,{v:()=>r}),i(28419);var n=i(24029);let r=t=>{let{signUp:e,verifyEmailPath:i,verifyPhonePath:r,continuePath:a,navigate:s,handleComplete:o,redirectUrl:l="",redirectUrlComplete:c="",oidcPrompt:u}=t;if("complete"===e.status)return o&&o();if("missing_requirements"===e.status){var h,d;if(e.missingFields.some(t=>"saml"===t||"enterprise_sso"===t))return e.authenticateWithRedirect({strategy:"enterprise_sso",redirectUrl:l,redirectUrlComplete:c,continueSignUp:!0,oidcPrompt:u});let t=(0,n.z3)();if((null==(h=e.unverifiedFields)?void 0:h.includes("email_address"))&&i)return s(i,{searchParams:t});if((null==(d=e.unverifiedFields)?void 0:d.includes("phone_number"))&&r)return s(r,{searchParams:t});if(a)return s(a,{searchParams:t})}}},90750:function(t,e,i){"use strict";i.d(e,{C:()=>r}),i(45261),i(70957),i(24551),i(22349),i(65223);var n=i(72642);function r(t){let{pageSize:e,initialPage:i,...r}=t||{},a=null!=e?e:10;return new URLSearchParams({...(0,n.hF)(r),limit:a+"",offset:((null!=i?i:1)-1)*a+""})}},46630:function(t,e,i){"use strict";function n(t){let e=new Date(t||new Date);return e instanceof Date&&!isNaN(e.getTime())?e:new Date}i.d(e,{V:()=>n})},46805:function(t,e,i){"use strict";i.d(e,{Z:()=>u,e:()=>c}),i(79876),i(65223),i(50725);let n=!1,r=null,a=!1,s=[];function o(t,e,i,r){n&&(s.push({level:t,message:e,context:i,source:r,ts:Date.now()}),s.length>200&&s.shift())}async function l(t){try{if(!n||r)return;let{getDebugLogger:e}=await Promise.all([i.e("1192"),i.e("9573")]).then(i.bind(i,3656)),a=await e({logLevel:null==t?void 0:t.logLevel,telemetryCollector:null==t?void 0:t.telemetryCollector});if(a&&(r=a)&&0!==s.length){for(let t of s){let e={...t.context||{},__preInit:!0,__preInitTs:t.ts};switch(t.level){case"error":r.error(t.message,e,t.source);break;case"warn":r.warn(t.message,e,t.source);break;case"info":r.info(t.message,e,t.source);break;case"debug":r.debug(t.message,e,t.source)}}s.length=0}}catch(t){try{var e,a;null==(e=(a=console).debug)||e.call(a,"Debug logger initialization failed",t)}catch{}return}}function c(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(a)return;let{enabled:e=!1,...i}=t;e&&(n=!0,a=!0,l(i))}let u={debug(t,e,i){if(!r)return void o("debug",t,e,i);r.debug(t,e,i)},error(t,e,i){if(!r)return void o("error",t,e,i);r.error(t,e,i)},info(t,e,i){if(!r)return void o("info",t,e,i);r.info(t,e,i)},warn(t,e,i){if(!r)return void o("warn",t,e,i);r.warn(t,e,i)}}},36253:function(t,e,i){"use strict";i.d(e,{R:()=>n});let n=(0,i(41024).t5)({packageName:"@clerk/clerk-js"})},24029:function(t,e,i){"use strict";i.d(e,{XV:()=>s,xy:()=>o,z3:()=>l}),i(91634),i(98383),i(45261),i(70957),i(24551),i(22349),i(65223),i(56113);var n=i(26320),r=i(80753);let a=["__clerk_status","__clerk_created_session","__clerk_invitation_token","__clerk_ticket","__clerk_modal_state","__clerk_handshake","__clerk_handshake_nonce","__clerk_help",n.A,r.cD,r.w9,r.cc];function s(t){return new URL(window.location.href).searchParams.get(t)||null}function o(t){let e=new URL(window.location.href);e.searchParams.has(t)&&(e.searchParams.delete(t),window.history.replaceState(window.history.state,"",e))}function l(t){let e=new URLSearchParams(window.location.search),i=t||new URLSearchParams;for(let t of a){let n=e.get(t);n&&i.set(t,n)}return i}},40065:function(t,e,i){"use strict";function n(t){return t.split("").map(t=>t.charCodeAt(0).toString(16).padStart(2,"0")).join("")}i.d(e,{N:()=>n}),i(56113)},96620:function(t,e,i){"use strict";function n(t){let e;if(!t||"object"!=typeof t)return t;let i=void 0!==t.theme?t.theme:t.baseTheme,n=void 0!==t.theme;if(!i)return t;if(Array.isArray(i)){i.forEach(t=>{!e&&"object"==typeof t&&t.cssLayerName&&(e=t.cssLayerName)});let r=i.map(t=>{if("string"==typeof t)return t;let{cssLayerName:e,...i}=t;return i}),a=t.cssLayerName||e,s={...t,[n?"theme":"baseTheme"]:r};return a&&(s.cssLayerName=a),s}{let e;"object"==typeof i&&i.cssLayerName&&(e=i.cssLayerName);let r="string"==typeof i?i:(()=>{let{cssLayerName:t,...e}=i;return e})(),a=t.cssLayerName||e,s={...t,[n?"theme":"baseTheme"]:r};return a&&(s.cssLayerName=a),s}}i.d(e,{QO:()=>P,QD:()=>O.QD,wO:()=>$.wO,l1:()=>O.l1,DT:()=>p,eg:()=>w,z9:()=>O.z9,T7:()=>r.T7,dj:()=>l,$1:()=>O.$1,Jx:()=>I,vx:()=>o.v,Sk:()=>r.Sk,KV:()=>O.KV,TI:()=>K,HV:()=>a,Ly:()=>$.Ly,CJ:()=>s.CJ,nD:()=>n,xy:()=>C.xy,To:()=>O.To,ir:()=>T,yL:()=>B,ZE:()=>$.ZE,un:()=>O.un,oH:()=>V,XV:()=>C.XV,Q3:()=>U,dR:()=>$.dR,M8:()=>$.M8,sW:()=>h,RM:()=>S.R,z3:()=>C.z3,Ji:()=>$.Ji,aR:()=>y,Cn:()=>s.Cn,U7:()=>$.U7,jv:()=>O.jv,oF:()=>d,LM:()=>M,Mg:()=>v,h_:()=>A,VZ:()=>k,Dk:()=>_,bX:()=>L,Rh:()=>f,pU:()=>O.pU,vS:()=>m,u9:()=>O.u9,WW:()=>O.WW,Os:()=>O.Os,eT:()=>O.eT,f:()=>c,OR:()=>N,$0:()=>$.$0,f0:()=>F.f,w$:()=>W,M:()=>O.M,Iz:()=>s.Iz,_f:()=>j,vl:()=>F.v,OY:()=>g,hb:()=>O.hb,e1:()=>D,n$:()=>u,Dl:()=>$.Dl,s9:()=>$.s9,C3:()=>$.C3});var r=i(55809);let a=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return{track:async t=>{await t()},isUnloading:()=>!1};let e=(()=>{let t=!1,e=()=>t=!0;return{startListening:()=>{window.addEventListener("beforeunload",e),window.addEventListener(r.IK,e)},stopListening:()=>{window.removeEventListener("beforeunload",e),window.removeEventListener(r.IK,e)},isUnloading:()=>t}})();return{track:async t=>{e.startListening(),await t(),e.stopListening()},isUnloading:e.isUnloading}};var s=i(4113),o=i(65756);let l=(t,e)=>!!(t.isSignedIn&&(null==e?void 0:e.authConfig.singleSessionMode)),c=t=>!t.user,u=t=>!t.organization,h=(t,e)=>!(null==e?void 0:e.organizationSettings.enabled),d=(t,e)=>!(null==e?void 0:e.commerceSettings.billing.user.enabled),f=(t,e)=>!(null==e?void 0:e.commerceSettings.billing.organization.enabled),p=(t,e)=>d(t,e)&&f(t,e),_=(t,e)=>{var i;return!(null==e||null==(i=e.apiKeysSettings)?void 0:i.user_api_keys_enabled)},v=(t,e)=>{var i;return!(null==e||null==(i=e.apiKeysSettings)?void 0:i.orgs_api_keys_enabled)},m=(t,e)=>_(t,e)&&v(t,e);i(56113),i(87945);let g=t=>{let{regex:e}=t;return t=>{let{urlWithParam:i,entity:n}=t,r=e.exec(i);if(r){let t=r[1];if(t in n){let e=n[t];return i.replace(r[0],e)}}return i}};function y(t){let{localPart:e,frontendApi:i}=t,n=i?i.replace("clerk.",""):"clerk.com";return"".concat(e,"@").concat(n)}function w(t){return i.g.btoa(t)}function b(t){var e;return e=t.replace(/_/g,"/").replace(/-/g,"+"),decodeURIComponent(i.g.atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}function k(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.errors&&!!t.errors.find(t=>t.code===e)}i(50886);var S=i(36253);function A(t){if(!t||"object"!=typeof t||Object.getPrototypeOf(t)!==Object.prototype)return t;let e={};for(let[i,n]of Object.entries(t))void 0!==n&&(e[i]=n);return e}i(65223);var C=i(24029);i(40065),i(28419),i(91634),i(98383),i(45261),i(70957),i(24551),i(22349);var x=i(84437);let P=t=>{if((t||"").includes("gravatar")||(t||"").includes("avatar_placeholder"))return!0;try{let e=new URL(t).pathname.replace("/",""),i=(0,x.S)(e),n=JSON.parse(i);return"default"===n.type}catch{return!1}};var O=i(12244);function I(t){let e=(t||"").split("."),[i,n,r]=e;if(3!==e.length||!i||!n||!r)throw Error("JWT could not be decoded");let a=JSON.parse(b(n)),s={__raw:t};return Object.keys(a).forEach(t=>{s[t]=a[t]}),{encoded:{header:i,payload:n,signature:r},header:JSON.parse(b(i)),claims:s}}i(92037);var E=i(58776);function U(){if(!(0,E._f)())return null;try{var t;let e=null==(t=navigator)?void 0:t.language;if(!e||"string"!=typeof e||""===e.trim())return null;return e}catch{return null}}function T(t){return"string"==typeof t&&t.startsWith("org_")}i(22073),i(79876);var R=i(92823);let M=()=>{if(!(0,E._f)())return{onPageFocus:R.ZT};let t=[];return window.addEventListener("focus",()=>{"visible"===document.visibilityState&&t.forEach(t=>t())}),{onPageFocus:e=>{t.push(e)}}};function N(t){return"function"==typeof t?t():t}i(59853);var z=i(80753);let D=t=>{let{base:e,path:i}=t;return i?e+i:e},W=()=>{var t;let e=null!=(t=(0,C.XV)(z.v_))?t:"";return e?JSON.parse(atob(e)):null},L=t=>{let{url:e,startPath:i="/user",currentPath:n="",componentName:r,socialProvider:a=""}=t,s=w(JSON.stringify({path:n.replace(/CLERK-ROUTER\/VIRTUAL\/.*\//,"")||"",componentName:r,startPath:i,socialProvider:a})),o=new URL(e),l=o.searchParams;return l.set(z.v_,s),o.search=l.toString(),o.toString()};var F=i(17672);function j(){return void 0!==globalThis.document}function V(){return j()&&globalThis.document.hasFocus()}function B(){if(!j())return!1;try{return window.self!==window.top}catch{return!0}}function K(){if(!B())return!1;try{var t;return null==(t=window.top)||t.location.href,!1}catch{return!0}}i(64728);var $=i(62218)},22073:function(t,e,i){"use strict";i.d(e,{L:()=>r});var n=i(24152);let r=t=>{let{routing:e,path:i}=t;return i&&!e?{routing:"path",path:i}:"path"!==e&&i?(0,n.PQ)(e):{routing:e,path:i}}},93367:function(t,e,i){"use strict";i.d(e,{GH:()=>u,N7:()=>h,YI:()=>o,ku:()=>f,pr:()=>s,t1:()=>l,zQ:()=>p});var n=i(17431);i(50886),i(73588),i(75184),i(12100),i(29646),i(67581),i(63782),i(14311),i(72547),i(86936),i(20889),i(54357),i(86775),i(6763),i(65223),i(87945),i(56113),i(50725),i(92037);var r=i(41024);class a{static encode(t){return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}static decode(t){let e=atob(t.replace(/-/g,"+").replace(/_/g,"/")),i=e.length,n=new Uint8Array(i);for(let t=0;t<i;t++)n[t]=e.charCodeAt(t);return n.buffer}}async function s(t){try{let e=await navigator.credentials.create({publicKey:t});if(!e)return{error:new r.RK("Browser failed to create credential",{code:"passkey_registration_failed"}),publicKeyCredential:null};return{publicKeyCredential:e,error:null}}catch(t){var e;return{error:"InvalidStateError"===(e=t).name?new r.RK(e.message,{code:"passkey_already_exists"}):"NotAllowedError"===e.name?new r.RK(e.message,{code:"passkey_registration_cancelled"}):c(e),publicKeyCredential:null}}}let o=new class{__abort(){if(!this.controller)return;let t=Error();t.name="AbortError",this.controller.abort(t)}createAbortSignal(){this.__abort();let t=new AbortController;return this.controller=t,t.signal}abort(){this.__abort(),this.controller=void 0}constructor(){(0,n._)(this,"controller",void 0)}};async function l(t){let{publicKeyOptions:e,conditionalUI:i}=t;try{let t=await navigator.credentials.get({publicKey:e,mediation:i?"conditional":"optional",signal:o.createAbortSignal()});if(!t)return{error:new r.RK("Browser failed to get credential",{code:"passkey_retrieval_failed"}),publicKeyCredential:null};return{publicKeyCredential:t,error:null}}catch(t){var n;return{error:"NotAllowedError"===(n=t).name?new r.RK(n.message,{code:"passkey_retrieval_cancelled"}):c(n),publicKeyCredential:null}}}function c(t){return"AbortError"===t.name?new r.RK(t.message,{code:"passkey_operation_aborted"}):"SecurityError"===t.name?new r.RK(t.message,{code:"passkey_invalid_rpID_or_domain"}):t}function u(t){let e=v(t.user.id),i=v(t.challenge),n=(t.excludeCredentials||[]).map(t=>({...t,id:v(t.id)}));return{...t,excludeCredentials:n,challenge:i,user:{...t.user,id:e}}}function h(t){let e=v(t.challenge),i=(t.allowCredentials||[]).map(t=>({...t,id:v(t.id)}));return{...t,allowCredentials:i,challenge:e}}function d(t){return{type:t.type,id:t.id,rawId:_(t.rawId),authenticatorAttachment:t.authenticatorAttachment}}function f(t){let e=t.response;return{...d(t),response:{clientDataJSON:_(e.clientDataJSON),attestationObject:_(e.attestationObject),transports:e.getTransports()}}}function p(t){let e=t.response;return{...d(t),response:{clientDataJSON:_(e.clientDataJSON),authenticatorData:_(e.authenticatorData),signature:_(e.signature),userHandle:e.userHandle?_(e.userHandle):null}}}let _=a.encode.bind(a),v=a.decode.bind(a)},8755:function(t,e,i){"use strict";i.d(e,{W:()=>n}),i(87945),i(56113),i(80194),i(25800),i(65223);let n=t=>e=>((t,e)=>{let{max_length:i,min_length:n,require_special_char:r,require_lowercase:a,require_numbers:s,require_uppercase:o}=e,l=(t=>{let e;if(t.allowed_special_characters){let i=t.allowed_special_characters.replace("[","\\[");i=i.replace("]","\\]"),e=new RegExp("[".concat(i,"]"))}else e=/[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/;return(t,i)=>{let{minLength:n,maxLength:r}=i;return{max_length:t.length<r,min_length:t.length>=n,require_numbers:/\d/.test(t),require_lowercase:/[a-z]/.test(t),require_uppercase:/[A-Z]/.test(t),require_special_char:e.test(t)}}})(e)(t,{maxLength:e.max_length,minLength:e.min_length}),c={max_length:i,min_length:n,require_special_char:r,require_lowercase:a,require_numbers:s,require_uppercase:o},u=new Map;for(let t in c)c[t]&&(l[t]||u.set(t,!0));return Object.freeze(Object.fromEntries(u))})(e,t)},30529:function(t,e,i){"use strict";i.d(e,{z:()=>a});var n=i(92823);i(50725),i(65223);var r=i(8755);let a=(t,e)=>{let{onValidation:a=n.ZT,onValidationComplexity:s=n.ZT}=e||{},{show_zxcvbn:o,validatePassword:l}=t,c=(0,r.W)(t),u=(t=>{let{min_zxcvbn_strength:e,onResult:i}=t;return t=>n=>{let r=t(n);return(null==i||i(r),r.score>=e&&r.score<3)?{state:"pass",keys:["unstable__errors.zxcvbn.couldBeStronger"],result:r}:r.score>=e?{state:"excellent",result:r}:{state:"fail",keys:["unstable__errors.zxcvbn.notEnough",...r.feedback.suggestions.map(t=>"unstable__errors.zxcvbn.suggestions.".concat(t))],result:r}}})(t),h={};return(t,e)=>{let{onValidation:n=a,onValidationComplexity:r=s}=e||{};if(!l)return;let d=c(t);r(0===Object.keys(d).length),h={...h,complexity:d},o&&Promise.all([Promise.all([i.e("6708"),i.e("1192")]).then(i.bind(i,50384)),i.e("7325").then(i.bind(i,47706))]).then(t=>{let[e,i]=t,{zxcvbnOptions:n,zxcvbn:r}=e,{dictionary:a,adjacencyGraphs:s}=i;return n.setOptions({dictionary:{...a},graphs:s}),r}).then(e=>{let i=u(e)(t);n({...h={...h,strength:i},strength:i})}),h.complexity&&0===Object.keys(h.complexity).length&&o||n(h)}}},59853:function(t,e,i){"use strict";i.d(e,{R:()=>r}),i(80194),i(25800),i(56113),i(87945);let n=RegExp("/{1,}","g");function r(t,e){return[t,e].filter(t=>t).join("/").replace(n,"/")}},17672:function(t,e,i){"use strict";i.d(e,{f:()=>r,v:()=>n}),i(45261),i(70957),i(24551),i(22349),i(65223),i(79876);let n=t=>{let e={};return new URLSearchParams(t).forEach((t,i)=>{if(i in e){let n=e[i];Array.isArray(n)?n.push(t):e[i]=[n,t]}else e[i]=t}),e},r=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||!t||"object"!=typeof t)return"";let i=new URLSearchParams;return Object.keys(t).forEach(n=>{let r=e.keyEncoder?e.keyEncoder(n):n,a=t[n];if(Array.isArray(a))a.forEach(t=>void 0!==t&&i.append(r,t||""));else{if(void 0===a)return;"object"==typeof a&&null!==a?i.append(r,JSON.stringify(a)):i.append(r,String(null!=a?a:""))}}),i.toString()}},80499:function(t,e,i){"use strict";i.d(e,{O:()=>b});var n=i(34056),r=i(12499),a=i(17970),s=i(91412),o=i(17431);i(65223),i(45261),i(70957),i(24551),i(22349),i(28419),i(93008);let l=(t,e)=>{let i={};for(let n in t)i[n]=e(t[n],n);return i},c=(t,e)=>{let i={};for(let n in t)t[n]&&e(t[n])&&(i[n]=t[n]);return i};var u=i(72642),h=i(89576),d=i(12244),f=new WeakSet,p=new WeakSet,_=new WeakSet,v=new WeakSet,m=new WeakSet,g=new WeakSet,y=new WeakSet,w=new WeakMap;class b{getAfterSignInUrl(){return(0,a._)(this,v,C).call(this,"signIn")}getAfterSignUpUrl(){return(0,a._)(this,v,C).call(this,"signUp")}getPreservedSearchParams(){return(0,a._)(this,f,k).call(this,(0,a._)(this,p,S).call(this))}toSearchParams(){return(0,a._)(this,f,k).call(this,(0,a._)(this,_,A).call(this))}constructor(t,e={},i={},n){(0,s._)(this,f),(0,s._)(this,p),(0,s._)(this,_),(0,s._)(this,v),(0,s._)(this,m),(0,s._)(this,g),(0,s._)(this,y),(0,o._)(this,"options",void 0),(0,o._)(this,"fromOptions",void 0),(0,o._)(this,"fromProps",void 0),(0,o._)(this,"fromSearchParams",void 0),(0,o._)(this,"mode",void 0),(0,r._)(this,w,{writable:!0,value:t=>{var e;return c(t,(0,d.QD)(null==(e=this.options)?void 0:e.allowedRedirectOrigins,window.location.origin))}}),this.options=t,this.fromOptions=(0,a._)(this,m,x).call(this,t||{}),this.fromProps=(0,a._)(this,m,x).call(this,e||{}),this.fromSearchParams=(0,a._)(this,g,P).call(this,i||{}),this.mode=n}}function k(t){return new URLSearchParams(Object.entries(Object.fromEntries(Object.entries(t).map(t=>{let[e,i]=t;return[(0,u.a1)(e),i]}))).reduce((t,e)=>{let[i,n]=e;return null!=n&&(t[i]=n),t},{}))}function S(){return Object.fromEntries(Object.entries({...this.fromSearchParams}).filter(t=>{let[e]=t;return b.preserved.includes(e)}))}function A(){let t=this.fromSearchParams.signUpForceRedirectUrl||this.fromProps.signUpForceRedirectUrl||this.fromOptions.signUpForceRedirectUrl,e=this.fromSearchParams.signUpFallbackRedirectUrl||this.fromProps.signUpFallbackRedirectUrl||this.fromOptions.signUpFallbackRedirectUrl,i=this.fromSearchParams.signInForceRedirectUrl||this.fromProps.signInForceRedirectUrl||this.fromOptions.signInForceRedirectUrl,n=this.fromSearchParams.signInFallbackRedirectUrl||this.fromProps.signInFallbackRedirectUrl||this.fromOptions.signInFallbackRedirectUrl,r=this.fromSearchParams.afterSignInUrl||this.fromProps.afterSignInUrl||this.fromOptions.afterSignInUrl,a={signUpForceRedirectUrl:t,signUpFallbackRedirectUrl:e,signInFallbackRedirectUrl:n,signInForceRedirectUrl:i,afterSignInUrl:r,afterSignUpUrl:this.fromSearchParams.afterSignUpUrl||this.fromProps.afterSignUpUrl||this.fromOptions.afterSignUpUrl,redirectUrl:this.fromSearchParams.redirectUrl||this.fromProps.redirectUrl||this.fromOptions.redirectUrl};return t&&delete a.signUpFallbackRedirectUrl,i&&delete a.signInFallbackRedirectUrl,a}function C(t){let e,i,n="".concat(t,"ForceRedirectUrl"),r="".concat(t,"FallbackRedirectUrl"),a="after".concat(t[0].toUpperCase()).concat(t.slice(1),"Url");(i=this.fromSearchParams[n]||this.fromProps[n]||this.fromOptions[n])&&(e=n),i||(i=this.fromSearchParams.redirectUrl),i&&(e="redirectUrl"),i||(i=this.fromSearchParams[r]||this.fromProps[r]||this.fromOptions[r]),i&&(e=r);let s=this.fromSearchParams[a]||this.fromProps[a]||this.fromProps.redirectUrl||this.fromOptions[a];return((0,h.L)(e,i,a,s),i||(i=s),i||"modal"!==this.mode)?i||"/":window.location.href}function x(t){(0,h.v)(t);let e={};return b.keys.forEach(i=>{e[i]=t[i]}),l((0,n._)(this,w).call(this,(0,a._)(this,y,O).call(this,c(e,Boolean))),t=>t.toString())}function P(t){(0,h.v)(t);let e={};return b.keys.forEach(i=>{t instanceof URLSearchParams?e[i]=t.get((0,u.a1)(i)):e[i]=t[(0,u.a1)(i)]}),l((0,n._)(this,w).call(this,(0,a._)(this,y,O).call(this,c(e,Boolean))),t=>t.toString())}function O(t){return l(t,t=>(0,d.R9)(t,window.location.origin))}(0,o._)(b,"keys",["signInForceRedirectUrl","signInFallbackRedirectUrl","signUpForceRedirectUrl","signUpFallbackRedirectUrl","afterSignInUrl","afterSignUpUrl","redirectUrl"]),(0,o._)(b,"preserved",["redirectUrl"])},26310:function(t,e,i){"use strict";function n(t){let{unsafeMetadata:e}={...t},i=e?"object"==typeof e?JSON.stringify(e):e:"";return{...t,...e?{unsafeMetadata:i}:{}}}i.d(e,{q:()=>n})},65526:function(t,e,i){"use strict";i.d(e,{a:()=>r}),i(50725);var n=i(94898);async function r(t,e){n.Y.emit("resource:error",{resource:t,error:null}),n.Y.emit("resource:fetch",{resource:t,status:"fetching"});try{return{result:await e(),error:null}}catch(e){return n.Y.emit("resource:error",{resource:t,error:e}),{error:e}}finally{n.Y.emit("resource:fetch",{resource:t,status:"idle"})}}},24148:function(t,e,i){"use strict";i.d(e,{Y:()=>n,f:()=>r});let n=[".lovable.app",".lovableproject.com",".webcontainer-api.io",".vusercontent.net",".v0.dev",".v0.app",".lp.dev",".replit.dev"];function r(){try{return n.some(t=>window.location.hostname.endsWith(t))}catch{return!1}}},98382:function(t,e,i){"use strict";i.d(e,{K:()=>n});let n={build:(t,e,i)=>[t,e,i].filter(Boolean).join("-"),parse:(t,e,i)=>{let r=n.extractTemplate(t,e,i);return{organizationId:i,sessionId:e,template:r}},extractTemplate:(t,e,i)=>{if(t===e||i&&t==="".concat(e,"-").concat(i))return;let n=t.slice(e.length+1);return i&&n.endsWith("-".concat(i))&&(n=n.slice(0,-(i.length+1))),n||void 0}}},12244:function(t,e,i){"use strict";i.d(e,{KV:()=>m,jv:()=>b,WW:()=>T,M:()=>g,Os:()=>y,QD:()=>R,u9:()=>_,pU:()=>A,To:()=>U,l1:()=>w,eT:()=>x,hb:()=>O,un:()=>f,z9:()=>P,vt:()=>C,R9:()=>k,$1:()=>M}),i(65223),i(87945),i(56113),i(91634),i(98383),i(45261),i(70957),i(24551),i(22349),i(28419),i(56711),i(79876),i(92037);var n=i(54763),r=i(43227),a=i(31881),s=i(72642),o=i(45040),l=i(59853),c=i(17672);let u="http://clerk-dummy",h=["javascript:"],d=["javascript:","data:","vbscript:","blob:"],{isDevOrStagingUrl:f}=(0,r.MY)(),p=new Map;function _(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname;if(!t)return!1;let e=p.get(t);return void 0===e&&(e=(0,o.A5)(t)||(0,o.LQ)(t),p.set(t,e)),e}function v(t){return t.replace("clerk.","")}function m(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{base:i,hashPath:n,hashSearch:r,searchParams:a,hashSearchParams:o,...h}=t,d=new URL(i||"","undefined"!=typeof window&&window.location?window.location.href:"http://react-native-fake-base-url");if(a instanceof URLSearchParams&&a.forEach((t,e)=>{null!=t&&d.searchParams.set((0,s.a1)(e),t)}),Object.assign(d,h),n||r||o){let t=new URL(u+d.hash.substring(1));for(let[e,i]of(t.pathname=(0,l.R)(t.pathname,n||""),Object.entries((0,c.v)(r||""))))t.searchParams.append(e,i);if(o)for(let e of Array.isArray(o)?o:[o])(e instanceof URLSearchParams||"object"==typeof e)&&new URLSearchParams(e).forEach((e,i)=>{null!=e&&t.searchParams.set((0,s.a1)(i),e)});let e=t.href.replace(u,"");"/"!==e&&(d.hash=e)}let{stringify:f,skipOrigin:p}=e;return f?p?d.href.replace(d.origin,""):d.href:d}function g(t){return void 0===window.location&&"string"==typeof t?t:(t=new URL(t.toString(),window.location.origin)).href.replace(t.origin,"")}let y=t=>(t||"").replace(/\/+$/,""),w=t=>{let{externalAccount:e}=t.verifications;return!!e.error};function b(t){if(!t)return!1;try{return new URL(t),!0}catch{return!1}}function k(t,e){try{return new URL(t)}catch{return new URL(t,e)}}let S=[/\0/,/^\/\//,/[\x00-\x1F]/];function A(t){return!!b(t)&&"data:"===new URL(t).protocol}function C(t){if(!t||""===t.trim())return null;if(t.startsWith("/")||t.startsWith("#")||t.startsWith("?")||!t.includes(":"))return t;try{let e=new URL(t);if(function(t){if(!b(t))return!1;let e=new URL(t).protocol;return d.some(t=>t===e)}(e))return null;return t}catch{return t}}let x=t=>new URL(t,u).hash.startsWith("#/"),P=t=>{let e=new URL(t);if(!x(e))return e;let i=new URL(e.hash.replace("#/","/"),e.href),n=new URL([e.pathname,i.pathname].map(t=>t.split("/")).flat().filter(Boolean).join("/"),e.origin);return e.searchParams.forEach((t,e)=>{n.searchParams.set(e,t)}),i.searchParams.forEach((t,e)=>{n.searchParams.set(e,t)}),n},O=t=>t.replace(/CLERK-ROUTER\/(.*?)\//,""),I=["/oauth/authorize"],E=["/v1/verify","/v1/tickets/accept","/oauth/authorize-with-immediate-redirect","/oauth/end_session"];function U(t,e){let i=new URL(e,u),n=i.pathname,r=I.includes(n)||E.includes(n);return t===i.host&&r}function T(t){let e=new URL(t,u);return I.includes(e.pathname)}let R=(t,e)=>i=>{let r=i;if("string"==typeof r&&(r=k(r,e)),!t)return!0;let s=e===r.origin,o=!function(t){if(function(t){if(!b(t))return!1;let e=new URL(t).protocol;return h.some(t=>t===e)}(t))return!0;for(let e of S)if(e.test(t.pathname))return!0;return!1}(r)&&(s||t.map(t=>"string"==typeof t?(t=>{try{return n(t)}catch(e){throw Error("Invalid pattern: ".concat(t,".\nConsult the documentation of glob-to-regexp here: https://www.npmjs.com/package/glob-to-regexp.\n").concat(e.message))}})(y(t)):t).some(t=>t.test(y(r.origin))));return o||a.k.warnOnce("Clerk: Redirect URL ".concat(r," is not on one of the allowedRedirectOrigins, falling back to the default redirect URL.")),o};function M(t,e,i){if(Array.isArray(t)&&t.length)return t;let n=[];return"undefined"!=typeof window&&window.location&&n.push(window.location.origin),n.push("https://".concat(v(e))),n.push("https://*.".concat(v(e))),"development"===i&&n.push("https://".concat(e)),n}},95878:function(t,e,i){"use strict";i.d(e,{Pp:()=>n,Qm:()=>r,xC:()=>a});let n=t=>{let{firstName:e,lastName:i,name:n}=t;return n||[e,i].join(" ").trim()||""},r=t=>{let{firstName:e,lastName:i,name:n}=t;return[(e||"")[0],(i||"")[0]].join("").trim()||(n||"")[0]},a=t=>t.username?t.username:t.primaryEmailAddress?t.primaryEmailAddress.emailAddress:t.primaryPhoneNumber?t.primaryPhoneNumber.phoneNumber:t.primaryWeb3Wallet?t.primaryWeb3Wallet.web3Wallet:""},62218:function(t,e,i){"use strict";i.d(e,{Ji:()=>V,wO:()=>L,U7:()=>W,$0:()=>N,ZE:()=>z,M8:()=>M,dR:()=>F,Dl:()=>B,Ly:()=>T,s9:()=>D,bQ:()=>R,C3:()=>j}),i(50725),i(50886),i(65223),i(92037),i(28419);var n=i(41024);i(24152);var r=i(36253),a=i(34056),s=i(12499),o=i(96733),l=i(17970),c=i(91412),u=i(92985),h=i(60543),d=i(26782),f=i(75529);function p(t,e,i,n){return(0,d._)(t,e),(0,f._)(i,"set"),(0,h._)(t,i,n),n}var _=i(17431),v=new WeakMap,m=new WeakMap,g=new WeakSet,y=new WeakSet,w=new WeakSet;class b{static getInstance(){return(0,u._)(b,b,k)||p(b,b,k,new b),(0,u._)(b,b,k)}constructor(){(0,c._)(this,g),(0,c._)(this,y),(0,c._)(this,w),(0,s._)(this,v,{writable:!0,value:void 0}),(0,s._)(this,m,{writable:!0,value:!1}),(0,_._)(this,"get",async t=>{await (0,l._)(this,g,S).call(this);let e=((0,a._)(this,v)||[]).find(e=>e.name===t&&(0,l._)(this,y,A).call(this,e)&&(0,l._)(this,w,C).call(this,e));if(e&&(0,l._)(this,y,A).call(this,e))return e;if("undefined"==typeof window)return;let i=window.solana;if(i&&"function"==typeof i.connect&&"function"==typeof i.signMessage)return i})}}var k={writable:!0,value:null};async function S(){if((0,a._)(this,m))return;(0,o._)(this,m,!0);let t=await i.e("2172").then(i.bind(i,44994)).then(t=>t.getWallets());(0,o._)(this,v,t.get()),t.on("register",()=>{(0,o._)(this,v,t.get())}),t.on("unregister",()=>{(0,o._)(this,v,t.get())})}function A(t){var e,i;return null!=(i=null==(e=t.chains)?void 0:e.some(t=>t.startsWith("solana:")))&&i}function C(t){return"solana:signMessage"in t.features}var x=i(40065);i(79876);var P=new WeakMap,O=new WeakMap,I=new WeakMap;class E{static getInstance(){return(0,u._)(E,E,U)||p(E,E,U,new E),(0,u._)(E,E,U)}constructor(){if((0,s._)(this,P,{writable:!0,value:[]}),(0,s._)(this,O,{writable:!0,value:{metamask:"MetaMask",okx_wallet:"OKX Wallet"}}),(0,_._)(this,"get",t=>{var e;let i=null==(e=(0,a._)(this,P).find(e=>e.info.name===(0,a._)(this,O)[t]))?void 0:e.provider;return void 0!==i?i:window.ethereum}),(0,s._)(this,I,{writable:!0,value:t=>{(0,a._)(this,P).some(e=>e.info.uuid===t.detail.info.uuid)||(0,a._)(this,P).push(t.detail)}}),"undefined"==typeof window)return;window.addEventListener("eip6963:announceProvider",(0,a._)(this,I)),window.dispatchEvent(new Event("eip6963:requestProvider"))}}var U={writable:!0,value:null};async function T(t){let{provider:e,walletName:i}=t,n=await K(e,i);if(!n)return"";if("solana"===e){let t=await n.features["standard:connect"].connect();return t&&t.accounts[0].address||""}let r=await n.request({method:"eth_requestAccounts"});return r&&r[0]||""}let R=async t=>{let{identifier:e,nonce:i,provider:r,walletName:a=""}=t,s=await K(r,a);if(!s)return"";if("solana"===r)try{var o,l;let t=s.accounts.find(t=>t.address===e);if(!t)return console.warn("Wallet account with address ".concat(e," not found")),"";let n=await (null==(o=s.features["solana:signMessage"])?void 0:o.signMessage({account:t,message:new TextEncoder().encode(i)}));return(null==n||null==(l=n[0])?void 0:l.signature)?btoa(String.fromCharCode(...n[0].signature)):""}catch(t){if(t instanceof Error&&t.message.includes("User rejected the request."))throw new n.w$("Web3 signature request was rejected by the user.",{code:"web3_signature_request_rejected"});throw new n.w$("An error occurred while generating the Solana signature.",{code:"web3_solana_signature_generation_failed",cause:t})}return await s.request({method:"personal_sign",params:["0x".concat((0,x.N)(i)),e]})};async function M(){return await T({provider:"metamask"})}async function N(){return await T({provider:"coinbase_wallet"})}async function z(){return await T({provider:"okx_wallet"})}async function D(){return await T({provider:"base"})}async function W(t){return await T({provider:"solana",walletName:t})}async function L(t){return await R({...t,provider:"metamask"})}async function F(t){return await R({...t,provider:"coinbase_wallet"})}async function j(t){return await R({...t,provider:"okx_wallet"})}async function V(t){return await R({...t,provider:"base"})}async function B(t){return await R({...t,provider:"solana"})}async function K(t,e){if("coinbase_wallet"===t)return(await Promise.all([i.e("514"),i.e("3956"),i.e("1192")]).then(i.bind(i,84334)).then(t=>t.createCoinbaseWalletSDK))({preference:{options:"all"}}).getProvider();if("base"===t)try{var n,a,s;return(await Promise.all([i.e("514"),i.e("3956"),i.e("1192")]).then(i.bind(i,36271)).then(t=>t.createBaseAccountSDK))({appName:"undefined"!=typeof window&&(null==(s=window.Clerk)||null==(a=s.__unstable__environment)||null==(n=a.displayConfig)?void 0:n.applicationName)||"undefined"!=typeof document&&document.title||"Web3 Application"}).getProvider()}catch{return null}return"solana"===t?e&&0!==e.length?await b.getInstance().get(e):void r.R.throw("Wallet name must be provided to get Solana wallet provider"):E.getInstance().get(t)}},55809:function(t,e,i){"use strict";i.d(e,{IK:()=>n,Sk:()=>r,T7:()=>a}),i(91634),i(98383),i(45261),i(70957),i(24551),i(22349),i(65223);let n="clerk:beforeunload",r=["http:","https:","wails:","chrome-extension:"];function a(t){let e=new URL(t,window.location.href);window.dispatchEvent(new CustomEvent(n)),window.location.href=e.href}},11025:function(t,e,i){"use strict";i.d(e,{Z:()=>K}),i(65223),i(87945),i(56113),i(92037),i(79876);var n=function(){function t(t){var e=this;this._insertTag=function(t){var i;i=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,i),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((e=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&e.setAttribute("nonce",this.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e));var e,i=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(i);try{n.insertRule(t,n.cssRules.length)}catch(t){}}else i.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),this.tags=[],this.ctr=0},t}(),r=Math.abs,a=String.fromCharCode,s=Object.assign;function o(t,e,i){return t.replace(e,i)}function l(t,e){return t.indexOf(e)}function c(t,e){return 0|t.charCodeAt(e)}function u(t,e,i){return t.slice(e,i)}function h(t){return t.length}function d(t,e){return e.push(t),t}var f=1,p=1,_=0,v=0,m=0,g="";function y(t,e,i,n,r,a,s){return{value:t,root:e,parent:i,type:n,props:r,children:a,line:f,column:p,length:s,return:""}}function w(t,e){return s(y("",null,null,"",null,null,0),t,{length:-t.length},e)}function b(){return m=v<_?c(g,v++):0,p++,10===m&&(p=1,f++),m}function k(){return c(g,v)}function S(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function A(t){return f=p=1,_=h(g=t),v=0,[]}function C(t){var e,i;return(e=v-1,i=function t(e){for(;b();)switch(m){case e:return v;case 34:case 39:34!==e&&39!==e&&t(m);break;case 40:41===e&&t(e);break;case 92:b()}return v}(91===t?t+2:40===t?t+1:t),u(g,e,i)).trim()}var x="-ms-",P="-moz-",O="-webkit-",I="comm",E="rule",U="decl",T="@keyframes";function R(t,e){for(var i="",n=t.length,r=0;r<n;r++)i+=e(t[r],r,t,e)||"";return i}function M(t,e,i,n){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case U:return t.return=t.return||t.value;case I:return"";case T:return t.return=t.value+"{"+R(t.children,n)+"}";case E:t.value=t.props.join(",")}return h(i=R(t.children,n))?t.return=t.value+"{"+i+"}":""}function N(t,e,i,n,a,s,l,c,h,d,f){for(var p=a-1,_=0===a?s:[""],v=_.length,m=0,g=0,w=0;m<n;++m)for(var b=0,k=u(t,p+1,p=r(g=l[m])),S=t;b<v;++b)(S=(g>0?_[b]+" "+k:o(k,/&\f/g,_[b])).trim())&&(h[w++]=S);return y(t,e,i,0===a?E:c,h,d,f)}function z(t,e,i,n){return y(t,e,i,U,u(t,0,n),u(t,n+1,-1),n)}i(73408);var D=function(t,e,i){for(var n=0,r=0;n=r,r=k(),38===n&&12===r&&(e[i]=1),!S(r);)b();return u(g,t,v)},W=function(t,e){var i=-1,n=44;do switch(S(n)){case 0:38===n&&12===k()&&(e[i]=1),t[i]+=D(v-1,e,i);break;case 2:t[i]+=C(n);break;case 4:if(44===n){t[++i]=58===k()?"&\f":"",e[i]=t[i].length;break}default:t[i]+=a(n)}while(n=b());return t},L=function(t,e){var i;return i=W(A(t),e),g="",i},F=new WeakMap,j=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,i=t.parent,n=t.column===i.column&&t.line===i.line;"rule"!==i.type;)if(!(i=i.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||F.get(i))&&!n){F.set(t,!0);for(var r=[],a=L(e,r),s=i.props,o=0,l=0;o<a.length;o++)for(var c=0;c<s.length;c++,l++)t.props[l]=r[o]?a[o].replace(/&\f/g,s[c]):s[c]+" "+a[o]}}},V=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}},B=[function(t,e,i,n){if(t.length>-1&&!t.return)switch(t.type){case U:t.return=function t(e,i){switch(45^c(e,0)?(((i<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+P+e+x+e+e;case 6828:case 4268:return O+e+x+e+e;case 6165:return O+e+x+"flex-"+e+e;case 5187:return O+e+o(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+x+"flex-$1$2")+e;case 5443:return O+e+x+"flex-item-"+o(e,/flex-|-self/,"")+e;case 4675:return O+e+x+"flex-line-pack"+o(e,/align-content|flex-|-self/,"")+e;case 5548:return O+e+x+o(e,"shrink","negative")+e;case 5292:return O+e+x+o(e,"basis","preferred-size")+e;case 6060:return O+"box-"+o(e,"-grow","")+O+e+x+o(e,"grow","positive")+e;case 4554:return O+o(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return o(o(o(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return o(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return o(o(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+x+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4095:case 3583:case 4068:case 2532:return o(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(h(e)-1-i>6)switch(c(e,i+1)){case 109:if(45!==c(e,i+4))break;case 102:return o(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+P+(108==c(e,i+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?t(o(e,"stretch","fill-available"),i)+e:e}break;case 4949:if(115!==c(e,i+1))break;case 6444:switch(c(e,h(e)-3-(~l(e,"!important")&&10))){case 107:return o(e,":",":"+O)+e;case 101:return o(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(45===c(e,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+x+"$2box$3")+e}break;case 5936:switch(c(e,i+11)){case 114:return O+e+x+o(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+x+o(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+x+o(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return O+e+x+e+e}return e}(t.value,t.length);break;case T:return R([w(t,{value:o(t.value,"@","@"+O)})],n);case E:if(t.length){var r,a;return r=t.props,a=function(e){var i;switch(i=e,(i=/(::plac\w+|:read-\w+)/.exec(i))?i[0]:i){case":read-only":case":read-write":return R([w(t,{props:[o(e,/:(read-\w+)/,":"+P+"$1")]})],n);case"::placeholder":return R([w(t,{props:[o(e,/:(plac\w+)/,":"+O+"input-$1")]}),w(t,{props:[o(e,/:(plac\w+)/,":"+P+"$1")]}),w(t,{props:[o(e,/:(plac\w+)/,x+"input-$1")]})],n)}return""},r.map(a).join("")}}}],K=function(t){var e,i,r,s,_,w=t.key;if("css"===w){var x=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(x,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var P=t.stylisPlugins||B,O={},E=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+w+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),i=1;i<e.length;i++)O[e[i]]=!0;E.push(t)});var U=(i=(e=[j,V].concat(P,[M,(r=function(t){_.insert(t)},function(t){!t.root&&(t=t.return)&&r(t)})])).length,function(t,n,r,a){for(var s="",o=0;o<i;o++)s+=e[o](t,n,r,a)||"";return s}),T=function(t){var e,i;return R((i=function t(e,i,n,r,s,_,w,A,x){for(var P,O=0,E=0,U=w,T=0,R=0,M=0,D=1,W=1,L=1,F=0,j="",V=s,B=_,K=r,$=j;W;)switch(M=F,F=b()){case 40:if(108!=M&&58==c($,U-1)){-1!=l($+=o(C(F),"&","&\f"),"&\f")&&(L=-1);break}case 34:case 39:case 91:$+=C(F);break;case 9:case 10:case 13:case 32:$+=function(t){for(;m=k();)if(m<33)b();else break;return S(t)>2||S(m)>3?"":" "}(M);break;case 92:$+=function(t,e){for(var i;--e&&b()&&!(m<48)&&!(m>102)&&(!(m>57)||!(m<65))&&(!(m>70)||!(m<97)););return i=v+(e<6&&32==k()&&32==b()),u(g,t,i)}(v-1,7);continue;case 47:switch(k()){case 42:case 47:d((P=function(t,e){for(;b();)if(t+m===57)break;else if(t+m===84&&47===k())break;return"/*"+u(g,e,v-1)+"*"+a(47===t?t:b())}(b(),v),y(P,i,n,I,a(m),u(P,2,-2),0)),x);break;default:$+="/"}break;case 123*D:A[O++]=h($)*L;case 125*D:case 59:case 0:switch(F){case 0:case 125:W=0;case 59+E:-1==L&&($=o($,/\f/g,"")),R>0&&h($)-U&&d(R>32?z($+";",r,n,U-1):z(o($," ","")+";",r,n,U-2),x);break;case 59:$+=";";default:if(d(K=N($,i,n,O,E,s,A,j,V=[],B=[],U),_),123===F)if(0===E)t($,i,K,K,V,_,U,A,B);else switch(99===T&&110===c($,3)?100:T){case 100:case 108:case 109:case 115:t(e,K,K,r&&d(N(e,K,K,0,0,s,A,j,s,V=[],U),B),s,B,U,A,r?V:B);break;default:t($,K,K,K,[""],B,0,A,B)}}O=E=R=0,D=L=1,j=$="",U=w;break;case 58:U=1+h($),R=M;default:if(D<1){if(123==F)--D;else if(125==F&&0==D++&&125==(m=v>0?c(g,--v):0,p--,10===m&&(p=1,f--),m))continue}switch($+=a(F),F*D){case 38:L=E>0?1:($+="\f",-1);break;case 44:A[O++]=(h($)-1)*L,L=1;break;case 64:45===k()&&($+=C(b())),T=k(),E=U=h(j=$+=function(t){for(;!S(k());)b();return u(g,t,v)}(v)),F++;break;case 45:45===M&&2==h($)&&(D=0)}}return _}("",null,null,null,[""],e=A(e=t),0,[0],e),g="",i),U)},D={key:w,sheet:new n({key:w,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:O,registered:{},insert:function(t,e,i,n){_=i,T(t?t+"{"+e.styles+"}":e.styles),n&&(D.inserted[e.name]=!0)}};return D.sheet.hydrate(E),D}},69763:function(t,e,i){"use strict";i.d(e,{E:()=>w,h:()=>h,a:()=>v,c:()=>g,C:()=>f}),i(92037),i(56113),i(13189),i(63277),i(82230),i(27899),i(37389),i(27968),i(46299),i(65223),i(87945);var n,r=i(69144),a=i(11025);function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(null,arguments)}var o=i(73408),l=i(99519),c=i(97021),u=i(84191),h={}.hasOwnProperty,d=r.createContext("undefined"!=typeof HTMLElement?(0,a.Z)({key:"css"}):null),f=d.Provider,p=r.createContext({}),_=(0,o.Z)(function(t){return(0,o.Z)(function(e){var i,n;return i=t,"function"==typeof(n=e)?n(i):s({},i,n)})}),v=function(t){var e=r.useContext(p);return t.theme!==e&&(e=_(e)(t.theme)),r.createElement(p.Provider,{value:e},t.children)},m="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(t,e){var i={};for(var n in e)h.call(e,n)&&(i[n]=e[n]);return i[m]=t,i},y=function(t){var e=t.cache,i=t.serialized,n=t.isStringTag;return(0,l.hC)(e,i,n),(0,u.L)(function(){return(0,l.My)(e,i,n)}),null},w=(n=function(t,e,i){var n=t.css;"string"==typeof n&&void 0!==e.registered[n]&&(n=e.registered[n]);var a=t[m],s=[n],o="";"string"==typeof t.className?o=(0,l.fp)(e.registered,s,t.className):null!=t.className&&(o=t.className+" ");var u=(0,c.O)(s,void 0,r.useContext(p));o+=e.key+"-"+u.name;var d={};for(var f in t)h.call(t,f)&&"css"!==f&&f!==m&&(d[f]=t[f]);return d.ref=i,d.className=o,r.createElement(r.Fragment,null,r.createElement(y,{cache:e,serialized:u,isStringTag:"string"==typeof a}),r.createElement(a,d))},(0,r.forwardRef)(function(t,e){return n(t,(0,r.useContext)(d),e)}))},73312:function(t,e,i){"use strict";i.d(e,{BX:()=>o,HY:()=>a,tZ:()=>s});var n=i(20836),r=i(69763);i(69144),i(11025),i(73408),i(53772),i(99519),i(97021),i(84191);var a=n.Fragment;function s(t,e,i){return r.h.call(e,"css")?n.jsx(r.E,(0,r.c)(t,e),i):n.jsx(t,e,i)}function o(t,e,i){return r.h.call(e,"css")?n.jsxs(r.E,(0,r.c)(t,e),i):n.jsxs(t,e,i)}},97021:function(t,e,i){"use strict";i.d(e,{O:()=>_}),i(87945),i(56113),i(92037);var n,r,a,s={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(t){return 45===t.charCodeAt(1)},u=function(t){return null!=t&&"boolean"!=typeof t},h=(n=function(t){return c(t)?t:t.replace(o,"-$&").toLowerCase()},r=Object.create(null),function(t){return void 0===r[t]&&(r[t]=n(t)),r[t]}),d=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(l,function(t,e,i){return a={name:e,styles:i,next:a},e})}return 1===s[t]||c(t)||"number"!=typeof e||0===e?e:e+"px"};function f(t,e,i){if(null==i)return"";if(void 0!==i.__emotion_styles)return i;switch(typeof i){case"boolean":return"";case"object":if(1===i.anim)return a={name:i.name,styles:i.styles,next:a},i.name;if(void 0!==i.styles){var n=i.next;if(void 0!==n)for(;void 0!==n;)a={name:n.name,styles:n.styles,next:a},n=n.next;return i.styles+";"}return function(t,e,i){var n="";if(Array.isArray(i))for(var r=0;r<i.length;r++)n+=f(t,e,i[r])+";";else for(var a in i){var s=i[a];if("object"!=typeof s)null!=e&&void 0!==e[s]?n+=a+"{"+e[s]+"}":u(s)&&(n+=h(a)+":"+d(a,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==e||void 0===e[s[0]]))for(var o=0;o<s.length;o++)u(s[o])&&(n+=h(a)+":"+d(a,s[o])+";");else{var l=f(t,e,s);switch(a){case"animation":case"animationName":n+=h(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}}return n}(t,e,i);case"function":if(void 0!==t){var r=a,s=i(t);return a=r,f(t,e,s)}}if(null==e)return i;var o=e[i];return void 0!==o?o:i}var p=/label:\s*([^\s;{]+)\s*(;|$)/g;function _(t,e,i){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var n,r=!0,s="";a=void 0;var o=t[0];null==o||void 0===o.raw?(r=!1,s+=f(i,e,o)):s+=o[0];for(var l=1;l<t.length;l++)s+=f(i,e,t[l]),r&&(s+=o[l]);p.lastIndex=0;for(var c="";null!==(n=p.exec(s));)c+="-"+n[1];return{name:function(t){for(var e,i=0,n=0,r=t.length;r>=4;++n,r-=4)e=(65535&(e=255&t.charCodeAt(n)|(255&t.charCodeAt(++n))<<8|(255&t.charCodeAt(++n))<<16|(255&t.charCodeAt(++n))<<24))*0x5bd1e995+((e>>>16)*59797<<16),e^=e>>>24,i=(65535&e)*0x5bd1e995+((e>>>16)*59797<<16)^(65535&i)*0x5bd1e995+((i>>>16)*59797<<16);switch(r){case 3:i^=(255&t.charCodeAt(n+2))<<16;case 2:i^=(255&t.charCodeAt(n+1))<<8;case 1:i^=255&t.charCodeAt(n),i=(65535&i)*0x5bd1e995+((i>>>16)*59797<<16)}return i^=i>>>13,(((i=(65535&i)*0x5bd1e995+((i>>>16)*59797<<16))^i>>>15)>>>0).toString(36)}(s)+c,styles:s,next:a}}},84191:function(t,e,i){"use strict";i.d(e,{L:()=>s});var n,r=i(69144),a=!!(n||(n=i.t(r,2))).useInsertionEffect&&(n||(n=i.t(r,2))).useInsertionEffect,s=a||function(t){return t()};a||r.useLayoutEffect},99519:function(t,e,i){"use strict";function n(t,e,i){var n="";return i.split(" ").forEach(function(i){void 0!==t[i]?e.push(t[i]+";"):i&&(n+=i+" ")}),n}i.d(e,{My:()=>a,fp:()=>n,hC:()=>r}),i(56113),i(79876);var r=function(t,e,i){var n=t.key+"-"+e.name;!1===i&&void 0===t.registered[n]&&(t.registered[n]=e.styles)},a=function(t,e,i){r(t,e,i);var n=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var a=e;do t.insert(e===a?"."+n:"",a,t.sheet,!0),a=a.next;while(void 0!==a)}}},73408:function(t,e,i){"use strict";i.d(e,{Z:()=>n}),i(65223);var n=function(t){var e=new WeakMap;return function(i){if(e.has(i))return e.get(i);var n=t(i);return e.set(i,n),n}}},82788:function(t,e,i){"use strict";i(50725),i(65223),i(92037),i(79876),i(13189),i(63277),i(82230),i(27899),i(37389),i(27968),i(46299),i(28419);var n=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(r,a){function s(t){try{l(n.next(t))}catch(t){a(t)}}function o(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){t.done?r(t.value):new i(function(e){e(t.value)}).then(s,o)}l((n=n.apply(t,e||[])).next())})},r=this&&this.__generator||function(t,e){var i,n,r,a,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){var l=[a,o];if(i)throw TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&l[0]?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,n=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(6===l[0]&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=e.call(t,s)}catch(t){l=[6,t],n=0}finally{i=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},a=this;Object.defineProperty(e,"__esModule",{value:!0});var s=i(16119),o="browser-tabs-lock-key",l={key:function(t){return n(a,void 0,void 0,function(){return r(this,function(t){throw Error("Unsupported")})})},getItem:function(t){return n(a,void 0,void 0,function(){return r(this,function(t){throw Error("Unsupported")})})},clear:function(){return n(a,void 0,void 0,function(){return r(this,function(t){return[2,window.localStorage.clear()]})})},removeItem:function(t){return n(a,void 0,void 0,function(){return r(this,function(t){throw Error("Unsupported")})})},setItem:function(t,e){return n(a,void 0,void 0,function(){return r(this,function(t){throw Error("Unsupported")})})},keySync:function(t){return window.localStorage.key(t)},getItemSync:function(t){return window.localStorage.getItem(t)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(t){return window.localStorage.removeItem(t)},setItemSync:function(t,e){return window.localStorage.setItem(t,e)}};function c(t){return new Promise(function(e){return setTimeout(e,t)})}function u(t){for(var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",i="",n=0;n<t;n++){var r=Math.floor(Math.random()*e.length);i+=e[r]}return i}e.default=function(){function t(e){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+u(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=e,void 0===t.waiters&&(t.waiters=[])}return t.prototype.acquireLock=function(e,i){return void 0===i&&(i=5e3),n(this,void 0,void 0,function(){var n,a,s,h,d,f,p;return r(this,function(r){switch(r.label){case 0:n=Date.now()+u(4),a=Date.now()+i,s=o+"-"+e,h=void 0===this.storageHandler?l:this.storageHandler,r.label=1;case 1:if(!(Date.now()<a))return[3,8];return[4,c(30)];case 2:if(r.sent(),null!==h.getItemSync(s))return[3,5];return d=this.id+"-"+e+"-"+n,[4,c(Math.floor(25*Math.random()))];case 3:return r.sent(),h.setItemSync(s,JSON.stringify({id:this.id,iat:n,timeoutKey:d,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,c(30)];case 4:if(r.sent(),null!==(f=h.getItemSync(s))&&(p=JSON.parse(f)).id===this.id&&p.iat===n)return this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(s,n),[2,!0];return[3,7];case 5:return t.lockCorrector(void 0===this.storageHandler?l:this.storageHandler),[4,this.waitForSomethingToChange(a)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+u(4),[3,1];case 8:return[2,!1]}})})},t.prototype.refreshLockWhileAcquired=function(t,e){return n(this,void 0,void 0,function(){var i=this;return r(this,function(a){return setTimeout(function(){return n(i,void 0,void 0,function(){var i,n,a;return r(this,function(r){switch(r.label){case 0:return[4,s.default().lock(e)];case 1:if(r.sent(),!this.acquiredIatSet.has(e)||null===(n=(i=void 0===this.storageHandler?l:this.storageHandler).getItemSync(t)))return s.default().unlock(e),[2];return(a=JSON.parse(n)).timeRefreshed=Date.now(),i.setItemSync(t,JSON.stringify(a)),s.default().unlock(e),this.refreshLockWhileAcquired(t,e),[2]}})})},1e3),[2]})})},t.prototype.waitForSomethingToChange=function(e){return n(this,void 0,void 0,function(){return r(this,function(i){switch(i.label){case 0:return[4,new Promise(function(i){var n=!1,r=Date.now(),a=!1;function s(){if(a||(window.removeEventListener("storage",s),t.removeFromWaiting(s),clearTimeout(o),a=!0),!n){n=!0;var e=50-(Date.now()-r);e>0?setTimeout(i,e):i(null)}}window.addEventListener("storage",s),t.addToWaiting(s);var o=setTimeout(s,Math.max(0,e-Date.now()))})];case 1:return i.sent(),[2]}})})},t.addToWaiting=function(e){this.removeFromWaiting(e),void 0!==t.waiters&&t.waiters.push(e)},t.removeFromWaiting=function(e){void 0!==t.waiters&&(t.waiters=t.waiters.filter(function(t){return t!==e}))},t.notifyWaiters=function(){void 0!==t.waiters&&t.waiters.slice().forEach(function(t){return t()})},t.prototype.releaseLock=function(t){return n(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.releaseLock__private__(t)];case 1:return[2,e.sent()]}})})},t.prototype.releaseLock__private__=function(e){return n(this,void 0,void 0,function(){var i,n,a,c;return r(this,function(r){switch(r.label){case 0:if(i=void 0===this.storageHandler?l:this.storageHandler,n=o+"-"+e,null===(a=i.getItemSync(n)))return[2];if((c=JSON.parse(a)).id!==this.id)return[3,2];return[4,s.default().lock(c.iat)];case 1:r.sent(),this.acquiredIatSet.delete(c.iat),i.removeItemSync(n),s.default().unlock(c.iat),t.notifyWaiters(),r.label=2;case 2:return[2]}})})},t.lockCorrector=function(e){for(var i=Date.now()-5e3,n=[],r=0;;){var a=e.keySync(r);if(null===a)break;n.push(a),r++}for(var s=!1,l=0;l<n.length;l++){var c=n[l];if(c.includes(o)){var u=e.getItemSync(c);if(null!==u){var h=JSON.parse(u);(void 0===h.timeRefreshed&&h.timeAcquired<i||void 0!==h.timeRefreshed&&h.timeRefreshed<i)&&(e.removeItemSync(c),s=!0)}}}s&&t.notifyWaiters()},t.waiters=void 0,t}()},16119:function(t,e,i){"use strict";i(65223),i(838),i(50725),Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){var t=this;this.locked=new Map,this.addToLocked=function(e,i){var n=t.locked.get(e);void 0===n?void 0===i?t.locked.set(e,[]):t.locked.set(e,[i]):void 0!==i&&(n.unshift(i),t.locked.set(e,n))},this.isLocked=function(e){return t.locked.has(e)},this.lock=function(e){return new Promise(function(i,n){t.isLocked(e)?t.addToLocked(e,i):(t.addToLocked(e),i())})},this.unlock=function(e){var i=t.locked.get(e);if(void 0===i||0===i.length)return void t.locked.delete(e);var n=i.pop();t.locked.set(e,i),void 0!==n&&setTimeout(n,0)}}return t.getInstance=function(){return void 0===t.instance&&(t.instance=new t),t.instance},t}();e.default=function(){return n.getInstance()}},54763:function(t,e,i){i(92037),i(50887),i(80194),i(25800),i(56113),t.exports=function(t,e){if("string"!=typeof t)throw TypeError("Expected a string");for(var i,n=String(t),r="",a=!!e&&!!e.extended,s=!!e&&!!e.globstar,o=!1,l=e&&"string"==typeof e.flags?e.flags:"",c=0,u=n.length;c<u;c++)switch(i=n[c]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+i;break;case"?":if(a){r+=".";break}case"[":case"]":if(a){r+=i;break}case"{":if(a){o=!0,r+="(";break}case"}":if(a){o=!1,r+=")";break}case",":if(o){r+="|";break}r+="\\"+i;break;case"*":for(var h=n[c-1],d=1;"*"===n[c+1];)d++,c++;var f=n[c+1];s?d>1&&("/"===h||void 0===h)&&("/"===f||void 0===f)?(r+="((?:[^/]*(?:/|$))*)",c++):r+="([^/]*)":r+=".*";break;default:r+=i}return l&&~l.indexOf("g")||(r="^"+r+"$"),new RegExp(r,l)}},53772:function(t,e,i){"use strict";var n=i(88131),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(t){return n.isMemo(t)?s:o[t.$$typeof]||r}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,i,n){if("string"!=typeof i){if(p){var r=f(i);r&&r!==p&&t(e,r,n)}var s=u(i);h&&(s=s.concat(h(i)));for(var o=l(e),_=l(i),v=0;v<s.length;++v){var m=s[v];if(!a[m]&&!(n&&n[m])&&!(_&&_[m])&&!(o&&o[m])){var g=d(i,m);try{c(e,m,g)}catch(t){}}}}return e}},1470:function(t,e){"use strict";var i="function"==typeof Symbol&&Symbol.for,n=i?Symbol.for("react.element"):60103,r=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,o=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,c=i?Symbol.for("react.context"):60110,u=i?Symbol.for("react.async_mode"):60111,h=i?Symbol.for("react.concurrent_mode"):60111,d=i?Symbol.for("react.forward_ref"):60112,f=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.suspense_list"):60120,_=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m=i?Symbol.for("react.block"):60121,g=i?Symbol.for("react.fundamental"):60117,y=i?Symbol.for("react.responder"):60118,w=i?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case u:case h:case a:case o:case s:case f:return t;default:switch(t=t&&t.$$typeof){case c:case d:case v:case _:case l:return t;default:return e}}case r:return e}}}function k(t){return b(t)===h}e.AsyncMode=u,e.ConcurrentMode=h,e.ContextConsumer=c,e.ContextProvider=l,e.Element=n,e.ForwardRef=d,e.Fragment=a,e.Lazy=v,e.Memo=_,e.Portal=r,e.Profiler=o,e.StrictMode=s,e.Suspense=f,e.isAsyncMode=function(t){return k(t)||b(t)===u},e.isConcurrentMode=k,e.isContextConsumer=function(t){return b(t)===c},e.isContextProvider=function(t){return b(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return b(t)===d},e.isFragment=function(t){return b(t)===a},e.isLazy=function(t){return b(t)===v},e.isMemo=function(t){return b(t)===_},e.isPortal=function(t){return b(t)===r},e.isProfiler=function(t){return b(t)===o},e.isStrictMode=function(t){return b(t)===s},e.isSuspense=function(t){return b(t)===f},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===h||t===o||t===s||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===_||t.$$typeof===l||t.$$typeof===c||t.$$typeof===d||t.$$typeof===g||t.$$typeof===y||t.$$typeof===w||t.$$typeof===m)},e.typeOf=b},88131:function(t,e,i){"use strict";t.exports=i(1470)},27276:function(t,e,i){"use strict";var n=i(69144),r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,i){var n,a={},c=null,u=null;for(n in void 0!==i&&(c=""+i),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)s.call(e,n)&&!l.hasOwnProperty(n)&&(a[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===a[n]&&(a[n]=e[n]);return{$$typeof:r,type:t,key:c,ref:u,props:a,_owner:o.current}}e.Fragment=a,e.jsx=c,e.jsxs=c},14326:function(t,e,i){"use strict";i(65223),i(92037),i(87945),i(56113),i(79876);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(t,e,i){this.props=t,this.context=e,this.refs=m,this.updater=i||_}function y(){}function w(t,e,i){this.props=t,this.context=e,this.refs=m,this.updater=i||_}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=g.prototype;var b=w.prototype=new y;b.constructor=w,v(b,g.prototype),b.isPureReactComponent=!0;var k=Array.isArray,S=Object.prototype.hasOwnProperty,A={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function x(t,e,i){var r,a={},s=null,o=null;if(null!=e)for(r in void 0!==e.ref&&(o=e.ref),void 0!==e.key&&(s=""+e.key),e)S.call(e,r)&&!C.hasOwnProperty(r)&&(a[r]=e[r]);var l=arguments.length-2;if(1===l)a.children=i;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(t&&t.defaultProps)for(r in l=t.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:n,type:t,key:s,ref:o,props:a,_owner:A.current}}function P(t){return"object"==typeof t&&null!==t&&t.$$typeof===n}var O=/\/+/g;function I(t,e){var i,n;return"object"==typeof t&&null!==t&&null!=t.key?(i=""+t.key,n={"=":"=0",":":"=2"},"$"+i.replace(/[=:]/g,function(t){return n[t]})):e.toString(36)}function E(t,e,i){if(null==t)return t;var a=[],s=0;return!function t(e,i,a,s,o){var l,c,u,h=typeof e;("undefined"===h||"boolean"===h)&&(e=null);var d=!1;if(null===e)d=!0;else switch(h){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d)return o=o(d=e),e=""===s?"."+I(d,0):s,k(o)?(a="",null!=e&&(a=e.replace(O,"$&/")+"/"),t(o,i,a,"",function(t){return t})):null!=o&&(P(o)&&(l=o,c=a+(!o.key||d&&d.key===o.key?"":(""+o.key).replace(O,"$&/")+"/")+e,o={$$typeof:n,type:l.type,key:c,ref:l.ref,props:l.props,_owner:l._owner}),i.push(o)),1;if(d=0,s=""===s?".":s+":",k(e))for(var f=0;f<e.length;f++){var _=s+I(h=e[f],f);d+=t(h,i,a,_,o)}else if("function"==typeof(_=null===(u=e)||"object"!=typeof u?null:"function"==typeof(u=p&&u[p]||u["@@iterator"])?u:null))for(e=_.call(e),f=0;!(h=e.next()).done;)_=s+I(h=h.value,f++),d+=t(h,i,a,_,o);else if("object"===h)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(i=String(e))?"object with keys {"+Object.keys(e).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return d}(t,a,"","",function(t){return e.call(i,t,s++)}),a}function U(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){(0===t._status||-1===t._status)&&(t._status=1,t._result=e)},function(e){(0===t._status||-1===t._status)&&(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var T={current:null},R={transition:null};function M(){throw Error("act(...) is not supported in production builds of React.")}e.Children={map:E,forEach:function(t,e,i){E(t,function(){e.apply(this,arguments)},i)},count:function(t){var e=0;return E(t,function(){e++}),e},toArray:function(t){return E(t,function(t){return t})||[]},only:function(t){if(!P(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},e.Component=g,e.Fragment=a,e.Profiler=o,e.PureComponent=w,e.StrictMode=s,e.Suspense=h,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:R,ReactCurrentOwner:A},e.act=M,e.cloneElement=function(t,e,i){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=v({},t.props),a=t.key,s=t.ref,o=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,o=A.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)S.call(e,c)&&!C.hasOwnProperty(c)&&(r[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)r.children=i;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:n,type:t.type,key:a,ref:s,props:r,_owner:o}},e.createContext=function(t){return(t={$$typeof:c,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:t},t.Consumer=t},e.createElement=x,e.createFactory=function(t){var e=x.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:u,render:t}},e.isValidElement=P,e.lazy=function(t){return{$$typeof:f,_payload:{_status:-1,_result:t},_init:U}},e.memo=function(t,e){return{$$typeof:d,type:t,compare:void 0===e?null:e}},e.startTransition=function(t){var e=R.transition;R.transition={};try{t()}finally{R.transition=e}},e.unstable_act=M,e.useCallback=function(t,e){return T.current.useCallback(t,e)},e.useContext=function(t){return T.current.useContext(t)},e.useDebugValue=function(){},e.useDeferredValue=function(t){return T.current.useDeferredValue(t)},e.useEffect=function(t,e){return T.current.useEffect(t,e)},e.useId=function(){return T.current.useId()},e.useImperativeHandle=function(t,e,i){return T.current.useImperativeHandle(t,e,i)},e.useInsertionEffect=function(t,e){return T.current.useInsertionEffect(t,e)},e.useLayoutEffect=function(t,e){return T.current.useLayoutEffect(t,e)},e.useMemo=function(t,e){return T.current.useMemo(t,e)},e.useReducer=function(t,e,i){return T.current.useReducer(t,e,i)},e.useRef=function(t){return T.current.useRef(t)},e.useState=function(t){return T.current.useState(t)},e.useSyncExternalStore=function(t,e,i){return T.current.useSyncExternalStore(t,e,i)},e.useTransition=function(){return T.current.useTransition()},e.version="18.3.1"},69144:function(t,e,i){"use strict";t.exports=i(14326)},20836:function(t,e,i){"use strict";t.exports=i(27276)},34096:function(t,e,i){i(64728),i(50725),i(92037),i(79876),i(65223);var n=function(t){"use strict";var e,i=Object.prototype,n=i.hasOwnProperty,r=Object.defineProperty||function(t,e,i){t[e]=i.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,i){return t[e]=i}}function u(t,i,n,a){var s,o,l,c,u=Object.create((i&&i.prototype instanceof v?i:v).prototype);return r(u,"_invoke",{value:(s=t,o=n,l=new P(a||[]),c=d,function(t,i){if(c===f)throw Error("Generator is already running");if(c===p){if("throw"===t)throw i;return{value:e,done:!0}}for(l.method=t,l.arg=i;;){var n=l.delegate;if(n){var r=function t(i,n){var r=n.method,a=i.iterator[r];if(e===a)return(n.delegate=null,"throw"===r&&i.iterator.return&&(n.method="return",n.arg=e,t(i,n),"throw"===n.method))?_:("return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),_);var s=h(a,i.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,_;var o=s.arg;return o?o.done?(n[i.resultName]=o.value,n.next=i.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,_):o:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,_)}(n,l);if(r){if(r===_)continue;return r}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if(c===d)throw c=p,l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);c=f;var a=h(s,o,l);if("normal"===a.type){if(c=l.done?p:"suspendedYield",a.arg===_)continue;return{value:a.arg,done:l.done}}"throw"===a.type&&(c=p,l.method="throw",l.arg=a.arg)}})}),u}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var d="suspendedStart",f="executing",p="completed",_={};function v(){}function m(){}function g(){}var y={};c(y,s,function(){return this});var w=Object.getPrototypeOf,b=w&&w(w(O([])));b&&b!==i&&n.call(b,s)&&(y=b);var k=g.prototype=v.prototype=Object.create(y);function S(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function A(t,e){var i;r(this,"_invoke",{value:function(r,a){function s(){return new e(function(i,s){!function i(r,a,s,o){var l=h(t[r],t,a);if("throw"===l.type)o(l.arg);else{var c=l.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then(function(t){i("next",t,s,o)},function(t){i("throw",t,s,o)}):e.resolve(u).then(function(t){c.value=t,s(c)},function(t){return i("throw",t,s,o)})}}(r,a,i,s)})}return i=i?i.then(s,s):s()}})}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function O(t){if(null!=t){var i=t[s];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function i(){for(;++r<t.length;)if(n.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return a.next=a}}throw TypeError(typeof t+" is not iterable")}return m.prototype=g,r(k,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:m,configurable:!0}),m.displayName=c(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},S(A.prototype),c(A.prototype,o,function(){return this}),t.AsyncIterator=A,t.async=function(e,i,n,r,a){void 0===a&&(a=Promise);var s=new A(u(e,i,n,r),a);return t.isGeneratorFunction(i)?s:s.next().then(function(t){return t.done?t.value:s.next()})},S(k),c(k,l,"Generator"),c(k,s,function(){return this}),c(k,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),i=[];for(var n in e)i.push(n);return i.reverse(),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=O,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function r(n,r){return o.type="throw",o.arg=t,i.next=n,r&&(i.method="next",i.arg=e),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],o=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);else if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else if(c){if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else throw Error("try statement without catch or finally")}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return(s.type=t,s.arg=e,a)?(this.method="next",this.next=a.finallyLoc,_):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),_},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),x(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;x(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:O(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},94112:function(t,e,i){"use strict";var n=i(28917),r=i(76934),a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(r(t)+" is not a function")}},29983:function(t,e,i){"use strict";var n=i(32410),r=i(76934),a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(r(t)+" is not a constructor")}},38744:function(t,e,i){"use strict";var n=i(38549),r=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw new a("Can't set "+r(t)+" as a prototype")}},80656:function(t,e,i){"use strict";var n=i(7873).has;t.exports=function(t){return n(t),t}},63133:function(t,e,i){"use strict";var n=i(21755),r=i(38270),a=i(79406).f,s=n("unscopables"),o=Array.prototype;void 0===o[s]&&a(o,s,{configurable:!0,value:r(null)}),t.exports=function(t){o[s][t]=!0}},44812:function(t,e,i){"use strict";var n=i(55321).charAt;t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},14644:function(t,e,i){"use strict";var n=i(84776),r=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new r("Incorrect invocation")}},98903:function(t,e,i){"use strict";var n=i(10136),r=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(r(t)+" is not an object")}},21963:function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},81616:function(t,e,i){"use strict";var n=i(42623),r=i(53923),a=i(89255),s=n.ArrayBuffer,o=n.TypeError;t.exports=s&&r(s.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==a(t))throw new o("ArrayBuffer expected");return t.byteLength}},58047:function(t,e,i){"use strict";var n=i(42623),r=i(21963),a=i(81616),s=n.DataView;t.exports=function(t){if(!r||0!==a(t))return!1;try{return new s(t),!1}catch(t){return!0}}},65871:function(t,e,i){"use strict";var n=i(58047),r=TypeError;t.exports=function(t){if(n(t))throw new r("ArrayBuffer is detached");return t}},25126:function(t,e,i){"use strict";var n=i(42623),r=i(26004),a=i(53923),s=i(23006),o=i(65871),l=i(81616),c=i(7669),u=i(10354),h=n.structuredClone,d=n.ArrayBuffer,f=n.DataView,p=Math.min,_=d.prototype,v=f.prototype,m=r(_.slice),g=a(_,"resizable","get"),y=a(_,"maxByteLength","get"),w=r(v.getInt8),b=r(v.setInt8);t.exports=(u||c)&&function(t,e,i){var n,r=l(t),a=void 0===e?r:s(e),_=!g||!g(t);if(o(t),u&&(t=h(t,{transfer:[t]}),r===a&&(i||_)))return t;if(r>=a&&(!i||_))n=m(t,0,a);else{n=new d(a,i&&!_&&y?{maxByteLength:y(t)}:void 0);for(var v=new f(t),k=new f(n),S=p(a,r),A=0;A<S;A++)b(k,A,w(v,A))}return u||c(t),n}},44708:function(t,e,i){"use strict";var n,r,a,s=i(21963),o=i(97223),l=i(42623),c=i(28917),u=i(10136),h=i(29027),d=i(70422),f=i(76934),p=i(52801),_=i(51200),v=i(22700),m=i(84776),g=i(32957),y=i(6887),w=i(21755),b=i(92947),k=i(67875),S=k.enforce,A=k.get,C=l.Int8Array,x=C&&C.prototype,P=l.Uint8ClampedArray,O=P&&P.prototype,I=C&&g(C),E=x&&g(x),U=Object.prototype,T=l.TypeError,R=w("toStringTag"),M=b("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",z=s&&!!y&&"Opera"!==d(l.opera),D=!1,W={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},L={BigInt64Array:8,BigUint64Array:8},F=function(t){var e=g(t);if(u(e)){var i=A(e);return i&&h(i,N)?i[N]:F(e)}},j=function(t){if(!u(t))return!1;var e=d(t);return h(W,e)||h(L,e)};for(n in W)(a=(r=l[n])&&r.prototype)?S(a)[N]=r:z=!1;for(n in L)(a=(r=l[n])&&r.prototype)&&(S(a)[N]=r);if((!z||!c(I)||I===Function.prototype)&&(I=function(){throw new T("Incorrect invocation")},z))for(n in W)l[n]&&y(l[n],I);if((!z||!E||E===U)&&(E=I.prototype,z))for(n in W)l[n]&&y(l[n].prototype,E);if(z&&g(O)!==E&&y(O,E),o&&!h(E,R))for(n in D=!0,v(E,R,{configurable:!0,get:function(){return u(this)?this[M]:void 0}}),W)l[n]&&p(l[n],M,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:z,TYPED_ARRAY_TAG:D&&M,aTypedArray:function(t){if(j(t))return t;throw new T("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!y||m(I,t)))return t;throw new T(f(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,i,n){if(o){if(i)for(var r in W){var a=l[r];if(a&&h(a.prototype,t))try{delete a.prototype[t]}catch(i){try{a.prototype[t]=e}catch(t){}}}(!E[t]||i)&&_(E,t,i?e:z&&x[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,i){var n,r;if(o){if(y){if(i){for(n in W)if((r=l[n])&&h(r,t))try{delete r[t]}catch(t){}}if(I[t]&&!i)return;try{return _(I,t,i?e:z&&I[t]||e)}catch(t){}}for(n in W)(r=l[n])&&(!r[t]||i)&&_(r,t,e)}},getTypedArrayConstructor:F,isView:function(t){if(!u(t))return!1;var e=d(t);return"DataView"===e||h(W,e)||h(L,e)},isTypedArray:j,TypedArray:I,TypedArrayPrototype:E}},66509:function(t,e,i){"use strict";var n=i(42623),r=i(26004),a=i(97223),s=i(21963),o=i(70459),l=i(52801),c=i(22700),u=i(682),h=i(81124),d=i(14644),f=i(17940),p=i(11934),_=i(23006),v=i(61102),m=i(34223),g=i(32957),y=i(6887),w=i(49546),b=i(88221),k=i(31858),S=i(22356),A=i(83244),C=i(67875),x=o.PROPER,P=o.CONFIGURABLE,O="ArrayBuffer",I="DataView",E="prototype",U="Wrong index",T=C.getterFor(O),R=C.getterFor(I),M=C.set,N=n[O],z=N,D=z&&z[E],W=n[I],L=W&&W[E],F=Object.prototype,j=n.Array,V=n.RangeError,B=r(w),K=r([].reverse),$=m.pack,J=m.unpack,q=function(t){return[255&t]},Z=function(t){return[255&t,t>>8&255]},G=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},H=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Y=function(t){return $(v(t),23,4)},X=function(t){return $(t,52,8)},Q=function(t,e,i){c(t[E],e,{configurable:!0,get:function(){return i(this)[e]}})},tt=function(t,e,i,n){var r=R(t),a=_(i);if(a+e>r.byteLength)throw new V(U);var s=r.bytes,o=a+r.byteOffset,l=b(s,o,o+e);return n?l:K(l)},te=function(t,e,i,n,r,a){var s=R(t),o=_(i),l=n(+r),c=!!a;if(o+e>s.byteLength)throw new V(U);for(var u=s.bytes,h=o+s.byteOffset,d=0;d<e;d++)u[h+d]=l[c?d:e-d-1]};if(s){var ti=x&&N.name!==O;!h(function(){N(1)})||!h(function(){new N(-1)})||h(function(){return new N,new N(1.5),new N(NaN),1!==N.length||ti&&!P})?((z=function(t){return d(this,D),k(new N(_(t)),this,z)})[E]=D,D.constructor=z,S(z,N)):ti&&P&&l(N,"name",O),y&&g(L)!==F&&y(L,F);var tn=new W(new z(2)),tr=r(L.setInt8);tn.setInt8(0,0x80000000),tn.setInt8(1,0x80000001),(tn.getInt8(0)||!tn.getInt8(1))&&u(L,{setInt8:function(t,e){tr(this,t,e<<24>>24)},setUint8:function(t,e){tr(this,t,e<<24>>24)}},{unsafe:!0})}else D=(z=function(t){d(this,D);var e=_(t);M(this,{type:O,bytes:B(j(e),0),byteLength:e}),a||(this.byteLength=e,this.detached=!1)})[E],L=(W=function(t,e,i){d(this,L),d(t,D);var n=T(t),r=n.byteLength,s=f(e);if(s<0||s>r)throw new V("Wrong offset");if(i=void 0===i?r-s:p(i),s+i>r)throw new V("Wrong length");M(this,{type:I,buffer:t,byteLength:i,byteOffset:s,bytes:n.bytes}),a||(this.buffer=t,this.byteLength=i,this.byteOffset=s)})[E],a&&(Q(z,"byteLength",T),Q(W,"buffer",R),Q(W,"byteLength",R),Q(W,"byteOffset",R)),u(L,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return H(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return H(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return J(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return J(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){te(this,1,t,q,e)},setUint8:function(t,e){te(this,1,t,q,e)},setInt16:function(t,e){te(this,2,t,Z,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){te(this,2,t,Z,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){te(this,4,t,G,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){te(this,4,t,G,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){te(this,4,t,Y,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){te(this,8,t,X,e,arguments.length>2&&arguments[2])}});A(z,O),A(W,I),t.exports={ArrayBuffer:z,DataView:W}},49546:function(t,e,i){"use strict";var n=i(87620),r=i(35745),a=i(8785);t.exports=function(t){for(var e=n(this),i=a(e),s=arguments.length,o=r(s>1?arguments[1]:void 0,i),l=s>2?arguments[2]:void 0,c=void 0===l?i:r(l,i);c>o;)e[o++]=t;return e}},97338:function(t,e,i){"use strict";var n=i(8785);t.exports=function(t,e,i){for(var r=0,a=arguments.length>2?i:n(e),s=new t(a);a>r;)s[r]=e[r++];return s}},41039:function(t,e,i){"use strict";var n=i(1480),r=i(59528),a=i(87620),s=i(80107),o=i(30059),l=i(32410),c=i(8785),u=i(82920),h=i(85773),d=i(2691),f=Array;t.exports=function(t){var e,i,p,_,v,m,g=a(t),y=l(this),w=arguments.length,b=w>1?arguments[1]:void 0,k=void 0!==b;k&&(b=n(b,w>2?arguments[2]:void 0));var S=d(g),A=0;if(S&&!(this===f&&o(S)))for(i=y?new this:[],v=(_=h(g,S)).next;!(p=r(v,_)).done;A++)m=k?s(_,b,[p.value,A],!0):p.value,u(i,A,m);else for(e=c(g),i=y?new this(e):f(e);e>A;A++)m=k?b(g[A],A):g[A],u(i,A,m);return i.length=A,i}},8555:function(t,e,i){"use strict";var n=i(48246),r=i(35745),a=i(8785),s=function(t){return function(e,i,s){var o,l=n(e),c=a(l);if(0===c)return!t&&-1;var u=r(s,c);if(t&&i!=i){for(;c>u;)if((o=l[u++])!=o)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},74620:function(t,e,i){"use strict";var n=i(1480),r=i(1994),a=i(87620),s=i(8785),o=function(t){var e=1===t;return function(i,o,l){for(var c,u=a(i),h=r(u),d=s(h),f=n(o,l);d-- >0;)if(f(c=h[d],d,u))switch(t){case 0:return c;case 1:return d}return e?-1:void 0}};t.exports={findLast:o(0),findLastIndex:o(1)}},94238:function(t,e,i){"use strict";var n=i(1480),r=i(26004),a=i(1994),s=i(87620),o=i(8785),l=i(59824),c=r([].push),u=function(t){var e=1===t,i=2===t,r=3===t,u=4===t,h=6===t,d=7===t,f=5===t||h;return function(p,_,v,m){for(var g,y,w=s(p),b=a(w),k=o(b),S=n(_,v),A=0,C=m||l,x=e?C(p,k):i||d?C(p,0):void 0;k>A;A++)if((f||A in b)&&(y=S(g=b[A],A,w),t))if(e)x[A]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return A;case 2:c(x,g)}else switch(t){case 4:return!1;case 7:c(x,g)}return h?-1:r||u?u:x}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},51530:function(t,e,i){"use strict";var n=i(81124);t.exports=function(t,e){var i=[][t];return!!i&&n(function(){i.call(null,e||function(){return 1},1)})}},31660:function(t,e,i){"use strict";var n=i(94112),r=i(87620),a=i(1994),s=i(8785),o=TypeError,l="Reduce of empty array with no initial value",c=function(t){return function(e,i,c,u){var h=r(e),d=a(h),f=s(h);if(n(i),0===f&&c<2)throw new o(l);var p=t?f-1:0,_=t?-1:1;if(c<2)for(;;){if(p in d){u=d[p],p+=_;break}if(p+=_,t?p<0:f<=p)throw new o(l)}for(;t?p>=0:f>p;p+=_)p in d&&(u=i(u,d[p],p,h));return u}};t.exports={left:c(!1),right:c(!0)}},92766:function(t,e,i){"use strict";var n=i(97223),r=i(43095),a=TypeError,s=Object.getOwnPropertyDescriptor;t.exports=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(r(t)&&!s(t,"length").writable)throw new a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},88221:function(t,e,i){"use strict";t.exports=i(26004)([].slice)},27370:function(t,e,i){"use strict";var n=i(88221),r=Math.floor,a=function(t,e){var i=t.length;if(i<8)for(var s,o,l=1;l<i;){for(o=l,s=t[l];o&&e(t[o-1],s)>0;)t[o]=t[--o];o!==l++&&(t[o]=s)}else for(var c=r(i/2),u=a(n(t,0,c),e),h=a(n(t,c),e),d=u.length,f=h.length,p=0,_=0;p<d||_<f;)t[p+_]=p<d&&_<f?0>=e(u[p],h[_])?u[p++]:h[_++]:p<d?u[p++]:h[_++];return t};t.exports=a},78201:function(t,e,i){"use strict";var n=i(43095),r=i(32410),a=i(10136),s=i(21755)("species"),o=Array;t.exports=function(t){var e;return n(t)&&(r(e=t.constructor)&&(e===o||n(e.prototype))?e=void 0:a(e)&&null===(e=e[s])&&(e=void 0)),void 0===e?o:e}},59824:function(t,e,i){"use strict";var n=i(78201);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},58673:function(t,e,i){"use strict";var n=i(8785);t.exports=function(t,e){for(var i=n(t),r=new e(i),a=0;a<i;a++)r[a]=t[i-a-1];return r}},4584:function(t,e,i){"use strict";var n=i(8785),r=i(17940),a=RangeError;t.exports=function(t,e,i,s){var o=n(t),l=r(i),c=l<0?o+l:l;if(c>=o||c<0)throw new a("Incorrect index");for(var u=new e(o),h=0;h<o;h++)u[h]=h===c?s:t[h];return u}},80107:function(t,e,i){"use strict";var n=i(98903),r=i(99584);t.exports=function(t,e,i,a){try{return a?e(n(i)[0],i[1]):e(i)}catch(e){r(t,"throw",e)}}},69815:function(t,e,i){"use strict";var n=i(21755)("iterator"),r=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){r=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!r)return!1}catch(t){return!1}var i=!1;try{var a={};a[n]=function(){return{next:function(){return{done:i=!0}}}},t(a)}catch(t){}return i}},89255:function(t,e,i){"use strict";var n=i(26004),r=n({}.toString),a=n("".slice);t.exports=function(t){return a(r(t),8,-1)}},70422:function(t,e,i){"use strict";var n=i(85830),r=i(28917),a=i(89255),s=i(21755)("toStringTag"),o=Object,l="Arguments"===a(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(t){}};t.exports=n?a:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=c(e=o(t),s))?i:l?a(e):"Object"===(n=a(e))&&r(e.callee)?"Arguments":n}},22356:function(t,e,i){"use strict";var n=i(29027),r=i(94224),a=i(75990),s=i(79406);t.exports=function(t,e,i){for(var o=r(e),l=s.f,c=a.f,u=0;u<o.length;u++){var h=o[u];n(t,h)||i&&n(i,h)||l(t,h,c(e,h))}}},40260:function(t,e,i){"use strict";t.exports=!i(81124)(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},77528:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},52801:function(t,e,i){"use strict";var n=i(97223),r=i(79406),a=i(78407);t.exports=n?function(t,e,i){return r.f(t,e,a(1,i))}:function(t,e,i){return t[e]=i,t}},78407:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},82920:function(t,e,i){"use strict";var n=i(97223),r=i(79406),a=i(78407);t.exports=function(t,e,i){n?r.f(t,e,a(0,i)):t[e]=i}},22700:function(t,e,i){"use strict";var n=i(83358),r=i(79406);t.exports=function(t,e,i){return i.get&&n(i.get,e,{getter:!0}),i.set&&n(i.set,e,{setter:!0}),r.f(t,e,i)}},51200:function(t,e,i){"use strict";var n=i(28917),r=i(79406),a=i(83358),s=i(58511);t.exports=function(t,e,i,o){o||(o={});var l=o.enumerable,c=void 0!==o.name?o.name:e;if(n(i)&&a(i,c,o),o.global)l?t[e]=i:s(e,i);else{try{o.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=i:r.f(t,e,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return t}},682:function(t,e,i){"use strict";var n=i(51200);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},58511:function(t,e,i){"use strict";var n=i(42623),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},68028:function(t,e,i){"use strict";var n=i(76934),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw new r("Cannot delete property "+n(e)+" of "+n(t))}},97223:function(t,e,i){"use strict";t.exports=!i(81124)(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},7669:function(t,e,i){"use strict";var n,r,a,s,o=i(42623),l=i(6387),c=i(10354),u=o.structuredClone,h=o.ArrayBuffer,d=o.MessageChannel,f=!1;if(c)f=function(t){u(t,{transfer:[t]})};else if(h)try{!d&&(n=l("worker_threads"))&&(d=n.MessageChannel),d&&(r=new d,a=new h(2),s=function(t){r.port1.postMessage(null,[t])},2===a.byteLength&&(s(a),0===a.byteLength&&(f=s)))}catch(t){}t.exports=f},88627:function(t,e,i){"use strict";var n=i(42623),r=i(10136),a=n.document,s=r(a)&&r(a.createElement);t.exports=function(t){return s?a.createElement(t):{}}},98196:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>0x1fffffffffffff)throw e("Maximum allowed index exceeded");return t}},8808:function(t){"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},47577:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},13840:function(t,e,i){"use strict";var n=i(88627)("span").classList,r=n&&n.constructor&&n.constructor.prototype;t.exports=r===Object.prototype?void 0:r},85670:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},70453:function(t,e,i){"use strict";var n=i(92273).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},89399:function(t,e,i){"use strict";var n=i(92273);t.exports=/MSIE|Trident/.test(n)},53497:function(t,e,i){"use strict";var n=i(92273);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},46455:function(t,e,i){"use strict";var n=i(92273);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},83639:function(t,e,i){"use strict";t.exports="NODE"===i(84550)},79708:function(t,e,i){"use strict";var n=i(92273);t.exports=/web0s(?!.*chrome)/i.test(n)},92273:function(t,e,i){"use strict";var n=i(42623).navigator,r=n&&n.userAgent;t.exports=r?String(r):""},52974:function(t,e,i){"use strict";var n,r,a=i(42623),s=i(92273),o=a.process,l=a.Deno,c=o&&o.versions||l&&l.version,u=c&&c.v8;u&&(r=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r},88440:function(t,e,i){"use strict";var n=i(92273).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},84550:function(t,e,i){"use strict";var n=i(42623),r=i(92273),a=i(89255),s=function(t){return r.slice(0,t.length)===t};t.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},90742:function(t,e,i){"use strict";var n=i(26004),r=Error,a=n("".replace),s=String(new r("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,l=o.test(s);t.exports=function(t,e){if(l&&"string"==typeof t&&!r.prepareStackTrace)for(;e--;)t=a(t,o,"");return t}},40204:function(t,e,i){"use strict";var n=i(52801),r=i(90742),a=i(80421),s=Error.captureStackTrace;t.exports=function(t,e,i,o){a&&(s?s(t,e):n(t,"stack",r(i,o)))}},80421:function(t,e,i){"use strict";var n=i(81124),r=i(78407);t.exports=!n(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)})},96122:function(t,e,i){"use strict";var n=i(42623),r=i(75990).f,a=i(52801),s=i(51200),o=i(58511),l=i(22356),c=i(2849);t.exports=function(t,e){var i,u,h,d,f,p=t.target,_=t.global,v=t.stat;if(i=_?n:v?n[p]||o(p,{}):n[p]&&n[p].prototype)for(u in e){if(d=e[u],h=t.dontCallGetSet?(f=r(i,u))&&f.value:i[u],!c(_?u:p+(v?".":"#")+u,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&a(d,"sham",!0),s(i,u,d,t)}}},81124:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},41395:function(t,e,i){"use strict";i(56113);var n=i(59528),r=i(51200),a=i(64191),s=i(81124),o=i(21755),l=i(52801),c=o("species"),u=RegExp.prototype;t.exports=function(t,e,i,h){var d=o(t),f=!s(function(){var e={};return e[d]=function(){return 7},7!==""[t](e)}),p=f&&!s(function(){var e=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[c]=function(){return i},i.flags="",i[d]=/./[d]),i.exec=function(){return e=!0,null},i[d](""),!e});if(!f||!p||i){var _=/./[d],v=e(d,""[t],function(t,e,i,r,s){var o=e.exec;return o===a||o===u.exec?f&&!s?{done:!0,value:n(_,e,i,r)}:{done:!0,value:n(t,i,e,r)}:{done:!1}});r(String.prototype,t,v[0]),r(u,d,v[1])}h&&l(u[d],"sham",!0)}},63451:function(t,e,i){"use strict";var n=i(15),r=Function.prototype,a=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(a):function(){return s.apply(a,arguments)})},1480:function(t,e,i){"use strict";var n=i(77434),r=i(94112),a=i(15),s=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:a?s(t,e):function(){return t.apply(e,arguments)}}},15:function(t,e,i){"use strict";t.exports=!i(81124)(function(){var t=(function(){}).bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},59528:function(t,e,i){"use strict";var n=i(15),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},70459:function(t,e,i){"use strict";var n=i(97223),r=i(29027),a=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=r(a,"name"),l=o&&(!n||n&&s(a,"name").configurable);t.exports={EXISTS:o,PROPER:o&&"something"===(function(){}).name,CONFIGURABLE:l}},53923:function(t,e,i){"use strict";var n=i(26004),r=i(94112);t.exports=function(t,e,i){try{return n(r(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}}},77434:function(t,e,i){"use strict";var n=i(89255),r=i(26004);t.exports=function(t){if("Function"===n(t))return r(t)}},26004:function(t,e,i){"use strict";var n=i(15),r=Function.prototype,a=r.call,s=n&&r.bind.bind(a,a);t.exports=n?s:function(t){return function(){return a.apply(t,arguments)}}},6387:function(t,e,i){"use strict";var n=i(42623),r=i(83639);t.exports=function(t){if(r){try{return n.process.getBuiltinModule(t)}catch(t){}try{return Function('return require("'+t+'")')()}catch(t){}}}},93345:function(t,e,i){"use strict";var n=i(42623),r=i(28917);t.exports=function(t,e){var i;return arguments.length<2?r(i=n[t])?i:void 0:n[t]&&n[t][e]}},34174:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},2691:function(t,e,i){"use strict";var n=i(70422),r=i(84867),a=i(23671),s=i(86699),o=i(21755)("iterator");t.exports=function(t){if(!a(t))return r(t,o)||r(t,"@@iterator")||s[n(t)]}},85773:function(t,e,i){"use strict";var n=i(59528),r=i(94112),a=i(98903),s=i(76934),o=i(2691),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?o(t):e;if(r(i))return a(n(i,t));throw new l(s(t)+" is not iterable")}},84867:function(t,e,i){"use strict";var n=i(94112),r=i(23671);t.exports=function(t,e){var i=t[e];return r(i)?void 0:n(i)}},96959:function(t,e,i){"use strict";var n=i(94112),r=i(98903),a=i(59528),s=i(17940),o=i(34174),l="Invalid size",c=RangeError,u=TypeError,h=Math.max,d=function(t,e){this.set=t,this.size=h(e,0),this.has=n(t.has),this.keys=n(t.keys)};d.prototype={getIterator:function(){return o(r(a(this.keys,this.set)))},includes:function(t){return a(this.has,this.set,t)}},t.exports=function(t){r(t);var e=+t.size;if(e!=e)throw new u(l);var i=s(e);if(i<0)throw new c(l);return new d(t,i)}},38710:function(t,e,i){"use strict";var n=i(26004),r=i(87620),a=Math.floor,s=n("".charAt),o=n("".replace),l=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,n,h,d){var f=i+t.length,p=n.length,_=u;return void 0!==h&&(h=r(h),_=c),o(d,_,function(r,o){var c;switch(s(o,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,i);case"'":return l(e,f);case"<":c=h[l(o,1,-1)];break;default:var u=+o;if(0===u)return r;if(u>p){var d=a(u/10);if(0===d)return r;if(d<=p)return void 0===n[d-1]?s(o,1):n[d-1]+s(o,1);return r}c=n[u-1]}return void 0===c?"":c})}},42623:function(t,e,i){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},29027:function(t,e,i){"use strict";var n=i(26004),r=i(87620),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(r(t),e)}},52465:function(t){"use strict";t.exports={}},66206:function(t){"use strict";t.exports=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}},23783:function(t,e,i){"use strict";t.exports=i(93345)("document","documentElement")},21002:function(t,e,i){"use strict";var n=i(97223),r=i(81124),a=i(88627);t.exports=!n&&!r(function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},34223:function(t){"use strict";var e=Array,i=Math.abs,n=Math.pow,r=Math.floor,a=Math.log,s=Math.LN2;t.exports={pack:function(t,o,l){var c,u,h,d=e(l),f=8*l-o-1,p=(1<<f)-1,_=p>>1,v=23===o?n(2,-24)-n(2,-77):0,m=+(t<0||0===t&&1/t<0),g=0;for((t=i(t))!=t||t===1/0?(u=+(t!=t),c=p):(h=n(2,-(c=r(a(t)/s))),t*h<1&&(c--,h*=2),c+_>=1?t+=v/h:t+=v*n(2,1-_),t*h>=2&&(c++,h/=2),c+_>=p?(u=0,c=p):c+_>=1?(u=(t*h-1)*n(2,o),c+=_):(u=t*n(2,_-1)*n(2,o),c=0));o>=8;)d[g++]=255&u,u/=256,o-=8;for(c=c<<o|u,f+=o;f>0;)d[g++]=255&c,c/=256,f-=8;return d[g-1]|=128*m,d},unpack:function(t,e){var i,r=t.length,a=8*r-e-1,s=(1<<a)-1,o=s>>1,l=a-7,c=r-1,u=t[c--],h=127&u;for(u>>=7;l>0;)h=256*h+t[c--],l-=8;for(i=h&(1<<-l)-1,h>>=-l,l+=e;l>0;)i=256*i+t[c--],l-=8;if(0===h)h=1-o;else{if(h===s)return i?NaN:u?-1/0:1/0;i+=n(2,e),h-=o}return(u?-1:1)*i*n(2,h-e)}}},1994:function(t,e,i){"use strict";var n=i(26004),r=i(81124),a=i(89255),s=Object,o=n("".split);t.exports=r(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===a(t)?o(t,""):s(t)}:s},31858:function(t,e,i){"use strict";var n=i(28917),r=i(10136),a=i(6887);t.exports=function(t,e,i){var s,o;return a&&n(s=e.constructor)&&s!==i&&r(o=s.prototype)&&o!==i.prototype&&a(t,o),t}},16861:function(t,e,i){"use strict";var n=i(26004),r=i(28917),a=i(6952),s=n(Function.toString);r(a.inspectSource)||(a.inspectSource=function(t){return s(t)}),t.exports=a.inspectSource},20334:function(t,e,i){"use strict";var n=i(10136),r=i(52801);t.exports=function(t,e){n(e)&&"cause"in e&&r(t,"cause",e.cause)}},67875:function(t,e,i){"use strict";var n,r,a,s=i(83839),o=i(42623),l=i(10136),c=i(52801),u=i(29027),h=i(6952),d=i(85514),f=i(52465),p="Object already initialized",_=o.TypeError,v=o.WeakMap;if(s||h.state){var m=h.state||(h.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,n=function(t,e){if(m.has(t))throw new _(p);return e.facade=t,m.set(t,e),e},r=function(t){return m.get(t)||{}},a=function(t){return m.has(t)}}else{var g=d("state");f[g]=!0,n=function(t,e){if(u(t,g))throw new _(p);return e.facade=t,c(t,g,e),e},r=function(t){return u(t,g)?t[g]:{}},a=function(t){return u(t,g)}}t.exports={set:n,get:r,has:a,enforce:function(t){return a(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw new _("Incompatible receiver, "+t+" required");return i}}}},30059:function(t,e,i){"use strict";var n=i(21755),r=i(86699),a=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[a]===t)}},43095:function(t,e,i){"use strict";var n=i(89255);t.exports=Array.isArray||function(t){return"Array"===n(t)}},69488:function(t,e,i){"use strict";var n=i(70422);t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},28917:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},32410:function(t,e,i){"use strict";var n=i(26004),r=i(81124),a=i(28917),s=i(70422),o=i(93345),l=i(16861),c=function(){},u=o("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=n(h.exec),f=!h.test(c),p=function(t){if(!a(t))return!1;try{return u(c,[],t),!0}catch(t){return!1}},_=function(t){if(!a(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(h,l(t))}catch(t){return!0}};_.sham=!0,t.exports=!u||r(function(){var t;return p(p.call)||!p(Object)||!p(function(){t=!0})||t})?_:p},2849:function(t,e,i){"use strict";var n=i(81124),r=i(28917),a=/#|\.prototype\./,s=function(t,e){var i=l[o(t)];return i===u||i!==c&&(r(e)?n(e):!!e)},o=s.normalize=function(t){return String(t).replace(a,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},64523:function(t,e,i){"use strict";var n=i(10136),r=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&r(t)===t}},23671:function(t){"use strict";t.exports=function(t){return null==t}},10136:function(t,e,i){"use strict";var n=i(28917);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},38549:function(t,e,i){"use strict";var n=i(10136);t.exports=function(t){return n(t)||null===t}},52512:function(t){"use strict";t.exports=!1},45903:function(t,e,i){"use strict";var n=i(10136),r=i(89255),a=i(21755)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"===r(t))}},36994:function(t,e,i){"use strict";var n=i(93345),r=i(28917),a=i(84776),s=i(22069),o=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&a(e.prototype,o(t))}},92550:function(t,e,i){"use strict";var n=i(59528);t.exports=function(t,e,i){for(var r,a,s=i?t:t.iterator,o=t.next;!(r=n(o,s)).done;)if(void 0!==(a=e(r.value)))return a}},95342:function(t,e,i){"use strict";var n=i(1480),r=i(59528),a=i(98903),s=i(76934),o=i(30059),l=i(8785),c=i(84776),u=i(85773),h=i(2691),d=i(99584),f=TypeError,p=function(t,e){this.stopped=t,this.result=e},_=p.prototype;t.exports=function(t,e,i){var v,m,g,y,w,b,k,S=i&&i.that,A=!!(i&&i.AS_ENTRIES),C=!!(i&&i.IS_RECORD),x=!!(i&&i.IS_ITERATOR),P=!!(i&&i.INTERRUPTED),O=n(e,S),I=function(t){return v&&d(v,"normal",t),new p(!0,t)},E=function(t){return A?(a(t),P?O(t[0],t[1],I):O(t[0],t[1])):P?O(t,I):O(t)};if(C)v=t.iterator;else if(x)v=t;else{if(!(m=h(t)))throw new f(s(t)+" is not iterable");if(o(m)){for(g=0,y=l(t);y>g;g++)if((w=E(t[g]))&&c(_,w))return w;return new p(!1)}v=u(t,m)}for(b=C?t.next:v.next;!(k=r(b,v)).done;){try{w=E(k.value)}catch(t){d(v,"throw",t)}if("object"==typeof w&&w&&c(_,w))return w}return new p(!1)}},99584:function(t,e,i){"use strict";var n=i(59528),r=i(98903),a=i(84867);t.exports=function(t,e,i){var s,o;r(t);try{if(!(s=a(t,"return"))){if("throw"===e)throw i;return i}s=n(s,t)}catch(t){o=!0,s=t}if("throw"===e)throw i;if(o)throw s;return r(s),i}},48256:function(t,e,i){"use strict";var n=i(71295).IteratorPrototype,r=i(38270),a=i(78407),s=i(83244),o=i(86699),l=function(){return this};t.exports=function(t,e,i,c){var u=e+" Iterator";return t.prototype=r(n,{next:a(+!c,i)}),s(t,u,!1,!0),o[u]=l,t}},17591:function(t,e,i){"use strict";var n=i(96122),r=i(59528),a=i(52512),s=i(70459),o=i(28917),l=i(48256),c=i(32957),u=i(6887),h=i(83244),d=i(52801),f=i(51200),p=i(21755),_=i(86699),v=i(71295),m=s.PROPER,g=s.CONFIGURABLE,y=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,b=p("iterator"),k="keys",S="values",A="entries",C=function(){return this};t.exports=function(t,e,i,s,p,v,x){l(i,e,s);var P,O,I,E=function(t){if(t===p&&N)return N;if(!w&&t&&t in R)return R[t];switch(t){case k:case S:case A:return function(){return new i(this,t)}}return function(){return new i(this)}},U=e+" Iterator",T=!1,R=t.prototype,M=R[b]||R["@@iterator"]||p&&R[p],N=!w&&M||E(p),z="Array"===e&&R.entries||M;if(z&&(P=c(z.call(new t)))!==Object.prototype&&P.next&&(!a&&c(P)!==y&&(u?u(P,y):o(P[b])||f(P,b,C)),h(P,U,!0,!0),a&&(_[U]=C)),m&&p===S&&M&&M.name!==S&&(!a&&g?d(R,"name",S):(T=!0,N=function(){return r(M,this)})),p)if(O={values:E(S),keys:v?N:E(k),entries:E(A)},x)for(I in O)!w&&!T&&I in R||f(R,I,O[I]);else n({target:e,proto:!0,forced:w||T},O);return(!a||x)&&R[b]!==N&&f(R,b,N,{name:p}),_[e]=N,O}},71295:function(t,e,i){"use strict";var n,r,a,s=i(81124),o=i(28917),l=i(10136),c=i(38270),u=i(32957),h=i(51200),d=i(21755),f=i(52512),p=d("iterator"),_=!1;[].keys&&("next"in(a=[].keys())?(r=u(u(a)))!==Object.prototype&&(n=r):_=!0),!l(n)||s(function(){var t={};return n[p].call(t)!==t})?n={}:f&&(n=c(n)),o(n[p])||h(n,p,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:_}},86699:function(t){"use strict";t.exports={}},8785:function(t,e,i){"use strict";var n=i(11934);t.exports=function(t){return n(t.length)}},83358:function(t,e,i){"use strict";var n=i(26004),r=i(81124),a=i(28917),s=i(29027),o=i(97223),l=i(70459).CONFIGURABLE,c=i(16861),u=i(67875),h=u.enforce,d=u.get,f=String,p=Object.defineProperty,_=n("".slice),v=n("".replace),m=n([].join),g=o&&!r(function(){return 8!==p(function(){},"length",{value:8}).length}),y=String(String).split("String"),w=t.exports=function(t,e,i){"Symbol("===_(f(e),0,7)&&(e="["+v(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!s(t,"name")||l&&t.name!==e)&&(o?p(t,"name",{value:e,configurable:!0}):t.name=e),g&&i&&s(i,"arity")&&t.length!==i.arity&&p(t,"length",{value:i.arity});try{i&&s(i,"constructor")&&i.constructor?o&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=h(t);return s(n,"source")||(n.source=m(y,"string"==typeof e?e:"")),t};Function.prototype.toString=w(function(){return a(this)&&d(this).source||c(this)},"toString")},61547:function(t,e,i){"use strict";var n=i(60680),r=i(66289),a=Math.abs;t.exports=function(t,e,i,s){var o=+t,l=a(o),c=n(o);if(l<s)return c*r(l/s/e)*s*e;var u=(1+e/2220446049250313e-31)*l,h=u-(u-l);return h>i||h!=h?1/0*c:c*h}},61102:function(t,e,i){"use strict";var n=i(61547);t.exports=Math.fround||function(t){return n(t,11920928955078125e-23,34028234663852886e22,11754943508222875e-54)}},66289:function(t){"use strict";t.exports=function(t){return t+0x10000000000000-0x10000000000000}},60680:function(t){"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},22664:function(t){"use strict";var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?i:e)(n)}},64635:function(t,e,i){"use strict";var n,r,a,s,o,l=i(42623),c=i(22054),u=i(1480),h=i(54469).set,d=i(95133),f=i(46455),p=i(53497),_=i(79708),v=i(83639),m=l.MutationObserver||l.WebKitMutationObserver,g=l.document,y=l.process,w=l.Promise,b=c("queueMicrotask");if(!b){var k=new d,S=function(){var t,e;for(v&&(t=y.domain)&&t.exit();e=k.get();)try{e()}catch(t){throw k.head&&n(),t}t&&t.enter()};f||v||_||!m||!g?!p&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,o=u(s.then,s),n=function(){o(S)}):v?n=function(){y.nextTick(S)}:(h=u(h,l),n=function(){h(S)}):(r=!0,a=g.createTextNode(""),new m(S).observe(a,{characterData:!0}),n=function(){a.data=r=!r}),b=function(t){k.head||n(),k.add(t)}}t.exports=b},41267:function(t,e,i){"use strict";var n=i(94112),r=TypeError,a=function(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw new r("Bad Promise constructor");e=t,i=n}),this.resolve=n(e),this.reject=n(i)};t.exports.f=function(t){return new a(t)}},25441:function(t,e,i){"use strict";var n=i(86596);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},37135:function(t,e,i){"use strict";var n=i(97223),r=i(26004),a=i(59528),s=i(81124),o=i(99112),l=i(92692),c=i(3266),u=i(87620),h=i(1994),d=Object.assign,f=Object.defineProperty,p=r([].concat);t.exports=!d||s(function(){if(n&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach(function(t){e[t]=t}),7!==d({},t)[i]||o(d({},e)).join("")!==r})?function(t,e){for(var i=u(t),r=arguments.length,s=1,d=l.f,f=c.f;r>s;)for(var _,v=h(arguments[s++]),m=d?p(o(v),d(v)):o(v),g=m.length,y=0;g>y;)_=m[y++],(!n||a(f,v,_))&&(i[_]=v[_]);return i}:d},38270:function(t,e,i){"use strict";var n,r=i(98903),a=i(22995),s=i(85670),o=i(52465),l=i(23783),c=i(88627),u=i(85514),h="prototype",d="script",f=u("IE_PROTO"),p=function(){},_=function(t){return"<"+d+">"+t+"</"+d+">"},v=function(t){t.write(_("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t,e=c("iframe");return e.style.display="none",l.appendChild(e),e.src=String("java"+d+":"),(t=e.contentWindow.document).open(),t.write(_("document.F=Object")),t.close(),t.F},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}g="undefined"!=typeof document?document.domain&&n?v(n):m():v(n);for(var t=s.length;t--;)delete g[h][s[t]];return g()};o[f]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(p[h]=r(t),i=new p,p[h]=null,i[f]=t):i=g(),void 0===e?i:a.f(i,e)}},22995:function(t,e,i){"use strict";var n=i(97223),r=i(23514),a=i(79406),s=i(98903),o=i(48246),l=i(99112);e.f=n&&!r?Object.defineProperties:function(t,e){s(t);for(var i,n=o(e),r=l(e),c=r.length,u=0;c>u;)a.f(t,i=r[u++],n[i]);return t}},79406:function(t,e,i){"use strict";var n=i(97223),r=i(21002),a=i(23514),s=i(98903),o=i(53154),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";e.f=n?a?function(t,e,i){if(s(t),e=o(e),s(i),"function"==typeof t&&"prototype"===e&&"value"in i&&f in i&&!i[f]){var n=u(t,e);n&&n[f]&&(t[e]=i.value,i={configurable:d in i?i[d]:n[d],enumerable:h in i?i[h]:n[h],writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(s(t),e=o(e),s(i),r)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},75990:function(t,e,i){"use strict";var n=i(97223),r=i(59528),a=i(3266),s=i(78407),o=i(48246),l=i(53154),c=i(29027),u=i(21002),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=o(t),e=l(e),u)try{return h(t,e)}catch(t){}if(c(t,e))return s(!r(a.f,t,e),t[e])}},84315:function(t,e,i){"use strict";var n=i(5950),r=i(85670).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},92692:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},32957:function(t,e,i){"use strict";var n=i(29027),r=i(28917),a=i(87620),s=i(85514),o=i(40260),l=s("IE_PROTO"),c=Object,u=c.prototype;t.exports=o?c.getPrototypeOf:function(t){var e=a(t);if(n(e,l))return e[l];var i=e.constructor;return r(i)&&e instanceof i?i.prototype:e instanceof c?u:null}},84776:function(t,e,i){"use strict";t.exports=i(26004)({}.isPrototypeOf)},5950:function(t,e,i){"use strict";var n=i(26004),r=i(29027),a=i(48246),s=i(8555).indexOf,o=i(52465),l=n([].push);t.exports=function(t,e){var i,n=a(t),c=0,u=[];for(i in n)!r(o,i)&&r(n,i)&&l(u,i);for(;e.length>c;)r(n,i=e[c++])&&(~s(u,i)||l(u,i));return u}},99112:function(t,e,i){"use strict";var n=i(5950),r=i(85670);t.exports=Object.keys||function(t){return n(t,r)}},3266:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;e.f=n&&!i.call({1:2},1)?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},6887:function(t,e,i){"use strict";var n=i(53923),r=i(10136),a=i(65977),s=i(38744);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=n(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return a(i),s(n),r(i)&&(e?t(i,n):i.__proto__=n),i}}():void 0)},6397:function(t,e,i){"use strict";var n=i(59528),r=i(28917),a=i(10136),s=TypeError;t.exports=function(t,e){var i,o;if("string"===e&&r(i=t.toString)&&!a(o=n(i,t))||r(i=t.valueOf)&&!a(o=n(i,t))||"string"!==e&&r(i=t.toString)&&!a(o=n(i,t)))return o;throw new s("Can't convert object to primitive value")}},94224:function(t,e,i){"use strict";var n=i(93345),r=i(26004),a=i(84315),s=i(92692),o=i(98903),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=a.f(o(t)),i=s.f;return i?l(e,i(t)):e}},40857:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},6585:function(t,e,i){"use strict";var n=i(42623),r=i(46267),a=i(28917),s=i(2849),o=i(16861),l=i(21755),c=i(84550),u=i(52512),h=i(52974),d=r&&r.prototype,f=l("species"),p=!1,_=a(n.PromiseRejectionEvent);t.exports={CONSTRUCTOR:s("Promise",function(){var t=o(r),e=t!==String(r);if(!e&&66===h||u&&!(d.catch&&d.finally))return!0;if(!h||h<51||!/native code/.test(t)){var i=new r(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((i.constructor={})[f]=n,!(p=i.then(function(){})instanceof n))return!0}return!e&&("BROWSER"===c||"DENO"===c)&&!_}),REJECTION_EVENT:_,SUBCLASSING:p}},46267:function(t,e,i){"use strict";t.exports=i(42623).Promise},11785:function(t,e,i){"use strict";var n=i(98903),r=i(10136),a=i(41267);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=a.f(t);return(0,i.resolve)(e),i.promise}},89633:function(t,e,i){"use strict";var n=i(46267),r=i(69815);t.exports=i(6585).CONSTRUCTOR||!r(function(t){n.all(t).then(void 0,function(){})})},86876:function(t,e,i){"use strict";var n=i(79406).f;t.exports=function(t,e,i){i in t||n(t,i,{configurable:!0,get:function(){return e[i]},set:function(t){e[i]=t}})}},95133:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},32955:function(t,e,i){"use strict";var n=i(59528),r=i(98903),a=i(28917),s=i(89255),o=i(64191),l=TypeError;t.exports=function(t,e){var i=t.exec;if(a(i)){var c=n(i,t,e);return null!==c&&r(c),c}if("RegExp"===s(t))return n(o,t,e);throw new l("RegExp#exec called on incompatible receiver")}},64191:function(t,e,i){"use strict";var n,r,a=i(59528),s=i(26004),o=i(86596),l=i(17219),c=i(96739),u=i(25127),h=i(38270),d=i(67875).get,f=i(8297),p=i(25129),_=u("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,m=v,g=s("".charAt),y=s("".indexOf),w=s("".replace),b=s("".slice),k=(r=/b*/g,a(v,n=/a/,"a"),a(v,r,"a"),0!==n.lastIndex||0!==r.lastIndex),S=c.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(k||A||S||f||p)&&(m=function(t){var e,i,n,r,s,c,u,f=d(this),p=o(t),C=f.raw;if(C)return C.lastIndex=this.lastIndex,e=a(m,C,p),this.lastIndex=C.lastIndex,e;var x=f.groups,P=S&&this.sticky,O=a(l,this),I=this.source,E=0,U=p;if(P&&(-1===y(O=w(O,"y",""),"g")&&(O+="g"),U=b(p,this.lastIndex),this.lastIndex>0&&(!this.multiline||this.multiline&&"\n"!==g(p,this.lastIndex-1))&&(I="(?: "+I+")",U=" "+U,E++),i=RegExp("^(?:"+I+")",O)),A&&(i=RegExp("^"+I+"$(?!\\s)",O)),k&&(n=this.lastIndex),r=a(v,P?i:this,U),P?r?(r.input=b(r.input,E),r[0]=b(r[0],E),r.index=this.lastIndex,this.lastIndex+=r[0].length):this.lastIndex=0:k&&r&&(this.lastIndex=this.global?r.index+r[0].length:n),A&&r&&r.length>1&&a(_,r[0],i,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)}),r&&x)for(s=0,r.groups=c=h(null);s<x.length;s++)c[(u=x[s])[0]]=r[u[1]];return r}),t.exports=m},17219:function(t,e,i){"use strict";var n=i(98903);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},61358:function(t,e,i){"use strict";var n=i(59528),r=i(29027),a=i(84776),s=i(17219),o=RegExp.prototype;t.exports=function(t){var e=t.flags;return!(void 0===e&&!("flags"in o)&&!r(t,"flags")&&a(o,t))?e:n(s,t)}},96739:function(t,e,i){"use strict";var n=i(81124),r=i(42623).RegExp,a=n(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),s=a||n(function(){return!r("a","y").sticky});t.exports={BROKEN_CARET:a||n(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")}),MISSED_STICKY:s,UNSUPPORTED_Y:a}},8297:function(t,e,i){"use strict";var n=i(81124),r=i(42623).RegExp;t.exports=n(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})},25129:function(t,e,i){"use strict";var n=i(81124),r=i(42623).RegExp;t.exports=n(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},65977:function(t,e,i){"use strict";var n=i(23671),r=TypeError;t.exports=function(t){if(n(t))throw new r("Can't call method on "+t);return t}},22054:function(t,e,i){"use strict";var n=i(42623),r=i(97223),a=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!r)return n[t];var e=a(n,t);return e&&e.value}},55968:function(t,e,i){"use strict";var n=i(7873),r=i(66937),a=n.Set,s=n.add;t.exports=function(t){var e=new a;return r(t,function(t){s(e,t)}),e}},76794:function(t,e,i){"use strict";var n=i(80656),r=i(7873),a=i(55968),s=i(64091),o=i(96959),l=i(66937),c=i(92550),u=r.has,h=r.remove;t.exports=function(t){var e=n(this),i=o(t),r=a(e);return s(e)<=i.size?l(e,function(t){i.includes(t)&&h(r,t)}):c(i.getIterator(),function(t){u(e,t)&&h(r,t)}),r}},7873:function(t,e,i){"use strict";var n=i(26004),r=Set.prototype;t.exports={Set:Set,add:n(r.add),has:n(r.has),remove:n(r.delete),proto:r}},84629:function(t,e,i){"use strict";var n=i(80656),r=i(7873),a=i(64091),s=i(96959),o=i(66937),l=i(92550),c=r.Set,u=r.add,h=r.has;t.exports=function(t){var e=n(this),i=s(t),r=new c;return a(e)>i.size?l(i.getIterator(),function(t){h(e,t)&&u(r,t)}):o(e,function(t){i.includes(t)&&u(r,t)}),r}},27775:function(t,e,i){"use strict";var n=i(80656),r=i(7873).has,a=i(64091),s=i(96959),o=i(66937),l=i(92550),c=i(99584);t.exports=function(t){var e=n(this),i=s(t);if(a(e)<=i.size)return!1!==o(e,function(t){if(i.includes(t))return!1},!0);var u=i.getIterator();return!1!==l(u,function(t){if(r(e,t))return c(u,"normal",!1)})}},82137:function(t,e,i){"use strict";var n=i(80656),r=i(64091),a=i(66937),s=i(96959);t.exports=function(t){var e=n(this),i=s(t);return!(r(e)>i.size)&&!1!==a(e,function(t){if(!i.includes(t))return!1},!0)}},19947:function(t,e,i){"use strict";var n=i(80656),r=i(7873).has,a=i(64091),s=i(96959),o=i(92550),l=i(99584);t.exports=function(t){var e=n(this),i=s(t);if(a(e)<i.size)return!1;var c=i.getIterator();return!1!==o(c,function(t){if(!r(e,t))return l(c,"normal",!1)})}},66937:function(t,e,i){"use strict";var n=i(26004),r=i(92550),a=i(7873),s=a.Set,o=a.proto,l=n(o.forEach),c=n(o.keys),u=c(new s).next;t.exports=function(t,e,i){return i?r({iterator:c(t),next:u},e):l(t,e)}},90785:function(t,e,i){"use strict";var n=i(93345),r=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},a=function(t){return{size:t,has:function(){return!0},keys:function(){throw Error("e")}}};t.exports=function(t,e){var i=n("Set");try{new i()[t](r(0));try{return new i()[t](r(-1)),!1}catch(n){if(!e)return!0;try{return new i()[t](a(-1/0)),!1}catch(n){var s=new i;return s.add(1),s.add(2),e(s[t](a(1/0)))}}}catch(t){return!1}}},64091:function(t,e,i){"use strict";t.exports=i(53923)(i(7873).proto,"size","get")||function(t){return t.size}},80974:function(t,e,i){"use strict";var n=i(93345),r=i(22700),a=i(21755),s=i(97223),o=a("species");t.exports=function(t){var e=n(t);s&&e&&!e[o]&&r(e,o,{configurable:!0,get:function(){return this}})}},73854:function(t,e,i){"use strict";var n=i(80656),r=i(7873),a=i(55968),s=i(96959),o=i(92550),l=r.add,c=r.has,u=r.remove;t.exports=function(t){var e=n(this),i=s(t).getIterator(),r=a(e);return o(i,function(t){c(e,t)?u(r,t):l(r,t)}),r}},83244:function(t,e,i){"use strict";var n=i(79406).f,r=i(29027),a=i(21755)("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!r(t,a)&&n(t,a,{configurable:!0,value:e})}},73406:function(t,e,i){"use strict";var n=i(80656),r=i(7873).add,a=i(55968),s=i(96959),o=i(92550);t.exports=function(t){var e=n(this),i=s(t).getIterator(),l=a(e);return o(i,function(t){r(l,t)}),l}},85514:function(t,e,i){"use strict";var n=i(25127),r=i(92947),a=n("keys");t.exports=function(t){return a[t]||(a[t]=r(t))}},6952:function(t,e,i){"use strict";var n=i(52512),r=i(42623),a=i(58511),s="__core-js_shared__",o=t.exports=r[s]||a(s,{});(o.versions||(o.versions=[])).push({version:"3.41.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})},25127:function(t,e,i){"use strict";var n=i(6952);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},7693:function(t,e,i){"use strict";var n=i(98903),r=i(29983),a=i(23671),s=i(21755)("species");t.exports=function(t,e){var i,o=n(t).constructor;return void 0===o||a(i=n(o)[s])?e:r(i)}},55321:function(t,e,i){"use strict";var n=i(26004),r=i(17940),a=i(86596),s=i(65977),o=n("".charAt),l=n("".charCodeAt),c=n("".slice),u=function(t){return function(e,i){var n,u,h=a(s(e)),d=r(i),f=h.length;return d<0||d>=f?t?"":void 0:(n=l(h,d))<55296||n>56319||d+1===f||(u=l(h,d+1))<56320||u>57343?t?o(h,d):n:t?c(h,d,d+2):(n-55296<<10)+(u-56320)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},65660:function(t,e,i){"use strict";var n=i(26004),r=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",o=RangeError,l=n(a.exec),c=Math.floor,u=String.fromCharCode,h=n("".charCodeAt),d=n([].join),f=n([].push),p=n("".replace),_=n("".split),v=n("".toLowerCase),m=function(t){for(var e=[],i=0,n=t.length;i<n;){var r=h(t,i++);if(r>=55296&&r<=56319&&i<n){var a=h(t,i++);(64512&a)==56320?f(e,((1023&r)<<10)+(1023&a)+65536):(f(e,r),i--)}else f(e,r)}return e},g=function(t){return t+22+75*(t<26)},y=function(t,e,i){var n=0;for(t=i?c(t/700):t>>1,t+=c(t/e);t>455;)t=c(t/35),n+=36;return c(n+36*t/(t+38))},w=function(t){var e,i,n=[],r=(t=m(t)).length,a=128,l=0,h=72;for(e=0;e<t.length;e++)(i=t[e])<128&&f(n,u(i));var p=n.length,_=p;for(p&&f(n,"-");_<r;){var v=0x7fffffff;for(e=0;e<t.length;e++)(i=t[e])>=a&&i<v&&(v=i);var w=_+1;if(v-a>c((0x7fffffff-l)/w))throw new o(s);for(l+=(v-a)*w,a=v,e=0;e<t.length;e++){if((i=t[e])<a&&++l>0x7fffffff)throw new o(s);if(i===a){for(var b=l,k=36;;){var S=k<=h?1:k>=h+26?26:k-h;if(b<S)break;var A=b-S,C=36-S;f(n,u(g(S+A%C))),b=c(A/C),k+=36}f(n,u(g(b))),h=y(l,w,_===p),l=0,_++}}l++,a++}return d(n,"")};t.exports=function(t){var e,i,n=[],s=_(p(v(t),a,"."),".");for(e=0;e<s.length;e++)f(n,l(r,i=s[e])?"xn--"+w(i):i);return d(n,".")}},10354:function(t,e,i){"use strict";var n=i(42623),r=i(81124),a=i(52974),s=i(84550),o=n.structuredClone;t.exports=!!o&&!r(function(){if("DENO"===s&&a>92||"NODE"===s&&a>94||"BROWSER"===s&&a>97)return!1;var t=new ArrayBuffer(8),e=o(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength})},47504:function(t,e,i){"use strict";var n=i(52974),r=i(81124),a=i(42623).String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},54469:function(t,e,i){"use strict";var n,r,a,s,o=i(42623),l=i(63451),c=i(1480),u=i(28917),h=i(29027),d=i(81124),f=i(23783),p=i(88221),_=i(88627),v=i(72888),m=i(46455),g=i(83639),y=o.setImmediate,w=o.clearImmediate,b=o.process,k=o.Dispatch,S=o.Function,A=o.MessageChannel,C=o.String,x=0,P={},O="onreadystatechange";d(function(){n=o.location});var I=function(t){if(h(P,t)){var e=P[t];delete P[t],e()}},E=function(t){return function(){I(t)}},U=function(t){I(t.data)},T=function(t){o.postMessage(C(t),n.protocol+"//"+n.host)};y&&w||(y=function(t){v(arguments.length,1);var e=u(t)?t:S(t),i=p(arguments,1);return P[++x]=function(){l(e,void 0,i)},r(x),x},w=function(t){delete P[t]},g?r=function(t){b.nextTick(E(t))}:k&&k.now?r=function(t){k.now(E(t))}:A&&!m?(s=(a=new A).port2,a.port1.onmessage=U,r=c(s.postMessage,s)):o.addEventListener&&u(o.postMessage)&&!o.importScripts&&n&&"file:"!==n.protocol&&!d(T)?(r=T,o.addEventListener("message",U,!1)):r=O in _("script")?function(t){f.appendChild(_("script"))[O]=function(){f.removeChild(this),I(t)}}:function(t){setTimeout(E(t),0)}),t.exports={set:y,clear:w}},35745:function(t,e,i){"use strict";var n=i(17940),r=Math.max,a=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):a(i,e)}},43355:function(t,e,i){"use strict";var n=i(68121),r=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw new r("Can't convert number to bigint");return BigInt(e)}},23006:function(t,e,i){"use strict";var n=i(17940),r=i(11934),a=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=r(e);if(e!==i)throw new a("Wrong length or index");return i}},48246:function(t,e,i){"use strict";var n=i(1994),r=i(65977);t.exports=function(t){return n(r(t))}},17940:function(t,e,i){"use strict";var n=i(22664);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},11934:function(t,e,i){"use strict";var n=i(17940),r=Math.min;t.exports=function(t){var e=n(t);return e>0?r(e,0x1fffffffffffff):0}},87620:function(t,e,i){"use strict";var n=i(65977),r=Object;t.exports=function(t){return r(n(t))}},67432:function(t,e,i){"use strict";var n=i(53863),r=RangeError;t.exports=function(t,e){var i=n(t);if(i%e)throw new r("Wrong offset");return i}},53863:function(t,e,i){"use strict";var n=i(17940),r=RangeError;t.exports=function(t){var e=n(t);if(e<0)throw new r("The argument can't be less than 0");return e}},68121:function(t,e,i){"use strict";var n=i(59528),r=i(10136),a=i(36994),s=i(84867),o=i(6397),l=i(21755),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||a(t))return t;var i,l=s(t,u);if(l){if(void 0===e&&(e="default"),!r(i=n(l,t,e))||a(i))return i;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),o(t,e)}},53154:function(t,e,i){"use strict";var n=i(68121),r=i(36994);t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},85830:function(t,e,i){"use strict";var n=i(21755)("toStringTag"),r={};r[n]="z",t.exports="[object z]"===String(r)},86596:function(t,e,i){"use strict";var n=i(70422),r=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},52308:function(t){"use strict";var e=Math.round;t.exports=function(t){var i=e(t);return i<0?0:i>255?255:255&i}},76934:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},48095:function(t,e,i){"use strict";var n=i(96122),r=i(42623),a=i(59528),s=i(97223),o=i(5213),l=i(44708),c=i(66509),u=i(14644),h=i(78407),d=i(52801),f=i(64523),p=i(11934),_=i(23006),v=i(67432),m=i(52308),g=i(53154),y=i(29027),w=i(70422),b=i(10136),k=i(36994),S=i(38270),A=i(84776),C=i(6887),x=i(84315).f,P=i(48063),O=i(94238).forEach,I=i(80974),E=i(22700),U=i(79406),T=i(75990),R=i(97338),M=i(67875),N=i(31858),z=M.get,D=M.set,W=M.enforce,L=U.f,F=T.f,j=r.RangeError,V=c.ArrayBuffer,B=V.prototype,K=c.DataView,$=l.NATIVE_ARRAY_BUFFER_VIEWS,J=l.TYPED_ARRAY_TAG,q=l.TypedArray,Z=l.TypedArrayPrototype,G=l.isTypedArray,H="BYTES_PER_ELEMENT",Y="Wrong length",X=function(t,e){E(t,e,{configurable:!0,get:function(){return z(this)[e]}})},Q=function(t){var e;return A(B,t)||"ArrayBuffer"===(e=w(t))||"SharedArrayBuffer"===e},tt=function(t,e){return G(t)&&!k(e)&&e in t&&f(+e)&&e>=0},te=function(t,e){return tt(t,e=g(e))?h(2,t[e]):F(t,e)},ti=function(t,e,i){return tt(t,e=g(e))&&b(i)&&y(i,"value")&&!y(i,"get")&&!y(i,"set")&&!i.configurable&&(!y(i,"writable")||i.writable)&&(!y(i,"enumerable")||i.enumerable)?(t[e]=i.value,t):L(t,e,i)};s?($||(T.f=te,U.f=ti,X(Z,"buffer"),X(Z,"byteOffset"),X(Z,"byteLength"),X(Z,"length")),n({target:"Object",stat:!0,forced:!$},{getOwnPropertyDescriptor:te,defineProperty:ti}),t.exports=function(t,e,i){var s=t.match(/\d+/)[0]/8,l=t+(i?"Clamped":"")+"Array",c="get"+t,h="set"+t,f=r[l],g=f,y=g&&g.prototype,w={},k=function(t,e){var i=z(t);return i.view[c](e*s+i.byteOffset,!0)},A=function(t,e,n){var r=z(t);r.view[h](e*s+r.byteOffset,i?m(n):n,!0)},E=function(t,e){L(t,e,{get:function(){return k(this,e)},set:function(t){return A(this,e,t)},enumerable:!0})};$?o&&(g=e(function(t,e,i,n){return u(t,y),N(b(e)?Q(e)?void 0!==n?new f(e,v(i,s),n):void 0!==i?new f(e,v(i,s)):new f(e):G(e)?R(g,e):a(P,g,e):new f(_(e)),t,g)}),C&&C(g,q),O(x(f),function(t){t in g||d(g,t,f[t])}),g.prototype=y):(g=e(function(t,e,i,n){u(t,y);var r,o,l,c=0,h=0;if(b(e))if(Q(e)){r=e,h=v(i,s);var d=e.byteLength;if(void 0===n){if(d%s||(o=d-h)<0)throw new j(Y)}else if((o=p(n)*s)+h>d)throw new j(Y);l=o/s}else if(G(e))return R(g,e);else return a(P,g,e);else r=new V(o=(l=_(e))*s);for(D(t,{buffer:r,byteOffset:h,byteLength:o,length:l,view:new K(r)});c<l;)E(t,c++)}),C&&C(g,q),y=g.prototype=S(Z)),y.constructor!==g&&d(y,"constructor",g),W(y).TypedArrayConstructor=g,J&&d(y,J,l);var U=g!==f;w[l]=g,n({global:!0,constructor:!0,forced:U,sham:!$},w),H in g||d(g,H,s),H in y||d(y,H,s),I(l)}):t.exports=function(){}},5213:function(t,e,i){"use strict";var n=i(42623),r=i(81124),a=i(69815),s=i(44708).NATIVE_ARRAY_BUFFER_VIEWS,o=n.ArrayBuffer,l=n.Int8Array;t.exports=!s||!r(function(){l(1)})||!r(function(){new l(-1)})||!a(function(t){new l,new l(null),new l(1.5),new l(t)},!0)||r(function(){return 1!==new l(new o(2),1,void 0).length})},48063:function(t,e,i){"use strict";var n=i(1480),r=i(59528),a=i(29983),s=i(87620),o=i(8785),l=i(85773),c=i(2691),u=i(30059),h=i(69488),d=i(44708).aTypedArrayConstructor,f=i(43355);t.exports=function(t){var e,i,p,_,v,m,g,y,w=a(this),b=s(t),k=arguments.length,S=k>1?arguments[1]:void 0,A=void 0!==S,C=c(b);if(C&&!u(C))for(y=(g=l(b,C)).next,b=[];!(m=r(y,g)).done;)b.push(m.value);for(A&&k>2&&(S=n(S,arguments[2])),i=o(b),_=h(p=new(d(w))(i)),e=0;i>e;e++)v=A?S(b[e],e):b[e],p[e]=_?f(v):+v;return p}},92947:function(t,e,i){"use strict";var n=i(26004),r=0,a=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+a,36)}},19484:function(t,e,i){"use strict";var n=i(81124),r=i(21755),a=i(97223),s=i(52512),o=r("iterator");t.exports=!n(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,i=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach(function(t,i){e.delete("b"),n+=i+t}),i.delete("a",2),i.delete("b",void 0),s&&(!t.toJSON||!i.has("a",1)||i.has("a",2)||!i.has("a",void 0)||i.has("b"))||!e.size&&(s||!a)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})},22069:function(t,e,i){"use strict";t.exports=i(47504)&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},23514:function(t,e,i){"use strict";var n=i(97223),r=i(81124);t.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},72888:function(t){"use strict";var e=TypeError;t.exports=function(t,i){if(t<i)throw new e("Not enough arguments");return t}},83839:function(t,e,i){"use strict";var n=i(42623),r=i(28917),a=n.WeakMap;t.exports=r(a)&&/native code/.test(String(a))},21755:function(t,e,i){"use strict";var n=i(42623),r=i(25127),a=i(29027),s=i(92947),o=i(47504),l=i(22069),c=n.Symbol,u=r("wks"),h=l?c.for||c:c&&c.withoutSetter||s;t.exports=function(t){return a(u,t)||(u[t]=o&&a(c,t)?c[t]:h("Symbol."+t)),u[t]}},85863:function(t,e,i){"use strict";var n=i(93345),r=i(29027),a=i(52801),s=i(84776),o=i(6887),l=i(22356),c=i(86876),u=i(31858),h=i(25441),d=i(20334),f=i(40204),p=i(97223),_=i(52512);t.exports=function(t,e,i,v){var m="stackTraceLimit",g=v?2:1,y=t.split("."),w=y[y.length-1],b=n.apply(null,y);if(b){var k=b.prototype;if(!_&&r(k,"cause")&&delete k.cause,!i)return b;var S=n("Error"),A=e(function(t,e){var i=h(v?e:t,void 0),n=v?new b(t):new b;return void 0!==i&&a(n,"message",i),f(n,A,n.stack,2),this&&s(k,this)&&u(n,this,A),arguments.length>g&&d(n,arguments[g]),n});if(A.prototype=k,"Error"!==w?o?o(A,S):l(A,S,{name:!0}):p&&m in b&&(c(A,b,m),c(A,b,"prepareStackTrace")),l(A,b),!_)try{k.name!==w&&a(k,"name",w),k.constructor=A}catch(t){}return A}}},54357:function(t,e,i){"use strict";var n=i(97223),r=i(22700),a=i(58047),s=ArrayBuffer.prototype;!n||"detached"in s||r(s,"detached",{configurable:!0,get:function(){return a(this)}})},6763:function(t,e,i){"use strict";var n=i(96122),r=i(25126);r&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}})},86775:function(t,e,i){"use strict";var n=i(96122),r=i(25126);r&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}})},28419:function(t,e,i){"use strict";var n=i(96122),r=i(8555).includes,a=i(81124),s=i(63133);n({target:"Array",proto:!0,forced:a(function(){return![,].includes()})},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},95467:function(t,e,i){"use strict";var n=i(48246),r=i(63133),a=i(86699),s=i(67875),o=i(79406).f,l=i(17591),c=i(77528),u=i(52512),h=i(97223),d="Array Iterator",f=s.set,p=s.getterFor(d);t.exports=l(Array,"Array",function(t,e){f(this,{type:d,target:n(t),index:0,kind:e})},function(){var t=p(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(i,!1);case"values":return c(e[i],!1)}return c([i,e[i]],!1)},"values");var _=a.Arguments=a.Array;if(r("keys"),r("values"),r("entries"),!u&&h&&"values"!==_.name)try{o(_,"name",{value:"values"})}catch(t){}},79876:function(t,e,i){"use strict";var n=i(96122),r=i(87620),a=i(8785),s=i(92766),o=i(98196);n({target:"Array",proto:!0,arity:1,forced:i(81124)(function(){return 0x100000001!==[].push.call({length:0x100000000},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=r(this),i=a(e),n=arguments.length;o(i+n);for(var l=0;l<n;l++)e[i]=arguments[l],i++;return s(e,i),i}})},93008:function(t,e,i){"use strict";var n=i(96122),r=i(31660).left,a=i(51530),s=i(52974);n({target:"Array",proto:!0,forced:!i(83639)&&s>79&&s<83||!a("reduce")},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},56711:function(t,e,i){"use strict";i(63133)("flat")},838:function(t,e,i){"use strict";var n=i(96122),r=i(87620),a=i(8785),s=i(92766),o=i(68028),l=i(98196);n({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=r(this),i=a(e),n=arguments.length;if(n){l(i+n);for(var c=i;c--;){var u=c+n;c in e?e[u]=e[c]:o(e,u)}for(var h=0;h<n;h++)e[h]=arguments[h]}return s(e,i+n)}})},92037:function(t,e,i){"use strict";var n=i(96122),r=i(42623),a=i(63451),s=i(85863),o="WebAssembly",l=r[o],c=7!==Error("e",{cause:7}).cause,u=function(t,e){var i={};i[t]=s(t,e,c),n({global:!0,constructor:!0,arity:1,forced:c},i)},h=function(t,e){if(l&&l[t]){var i={};i[t]=s(o+"."+t,e,c),n({target:o,stat:!0,constructor:!0,arity:1,forced:c},i)}};u("Error",function(t){return function(e){return a(t,this,arguments)}}),u("EvalError",function(t){return function(e){return a(t,this,arguments)}}),u("RangeError",function(t){return function(e){return a(t,this,arguments)}}),u("ReferenceError",function(t){return function(e){return a(t,this,arguments)}}),u("SyntaxError",function(t){return function(e){return a(t,this,arguments)}}),u("TypeError",function(t){return function(e){return a(t,this,arguments)}}),u("URIError",function(t){return function(e){return a(t,this,arguments)}}),h("CompileError",function(t){return function(e){return a(t,this,arguments)}}),h("LinkError",function(t){return function(e){return a(t,this,arguments)}}),h("RuntimeError",function(t){return function(e){return a(t,this,arguments)}})},13044:function(t,e,i){"use strict";var n=i(96122),r=i(59528),a=i(94112),s=i(41267),o=i(40857),l=i(95342);n({target:"Promise",stat:!0,forced:i(89633)},{all:function(t){var e=this,i=s.f(e),n=i.resolve,c=i.reject,u=o(function(){var i=a(e.resolve),s=[],o=0,u=1;l(t,function(t){var a=o++,l=!1;u++,r(i,e,t).then(function(t){!l&&(l=!0,s[a]=t,--u||n(s))},c)}),--u||n(s)});return u.error&&c(u.value),i.promise}})},42718:function(t,e,i){"use strict";var n=i(96122),r=i(52512),a=i(6585).CONSTRUCTOR,s=i(46267),o=i(93345),l=i(28917),c=i(51200),u=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&l(s)){var h=o("Promise").prototype.catch;u.catch!==h&&c(u,"catch",h,{unsafe:!0})}},61443:function(t,e,i){"use strict";var n,r,a,s,o=i(96122),l=i(52512),c=i(83639),u=i(42623),h=i(59528),d=i(51200),f=i(6887),p=i(83244),_=i(80974),v=i(94112),m=i(28917),g=i(10136),y=i(14644),w=i(7693),b=i(54469).set,k=i(64635),S=i(66206),A=i(40857),C=i(95133),x=i(67875),P=i(46267),O=i(6585),I=i(41267),E="Promise",U=O.CONSTRUCTOR,T=O.REJECTION_EVENT,R=O.SUBCLASSING,M=x.getterFor(E),N=x.set,z=P&&P.prototype,D=P,W=z,L=u.TypeError,F=u.document,j=u.process,V=I.f,B=V,K=!!(F&&F.createEvent&&u.dispatchEvent),$="unhandledrejection",J=function(t){var e;return!!(g(t)&&m(e=t.then))&&e},q=function(t,e){var i,n,r,a=e.value,s=1===e.state,o=s?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{o?(s||(2===e.rejection&&X(e),e.rejection=1),!0===o?i=a:(u&&u.enter(),i=o(a),u&&(u.exit(),r=!0)),i===t.promise?c(new L("Promise-chain cycle")):(n=J(i))?h(n,i,l,c):l(i)):c(a)}catch(t){u&&!r&&u.exit(),c(t)}},Z=function(t,e){t.notified||(t.notified=!0,k(function(){for(var i,n=t.reactions;i=n.get();)q(i,t);t.notified=!1,e&&!t.rejection&&H(t)}))},G=function(t,e,i){var n,r;K?((n=F.createEvent("Event")).promise=e,n.reason=i,n.initEvent(t,!1,!0),u.dispatchEvent(n)):n={promise:e,reason:i},!T&&(r=u["on"+t])?r(n):t===$&&S("Unhandled promise rejection",i)},H=function(t){h(b,u,function(){var e,i=t.facade,n=t.value;if(Y(t)&&(e=A(function(){c?j.emit("unhandledRejection",n,i):G($,i,n)}),t.rejection=c||Y(t)?2:1,e.error))throw e.value})},Y=function(t){return 1!==t.rejection&&!t.parent},X=function(t){h(b,u,function(){var e=t.facade;c?j.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)})},Q=function(t,e,i){return function(n){t(e,n,i)}},tt=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,Z(t,!0))},te=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new L("Promise can't be resolved itself");var n=J(e);n?k(function(){var i={done:!1};try{h(n,e,Q(te,i,t),Q(tt,i,t))}catch(e){tt(i,e,t)}}):(t.value=e,t.state=1,Z(t,!1))}catch(e){tt({done:!1},e,t)}}};if(U&&(W=(D=function(t){y(this,W),v(t),h(n,this);var e=M(this);try{t(Q(te,e),Q(tt,e))}catch(t){tt(e,t)}}).prototype,(n=function(t){N(this,{type:E,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=d(W,"then",function(t,e){var i=M(this),n=V(w(this,D));return i.parent=!0,n.ok=!m(t)||t,n.fail=m(e)&&e,n.domain=c?j.domain:void 0,0===i.state?i.reactions.add(n):k(function(){q(n,i)}),n.promise}),r=function(){var t=new n,e=M(t);this.promise=t,this.resolve=Q(te,e),this.reject=Q(tt,e)},I.f=V=function(t){return t===D||t===a?new r(t):B(t)},!l&&m(P)&&z!==Object.prototype)){s=z.then,R||d(z,"then",function(t,e){var i=this;return new D(function(t,e){h(s,i,t,e)}).then(t,e)},{unsafe:!0});try{delete z.constructor}catch(t){}f&&f(z,W)}o({global:!0,constructor:!0,wrap:!0,forced:U},{Promise:D}),p(D,E,!1,!0),_(E)},38062:function(t,e,i){"use strict";var n=i(96122),r=i(52512),a=i(46267),s=i(81124),o=i(93345),l=i(28917),c=i(7693),u=i(11785),h=i(51200),d=a&&a.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!a&&s(function(){d.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=c(this,o("Promise")),i=l(t);return this.then(i?function(i){return u(e,t()).then(function(){return i})}:t,i?function(i){return u(e,t()).then(function(){throw i})}:t)}}),!r&&l(a)){var f=o("Promise").prototype.finally;d.finally!==f&&h(d,"finally",f,{unsafe:!0})}},50725:function(t,e,i){"use strict";i(61443),i(13044),i(42718),i(84127),i(22542),i(89750)},84127:function(t,e,i){"use strict";var n=i(96122),r=i(59528),a=i(94112),s=i(41267),o=i(40857),l=i(95342);n({target:"Promise",stat:!0,forced:i(89633)},{race:function(t){var e=this,i=s.f(e),n=i.reject,c=o(function(){var s=a(e.resolve);l(t,function(t){r(s,e,t).then(i.resolve,n)})});return c.error&&n(c.value),i.promise}})},22542:function(t,e,i){"use strict";var n=i(96122),r=i(41267);n({target:"Promise",stat:!0,forced:i(6585).CONSTRUCTOR},{reject:function(t){var e=r.f(this);return(0,e.reject)(t),e.promise}})},89750:function(t,e,i){"use strict";var n=i(96122),r=i(93345),a=i(52512),s=i(46267),o=i(6585).CONSTRUCTOR,l=i(11785),c=r("Promise"),u=a&&!o;n({target:"Promise",stat:!0,forced:a||o},{resolve:function(t){return l(u&&this===c?s:this,t)}})},80194:function(t,e,i){"use strict";var n=i(97223),r=i(42623),a=i(26004),s=i(2849),o=i(31858),l=i(52801),c=i(38270),u=i(84315).f,h=i(84776),d=i(45903),f=i(86596),p=i(61358),_=i(96739),v=i(86876),m=i(51200),g=i(81124),y=i(29027),w=i(67875).enforce,b=i(80974),k=i(21755),S=i(8297),A=i(25129),C=k("match"),x=r.RegExp,P=x.prototype,O=r.SyntaxError,I=a(P.exec),E=a("".charAt),U=a("".replace),T=a("".indexOf),R=a("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,z=/a/g,D=new x(N)!==N,W=_.MISSED_STICKY,L=_.UNSUPPORTED_Y,F=n&&(!D||W||S||A||g(function(){return z[C]=!1,x(N)!==N||x(z)===z||"/a/i"!==String(x(N,"i"))})),j=function(t){for(var e,i=t.length,n=0,r="",a=!1;n<=i;n++){if("\\"===(e=E(t,n))){r+=e+E(t,++n);continue}a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),r+=e):r+="[\\s\\S]"}return r},V=function(t){for(var e,i=t.length,n=0,r="",a=[],s=c(null),o=!1,l=!1,u=0,h="";n<=i;n++){if("\\"===(e=E(t,n)))e+=E(t,++n);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:if(r+=e,"?:"===R(t,n+1,n+3))continue;I(M,R(t,n+1))&&(n+=2,l=!0),u++;continue;case">"===e&&l:if(""===h||y(s,h))throw new O("Invalid capture group name");s[h]=!0,a[a.length]=[h,u],l=!1,h="";continue}l?h+=e:r+=e}return[r,a]};if(s("RegExp",F)){for(var B=function(t,e){var i,n,r,a,s,c,u=h(P,this),_=d(t),v=void 0===e,m=[],g=t;if(!u&&_&&v&&t.constructor===B)return t;if((_||h(P,t))&&(t=t.source,v&&(e=p(g))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),g=t,S&&"dotAll"in N&&(n=!!e&&T(e,"s")>-1)&&(e=U(e,/s/g,"")),i=e,W&&"sticky"in N&&(r=!!e&&T(e,"y")>-1)&&L&&(e=U(e,/y/g,"")),A&&(t=(a=V(t))[0],m=a[1]),s=o(x(t,e),u?this:P,B),(n||r||m.length)&&(c=w(s),n&&(c.dotAll=!0,c.raw=B(j(t),i)),r&&(c.sticky=!0),m.length&&(c.groups=m)),t!==g)try{l(s,"source",""===g?"(?:)":g)}catch(t){}return s},K=u(x),$=0;K.length>$;)v(B,x,K[$++]);P.constructor=B,B.prototype=P,m(r,"RegExp",B,{constructor:!0})}b("RegExp")},25800:function(t,e,i){"use strict";var n=i(97223),r=i(8297),a=i(89255),s=i(22700),o=i(67875).get,l=RegExp.prototype,c=TypeError;n&&r&&s(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===a(this))return!!o(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},56113:function(t,e,i){"use strict";var n=i(96122),r=i(64191);n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},50887:function(t,e,i){"use strict";var n=i(42623),r=i(97223),a=i(22700),s=i(17219),o=i(81124),l=n.RegExp,c=l.prototype;r&&o(function(){var t=!0;try{l(".","d")}catch(e){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",r=function(t,n){Object.defineProperty(e,t,{get:function(){return i+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(a.hasIndices="d"),a)r(s,a[s]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(e)!==n||i!==n})&&a(c,"flags",{configurable:!0,get:s})},13189:function(t,e,i){"use strict";var n=i(96122),r=i(76794);n({target:"Set",proto:!0,real:!0,forced:!i(90785)("difference",function(t){return 0===t.size})},{difference:r})},63277:function(t,e,i){"use strict";var n=i(96122),r=i(81124),a=i(84629);n({target:"Set",proto:!0,real:!0,forced:!i(90785)("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2)})||r(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:a})},82230:function(t,e,i){"use strict";var n=i(96122),r=i(27775);n({target:"Set",proto:!0,real:!0,forced:!i(90785)("isDisjointFrom",function(t){return!t})},{isDisjointFrom:r})},27899:function(t,e,i){"use strict";var n=i(96122),r=i(82137);n({target:"Set",proto:!0,real:!0,forced:!i(90785)("isSubsetOf",function(t){return t})},{isSubsetOf:r})},37389:function(t,e,i){"use strict";var n=i(96122),r=i(19947);n({target:"Set",proto:!0,real:!0,forced:!i(90785)("isSupersetOf",function(t){return!t})},{isSupersetOf:r})},27968:function(t,e,i){"use strict";var n=i(96122),r=i(73854);n({target:"Set",proto:!0,real:!0,forced:!i(90785)("symmetricDifference")},{symmetricDifference:r})},46299:function(t,e,i){"use strict";var n=i(96122),r=i(73406);n({target:"Set",proto:!0,real:!0,forced:!i(90785)("union")},{union:r})},70727:function(t,e,i){"use strict";var n=i(96122),r=i(26004),a=i(35745),s=RangeError,o=String.fromCharCode,l=String.fromCodePoint,c=r([].join);n({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,r=0;n>r;){if(e=+arguments[r++],a(e,1114111)!==e)throw new s(e+" is not a valid code point");i[r]=e<65536?o(e):o(((e-=65536)>>10)+55296,e%1024+56320)}return c(i,"")}})},21751:function(t,e,i){"use strict";var n=i(55321).charAt,r=i(86596),a=i(67875),s=i(17591),o=i(77528),l="String Iterator",c=a.set,u=a.getterFor(l);s(String,"String",function(t){c(this,{type:l,string:r(t),index:0})},function(){var t,e=u(this),i=e.string,r=e.index;return r>=i.length?o(void 0,!0):(t=n(i,r),e.index+=t.length,o(t,!1))})},99881:function(t,e,i){"use strict";var n=i(96122),r=i(59528),a=i(77434),s=i(48256),o=i(77528),l=i(65977),c=i(11934),u=i(86596),h=i(98903),d=i(23671),f=i(89255),p=i(45903),_=i(61358),v=i(84867),m=i(51200),g=i(81124),y=i(21755),w=i(7693),b=i(44812),k=i(32955),S=i(67875),A=i(52512),C=y("matchAll"),x="RegExp String",P=x+" Iterator",O=S.set,I=S.getterFor(P),E=RegExp.prototype,U=TypeError,T=a("".indexOf),R=a("".matchAll),M=!!R&&!g(function(){R("a",/./)}),N=s(function(t,e,i,n){O(this,{type:P,regexp:t,string:e,global:i,unicode:n,done:!1})},x,function(){var t=I(this);if(t.done)return o(void 0,!0);var e=t.regexp,i=t.string,n=k(e,i);return null===n?(t.done=!0,o(void 0,!0)):(t.global?""===u(n[0])&&(e.lastIndex=b(i,c(e.lastIndex),t.unicode)):t.done=!0,o(n,!1))}),z=function(t){var e,i,n,r=h(this),a=u(t),s=w(r,RegExp),o=u(_(r));return e=new s(s===RegExp?r.source:r,o),i=!!~T(o,"g"),n=!!~T(o,"u"),e.lastIndex=c(r.lastIndex),new N(e,a,i,n)};n({target:"String",proto:!0,forced:M},{matchAll:function(t){var e,i,n,a=l(this);if(d(t)){if(M)return R(a,t)}else{if(p(t)&&!~T(u(l(_(t))),"g"))throw new U("`.matchAll` does not allow non-global regexes");if(M)return R(a,t);if(void 0===(i=v(t,C))&&A&&"RegExp"===f(t)&&(i=z),i)return r(i,t,a)}return e=u(a),n=RegExp(t,"g"),A?r(z,n,e):n[C](e)}}),A||C in E||m(E,C,z)},87945:function(t,e,i){"use strict";var n=i(63451),r=i(59528),a=i(26004),s=i(41395),o=i(81124),l=i(98903),c=i(28917),u=i(23671),h=i(17940),d=i(11934),f=i(86596),p=i(65977),_=i(44812),v=i(84867),m=i(38710),g=i(32955),y=i(21755)("replace"),w=Math.max,b=Math.min,k=a([].concat),S=a([].push),A=a("".indexOf),C=a("".slice),x="$0"==="a".replace(/./,"$0"),P=!!/./[y]&&""===/./[y]("a","$0");s("replace",function(t,e,i){var a=P?"$":"$0";return[function(t,i){var n=p(this),a=u(t)?void 0:v(t,y);return a?r(a,t,n,i):r(e,f(n),t,i)},function(t,r){var s=l(this),o=f(t);if("string"==typeof r&&-1===A(r,a)&&-1===A(r,"$<")){var u=i(e,s,o,r);if(u.done)return u.value}var p=c(r);p||(r=f(r));var v=s.global;v&&(E=s.unicode,s.lastIndex=0);for(var y=[];null!==(T=g(s,o))&&(S(y,T),v);){;""===f(T[0])&&(s.lastIndex=_(o,d(s.lastIndex),E))}for(var x="",P=0,O=0;O<y.length;O++){for(var I,E,U,T=y[O],R=f(T[0]),M=w(b(h(T.index),o.length),0),N=[],z=1;z<T.length;z++)S(N,void 0===(I=T[z])?I:String(I));var D=T.groups;if(p){var W=k([R],N,M,o);void 0!==D&&S(W,D),U=f(n(r,void 0,W))}else U=m(R,o,M,N,D,r);M>=P&&(x+=C(o,P,M)+U,P=M+R.length)}return x+C(o,P)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!x||P)},75184:function(t,e,i){"use strict";var n=i(44708),r=i(8785),a=i(17940),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",function(t){var e=s(this),i=r(e),n=a(t),o=n>=0?n:i+n;return o<0||o>=i?void 0:e[o]})},12100:function(t,e,i){"use strict";var n=i(44708),r=i(49546),a=i(43355),s=i(70422),o=i(59528),l=i(26004),c=i(81124),u=n.aTypedArray,h=n.exportTypedArrayMethod,d=l("".slice);h("fill",function(t){var e=arguments.length;return u(this),o(r,this,"Big"===d(s(this),0,3)?a(t):+t,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)},c(function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}))},67581:function(t,e,i){"use strict";var n=i(44708),r=i(74620).findLastIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)})},29646:function(t,e,i){"use strict";var n=i(44708),r=i(74620).findLast,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)})},63782:function(t,e,i){"use strict";var n=i(42623),r=i(59528),a=i(44708),s=i(8785),o=i(67432),l=i(87620),c=i(81124),u=n.RangeError,h=n.Int8Array,d=h&&h.prototype,f=d&&d.set,p=a.aTypedArray,_=a.exportTypedArrayMethod,v=!c(function(){var t=new Uint8ClampedArray(2);return r(f,t,{length:1,0:3},1),3!==t[1]}),m=v&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]});_("set",function(t){p(this);var e=o(arguments.length>1?arguments[1]:void 0,1),i=l(t);if(v)return r(f,this,i,e);var n=this.length,a=s(i),c=0;if(a+e>n)throw new u("Wrong length");for(;c<a;)this[e+c]=i[c++]},!v||m)},14311:function(t,e,i){"use strict";var n=i(42623),r=i(77434),a=i(81124),s=i(94112),o=i(27370),l=i(44708),c=i(70453),u=i(89399),h=i(52974),d=i(88440),f=l.aTypedArray,p=l.exportTypedArrayMethod,_=n.Uint16Array,v=_&&r(_.prototype.sort),m=!!v&&!(a(function(){v(new _(2),null)})&&a(function(){v(new _(2),{})})),g=!!v&&!a(function(){if(h)return h<74;if(c)return c<67;if(u)return!0;if(d)return d<602;var t,e,i=new _(516),n=Array(516);for(t=0;t<516;t++)e=t%4,i[t]=515-t,n[t]=t-2*e+3;for(v(i,function(t,e){return(t/4|0)-(e/4|0)}),t=0;t<516;t++)if(i[t]!==n[t])return!0});p("sort",function(t){return(void 0!==t&&s(t),g)?v(this,t):o(f(this),function(e,i){return void 0!==t?+t(e,i)||0:i!=i?-1:e!=e?1:0===e&&0===i?1/e>0&&1/i<0?1:-1:e>i})},!g||m)},72547:function(t,e,i){"use strict";var n=i(58673),r=i(44708),a=r.aTypedArray,s=r.exportTypedArrayMethod,o=r.getTypedArrayConstructor;s("toReversed",function(){return n(a(this),o(this))})},86936:function(t,e,i){"use strict";var n=i(44708),r=i(26004),a=i(94112),s=i(97338),o=n.aTypedArray,l=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,u=r(n.TypedArrayPrototype.sort);c("toSorted",function(t){void 0!==t&&a(t);var e=o(this);return u(s(l(e),e),t)})},73588:function(t,e,i){"use strict";i(48095)("Uint8",function(t){return function(e,i,n){return t(this,e,i,n)}})},20889:function(t,e,i){"use strict";var n=i(4584),r=i(44708),a=i(69488),s=i(17940),o=i(43355),l=r.aTypedArray,c=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("with",{with:function(t,e){var i=l(this),r=s(t),u=a(i)?o(e):+e;return n(i,c(i),r,u)}}.with,!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}())},65223:function(t,e,i){"use strict";var n=i(42623),r=i(47577),a=i(13840),s=i(95467),o=i(52801),l=i(83244),c=i(21755)("iterator"),u=s.values,h=function(t,e){if(t){if(t[c]!==u)try{o(t,c,u)}catch(e){t[c]=u}if(l(t,e,!0),r[e]){for(var i in s)if(t[i]!==s[i])try{o(t,i,s[i])}catch(e){t[i]=s[i]}}}};for(var d in r)h(n[d]&&n[d].prototype,d);h(a,"DOMTokenList")},50886:function(t,e,i){"use strict";var n=i(96122),r=i(42623),a=i(93345),s=i(78407),o=i(79406).f,l=i(29027),c=i(14644),u=i(31858),h=i(25441),d=i(8808),f=i(90742),p=i(97223),_=i(52512),v="DOMException",m=a("Error"),g=a(v),y=function(){c(this,w);var t=arguments.length,e=h(t<1?void 0:arguments[0]),i=h(t<2?void 0:arguments[1],"Error"),n=new g(e,i),r=new m(e);return r.name=v,o(n,"stack",s(1,f(r.stack,1))),u(n,this,y),n},w=y.prototype=g.prototype,b="stack"in new m(v),k="stack"in new g(1,2),S=g&&p&&Object.getOwnPropertyDescriptor(r,v),A=!!S&&!(S.writable&&S.configurable),C=b&&!A&&!k;n({global:!0,constructor:!0,forced:_||C},{DOMException:C?y:g});var x=a(v),P=x.prototype;if(P.constructor!==x){for(var O in _||o(P,"constructor",s(1,x)),d)if(l(d,O)){var I=d[O],E=I.s;l(x,E)||o(x,E,s(6,I.c))}}},64728:function(t,e,i){"use strict";var n=i(96122),r=i(42623),a=i(22700),s=i(97223),o=TypeError,l=Object.defineProperty,c=r.self!==r;try{if(s){var u=Object.getOwnPropertyDescriptor(r,"self");!c&&u&&u.get&&u.enumerable||a(r,"self",{get:function(){return r},set:function(t){if(this!==r)throw new o("Illegal invocation");l(r,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:c},{self:r})}catch(t){}},79093:function(t,e,i){"use strict";i(95467),i(70727);var n=i(96122),r=i(42623),a=i(22054),s=i(93345),o=i(59528),l=i(26004),c=i(97223),u=i(19484),h=i(51200),d=i(22700),f=i(682),p=i(83244),_=i(48256),v=i(67875),m=i(14644),g=i(28917),y=i(29027),w=i(1480),b=i(70422),k=i(98903),S=i(10136),A=i(86596),C=i(38270),x=i(78407),P=i(85773),O=i(2691),I=i(77528),E=i(72888),U=i(21755),T=i(27370),R=U("iterator"),M="URLSearchParams",N=M+"Iterator",z=v.set,D=v.getterFor(M),W=v.getterFor(N),L=a("fetch"),F=a("Request"),j=a("Headers"),V=F&&F.prototype,B=j&&j.prototype,K=r.TypeError,$=r.encodeURIComponent,J=String.fromCharCode,q=s("String","fromCodePoint"),Z=parseInt,G=l("".charAt),H=l([].join),Y=l([].push),X=l("".replace),Q=l([].shift),tt=l([].splice),te=l("".split),ti=l("".slice),tn=l(/./.exec),tr=/\+/g,ta=/^[0-9a-f]+$/i,ts=function(t,e){var i=ti(t,e,e+2);return tn(ta,i)?Z(i,16):NaN},to=function(t){for(var e=0,i=128;i>0&&(t&i)!=0;i>>=1)e++;return e},tl=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},tc=function(t){for(var e=(t=X(t,tr," ")).length,i="",n=0;n<e;){var r=G(t,n);if("%"===r){if("%"===G(t,n+1)||n+3>e){i+="%",n++;continue}var a=ts(t,n+1);if(a!=a){i+=r,n++;continue}n+=2;var s=to(a);if(0===s)r=J(a);else{if(1===s||s>4){i+="�",n++;continue}for(var o=[a],l=1;l<s&&!(++n+3>e)&&"%"===G(t,n);){var c=ts(t,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;Y(o,c),n+=2,l++}if(o.length!==s){i+="�";continue}var u=tl(o);null===u?i+="�":r=q(u)}}i+=r,n++}return i},tu=/[!'()~]|%20/g,th={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},td=function(t){return th[t]},tf=function(t){return X($(t),tu,td)},tp=_(function(t,e){z(this,{type:N,target:D(t).entries,index:0,kind:e})},M,function(){var t=W(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,I(void 0,!0);var n=e[i];switch(t.kind){case"keys":return I(n.key,!1);case"values":return I(n.value,!1)}return I([n.key,n.value],!1)},!0),t_=function(t){this.entries=[],this.url=null,void 0!==t&&(S(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===G(t,0)?ti(t,1):t:A(t)))};t_.prototype={type:M,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,i,n,r,a,s,l,c=this.entries,u=O(t);if(u)for(i=(e=P(t,u)).next;!(n=o(i,e)).done;){if((s=o(a=(r=P(k(n.value))).next,r)).done||(l=o(a,r)).done||!o(a,r).done)throw new K("Expected sequence with length 2");Y(c,{key:A(s.value),value:A(l.value)})}else for(var h in t)y(t,h)&&Y(c,{key:h,value:A(t[h])})},parseQuery:function(t){if(t)for(var e,i,n=this.entries,r=te(t,"&"),a=0;a<r.length;)(e=r[a++]).length&&Y(n,{key:tc(Q(i=te(e,"="))),value:tc(H(i,"="))})},serialize:function(){for(var t,e=this.entries,i=[],n=0;n<e.length;)Y(i,tf((t=e[n++]).key)+"="+tf(t.value));return H(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var tv=function(){m(this,tm);var t=arguments.length>0?arguments[0]:void 0,e=z(this,new t_(t));c||(this.size=e.entries.length)},tm=tv.prototype;if(f(tm,{append:function(t,e){var i=D(this);E(arguments.length,2),Y(i.entries,{key:A(t),value:A(e)}),!c&&this.length++,i.updateURL()},delete:function(t){for(var e=D(this),i=E(arguments.length,1),n=e.entries,r=A(t),a=i<2?void 0:arguments[1],s=void 0===a?a:A(a),o=0;o<n.length;){var l=n[o];if(l.key===r&&(void 0===s||l.value===s)){if(tt(n,o,1),void 0!==s)break}else o++}c||(this.size=n.length),e.updateURL()},get:function(t){var e=D(this).entries;E(arguments.length,1);for(var i=A(t),n=0;n<e.length;n++)if(e[n].key===i)return e[n].value;return null},getAll:function(t){var e=D(this).entries;E(arguments.length,1);for(var i=A(t),n=[],r=0;r<e.length;r++)e[r].key===i&&Y(n,e[r].value);return n},has:function(t){for(var e=D(this).entries,i=E(arguments.length,1),n=A(t),r=i<2?void 0:arguments[1],a=void 0===r?r:A(r),s=0;s<e.length;){var o=e[s++];if(o.key===n&&(void 0===a||o.value===a))return!0}return!1},set:function(t,e){var i,n=D(this);E(arguments.length,1);for(var r=n.entries,a=!1,s=A(t),o=A(e),l=0;l<r.length;l++)(i=r[l]).key===s&&(a?tt(r,l--,1):(a=!0,i.value=o));a||Y(r,{key:s,value:o}),c||(this.size=r.length),n.updateURL()},sort:function(){var t=D(this);T(t.entries,function(t,e){return t.key>e.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,i=D(this).entries,n=w(t,arguments.length>1?arguments[1]:void 0),r=0;r<i.length;)n((e=i[r++]).value,e.key,this)},keys:function(){return new tp(this,"keys")},values:function(){return new tp(this,"values")},entries:function(){return new tp(this,"entries")}},{enumerable:!0}),h(tm,R,tm.entries,{name:"entries"}),h(tm,"toString",function(){return D(this).serialize()},{enumerable:!0}),c&&d(tm,"size",{get:function(){return D(this).entries.length},configurable:!0,enumerable:!0}),p(tv,M),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:tv}),!u&&g(j)){var tg=l(B.has),ty=l(B.set),tw=function(t){if(S(t)){var e,i=t.body;if(b(i)===M)return tg(e=t.headers?new j(t.headers):new j,"content-type")||ty(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),C(t,{body:x(0,A(i)),headers:x(0,e)})}return t};if(g(L)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return L(t,arguments.length>1?tw(arguments[1]):{})}}),g(F)){var tb=function(t){return m(this,V),new F(t,arguments.length>1?tw(arguments[1]):{})};V.constructor=tb,tb.prototype=V,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:tb})}}t.exports={URLSearchParams:tv,getState:D}},70957:function(t,e,i){"use strict";var n=i(51200),r=i(26004),a=i(86596),s=i(72888),o=URLSearchParams,l=o.prototype,c=r(l.append),u=r(l.delete),h=r(l.forEach),d=r([].push),f=new o("a=1&a=2&b=3");f.delete("a",1),f.delete("b",void 0),f+""!="a=2"&&n(l,"delete",function(t){var e,i=arguments.length,n=i<2?void 0:arguments[1];if(i&&void 0===n)return u(this,t);var r=[];h(this,function(t,e){d(r,{key:e,value:t})}),s(i,1);for(var o=a(t),l=a(n),f=0,p=0,_=!1,v=r.length;f<v;)e=r[f++],_||e.key===o?(_=!0,u(this,e.key)):p++;for(;p<v;)((e=r[p++]).key!==o||e.value!==l)&&c(this,e.key,e.value)},{enumerable:!0,unsafe:!0})},24551:function(t,e,i){"use strict";var n=i(51200),r=i(26004),a=i(86596),s=i(72888),o=URLSearchParams,l=o.prototype,c=r(l.getAll),u=r(l.has),h=new o("a=1");(h.has("a",2)||!h.has("a",void 0))&&n(l,"has",function(t){var e=arguments.length,i=e<2?void 0:arguments[1];if(e&&void 0===i)return u(this,t);var n=c(this,t);s(e,1);for(var r=a(i),o=0;o<n.length;)if(n[o++]===r)return!0;return!1},{enumerable:!0,unsafe:!0})},45261:function(t,e,i){"use strict";i(79093)},22349:function(t,e,i){"use strict";var n=i(97223),r=i(26004),a=i(22700),s=URLSearchParams.prototype,o=r(s.forEach);!n||"size"in s||a(s,"size",{get:function(){var t=0;return o(this,function(){t++}),t},configurable:!0,enumerable:!0})},92530:function(t,e,i){"use strict";i(21751);var n,r=i(96122),a=i(97223),s=i(19484),o=i(42623),l=i(1480),c=i(26004),u=i(51200),h=i(22700),d=i(14644),f=i(29027),p=i(37135),_=i(41039),v=i(88221),m=i(55321).codeAt,g=i(65660),y=i(86596),w=i(83244),b=i(72888),k=i(79093),S=i(67875),A=S.set,C=S.getterFor("URL"),x=k.URLSearchParams,P=k.getState,O=o.URL,I=o.TypeError,E=o.parseInt,U=Math.floor,T=Math.pow,R=c("".charAt),M=c(/./.exec),N=c([].join),z=c(1..toString),D=c([].pop),W=c([].push),L=c("".replace),F=c([].shift),j=c("".split),V=c("".slice),B=c("".toLowerCase),K=c([].unshift),$="Invalid scheme",J="Invalid host",q="Invalid port",Z=/[a-z]/i,G=/[\d+-.a-z]/i,H=/\d/,Y=/^0x/i,X=/^[0-7]+$/,Q=/^\d+$/,tt=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ti=/[\0\t\n\r #/:<>?@[\\\]^|]/,tn=/^[\u0000-\u0020]+/,tr=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ta=/[\t\n\r]/g,ts=function(t){var e,i,n,r,a,s,o,l=j(t,".");if(l.length&&""===l[l.length-1]&&l.length--,(e=l.length)>4)return t;for(n=0,i=[];n<e;n++){if(""===(r=l[n]))return t;if(a=10,r.length>1&&"0"===R(r,0)&&(a=M(Y,r)?16:8,r=V(r,8===a?1:2)),""===r)s=0;else{if(!M(10===a?Q:8===a?X:tt,r))return t;s=E(r,a)}W(i,s)}for(n=0;n<e;n++)if(s=i[n],n===e-1){if(s>=T(256,5-e))return null}else if(s>255)return null;for(n=0,o=D(i);n<i.length;n++)o+=i[n]*T(256,3-n);return o},to=function(t){var e,i,n,r,a,s,o,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,d=function(){return R(t,h)};if(":"===d()){if(":"!==R(t,1))return;h+=2,u=++c}for(;d();){if(8===c)return;if(":"===d()){if(null!==u)return;h++,u=++c;continue}for(e=i=0;i<4&&M(tt,d());)e=16*e+E(d(),16),h++,i++;if("."===d()){if(0===i||(h-=i,c>6))return;for(n=0;d();){if(r=null,n>0)if("."!==d()||!(n<4))return;else h++;if(!M(H,d()))return;for(;M(H,d());){if(a=E(d(),10),null===r)r=a;else{if(0===r)return;r=10*r+a}if(r>255)return;h++}l[c]=256*l[c]+r,(2==++n||4===n)&&c++}if(4!==n)return;break}if(":"===d()){if(h++,!d())return}else if(d())return;l[c++]=e}if(null!==u)for(s=c-u,c=7;0!==c&&s>0;)o=l[c],l[c--]=l[u+s-1],l[u+--s]=o;else if(8!==c)return;return l},tl=function(t){for(var e=null,i=1,n=null,r=0,a=0;a<8;a++)0!==t[a]?(r>i&&(e=n,i=r),n=null,r=0):(null===n&&(n=a),++r);return r>i?n:e},tc=function(t){var e,i,n,r;if("number"==typeof t){for(i=0,e=[];i<4;i++)K(e,t%256),t=U(t/256);return N(e,".")}if("object"==typeof t){for(i=0,e="",n=tl(t);i<8;i++)(!r||0!==t[i])&&(r&&(r=!1),n===i?(e+=i?":":"::",r=!0):(e+=z(t[i],16),i<7&&(e+=":")));return"["+e+"]"}return t},tu={},th=p({},tu,{" ":1,'"':1,"<":1,">":1,"`":1}),td=p({},th,{"#":1,"?":1,"{":1,"}":1}),tf=p({},td,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),tp=function(t,e){var i=m(t,0);return i>32&&i<127&&!f(e,t)?t:encodeURIComponent(t)},t_={ftp:21,file:null,http:80,https:443,ws:80,wss:443},tv=function(t,e){var i;return 2===t.length&&M(Z,R(t,0))&&(":"===(i=R(t,1))||!e&&"|"===i)},tm=function(t){var e;return t.length>1&&tv(V(t,0,2))&&(2===t.length||"/"===(e=R(t,2))||"\\"===e||"?"===e||"#"===e)},tg={},ty={},tw={},tb={},tk={},tS={},tA={},tC={},tx={},tP={},tO={},tI={},tE={},tU={},tT={},tR={},tM={},tN={},tz={},tD={},tW={},tL=function(t,e,i){var n,r,a,s=y(t);if(e){if(r=this.parse(s))throw new I(r);this.searchParams=null}else{if(void 0!==i&&(n=new tL(i,!0)),r=this.parse(s,null,n))throw new I(r);(a=P(new x)).bindURL(this),this.searchParams=a}};tL.prototype={type:"URL",parse:function(t,e,i){var r=e||tg,a=0,s="",o=!1,l=!1,c=!1;for(t=y(t),e||(this.scheme="",this.username="",this.password="",this.host=null,this.port=null,this.path=[],this.query=null,this.fragment=null,this.cannotBeABaseURL=!1,t=L(t,tn,""),t=L(t,tr,"$1")),u=_(t=L(t,ta,""));a<=u.length;){switch(h=u[a],r){case tg:if(h&&M(Z,h))s+=B(h),r=ty;else{if(e)return $;r=tw;continue}break;case ty:if(h&&(M(G,h)||"+"===h||"-"===h||"."===h))s+=B(h);else if(":"===h){if(e&&(this.isSpecial()!==f(t_,s)||"file"===s&&(this.includesCredentials()||null!==this.port)||"file"===this.scheme&&!this.host))return;if(this.scheme=s,e){this.isSpecial()&&t_[this.scheme]===this.port&&(this.port=null);return}s="","file"===this.scheme?r=tU:this.isSpecial()&&i&&i.scheme===this.scheme?r=tb:this.isSpecial()?r=tC:"/"===u[a+1]?(r=tk,a++):(this.cannotBeABaseURL=!0,W(this.path,""),r=tz)}else{if(e)return $;s="",r=tw,a=0;continue}break;case tw:if(!i||i.cannotBeABaseURL&&"#"!==h)return $;if(i.cannotBeABaseURL&&"#"===h){this.scheme=i.scheme,this.path=v(i.path),this.query=i.query,this.fragment="",this.cannotBeABaseURL=!0,r=tW;break}r="file"===i.scheme?tU:tS;continue;case tb:if("/"===h&&"/"===u[a+1])r=tx,a++;else{r=tS;continue}break;case tk:if("/"===h){r=tP;break}r=tN;continue;case tS:if(this.scheme=i.scheme,h===n)this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=v(i.path),this.query=i.query;else if("/"===h||"\\"===h&&this.isSpecial())r=tA;else if("?"===h)this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=v(i.path),this.query="",r=tD;else if("#"===h)this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=v(i.path),this.query=i.query,this.fragment="",r=tW;else{this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,this.path=v(i.path),this.path.length--,r=tN;continue}break;case tA:if(this.isSpecial()&&("/"===h||"\\"===h))r=tx;else if("/"===h)r=tP;else{this.username=i.username,this.password=i.password,this.host=i.host,this.port=i.port,r=tN;continue}break;case tC:if(r=tx,"/"!==h||"/"!==R(s,a+1))continue;a++;break;case tx:if("/"!==h&&"\\"!==h){r=tP;continue}break;case tP:if("@"===h){o&&(s="%40"+s),o=!0,d=_(s);for(var u,h,d,p,m,g,w=0;w<d.length;w++){var b=d[w];if(":"===b&&!c){c=!0;continue}var k=tp(b,tf);c?this.password+=k:this.username+=k}s=""}else if(h===n||"/"===h||"?"===h||"#"===h||"\\"===h&&this.isSpecial()){if(o&&""===s)return"Invalid authority";a-=_(s).length+1,s="",r=tO}else s+=h;break;case tO:case tI:if(e&&"file"===this.scheme){r=tR;continue}if(":"!==h||l)if(h===n||"/"===h||"?"===h||"#"===h||"\\"===h&&this.isSpecial()){if(this.isSpecial()&&""===s)return J;if(e&&""===s&&(this.includesCredentials()||null!==this.port))return;if(p=this.parseHost(s))return p;if(s="",r=tM,e)return;continue}else"["===h?l=!0:"]"===h&&(l=!1),s+=h;else{if(""===s)return J;if(p=this.parseHost(s))return p;if(s="",r=tE,e===tI)return}break;case tE:if(M(H,h))s+=h;else{if(!(h===n||"/"===h||"?"===h||"#"===h||"\\"===h&&this.isSpecial())&&!e)return q;if(""!==s){var S=E(s,10);if(S>65535)return q;this.port=this.isSpecial()&&S===t_[this.scheme]?null:S,s=""}if(e)return;r=tM;continue}break;case tU:if(this.scheme="file","/"===h||"\\"===h)r=tT;else if(i&&"file"===i.scheme)switch(h){case n:this.host=i.host,this.path=v(i.path),this.query=i.query;break;case"?":this.host=i.host,this.path=v(i.path),this.query="",r=tD;break;case"#":this.host=i.host,this.path=v(i.path),this.query=i.query,this.fragment="",r=tW;break;default:tm(N(v(u,a),""))||(this.host=i.host,this.path=v(i.path),this.shortenPath()),r=tN;continue}else{r=tN;continue}break;case tT:if("/"===h||"\\"===h){r=tR;break}i&&"file"===i.scheme&&!tm(N(v(u,a),""))&&(tv(i.path[0],!0)?W(this.path,i.path[0]):this.host=i.host),r=tN;continue;case tR:if(h===n||"/"===h||"\\"===h||"?"===h||"#"===h){if(!e&&tv(s))r=tN;else if(""===s){if(this.host="",e)return;r=tM}else{if(p=this.parseHost(s))return p;if("localhost"===this.host&&(this.host=""),e)return;s="",r=tM}continue}s+=h;break;case tM:if(this.isSpecial()){if(r=tN,"/"!==h&&"\\"!==h)continue}else if(e||"?"!==h)if(e||"#"!==h){if(h!==n&&(r=tN,"/"!==h))continue}else this.fragment="",r=tW;else this.query="",r=tD;break;case tN:if(h===n||"/"===h||"\\"===h&&this.isSpecial()||!e&&("?"===h||"#"===h)){if(".."===(m=B(m=s))||"%2e."===m||".%2e"===m||"%2e%2e"===m?(this.shortenPath(),"/"===h||"\\"===h&&this.isSpecial()||W(this.path,"")):"."===(g=s)||"%2e"===B(g)?"/"===h||"\\"===h&&this.isSpecial()||W(this.path,""):("file"===this.scheme&&!this.path.length&&tv(s)&&(this.host&&(this.host=""),s=R(s,0)+":"),W(this.path,s)),s="","file"===this.scheme&&(h===n||"?"===h||"#"===h))for(;this.path.length>1&&""===this.path[0];)F(this.path);"?"===h?(this.query="",r=tD):"#"===h&&(this.fragment="",r=tW)}else s+=tp(h,td);break;case tz:"?"===h?(this.query="",r=tD):"#"===h?(this.fragment="",r=tW):h!==n&&(this.path[0]+=tp(h,tu));break;case tD:e||"#"!==h?h!==n&&("'"===h&&this.isSpecial()?this.query+="%27":"#"===h?this.query+="%23":this.query+=tp(h,tu)):(this.fragment="",r=tW);break;case tW:h!==n&&(this.fragment+=tp(h,th))}a++}},parseHost:function(t){var e,i,n;if("["===R(t,0)){if("]"!==R(t,t.length-1)||!(e=to(V(t,1,-1))))return J;this.host=e}else if(this.isSpecial()){if(M(te,t=g(t))||null===(e=ts(t)))return J;this.host=e}else{if(M(ti,t))return J;for(n=0,e="",i=_(t);n<i.length;n++)e+=tp(i[n],tu);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return f(t_,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;e&&("file"!==this.scheme||1!==e||!tv(t[0],!0))&&t.length--},serialize:function(){var t=this.scheme,e=this.username,i=this.password,n=this.host,r=this.port,a=this.path,s=this.query,o=this.fragment,l=t+":";return null!==n?(l+="//",this.includesCredentials()&&(l+=e+(i?":"+i:"")+"@"),l+=tc(n),null!==r&&(l+=":"+r)):"file"===t&&(l+="//"),l+=this.cannotBeABaseURL?a[0]:a.length?"/"+N(a,"/"):"",null!==s&&(l+="?"+s),null!==o&&(l+="#"+o),l},setHref:function(t){var e=this.parse(t);if(e)throw new I(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new tF(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+tc(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(y(t)+":",tg)},getUsername:function(){return this.username},setUsername:function(t){var e=_(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<e.length;i++)this.username+=tp(e[i],tf)}},getPassword:function(){return this.password},setPassword:function(t){var e=_(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<e.length;i++)this.password+=tp(e[i],tf)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?tc(t):tc(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,tO)},getHostname:function(){var t=this.host;return null===t?"":tc(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,tI)},getPort:function(){var t=this.port;return null===t?"":y(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=y(t))?this.port=null:this.parse(t,tE))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+N(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,tM))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=y(t))?this.query=null:("?"===R(t,0)&&(t=V(t,1)),this.query="",this.parse(t,tD)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){if(""===(t=y(t))){this.fragment=null;return}"#"===R(t,0)&&(t=V(t,1)),this.fragment="",this.parse(t,tW)},update:function(){this.query=this.searchParams.serialize()||null}};var tF=function(t){var e=d(this,tj),i=b(arguments.length,1)>1?arguments[1]:void 0,n=A(e,new tL(t,!1,i));a||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},tj=tF.prototype,tV=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(a&&(h(tj,"href",tV("serialize","setHref")),h(tj,"origin",tV("getOrigin")),h(tj,"protocol",tV("getProtocol","setProtocol")),h(tj,"username",tV("getUsername","setUsername")),h(tj,"password",tV("getPassword","setPassword")),h(tj,"host",tV("getHost","setHost")),h(tj,"hostname",tV("getHostname","setHostname")),h(tj,"port",tV("getPort","setPort")),h(tj,"pathname",tV("getPathname","setPathname")),h(tj,"search",tV("getSearch","setSearch")),h(tj,"searchParams",tV("getSearchParams")),h(tj,"hash",tV("getHash","setHash"))),u(tj,"toJSON",function(){return C(this).serialize()},{enumerable:!0}),u(tj,"toString",function(){return C(this).serialize()},{enumerable:!0}),O){var tB=O.createObjectURL,tK=O.revokeObjectURL;tB&&u(tF,"createObjectURL",l(tB,O)),tK&&u(tF,"revokeObjectURL",l(tK,O))}w(tF,"URL"),r({global:!0,constructor:!0,forced:!s,sham:!a},{URL:tF})},91634:function(t,e,i){"use strict";i(92530)},98383:function(t,e,i){"use strict";var n=i(96122),r=i(59528);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},6072:function(t,e,i){"use strict";function n(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}i.d(e,{_:()=>n}),i(92037)},69661:function(t,e,i){"use strict";function n(t,e){return e.get?e.get.call(t):e.value}i.d(e,{_:()=>n})},60543:function(t,e,i){"use strict";function n(t,e,i){if(e.set)e.set.call(t,i);else{if(!e.writable)throw TypeError("attempted to set read only private field");e.value=i}}i.d(e,{_:()=>n}),i(92037)},26782:function(t,e,i){"use strict";function n(t,e){if(t!==e)throw TypeError("Private static access of wrong provenance")}i.d(e,{_:()=>n}),i(92037)},75529:function(t,e,i){"use strict";function n(t,e){if(void 0===t)throw TypeError("attempted to "+e+" private static field before its declaration")}i.d(e,{_:()=>n}),i(92037)},33101:function(t,e,i){"use strict";function n(t,e,i){if(!e.has(t))throw TypeError("attempted to "+i+" private field on non-instance");return e.get(t)}i.d(e,{_:()=>n}),i(92037)},34056:function(t,e,i){"use strict";i.d(e,{_:()=>a});var n=i(69661),r=i(33101);function a(t,e){var i=(0,r._)(t,e,"get");return(0,n._)(t,i)}},12499:function(t,e,i){"use strict";i.d(e,{_:()=>r});var n=i(6072);function r(t,e,i){(0,n._)(t,e),e.set(t,i)}},96733:function(t,e,i){"use strict";i.d(e,{_:()=>a});var n=i(60543),r=i(33101);function a(t,e,i){var a=(0,r._)(t,e,"set");return(0,n._)(t,a,i),i}},17970:function(t,e,i){"use strict";function n(t,e,i){if(!e.has(t))throw TypeError("attempted to get private field on non-instance");return i}i.d(e,{_:()=>n}),i(92037)},91412:function(t,e,i){"use strict";i.d(e,{_:()=>r});var n=i(6072);function r(t,e){(0,n._)(t,e),e.add(t)}},92985:function(t,e,i){"use strict";i.d(e,{_:()=>s});var n=i(69661),r=i(26782),a=i(75529);function s(t,e,i){return(0,r._)(t,e),(0,a._)(i,"get"),(0,n._)(t,i)}},17431:function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{_:()=>n})},75044:function(t,e,i){"use strict";i.d(e,{Ly:()=>c,Pm:()=>u,QL:()=>h}),i(13189),i(63277),i(82230),i(27899),i(37389),i(27968),i(46299),i(65223),i(87945),i(56113),i(28419);let n={strict_mfa:{afterMinutes:10,level:"multi_factor"},strict:{afterMinutes:10,level:"second_factor"},moderate:{afterMinutes:60,level:"second_factor"},lax:{afterMinutes:1440,level:"second_factor"}},r=new Set(["first_factor","second_factor","multi_factor"]),a=new Set(["strict_mfa","strict","moderate","lax"]),s=t=>"number"==typeof t&&Number.isFinite(t)&&(-1===t||t>=0),o=t=>t.replace(/^(org:)*/,"org:"),l=(t,e)=>{let{org:i,user:n}=c(t),[r,a]=e.split(":"),s=a||r;return"org"===r?i.includes(s):"user"===r?n.includes(s):[...i,...n].includes(s)},c=t=>{let e=t?t.split(",").map(t=>t.trim()):[];return{org:e.filter(t=>t.split(":")[0].includes("o")).map(t=>t.split(":")[1]),user:e.filter(t=>t.split(":")[0].includes("u")).map(t=>t.split(":")[1])}},u=t=>{let e,i;if(!t)return!1;let s="string"==typeof t&&a.has(t),o="object"==typeof t&&(e=t.level,r.has(e))&&"number"==typeof(i=t.afterMinutes)&&i>0;return(!!s||!!o)&&(t=>"string"==typeof t?n[t]:t).bind(null,t)},h=t=>e=>{let i;return!!t.userId&&(i=[((t,e)=>{let{orgId:i,orgRole:n,orgPermissions:r}=e,a=void 0!==t.role,s=void 0!==t.permission;return a||s?a&&"string"!=typeof t.role||s&&"string"!=typeof t.permission||!i||a&&("string"!=typeof n||!n||o(n)!==o(t.role))||s&&(!Array.isArray(r)||!r.includes(o(t.permission)))?"fail":"pass":"skip"})(e,t),((t,e)=>{let{features:i,plans:n}=e,r=void 0!==t.feature,a=void 0!==t.plan;if(!r&&!a)return"skip";if(r&&"string"!=typeof t.feature||a&&"string"!=typeof t.plan)return"fail";if(r){if("string"!=typeof i||!i)return"fail";try{if(!l(i,t.feature))return"fail"}catch{return"fail"}}if(a){if("string"!=typeof n||!n)return"fail";try{if(!l(n,t.plan))return"fail"}catch{return"fail"}}return"pass"})(e,t),((t,e)=>{let{factorVerificationAge:i}=e;if(void 0===t.reverification)return"skip";if(!i||!Array.isArray(i)||2!==i.length||!s(i[0])||!s(i[1]))return"fail";let n=u(t.reverification);if(!n)return"fail";let{level:r,afterMinutes:a}=n(),[o,l]=i;if(-1===o&&-1===l)return"fail";let c=-1!==o&&a>o,h=-1!==l&&a>l;switch(r){case"first_factor":return c?"pass":"fail";case"second_factor":if(-1===l)return c?"pass":"fail";return h?"pass":"fail";case"multi_factor":if(-1===l)return c?"pass":"fail";if(-1===o)return"fail";return c&&h?"pass":"fail"}})(e,t)]).some(t=>"pass"===t)&&i.every(t=>"pass"===t||"skip"===t)}},88083:function(t,e,i){"use strict";function n(){return"undefined"!=typeof window}i.d(e,{Er:()=>a,TN:()=>s,_f:()=>n,af:()=>o}),i(80194),i(25800),i(56113);let r=RegExp("bot|spider|crawl|APIs-Google|AdsBot|Googlebot|mediapartners|Google Favicon|FeedFetcher|Google-Read-Aloud|DuplexWeb-Google|googleweblight|bing|yandex|baidu|duckduck|yahoo|ecosia|ia_archiver|facebook|instagram|pinterest|reddit|slack|twitter|whatsapp|youtube|semrush","i");function a(){var t,e;let i=n()?null==(t=window)?void 0:t.navigator:null;return!!i&&!((e=null==i?void 0:i.userAgent)&&r.test(e))&&!(null==i?void 0:i.webdriver)}function s(){var t,e,i;let r=n()?null==(t=window)?void 0:t.navigator:null;if(!r)return!1;let a=null==r?void 0:r.onLine;return(null==r||null==(e=r.connection)?void 0:e.rtt)!==0&&(null==r||null==(i=r.connection)?void 0:i.downlink)!==0&&a}function o(){return s()&&a()}},58776:function(t,e,i){"use strict";i.d(e,{TN:()=>n.TN,_f:()=>n._f,af:()=>n.af});var n=i(88083)},78690:function(t,e,i){"use strict";i.d(e,{JF:()=>r,WY:()=>s,mv:()=>n,vO:()=>a});let n=[".lcl.dev",".lclstage.dev",".lclclerk.com"],r=[".accounts.dev",".accountsstage.dev",".accounts.lclclerk.com"],a=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"];function s(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"svg";return"https://img.clerk.com/static/".concat(t,".").concat(e)}},44989:function(t,e,i){"use strict";i.d(e,{W:()=>r}),i(50725);var n=i(95851);let r=()=>{let t=n.Z,e=n.Z;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}}},30474:function(t,e,i){"use strict";function n(t){try{return new Date(t||new Date)}catch{return new Date}}function r(t){let{date:e,relativeTo:i}=t;if(!e||!i)return null;let r=n(e),a=function(t,e){let{absolute:i=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||!e)return 0;let n=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),r=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-n)/864e5);return i?Math.abs(r):r}(n(i),r,{absolute:!1});return a<-6?{relativeDateCase:"other",date:r}:a<-1?{relativeDateCase:"previous6Days",date:r}:-1===a?{relativeDateCase:"lastDay",date:r}:0===a?{relativeDateCase:"sameDay",date:r}:1===a?{relativeDateCase:"nextDay",date:r}:a<7?{relativeDateCase:"next6Days",date:r}:{relativeDateCase:"other",date:r}}function a(t,e){let i=n(t);return i.setFullYear(i.getFullYear()+e),i}i.d(e,{Bc:()=>a,P9:()=>n,lY:()=>r})},31924:function(t,e,i){"use strict";i.d(e,{x6:()=>s,x9:()=>a}),i(13189),i(63277),i(82230),i(27899),i(37389),i(27968),i(46299),i(65223);var n=i(77677);let r=new Set,a=(t,e,i)=>{let a=(0,n.uB)()||(0,n.rx)(),s=null!=i?i:t;r.has(s)||a||(r.add(s),console.warn('Clerk - DEPRECATION WARNING: "'.concat(t,'" is deprecated and will be removed in the next major release.\n').concat(e)))},s=(t,e,i,n)=>{let r=t[e];Object.defineProperty(t,e,{get:()=>(a(e,i,n),r),set(t){r=t}})}},82662:function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t){return function(e){let i=null!=e?e:this;if(!i)throw TypeError("".concat(t.kind||t.name," type guard requires an error object"));if(t.kind&&"object"==typeof i&&null!==i&&"constructor"in i){var n;if((null==(n=i.constructor)?void 0:n.kind)===t.kind)return!0}return i instanceof t}}i.d(e,{G1:()=>R,LO:()=>u,LT:()=>d,Lx:()=>T,N:()=>y,RK:()=>S,UZ:()=>U,Vn:()=>M,W6:()=>v,ZC:()=>I,ay:()=>E,eE:()=>x,gO:()=>p,iR:()=>h,ix:()=>C,kD:()=>_,mh:()=>O,pG:()=>A,sZ:()=>P,t5:()=>g,u$:()=>w,uX:()=>k,w$:()=>b}),i(92037),i(80194),i(25800),i(56113),i(87945),i(99881),i(65223),i(28419);var a,s,o,l,c,u=(a=class{constructor(t){var e,i,r,a,s,o,l;n(this,"code",void 0),n(this,"message",void 0),n(this,"longMessage",void 0),n(this,"meta",void 0);let c={code:t.code,message:t.message,longMessage:t.long_message,meta:{paramName:null==(e=t.meta)?void 0:e.param_name,sessionId:null==(i=t.meta)?void 0:i.session_id,emailAddresses:null==(r=t.meta)?void 0:r.email_addresses,identifiers:null==(a=t.meta)?void 0:a.identifiers,zxcvbn:null==(s=t.meta)?void 0:s.zxcvbn,plan:null==(o=t.meta)?void 0:o.plan,isPlanUpgradePossible:null==(l=t.meta)?void 0:l.is_plan_upgrade_possible}};this.code=c.code,this.message=c.message,this.longMessage=c.longMessage,this.meta=c.meta}},n(a,"kind","ClerkApiError"),a);function h(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.length>0?t.map(t=>new u(t)):[]}function d(t){var e,i,n,r,a,s,o;return{code:(null==t?void 0:t.code)||"",message:(null==t?void 0:t.message)||"",long_message:null==t?void 0:t.longMessage,meta:{param_name:null==t||null==(e=t.meta)?void 0:e.paramName,session_id:null==t||null==(i=t.meta)?void 0:i.sessionId,email_addresses:null==t||null==(n=t.meta)?void 0:n.emailAddresses,identifiers:null==t||null==(r=t.meta)?void 0:r.identifiers,zxcvbn:null==t||null==(a=t.meta)?void 0:a.zxcvbn,plan:null==t||null==(s=t.meta)?void 0:s.plan,is_plan_upgrade_possible:null==t||null==(o=t.meta)?void 0:o.isPlanUpgradePossible}}}r(u);var f=(s=class t extends Error{get name(){return this.constructor.name}toString(){return"[".concat(this.name,"]\nMessage:").concat(this.message)}static formatMessage(t,e,i,n){let r="Clerk:",a=RegExp(r.replace(" ","\\s*"),"i");return e=e.replace(a,""),e="".concat(r," ").concat(e.trim(),'\n\n(code="').concat(i,'")\n\n'),n&&(e+="\n\nDocs: ".concat(n)),e}constructor(e){super(new.target.formatMessage(new.target.kind,e.message,e.code,e.docsUrl),{cause:e.cause}),n(this,"clerkError",!0),n(this,"code",void 0),n(this,"longMessage",void 0),n(this,"docsUrl",void 0),n(this,"cause",void 0),Object.setPrototypeOf(this,t.prototype),this.code=e.code,this.docsUrl=e.docsUrl,this.longMessage=e.longMessage,this.cause=e.cause}},n(s,"kind","ClerkError"),s),p=(o=class t extends f{toString(){let t="[".concat(this.name,"]\nMessage:").concat(this.message,"\nStatus:").concat(this.status,"\nSerialized errors: ").concat(this.errors.map(t=>JSON.stringify(t)));return this.clerkTraceId&&(t+="\nClerk Trace ID: ".concat(this.clerkTraceId)),t}static formatMessage(t,e,i,n){return e}constructor(e,i){let{data:r,status:a,clerkTraceId:s,retryAfter:o}=i;super({...i,message:e,code:"api_response_error"}),n(this,"status",void 0),n(this,"clerkTraceId",void 0),n(this,"retryAfter",void 0),n(this,"errors",void 0),Object.setPrototypeOf(this,t.prototype),this.status=a,this.clerkTraceId=s,this.retryAfter=o,this.errors=(r||[]).map(t=>new u(t))}},n(o,"kind","ClerkAPIResponseError"),o);let _=r(p);var v=(n(l=class t extends p{static is(e){return _(e)&&e.status===t.STATUS&&e.errors.length>0&&e.errors[0].code===t.ERROR_CODE}},"kind","MissingExpiredTokenError"),n(l,"ERROR_CODE","missing_expired_token"),n(l,"STATUS",422),l);let m=Object.freeze({InvalidProxyUrlErrorMessage:"The proxyUrl passed to Clerk is invalid. The expected value for proxyUrl is an absolute URL or a relative path with a leading '/'. (key={{url}})",InvalidPublishableKeyErrorMessage:"The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})",MissingPublishableKeyErrorMessage:"Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingSecretKeyErrorMessage:"Missing secretKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingClerkProvider:"{{source}} can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider"});function g(t){let{packageName:e,customMessages:i}=t,n=e;function r(t,e){if(!e)return"".concat(n,": ").concat(t);let i=t;for(let n of t.matchAll(/{{([a-zA-Z0-9-_]+)}}/g)){let t=(e[n[1]]||"").toString();i=i.replace("{{".concat(n[1],"}}"),t)}return"".concat(n,": ").concat(i)}let a={...m,...i};return{setPackageName(t){let{packageName:e}=t;return"string"==typeof e&&(n=e),this},setMessages(t){let{customMessages:e}=t;return Object.assign(a,e||{}),this},throwInvalidPublishableKeyError(t){throw Error(r(a.InvalidPublishableKeyErrorMessage,t))},throwInvalidProxyUrl(t){throw Error(r(a.InvalidProxyUrlErrorMessage,t))},throwMissingPublishableKeyError(){throw Error(r(a.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw Error(r(a.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(t){throw Error(r(a.MissingClerkProvider,t))},throw(t){throw Error(r(t))}}}var y=class t extends Error{constructor(e){super(e),n(this,"code",void 0),this.code=e,this.name="EmailLinkError",Object.setPrototypeOf(this,t.prototype)}};let w={Expired:"expired",Failed:"failed",ClientMismatch:"client_mismatch"};var b=(c=class t extends f{constructor(e,i){super({...i,message:e}),n(this,"clerkRuntimeError",!0),Object.setPrototypeOf(this,t.prototype)}},n(c,"kind","ClerkRuntimeError"),c);let k=r(b);var S=class extends b{constructor(t,{code:e}){super(t,{code:e}),n(this,"code",void 0),this.code=e}};function A(t){return["captcha_invalid","captcha_not_enabled","captcha_missing_token"].includes(t.errors[0].code)}function C(t){let e=null==t?void 0:t.status;return!!e&&e>=400&&e<500}function x(t){return("".concat(t.message).concat(t.name)||"").toLowerCase().replace(/\s+/g,"").includes("networkerror")}function P(t){return _(t)||I(t)||k(t)}function O(t){return k(t)&&"reverification_cancelled"===t.code}function I(t){return"code"in t&&[4001,32602,32603].includes(t.code)&&"message"in t}function E(t){var e,i;return _(t)&&(null==(i=t.errors)||null==(e=i[0])?void 0:e.code)==="user_locked"}function U(t){var e,i;return _(t)&&(null==(i=t.errors)||null==(e=i[0])?void 0:e.code)==="form_password_pwned"}function T(t){var e,i;return _(t)&&(null==(i=t.errors)||null==(e=i[0])?void 0:e.code)==="form_password_compromised"}function R(t){return"EmailLinkError"===t.name}function M(t){for(let[e,i]of Object.entries({isClerkAPIResponseError:_,isClerkRuntimeError:k}))Object.assign(t,{[e]:i});return t}},41024:function(t,e,i){"use strict";i.d(e,{G1:()=>n.G1,LO:()=>n.LO,LT:()=>n.LT,Lx:()=>n.Lx,N:()=>n.N,RK:()=>n.RK,UZ:()=>n.UZ,Vn:()=>n.Vn,W6:()=>n.W6,ZC:()=>n.ZC,ay:()=>n.ay,eE:()=>n.eE,gO:()=>n.gO,iR:()=>n.iR,ix:()=>n.ix,kD:()=>n.kD,mh:()=>n.mh,pG:()=>n.pG,sZ:()=>n.sZ,t5:()=>n.t5,u$:()=>n.u$,uX:()=>n.uX,w$:()=>n.w$});var n=i(82662)},49836:function(t,e,i){"use strict";i.d(e,{n:()=>s}),i(79876),i(65223);let n=(t,e,i,n,r)=>{let{notify:a}=r||{},s=t.get(i);s||(s=[],t.set(i,s)),s.push(n),a&&e.has(i)&&n(e.get(i))},r=(t,e,i)=>(t.get(e)||[]).map(t=>t(i)),a=(t,e,i)=>{let n=t.get(e);n&&(i?n.splice(n.indexOf(i)>>>0,1):t.set(e,[]))},s=()=>{let t=new Map,e=new Map,i=new Map;return{on:function(){for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];return n(t,e,...r)},prioritizedOn:function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];return n(i,e,...r)},emit:(n,a)=>{e.set(n,a),r(i,n,a),r(t,n,a)},off:function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return a(t,...i)},prioritizedOff:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return a(i,...e)},internal:{retrieveListeners:e=>t.get(e)||[]}}}},84437:function(t,e,i){"use strict";i.d(e,{S:()=>n}),i(50886);let n=t=>"undefined"!=typeof atob&&"function"==typeof atob?atob(t):"undefined"!=typeof global&&global.Buffer?new global.Buffer(t,"base64").toString():t},57316:function(t,e,i){"use strict";i.d(e,{M:()=>n}),i(50886);let n=t=>"undefined"!=typeof btoa&&"function"==typeof btoa?btoa(t):"undefined"!=typeof global&&global.Buffer?new global.Buffer(t).toString("base64"):t},51848:function(t,e,i){"use strict";i.d(e,{MY:()=>u,P:()=>f,_d:()=>p,kZ:()=>h,mA:()=>d,nQ:()=>l}),i(56113),i(28419),i(92037),i(65223),i(73588),i(75184),i(12100),i(29646),i(67581),i(63782),i(14311),i(72547),i(86936),i(20889),i(54357),i(86775),i(6763),i(87945),i(50725);var n=i(78690),r=i(84437),a=i(57316);let s="pk_live_";function o(t){if(!t.endsWith("$"))return!1;let e=t.slice(0,-1);return!e.includes("$")&&e.includes(".")}function l(t){let e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t=t||"")||!c(t)){if(i.fatal&&!t)throw Error("Publishable key is missing. Ensure that your publishable key is correctly configured. Double-check your environment configuration for your keys, or access them here: https://dashboard.clerk.com/last-active?path=api-keys");if(i.fatal&&!c(t))throw Error("Publishable key not valid.");return null}let n=t.startsWith(s)?"production":"development";try{e=(0,r.S)(t.split("_")[2])}catch{if(i.fatal)throw Error("Publishable key not valid: Failed to decode key.");return null}if(!o(e)){if(i.fatal)throw Error("Publishable key not valid: Decoded key has invalid format.");return null}let a=e.slice(0,-1);return i.proxyUrl?a=i.proxyUrl:"development"!==n&&i.domain&&i.isSatellite&&(a="clerk.".concat(i.domain)),{instanceType:n,frontendApi:a}}function c(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{if(!(t.startsWith(s)||t.startsWith("pk_test_")))return!1;let e=t.split("_");if(3!==e.length)return!1;let i=e[2];if(!i)return!1;return o((0,r.S)(i))}catch{return!1}}function u(){let t=new Map;return{isDevOrStagingUrl:e=>{if(!e)return!1;let i="string"==typeof e?e:e.hostname,r=t.get(i);return void 0===r&&(r=n.vO.some(t=>i.endsWith(t)),t.set(i,r)),r}}}function h(t){return t.startsWith("test_")||t.startsWith("pk_test_")}function d(t){return t.startsWith("live_")||t.startsWith("pk_live_")}async function f(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis.crypto.subtle,i=new TextEncoder().encode(t),n=await e.digest("sha-1",i);return(0,a.M)(String.fromCharCode(...new Uint8Array(n))).replace(/\+/gi,"-").replace(/\//gi,"_").substring(0,8)}let p=(t,e)=>"".concat(t,"_").concat(e)},43227:function(t,e,i){"use strict";i.d(e,{MY:()=>n.MY,P:()=>n.P,_d:()=>n._d,kZ:()=>n.kZ,mA:()=>n.mA,nQ:()=>n.nQ}),i(84437),i(57316);var n=i(51848)},78167:function(t,e,i){"use strict";i.d(e,{v:()=>r});var n=i(19363);async function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,{async:i,defer:r,beforeLoad:a,crossOrigin:s,nonce:o}=e||{};return(0,n.X)(()=>new Promise((e,n)=>{t||n(Error("loadScript cannot be called without a src")),document&&document.body||n(Error("loadScript cannot be called when document does not exist"));let l=document.createElement("script");s&&l.setAttribute("crossorigin",s),l.async=i||!1,l.defer=r||!1,l.addEventListener("load",()=>{l.remove(),e(l)}),l.addEventListener("error",e=>{var i;l.remove(),n(null!=(i=e.error)?i:Error("failed to load script: ".concat(t)))}),l.src=t,l.nonce=o,null==a||a(l),document.body.appendChild(l)}),{shouldRetry:(t,e)=>e<=5})}i(50725),i(92037)},31881:function(t,e,i){"use strict";i.d(e,{k:()=>r}),i(13189),i(63277),i(82230),i(27899),i(37389),i(27968),i(46299),i(65223);let n=new Set,r={warnOnce:t=>{n.has(t)||(n.add(t),console.warn(t))},logOnce:t=>{n.has(t)||(console.log(t),n.add(t))}}},26320:function(t,e,i){"use strict";i.d(e,{A:()=>n}),i(84437),i(57316),i(51848),i(28419),i(91634),i(98383),i(45261),i(70957),i(24551),i(22349),i(65223);let n="__clerk_netlify_cache_bust"},95851:function(t,e,i){"use strict";i.d(e,{Z:()=>n});let n=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i]}},51036:function(t,e,i){"use strict";i.d(e,{W:()=>r});var n=i(88003);function r(){let t,{delayInMs:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{delayInMs:1e3},i=(0,n.Q)(),r=!1,a=()=>{t&&(i.clearTimeout(t),i.cleanup()),r=!0},s=async n=>{r=!1,await n(a),r||(t=i.setTimeout(()=>{s(n)},e))};return{run:s,stop:a}}},19363:function(t,e,i){"use strict";i.d(e,{X:()=>s}),i(50725);let n={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(t,e)=>e<5,retryImmediately:!1,jitter:!0},r=async t=>new Promise(e=>setTimeout(e,t)),a=(t,e)=>e?t*(1+Math.random()):t,s=async function(t){var e;let i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=0,{shouldRetry:l,initialDelay:c,maxDelayBetweenRetries:u,factor:h,retryImmediately:d,jitter:f,onBeforeRetry:p}={...n,...s},_=(e={initialDelay:c,maxDelayBetweenRetries:u,factor:h,jitter:f},i=0,async()=>{let t;await r((t=a(t=e.initialDelay*Math.pow(e.factor,i),e.jitter),Math.min(e.maxDelayBetweenRetries||t,t))),i++});for(;;)try{return await t()}catch(t){if(!l(t,++o))throw t;p&&await p(o),d&&1===o?await r(a(100,f)):await _()}}},64450:function(t,e,i){"use strict";i.d(e,{X:()=>n.X});var n=i(19363)},77677:function(t,e,i){"use strict";i.d(e,{rx:()=>a,uB:()=>r,vf:()=>n});let n=()=>!1,r=()=>!1,a=()=>{try{return!0}catch{}return!1}},26369:function(t,e,i){"use strict";i.d(e,{J6:()=>$,NS:()=>D,Ty:()=>J,Zg:()=>K,nx:()=>V,uT:()=>B}),i(65223),i(50886),i(13189),i(63277),i(82230),i(27899),i(37389),i(27968),i(46299),i(79876),i(91634),i(98383),i(45261),i(70957),i(24551),i(22349),i(50725);var n,r,a,s,o,l,c,u,h,d,f,p,_,v,m,g,y,w,b,k,S,A=i(51848),C=i(45945);function x(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}function P(t,e,i){if(!e.has(t))throw TypeError("attempted to "+i+" private field on non-instance");return e.get(t)}function O(t,e){var i=P(t,e,"get");return i.get?i.get.call(t):i.value}function I(t,e,i){x(t,e),e.set(t,i)}function E(t,e,i){var n=P(t,e,"set");if(n.set)n.set.call(t,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function U(t,e,i){if(!e.has(t))throw TypeError("attempted to get private field on non-instance");return i}function T(t,e){x(t,e),e.add(t)}var R=(n=new WeakMap,r=new WeakMap,a=new WeakSet,class{isEventThrottled(t){let e=Date.now(),i=U(this,a,Z).call(this,t),s=O(this,n).getItem(i);return!(!s||e-s>O(this,r))||(O(this,n).setItem(i,e),!1)}constructor(t){T(this,a),I(this,n,{writable:!0,value:void 0}),I(this,r,{writable:!0,value:864e5}),E(this,n,t)}}),M=(s=new WeakMap,o=new WeakSet,class{getItem(t){return U(this,o,G).call(this)[t]}setItem(t,e){try{let i=U(this,o,G).call(this);i[t]=e,localStorage.setItem(O(this,s),JSON.stringify(i))}catch(t){t instanceof DOMException&&("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&localStorage.length>0&&localStorage.removeItem(O(this,s))}}removeItem(t){try{let e=U(this,o,G).call(this);delete e[t],localStorage.setItem(O(this,s),JSON.stringify(e))}catch{}}static isSupported(){return"undefined"!=typeof window&&!!window.localStorage}constructor(){T(this,o),I(this,s,{writable:!0,value:"clerk_telemetry_throttler"})}}),N=(l=new WeakMap,c=new WeakMap,class{getItem(t){return O(this,l).size>O(this,c)?void O(this,l).clear():O(this,l).get(t)}setItem(t,e){O(this,l).set(t,e)}removeItem(t){O(this,l).delete(t)}constructor(){I(this,l,{writable:!0,value:new Map}),I(this,c,{writable:!0,value:1e4})}});let z=new Set(["error","warn","info","debug","trace"]);var D=(u=new WeakMap,h=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,_=new WeakSet,v=new WeakSet,m=new WeakSet,g=new WeakSet,y=new WeakSet,w=new WeakSet,b=new WeakSet,k=new WeakSet,S=new WeakSet,class{get isEnabled(){var t,e;return!("development"!==O(this,d).instanceType||O(this,u).disabled||"undefined"!=typeof process&&process.env&&(0,C.fQ)(process.env.CLERK_TELEMETRY_DISABLED))&&("undefined"==typeof window||null==(e=window)||null==(t=e.navigator)||!t.webdriver)}get isDebug(){return O(this,u).debug||"undefined"!=typeof process&&process.env&&(0,C.fQ)(process.env.CLERK_TELEMETRY_DEBUG)}record(t){try{let e=U(this,k,tn).call(this,t.event,t.payload);if(U(this,w,te).call(this,e.event,e),!U(this,_,H).call(this,e,t.eventSamplingRate))return;O(this,f).push({kind:"event",value:e}),U(this,g,Q).call(this)}catch(t){console.error("[clerk/telemetry] Error recording telemetry event",t)}}recordLog(t){try{var e;if(!U(this,v,Y).call(this,t))return;let i="string"==typeof(null==t?void 0:t.level)&&z.has(t.level),n="string"==typeof(null==t?void 0:t.message)&&t.message.trim().length>0,r=null,a=null==t?void 0:t.timestamp;if("number"==typeof a||"string"==typeof a){let t=new Date(a);Number.isNaN(t.getTime())||(r=t)}if(!i||!n||null===r){this.isDebug&&"undefined"!=typeof console&&console.warn("[clerk/telemetry] Dropping invalid telemetry log entry",{levelIsValid:i,messageIsValid:n,timestampIsValid:null!==r});return}let s=U(this,b,ti).call(this),o={sdk:s.name,sdkv:s.version,cv:null!=(e=O(this,d).clerkVersion)?e:"",lvl:t.level,msg:t.message,ts:r.toISOString(),pk:O(this,d).publishableKey||null,payload:U(this,S,tr).call(this,t.context)};O(this,f).push({kind:"log",value:o}),U(this,g,Q).call(this)}catch(t){console.error("[clerk/telemetry] Error recording telemetry log entry",t)}}constructor(t){var e,i,n,r,a,s,o;T(this,_),T(this,v),T(this,m),T(this,g),T(this,y),T(this,w),T(this,b),T(this,k),T(this,S),I(this,u,{writable:!0,value:void 0}),I(this,h,{writable:!0,value:void 0}),I(this,d,{writable:!0,value:{}}),I(this,f,{writable:!0,value:[]}),I(this,p,{writable:!0,value:null}),E(this,u,{maxBufferSize:null!=(e=t.maxBufferSize)?e:5,samplingRate:null!=(i=t.samplingRate)?i:1,perEventSampling:null==(n=t.perEventSampling)||n,disabled:null!=(r=t.disabled)&&r,debug:null!=(a=t.debug)&&a,endpoint:"https://clerk-telemetry.com"}),t.clerkVersion||"undefined"!=typeof window?O(this,d).clerkVersion=null!=(s=t.clerkVersion)?s:"":O(this,d).clerkVersion="",O(this,d).sdk=t.sdk,O(this,d).sdkVersion=t.sdkVersion,O(this,d).publishableKey=null!=(o=t.publishableKey)?o:"";let l=(0,A.nQ)(t.publishableKey);l&&(O(this,d).instanceType=l.instanceType),t.secretKey&&(O(this,d).secretKey=t.secretKey.substring(0,16)),E(this,h,new R(M.isSupported()?new M:new N))}});let W="COMPONENT_MOUNTED",L=new Set(["SignIn","SignUp"]);function F(t){return L.has(t)?1:.1}function j(t){return function(e,i,n){var r,a,s;return{event:t,eventSamplingRate:t===W?F(e):.1,payload:{component:e,appearanceProp:!!(null==i?void 0:i.appearance),baseTheme:!!(null==i||null==(r=i.appearance)?void 0:r.baseTheme),elements:!!(null==i||null==(a=i.appearance)?void 0:a.elements),variables:!!(null==i||null==(s=i.appearance)?void 0:s.variables),...n}}}}function V(t,e,i){return j(W)(t,e,i)}function B(t,e,i){return j("COMPONENT_OPENED")(t,e,i)}function K(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{event:W,eventSamplingRate:F(t),payload:{component:t,...e}}}function $(t,e){return{event:"METHOD_CALLED",eventSamplingRate:.1,payload:{method:t,...e}}}function J(t){return{event:"THEME_USAGE",eventSamplingRate:1,payload:function(t){let e;if(!t||"object"!=typeof t)return{};let i=t.theme||t.baseTheme;if(!i)return{};if(Array.isArray(i))for(let t of i){let i=q(t);if(i){e=i;break}}else e=q(i);return{themeName:e}}(t)}}function q(t){return"string"==typeof t?t:"object"==typeof t&&null!==t&&"name"in t&&"string"==typeof t.name?t.name:void 0}function Z(t){let{sk:e,pk:i,payload:n,...r}=t,a={...n,...r};return JSON.stringify(Object.keys({...n,...r}).sort().map(t=>a[t]))}function G(){try{let t=localStorage.getItem(O(this,s));if(!t)return{};return JSON.parse(t)}catch{return{}}}function H(t,e){return this.isEnabled&&!this.isDebug&&U(this,m,X).call(this,t,e)}function Y(t){return!0}function X(t,e){let i=Math.random();return!!(i<=O(this,u).samplingRate&&(!1===O(this,u).perEventSampling||void 0===e||i<=e))&&!O(this,h).isEventThrottled(t)}function Q(){if("undefined"==typeof window)return void U(this,y,tt).call(this);if(O(this,f).length>=O(this,u).maxBufferSize){O(this,p)&&("undefined"!=typeof cancelIdleCallback?cancelIdleCallback(Number(O(this,p))):clearTimeout(Number(O(this,p)))),U(this,y,tt).call(this);return}O(this,p)||("requestIdleCallback"in window?E(this,p,requestIdleCallback(()=>{U(this,y,tt).call(this),E(this,p,null)})):E(this,p,setTimeout(()=>{U(this,y,tt).call(this),E(this,p,null)},0)))}function tt(){let t=[...O(this,f)];if(E(this,f,[]),E(this,p,null),0===t.length)return;let e=t.filter(t=>"event"===t.kind).map(t=>t.value),i=t.filter(t=>"log"===t.kind).map(t=>t.value);e.length>0&&fetch(new URL("/v1/event",O(this,u).endpoint),{headers:{"Content-Type":"application/json"},keepalive:!0,method:"POST",body:JSON.stringify({events:e})}).catch(()=>void 0),i.length>0&&fetch(new URL("/v1/logs",O(this,u).endpoint),{headers:{"Content-Type":"application/json"},keepalive:!0,method:"POST",body:JSON.stringify({logs:i})}).catch(()=>void 0)}function te(t,e){this.isDebug&&(void 0!==console.groupCollapsed?(console.groupCollapsed("[clerk/telemetry]",t),console.log(e),console.groupEnd()):console.log("[clerk/telemetry]",t,e))}function ti(){let t={name:O(this,d).sdk,version:O(this,d).sdkVersion};if("undefined"!=typeof window){let e=window;if(e.Clerk){let i=e.Clerk;if("object"==typeof i&&null!==i&&"constructor"in i&&"function"==typeof i.constructor&&i.constructor.sdkMetadata){let{name:e,version:n}=i.constructor.sdkMetadata;void 0!==e&&(t.name=e),void 0!==n&&(t.version=n)}}}return t}function tn(t,e){var i,n;let r=U(this,b,ti).call(this);return{event:t,cv:null!=(i=O(this,d).clerkVersion)?i:"",it:null!=(n=O(this,d).instanceType)?n:"",sdk:r.name,sdkv:r.version,...O(this,d).publishableKey?{pk:O(this,d).publishableKey}:{},...O(this,d).secretKey?{sk:O(this,d).secretKey}:{},payload:e}}function tr(t){if(null==t||"object"!=typeof t)return null;try{let e=JSON.parse(JSON.stringify(t));if(e&&"object"==typeof e&&!Array.isArray(e))return e;return null}catch{return null}}},67964:function(t,e,i){"use strict";i.d(e,{NS:()=>n.NS,Ty:()=>n.Ty,Zg:()=>n.Zg,nx:()=>n.nx,uT:()=>n.uT}),i(84437),i(57316),i(51848),i(45945);var n=i(26369)},45945:function(t,e,i){"use strict";function n(t){let e=t||"";return e.charAt(0).toUpperCase()+e.slice(1)}function r(t){return t?t.replace(/([-_][a-z])/g,t=>t.toUpperCase().replace(/-|_/,"")):""}function a(t){return t?t.replace(/[A-Z]/g,t=>"_".concat(t.toLowerCase())):""}i.d(e,{MI:()=>n,TD:()=>r,a1:()=>a,aw:()=>l,fQ:()=>c,hF:()=>u,zb:()=>o}),i(56113),i(87945),i(65223),i(93008);let s=t=>{let e=i=>{if(!i)return i;if(Array.isArray(i))return i.map(t=>"object"==typeof t||Array.isArray(t)?e(t):t);let n={...i};for(let i of Object.keys(n)){let r=t(i.toString());r!==i&&(n[r]=n[i],delete n[i]),"object"==typeof n[r]&&(n[r]=e(n[r]))}return n};return e},o=s(a),l=s(r);function c(t){if("boolean"==typeof t)return t;if(null==t)return!1;if("string"==typeof t){if("true"===t.toLowerCase())return!0;if("false"===t.toLowerCase())return!1}let e=parseInt(t,10);return!isNaN(e)&&e>0}function u(t){return Object.entries(t).reduce((t,e)=>{let[i,n]=e;return void 0!==n&&(t[i]=n),t},{})}},72642:function(t,e,i){"use strict";i.d(e,{MI:()=>n.MI,TD:()=>n.TD,a1:()=>n.a1,aw:()=>n.aw,hF:()=>n.hF,zb:()=>n.zb});var n=i(45945)},45040:function(t,e,i){"use strict";i.d(e,{A5:()=>s,xy:()=>a,d5:()=>r,sD:()=>c,LQ:()=>o}),i(45261),i(70957),i(24551),i(22349),i(65223),i(87945),i(56113);var n=i(78690);function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(t||"").replace(/^.+:\/\//,"")}function a(t){let e;if(!t)return"";if(t.match(/^(clerk\.)+\w*$/))e=/(clerk\.)*(?=clerk\.)/;else{if(t.match(/\.clerk.accounts/))return t;e=/^(clerk\.)*/gi}return"clerk.".concat(t.replace(e,""))}function s(t){return n.mv.some(e=>t.startsWith("accounts.")&&t.endsWith(e))}function o(t){return n.JF.some(e=>t.endsWith(e)&&!t.endsWith(".clerk"+e))}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=t=>l.test(t)},92823:function(t,e,i){"use strict";i.d(e,{EB:()=>c,AW:()=>u,WK:()=>s.W,Lu:()=>o,YZ:()=>r,vf:()=>n.vf,ZT:()=>a.Z});var n=i(77677);function r(t,e,i){return"function"==typeof t?t(e):void 0!==t?t:void 0!==i?i:void 0}var a=i(95851),s=i(44989);function o(t){return Promise.all(Array.from(t).map(t=>t.then(t=>({status:"fulfilled",value:t}),t=>({status:"rejected",reason:t}))))}i(50725),i(65223),i(13189),i(63277),i(82230),i(27899),i(37389),i(27968),i(46299),i(92037),i(38062);let l=new Set(["__proto__","constructor","prototype"]),c=(t,e)=>{if(t&&e)for(let i in t)!l.has(i)&&(Object.prototype.hasOwnProperty.call(t,i)&&null!==t[i]&&"object"==typeof t[i]?(void 0===e[i]&&(e[i]=new(Object.getPrototypeOf(t[i])).constructor),c(t[i],e[i])):Object.prototype.hasOwnProperty.call(t,i)&&void 0!==t[i]&&(e[i]=t[i]))};function u(t,e,i){let n,r=new Promise((t,r)=>{var a;null==(a=(n=setTimeout(()=>{let t=Error("Timed out after ".concat(e,"ms"));null==i||i.abort(),r(t)},e)).unref)||a.call(n)});return Promise.race([Promise.resolve(t),r]).finally(()=>{clearTimeout(n)})}},20645:function(t,e,i){"use strict";i.d(e,{C6:()=>s,h_:()=>a,iW:()=>r}),i(50725);var n=i(88083);function r(){return(0,n.Er)()&&"function"==typeof window.PublicKeyCredential}async function a(){try{return r()&&await window.PublicKeyCredential.isConditionalMediationAvailable()}catch{return!1}}async function s(){try{return"undefined"!=typeof window&&await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()}catch{return!1}}},88003:function(t,e,i){"use strict";i.d(e,{Q:()=>s}),i(91634),i(98383),i(45261),i(70957),i(24551),i(22349),i(65223);var n=i(95851),r='const respond=r=>{self.postMessage(r)},workerToTabIds={};self.addEventListener("message",r=>{const e=r.data;switch(e.type){case"setTimeout":workerToTabIds[e.id]=setTimeout(()=>{respond({id:e.id}),delete workerToTabIds[e.id]},e.ms);break;case"clearTimeout":workerToTabIds[e.id]&&(clearTimeout(workerToTabIds[e.id]),delete workerToTabIds[e.id]);break;case"setInterval":workerToTabIds[e.id]=setInterval(()=>{respond({id:e.id})},e.ms);break;case"clearInterval":workerToTabIds[e.id]&&(clearInterval(workerToTabIds[e.id]),delete workerToTabIds[e.id]);break}});\n';let a=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"==typeof Worker)return null;try{let i=new Blob([t],{type:"application/javascript; charset=utf-8"}),n=globalThis.URL.createObjectURL(i);return new Worker(n,e)}catch{return console.warn("Clerk: Cannot create worker from blob. Consider adding worker-src blob:; to your CSP"),null}},s=()=>{let t=0,e=()=>t++,i=new Map,s=(t,e)=>null==t?void 0:t.postMessage(e),o=t=>{var e;null==(e=i.get(t.data.id))||e()},l=a(r,{name:"clerk-timers"});if(null==l||l.addEventListener("message",o),!l)return{setTimeout:globalThis.setTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),cleanup:n.Z};let c=()=>{l||null==(l=a(r,{name:"clerk-timers"}))||l.addEventListener("message",o)};return{setTimeout:(t,n)=>{c();let r=e();return i.set(r,()=>{t(),i.delete(r)}),s(l,{type:"setTimeout",id:r,ms:n}),r},setInterval:(t,n)=>{c();let r=e();return i.set(r,t),s(l,{type:"setInterval",id:r,ms:n}),r},clearTimeout:t=>{c(),i.delete(t),s(l,{type:"clearTimeout",id:t})},clearInterval:t=>{c(),i.delete(t),s(l,{type:"clearInterval",id:t})},cleanup:()=>{l&&(l.terminate(),l=null,i.clear())}}}}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var a=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=t,i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},(()=>{var t,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;i.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var a=Object.create(null);i.r(a);var s={};t=t||[null,e({}),e([]),e(e)];for(var o=2&r&&n;"object"==typeof o&&!~t.indexOf(o);o=e(o))Object.getOwnPropertyNames(o).forEach(t=>{s[t]=()=>n[t]});return s.default=()=>n,i.d(a,s),a}})(),i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.f={},i.e=t=>Promise.all(Object.keys(i.f).reduce((e,n)=>(i.f[n](t,e),e),[])),i.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),i.u=t=>""+(({1033:"planDetails",1192:"vendors",1199:"cookieSuffix",1642:"revoke-api-key-modal",1710:"signup",1861:"waitlist",196:"taskResetPassword",2211:"prefetchorganizationlist",2270:"userbutton",2809:"up-api-keys-page",3158:"organizationlist",3219:"pricingTable",344:"framework",3470:"userprofile",378:"impersonationfab",3875:"blankcaptcha",3956:"coinbase-wallet-sdk",4283:"useravatar",4307:"keylessPrompt",4616:"apiKeys",4780:"organizationswitcher",5096:"createorganization",514:"base-account-sdk",5672:"copy-api-key-modal",569:"web3-solana-wallet-buttons",6298:"query-core-vendors",6511:"op-plans-page",6708:"zxcvbn-ts-core",6722:"signin",6916:"op-billing-page",6965:"subscriptionDetails",7150:"op-api-keys-page",7210:"enableOrganizationsPrompt",7325:"zxcvbn-common",7814:"taskChooseOrganization",82:"up-billing-page",8237:"checkout",832:"stripe-vendors",8554:"organizationprofile",8662:"userverification",8711:"payment-attempt-page",8776:"oauthConsent",8877:"sessionTasks",9177:"statement-page",9573:"ui-common",9607:"taskSetupMFA",99:"up-plans-page",9920:"onetap"})[t]||t)+"_clerk.legacy.browser_"+i.h().slice(0,6)+"_5.127.2.js",i.h=()=>"6070dd6545d576dd",i.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}})(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={},e="@clerk/clerk-js:";i.l=function(n,r,a,s){if(t[n])return void t[n].push(r);if(void 0!==a)for(var o,l,c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var h=c[u];if(h.getAttribute("src")==n||h.getAttribute("data-webpack")==e+a){o=h;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,i.nc&&o.setAttribute("nonce",i.nc),o.setAttribute("data-webpack",e+a),o.src=n),t[n]=[r];var d=function(e,i){o.onerror=o.onload=null,clearTimeout(f);var r=t[n];if(delete t[n],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(t){return t(i)}),e)return e(i)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),l&&document.head.appendChild(o)}})(),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{i.g.importScripts&&(t=i.g.location+"");var t,e=i.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw Error("Automatic publicPath is not supported in this browser");i.p=t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")})(),(()=>{var t={2899:0};i.f.j=function(e,n){var r=i.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise((i,n)=>r=t[e]=[i,n]);n.push(r[2]=a);var s=i.p+i.u(e),o=Error();i.l(s,function(n){if(i.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+e+" failed.\n("+a+": "+s+")",o.name="ChunkLoadError",o.type=a,o.request=s,r[1](o)}},"chunk-"+e,e)}};var e=(e,n)=>{var r,a,[s,o,l]=n,c=0;if(s.some(e=>0!==t[e])){for(r in o)i.o(o,r)&&(i.m[r]=o[r]);l&&l(i)}for(e&&e(n);c<s.length;c++)a=s[c],i.o(t,a)&&t[a]&&t[a][0](),t[a]=0},n=globalThis.webpackChunk_clerk_clerk_js=globalThis.webpackChunk_clerk_clerk_js||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),i(56500)})());
|