@clerk/ui 1.0.0-snapshot.v20251218165926 → 1.0.0-snapshot.v20251224145055

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/207_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  2. package/dist/217_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  3. package/dist/360_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  4. package/dist/444_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  5. package/dist/573_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  6. package/dist/970_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  7. package/dist/ClerkUi.js +2 -2
  8. package/dist/apiKeys_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  9. package/dist/blankcaptcha_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  10. package/dist/checkout_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  11. package/dist/{checkout_ui_17c90e_1.0.0-snapshot.v20251218165926.js → checkout_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +1 -1
  12. package/dist/components/Checkout/CheckoutPage.js +1 -1
  13. package/dist/components/Checkout/CheckoutPage.js.map +1 -1
  14. package/dist/components/Checkout/parts.js +1 -1
  15. package/dist/components/Checkout/parts.js.map +1 -1
  16. package/dist/components/UserProfile/Web3Form.js +32 -45
  17. package/dist/components/UserProfile/Web3Form.js.map +1 -1
  18. package/dist/components/UserProfile/Web3Section.js +6 -3
  19. package/dist/components/UserProfile/Web3Section.js.map +1 -1
  20. package/dist/copy-api-key-modal_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  21. package/dist/createorganization_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  22. package/dist/enableOrganizationsPrompt_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  23. package/dist/foundations/defaultFoundations.d.ts +153 -153
  24. package/dist/framework_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  25. package/dist/impersonationfab_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  26. package/dist/index.js +1 -1
  27. package/dist/internal/index.js +1 -1
  28. package/dist/keylessPrompt_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  29. package/dist/lazyModules/components.d.ts +20 -20
  30. package/dist/oauthConsent_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  31. package/dist/onetap_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  32. package/dist/op-api-keys-page_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  33. package/dist/op-billing-page_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  34. package/dist/op-plans-page_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  35. package/dist/organizationlist_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  36. package/dist/organizationprofile_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  37. package/dist/organizationswitcher_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  38. package/dist/payment-attempt-page_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  39. package/dist/planDetails_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  40. package/dist/prefetchorganizationlist_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  41. package/dist/pricingTable_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  42. package/dist/revoke-api-key-modal_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  43. package/dist/sessionTasks_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  44. package/dist/signin_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  45. package/dist/signup_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  46. package/dist/statement-page_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  47. package/dist/subscriptionDetails_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  48. package/dist/taskChooseOrganization_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  49. package/dist/taskResetPassword_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  50. package/dist/ui-common_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  51. package/dist/{ui-common_ui_17c90e_1.0.0-snapshot.v20251218165926.js → ui-common_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +7 -7
  52. package/dist/ui.browser.js +3 -3
  53. package/dist/ui.legacy.browser.js +1 -0
  54. package/dist/up-api-keys-page_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  55. package/dist/up-billing-page_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  56. package/dist/up-plans-page_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  57. package/dist/useravatar_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  58. package/dist/userbutton_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  59. package/dist/userprofile_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  60. package/dist/{userprofile_ui_17c90e_1.0.0-snapshot.v20251218165926.js → userprofile_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +2 -2
  61. package/dist/userverification_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  62. package/dist/utils/errorHandler.js +1 -7
  63. package/dist/utils/errorHandler.js.map +1 -1
  64. package/dist/vendors_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  65. package/dist/{vendors_ui_17c90e_1.0.0-snapshot.v20251218165926.js → vendors_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +1 -1
  66. package/dist/waitlist_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  67. package/dist/web3-solana-wallet-buttons_ui_d60088_1.0.0-snapshot.v20251224145055.js +1 -0
  68. package/dist/{web3-solana-wallet-buttons_ui_17c90e_1.0.0-snapshot.v20251218165926.js → web3-solana-wallet-buttons_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +3 -3
  69. package/package.json +8 -5
  70. /package/dist/{207_ui_17c90e_1.0.0-snapshot.v20251218165926.js → 207_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  71. /package/dist/{217_ui_17c90e_1.0.0-snapshot.v20251218165926.js → 217_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  72. /package/dist/{360_ui_17c90e_1.0.0-snapshot.v20251218165926.js → 360_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  73. /package/dist/{444_ui_17c90e_1.0.0-snapshot.v20251218165926.js → 444_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  74. /package/dist/{573_ui_17c90e_1.0.0-snapshot.v20251218165926.js → 573_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  75. /package/dist/{970_ui_17c90e_1.0.0-snapshot.v20251218165926.js → 970_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  76. /package/dist/{apiKeys_ui_17c90e_1.0.0-snapshot.v20251218165926.js → apiKeys_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  77. /package/dist/{blankcaptcha_ui_17c90e_1.0.0-snapshot.v20251218165926.js → blankcaptcha_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  78. /package/dist/{copy-api-key-modal_ui_17c90e_1.0.0-snapshot.v20251218165926.js → copy-api-key-modal_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  79. /package/dist/{createorganization_ui_17c90e_1.0.0-snapshot.v20251218165926.js → createorganization_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  80. /package/dist/{enableOrganizationsPrompt_ui_17c90e_1.0.0-snapshot.v20251218165926.js → enableOrganizationsPrompt_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  81. /package/dist/{framework_ui_17c90e_1.0.0-snapshot.v20251218165926.js → framework_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  82. /package/dist/{impersonationfab_ui_17c90e_1.0.0-snapshot.v20251218165926.js → impersonationfab_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  83. /package/dist/{keylessPrompt_ui_17c90e_1.0.0-snapshot.v20251218165926.js → keylessPrompt_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  84. /package/dist/{oauthConsent_ui_17c90e_1.0.0-snapshot.v20251218165926.js → oauthConsent_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  85. /package/dist/{onetap_ui_17c90e_1.0.0-snapshot.v20251218165926.js → onetap_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  86. /package/dist/{op-api-keys-page_ui_17c90e_1.0.0-snapshot.v20251218165926.js → op-api-keys-page_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  87. /package/dist/{op-billing-page_ui_17c90e_1.0.0-snapshot.v20251218165926.js → op-billing-page_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  88. /package/dist/{op-plans-page_ui_17c90e_1.0.0-snapshot.v20251218165926.js → op-plans-page_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  89. /package/dist/{organizationlist_ui_17c90e_1.0.0-snapshot.v20251218165926.js → organizationlist_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  90. /package/dist/{organizationprofile_ui_17c90e_1.0.0-snapshot.v20251218165926.js → organizationprofile_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  91. /package/dist/{organizationswitcher_ui_17c90e_1.0.0-snapshot.v20251218165926.js → organizationswitcher_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  92. /package/dist/{payment-attempt-page_ui_17c90e_1.0.0-snapshot.v20251218165926.js → payment-attempt-page_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  93. /package/dist/{planDetails_ui_17c90e_1.0.0-snapshot.v20251218165926.js → planDetails_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  94. /package/dist/{prefetchorganizationlist_ui_17c90e_1.0.0-snapshot.v20251218165926.js → prefetchorganizationlist_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  95. /package/dist/{pricingTable_ui_17c90e_1.0.0-snapshot.v20251218165926.js → pricingTable_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  96. /package/dist/{revoke-api-key-modal_ui_17c90e_1.0.0-snapshot.v20251218165926.js → revoke-api-key-modal_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  97. /package/dist/{sessionTasks_ui_17c90e_1.0.0-snapshot.v20251218165926.js → sessionTasks_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  98. /package/dist/{signin_ui_17c90e_1.0.0-snapshot.v20251218165926.js → signin_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  99. /package/dist/{signup_ui_17c90e_1.0.0-snapshot.v20251218165926.js → signup_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  100. /package/dist/{statement-page_ui_17c90e_1.0.0-snapshot.v20251218165926.js → statement-page_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  101. /package/dist/{subscriptionDetails_ui_17c90e_1.0.0-snapshot.v20251218165926.js → subscriptionDetails_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  102. /package/dist/{taskChooseOrganization_ui_17c90e_1.0.0-snapshot.v20251218165926.js → taskChooseOrganization_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  103. /package/dist/{taskResetPassword_ui_17c90e_1.0.0-snapshot.v20251218165926.js → taskResetPassword_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  104. /package/dist/{up-api-keys-page_ui_17c90e_1.0.0-snapshot.v20251218165926.js → up-api-keys-page_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  105. /package/dist/{up-billing-page_ui_17c90e_1.0.0-snapshot.v20251218165926.js → up-billing-page_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  106. /package/dist/{up-plans-page_ui_17c90e_1.0.0-snapshot.v20251218165926.js → up-plans-page_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  107. /package/dist/{useravatar_ui_17c90e_1.0.0-snapshot.v20251218165926.js → useravatar_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  108. /package/dist/{userbutton_ui_17c90e_1.0.0-snapshot.v20251218165926.js → userbutton_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  109. /package/dist/{userverification_ui_17c90e_1.0.0-snapshot.v20251218165926.js → userverification_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
  110. /package/dist/{waitlist_ui_17c90e_1.0.0-snapshot.v20251218165926.js → waitlist_ui_fb7cb6_1.0.0-snapshot.v20251224145055.js} +0 -0
@@ -11,7 +11,7 @@ print-color-adjust: exact !important;
11
11
  opacity: 0;
12
12
  }
13
13
  }
14
- `}),(0,n.Y)(s.so,{align:"center",justify:"center",sx:()=>({animation:"caret-blink-animation 1s infinite",pointerEvents:"none",position:"absolute",inset:0}),children:(0,n.Y)(s.az,{sx:e=>({height:e.space.$4,width:e.space.$px,backgroundColor:e.colors.$colorInputForeground})})})]})}},374:function(e,t,r){r.d(t,{J2:()=>c,bQ:()=>l});var n=r(4518);r(5074);var o=r(8272),a=r(8920),i=r(8819);let l=e=>{let{headers:t,page:r,onPageChange:l,rows:c,isLoading:d,itemCount:u,itemsPerPage:p,pageCount:m,emptyStateLocalizationKey:h}=e,f=u>0?Math.max(0,(r-1)*p)+1:0,g=Math.min(r*p,u);return(0,n.FD)(o.fv,{gap:4,sx:{width:"100%"},children:[(0,n.Y)(o.so,{sx:e=>({overflowX:"auto",padding:e.space.$1}),children:(0,n.FD)(o.XI,{sx:{tableLayout:"fixed"},children:[(0,n.Y)(o.d8,{children:(0,n.Y)(o.Tr,{children:t.map((e,t)=>(0,n.Y)(o.Th,{elementDescriptor:a.$z.tableHead,localizationKey:e,sx:{width:0===t?"auto":"25%"}},t))})}),(0,n.Y)(o.NN,{children:d?(0,n.Y)(o.Tr,{children:(0,n.Y)(o.Td,{colSpan:4,children:(0,n.Y)(o.y$,{colorScheme:"primary",sx:{margin:"auto",display:"block"},elementDescriptor:a.$z.spinner})})}):c.length?c:(0,n.Y)(s,{localizationKey:h},"empty")})]})}),m>1&&(0,n.Y)(i.d,{count:m,page:r,onChange:l,siblingCount:1,rowInfo:{allRowsCount:u,startingRow:f,endingRow:g}})]})},s=e=>(0,n.Y)(o.Tr,{children:(0,n.Y)(o.Td,{colSpan:4,children:(0,n.Y)(o.EY,{localizationKey:e.localizationKey,sx:{margin:"auto",display:"block",width:"fit-content"}})})}),c=e=>(0,n.Y)(o.Tr,{...e,sx:e=>({":hover":{backgroundColor:e.colors.$neutralAlpha50}})})},846:function(e,t,r){r.d(t,{$:()=>i,t:()=>l});var n=r(4518),o=r(8272),a=r(180);let i=e=>{let{gradient:t=60}=e,{showDevModeNotice:r}=(0,a.Q)();return r?(0,n.Y)(o.az,{sx:e=>({userSelect:"none",pointerEvents:"none",inset:0,position:"absolute",background:`repeating-linear-gradient(-45deg,${e.colors.$warningAlpha100},${e.colors.$warningAlpha100} 6px,${e.colors.$warningAlpha150} 6px,${e.colors.$warningAlpha150} 12px)`,maskImage:`linear-gradient(transparent ${t}%, black)`})}):null},l=e=>{let{sx:t}=e,{showDevModeNotice:r}=(0,a.Q)();return r?(0,n.Y)(o.EY,{sx:[e=>({color:e.colors.$warning500,fontWeight:e.fontWeights.$semibold,padding:e.space.$1x5}),t],children:"Development mode"}):null}},6505:function(e,t,r){r.d(t,{G:()=>s,c:()=>l});var n=r(4518),o=r(8272),a=r(8920),i=r(2861);let l=e=>{let{dividerText:t,...r}=e;return(0,n.FD)(o.so,{center:!0,elementDescriptor:a.$z.dividerRow,...r,children:[(0,n.Y)(c,{}),(0,n.Y)(o.EY,{localizationKey:t||(0,i.G)("dividerText"),elementDescriptor:a.$z.dividerText,variant:"body",colorScheme:"secondary",sx:e=>({margin:`0 ${e.space.$4}`})}),(0,n.Y)(c,{})]})},s=e=>{let{sx:t,...r}=e;return(0,n.Y)(o.so,{center:!0,direction:"col",elementDescriptor:a.$z.dividerColumn,sx:[e=>({height:e.space.$6}),t],...r,children:(0,n.Y)(c,{vertical:!0})})},c=e=>{let t=e?.vertical?{width:"1px"}:{height:"1px"};return(0,n.Y)(o.so,{elementDescriptor:a.$z.dividerLine,sx:e=>({flex:"1",backgroundColor:e.colors.$borderAlpha100,...t})})}},8532:function(e,t,r){r.d(t,{g:()=>v,Drawer:()=>P});var n=r(4518),o=r(1210),a=r(2119),i=r(5074),l=r(8272),s=r(8920),c=r(6580),d=r(4091),u=r(8792),p=r(359),m=r(5057),h=r(1464),f=r(4620),g=r(155);let b=i.createContext(null),v=()=>{let e=i.useContext(b);if(!e)throw Error("Drawer components must be wrapped in <Drawer.Root>");return e},y=i.forwardRef(function(e,t){let{strategy:r}=v(),{disableScrollLock:a,enableScrollLock:i}=(0,u.K)();return(0,o.UQ)(()=>{if("fixed"===r)return i(),()=>{a()}},[r,a,i]),(0,n.Y)(l.az,{ref:t,...e,elementDescriptor:s.$z.drawerBackdrop,sx:[e=>({inset:0,backgroundColor:f.T.setAlpha(e.colors.$colorBackground,.28)}),e.sx]})}),w=i.forwardRef((e,t)=>{let{strategy:r,context:o}=v(),{isMounted:i,styles:l}=(0,a.DL)(o,{initial:{opacity:0},open:{opacity:1},close:{opacity:0},common:{position:r,inset:0,transitionProperty:"opacity",transitionTimingFunction:d._8.bezier},duration:d.wz.drawer});return i?(0,n.Y)(y,{ref:t,style:{...l}}):null});w.displayName="Drawer.Overlay";let $=i.forwardRef(({children:e},t)=>{let r=(0,p.j)(),{animations:o}=(0,c.K)().parsedOptions,{strategy:i,refs:u,context:m,getFloatingProps:h,direction:f}=v(),g=(0,a.SV)([t,u.setFloating]),{isMounted:b,styles:y}=(0,a.DL)(m,{initial:{transform:"translate3d(var(--transform-offset), 0, 0)"},open:{transform:"translate3d(0, 0, 0)"},close:{transform:"translate3d(var(--transform-offset), 0, 0)"},common:{transitionProperty:"transform",transitionTimingFunction:d._8.bezier},duration:r||!0!==o?0:d.wz.drawer});return b?(0,n.Y)(a.s3,{context:m,modal:!0,outsideElementsInert:!0,initialFocus:u.floating,children:(0,n.Y)(l.az,{ref:g,...h(),sx:e=>({position:i,insetBlock:0,insetInline:0,pointerEvents:"none",isolation:"isolate",zIndex:"absolute"===i?e.zIndices.$modal:void 0}),elementDescriptor:s.$z.drawerRoot,children:(0,n.Y)(l.so,{elementDescriptor:s.$z.drawerContent,style:y,direction:"col",sx:e=>({"--transform-offset":"fixed"===i?`calc((100% + ${e.space.$3} + ${e.space.$8x75}) * ${"rtl"===f?-1:1})`:`calc((100% + ${e.space.$8x75}) * ${"rtl"===f?-1:1})`,willChange:"transform",position:i,insetBlock:"fixed"===i?e.space.$3:0,insetInlineEnd:"fixed"===i?e.space.$3:0,outline:0,width:e.sizes.$100,maxWidth:"fixed"===i?`calc(100% - ${e.space.$6})`:"100%",backgroundColor:e.colors.$colorBackground,borderStartStartRadius:e.radii.$lg,borderEndStartRadius:e.radii.$lg,borderEndEndRadius:"fixed"===i?e.radii.$lg:0,borderStartEndRadius:"fixed"===i?e.radii.$lg:0,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,overflow:"hidden",pointerEvents:"auto"}),children:e})})}):null});$.displayName="Drawer.Content";let x=i.forwardRef(({title:e,children:t,sx:r},o)=>(0,n.Y)(l.az,{ref:o,elementDescriptor:s.$z.drawerHeader,as:"header",sx:[t=>({display:"flex",background:h.s.mergedColorsBackground(f.T.setAlpha(t.colors.$colorBackground,1),t.colors.$neutralAlpha50),borderBlockEndWidth:t.borderWidths.$normal,borderBlockEndStyle:t.borderStyles.$solid,borderBlockEndColor:t.colors.$borderAlpha150,borderStartStartRadius:t.radii.$lg,borderStartEndRadius:t.radii.$lg,paddingBlock:e?t.space.$3:void 0,paddingInline:e?t.space.$4:void 0}),r],children:e?(0,n.FD)(n.FK,{children:[(0,n.Y)(l.DZ,{localizationKey:e,as:"h2",elementDescriptor:s.$z.drawerTitle,textVariant:"h2",sx:{alignSelf:"center"}}),(0,n.Y)(k,{})]}):t})),_=i.forwardRef(({children:e,...t},r)=>(0,n.Y)(l.az,{ref:r,elementDescriptor:s.$z.drawerBody,sx:[()=>({display:"flex",flexDirection:"column",flex:1,overflowY:"auto",overflowX:"hidden"}),t.sx],...t,children:e})),S=i.forwardRef(({children:e,sx:t,...r},o)=>(0,n.Y)(l.az,{ref:o,elementDescriptor:s.$z.drawerFooter,sx:[e=>({display:"flex",flexDirection:"column",background:h.s.mergedColorsBackground(f.T.setAlpha(e.colors.$colorBackground,1),e.colors.$neutralAlpha50),borderBlockStartWidth:e.borderWidths.$normal,borderBlockStartStyle:e.borderStyles.$solid,borderBlockStartColor:e.colors.$borderAlpha100,borderEndStartRadius:e.radii.$xl,borderEndEndRadius:e.radii.$xl,paddingBlock:e.space.$3,paddingInline:e.space.$4}),t],...r,children:e})),k=i.forwardRef((e,t)=>{let{setIsOpen:r}=v();return(0,n.Y)(g.K,{ref:t,elementDescriptor:s.$z.drawerClose,variant:"ghost","aria-label":"Close drawer",onClick:()=>r(!1),icon:(0,n.Y)(l.In,{icon:m.A,size:"sm"}),sx:e=>({color:e.colors.$colorMutedForeground,padding:e.space.$3,marginInlineStart:"auto"})})});k.displayName="Drawer.Close";let C=i.forwardRef(({open:e,onOpenChange:t,children:r,actionsSlot:o,roleProps:i},u)=>{let m=(0,p.j)(),{animations:g}=(0,c.K)().parsedOptions,{refs:b,context:v}=(0,a.we)({open:e,onOpenChange:t,transform:!1,strategy:"absolute"}),{getFloatingProps:y}=(0,a.bv)([(0,a.kp)(v),(0,a.s9)(v),(0,a.It)(v,{role:"alertdialog",...i})]),w=(0,a.SV)([u,b.setFloating]),{styles:$}=(0,a.DL)(v,{initial:{opacity:0},open:{opacity:1},close:{opacity:0},common:{transitionProperty:"opacity",transitionTimingFunction:d._8.bezier},duration:d.wz.drawer}),{isMounted:x,styles:_}=(0,a.DL)(v,{initial:{transform:"translate3D(0, 100%, 0)"},open:{transform:"translate3D(0, 0, 0)"},close:{transform:"translate3D(0, 100%, 0)"},common:{transitionProperty:"transform",transitionTimingFunction:d._8.bezier},duration:m||!0!==g?0:d.wz.drawer});return x?(0,n.FD)(n.FK,{children:[(0,n.Y)(l.L9,{elementDescriptor:s.$z.drawerConfirmationBackdrop,style:$,sx:e=>({position:"absolute",inset:0,backgroundImage:`linear-gradient(to bottom, ${f.T.setAlpha(e.colors.$colorBackground,.28)}, ${e.colors.$colorBackground})`})}),(0,n.Y)(a.s3,{context:v,modal:!0,outsideElementsInert:!0,initialFocus:b.floating,children:(0,n.FD)(l.az,{ref:w,elementDescriptor:s.$z.drawerConfirmationRoot,style:_,...y(),sx:e=>({display:"flex",flexDirection:"column",rowGap:e.space.$6,outline:"none",willChange:"transform",position:"absolute",bottom:0,left:0,right:0,background:h.s.mergedColorsBackground(f.T.setAlpha(e.colors.$colorBackground,1),e.colors.$neutralAlpha50),padding:e.space.$4,borderStartStartRadius:e.radii.$md,borderStartEndRadius:e.radii.$md,boxShadow:`0 0 0 1px ${e.colors.$borderAlpha100}`}),children:[r,(0,n.Y)(l.so,{elementDescriptor:s.$z.drawerConfirmationActions,gap:3,justify:"end",children:o})]})})]}):null});C.displayName="Drawer.Confirmation";let P={Root:function({children:e,open:t,onOpenChange:r,strategy:o="fixed",floatingProps:i,portalProps:l,dismissProps:s}){var c;let d,u="undefined"==typeof window?"ltr":"rtl"===(d=(c=document.documentElement).dir)?"rtl":"ltr"===d?"ltr":"auto"!==d&&d||"rtl"!==window.getComputedStyle(c).direction?"ltr":"rtl",{refs:p,context:m}=(0,a.we)({open:t,onOpenChange:r,transform:!1,strategy:o,placement:"ltr"===u?"right":"left",...i}),{getFloatingProps:h}=(0,a.bv)([(0,a.kp)(m),(0,a.s9)(m,s),(0,a.It)(m)]);return(0,n.Y)(b.Provider,{value:{isOpen:t,setIsOpen:r,strategy:o,portalProps:l||{},refs:p,context:m,getFloatingProps:h,direction:u},children:(0,n.Y)(a.XF,{...l,children:e})})},Overlay:w,Content:$,Header:x,Body:_,Footer:S,Confirmation:C,Close:k}},5170:function(e,t,r){r.d(t,{J:()=>m});var n=r(4518);r(5074);var o=r(4607),a=r(8272),i=r(8920),l=r(2861),s=r(9426),c=r(4964),d=r(6088),u=r(3269),p=r(6153);let m=e=>{let{shouldNavigateBack:t=!0}=e,r=(0,u.f0)(),{navigate:m}=(0,c.r)(),h=(0,s.p)();return(0,n.Y)(o.n.Part,{part:"havingTrouble",children:(0,n.FD)(d.Z.Root,{children:[(0,n.FD)(d.Z.Content,{children:[(0,n.FD)(p.Y.Root,{showLogo:!0,children:[(0,n.Y)(p.Y.Title,{localizationKey:e.cardTitle||"Error"}),e.cardSubtitle&&(0,n.Y)(p.Y.Subtitle,{localizationKey:e.cardSubtitle})]}),(0,n.Y)(d.Z.Alert,{children:r.error}),(0,n.FD)(a.so,{direction:"col",elementDescriptor:i.$z.main,gap:4,children:[e.message&&(0,n.Y)(a.EY,{colorScheme:"secondary",localizationKey:e.message}),(0,n.Y)(a.$n,{localizationKey:(0,l.G)("signIn.alternativeMethods.getHelp.blockButton__emailSupport"),onClick:()=>{window.location.href=`mailto:${h}`},hasArrow:!0}),t?(0,n.Y)(d.Z.Action,{elementId:"alternativeMethods",children:(0,n.Y)(d.Z.ActionLink,{localizationKey:(0,l.G)("backButton"),onClick:r=>{if(e.onBackLinkClick)return e.onBackLinkClick(r);t&&m("../")}})}):null]})]}),(0,n.Y)(d.Z.Footer,{})]})})}},5507:function(e,t,r){r.d(t,{D:()=>V});var n,o,a=r(4518),i=r(5074),l=r(8272),s=r(8920),c=r(2861),d=r(78),u=r(593),p=r(3356),m=r(3269),h=r(1044),f=r(6580),g=r(359),b=r(4374),v=r(1464);let y=({feedback:e})=>{let[t,r]=(0,i.useState)(0);return{height:t,calculateHeight:(0,i.useCallback)(e=>{e&&r(e.scrollHeight+2*e.offsetTop)},[e])}},w=e=>{let{id:t,elementDescriptors:r,sx:n,feedback:o,feedbackType:c="info",center:d=!1}=e,u=(0,i.useRef)({a:void 0,b:void 0}),{getFormTextAnimation:p}=function(){let e=(0,g.j)(),{animations:t}=(0,f.K)().parsedOptions;return{getFormTextAnimation:(0,i.useCallback)((r,n)=>{if(e||!t)return{animation:"none"};let o=n?.inDelay?b.W.inDelayAnimation:b.W.inAnimation;return e=>({animation:`${r?o:b.W.outAnimation} ${e.transitionDuration.$textField} ${e.transitionTiming.$common}`,transitionProperty:"height",transitionDuration:e.transitionDuration.$slow,transitionTimingFunction:e.transitionTiming.$common})},[e,t])}}(),m={error:s.$z.formFieldErrorText,warning:s.$z.formFieldWarningText,info:s.$z.formFieldInfoText,success:s.$z.formFieldSuccessText},w=(0,i.useMemo)(()=>{let e,t=u.current;return u.current=e=t.a?.shouldEnter?{a:{...t.a,shouldEnter:!1},b:{feedback:o,feedbackType:c,shouldEnter:!0}}:{a:{feedback:o,feedbackType:c,shouldEnter:!0},b:{...t.b,shouldEnter:!1}},e},[o,c]),{calculateHeight:$,height:x}=y({feedback:w.a?.feedback||""}),{calculateHeight:_,height:S}=y({feedback:w.b?.feedback||""}),k=(0,i.useRef)(Math.max(x,S)),C=(0,i.useMemo)(()=>{let e=Math.max(x,S,k.current);return k.current=e,e},[x,S]),P=e=>{if(!e)return{};let n=r?.[e]||m[e];return{elementDescriptor:n,elementId:t?n?.setId?.(t):void 0,id:"error"===e?`error-${t}`:`${t}-${e}-feedback`}},A={error:l.wF,info:l.cN,success:l.TP,warning:l.sE},z=A[w.a?.feedbackType||"info"],I=A[w.b?.feedbackType||"info"];return(0,a.FD)(a.FK,{children:[(0,a.Y)(l.L9,{"aria-live":"polite","aria-atomic":"true",sx:{...v.s.visuallyHidden()},children:o?(0,h.Ns)(o):""}),(0,a.FD)(l.so,{style:{height:o?C:0,position:"relative"},center:d,sx:[p(!!o),n],children:[(0,a.Y)(z,{...P(w.a?.feedbackType),...w.a?.feedbackType&&{"data-testid":`form-feedback-${w.a.feedbackType}`},ref:$,sx:[()=>({visibility:w.a?.shouldEnter?"visible":"hidden"}),p(!!w.a?.shouldEnter,{inDelay:!0})],localizationKey:(0,h.Ns)(w.a?.feedback)}),(0,a.Y)(I,{...P(w.b?.feedbackType),...w.b?.feedbackType&&{"data-testid":`form-feedback-${w.b.feedbackType}`},ref:_,sx:[()=>({visibility:w.b?.shouldEnter?"visible":"hidden"}),p(!!w.b?.shouldEnter,{inDelay:!0})],localizationKey:(0,h.Ns)(w.b?.feedback)})]})]})},$=(0,i.forwardRef)((e,t)=>{let{sx:r,groupPrefix:n,groupSuffix:o,...i}=e,c=n?{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"}:{borderTopRightRadius:"0",borderBottomRightRadius:"0"},d=e=>({paddingInline:e.space.$2,borderTopRightRadius:"0",borderBottomRightRadius:"0",width:"fit-content",display:"flex",alignItems:"center"});return(0,a.FD)(l.so,{elementDescriptor:s.$z.formInputGroup,direction:"row",hasError:i.hasError,sx:e=>({position:"relative",zIndex:1,...v.s.borderVariants(e).normal,':focus-within,&[data-focus-within="true"]':{...v.s.borderVariants(e,{focusRing:!0}).normal["&:focus"]}}),children:[n&&(0,a.Y)(l.EY,{colorScheme:"secondary",sx:d,children:n}),(0,a.Y)(l.pd,{maxLength:25,sx:[{...c},r],variant:"unstyled",ref:t,...i}),o&&(0,a.Y)(l.EY,{colorScheme:"secondary",sx:d,children:o})]})});var x=r(2166),_=r(7697),S=r(620),k=r(6294);function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let P=function(e){return i.createElement("svg",C({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),n||(n=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.732 3.126a.48.48 0 0 0-.662.011.465.465 0 0 0-.012.651l9.211 9.063a.477.477 0 0 0 .527.115.479.479 0 0 0 .263-.26.46.46 0 0 0-.117-.518l-1.108-1.09A6.278 6.278 0 0 0 13.93 8.36a1.016 1.016 0 0 0 0-.74 6.27 6.27 0 0 0-2.333-2.909A6.428 6.428 0 0 0 8 3.613a6.407 6.407 0 0 0-3.014.747L3.732 3.126Zm2.84 2.794.694.682a1.61 1.61 0 0 1 1.858.28A1.54 1.54 0 0 1 9.41 8.71l.693.683a2.47 2.47 0 0 0-.304-3.174 2.573 2.573 0 0 0-3.226-.3Z"})),o||(o=i.createElement("path",{d:"m8.476 10.445 1.602 1.576a6.437 6.437 0 0 1-2.077.342c-2.705 0-5.014-1.662-5.931-4.006a1.016 1.016 0 0 1 0-.741c.31-.79.78-1.51 1.382-2.115l2.052 2.02c-.078.4-.054.813.067 1.203.122.39.34.744.632 1.033a2.58 2.58 0 0 0 2.272.688Z"})))},A=(...e)=>t=>{for(let r of e)r&&(r.current=t)};var z=r(155);let I=(0,i.forwardRef)((e,t)=>{let[r,n]=i.useState(!0),{id:o,onChange:u,validatePassword:p=!1,setInfo:m,setSuccess:h,setWarning:f,setError:g,setHasPassedComplexity:b,tabIndex:v,...y}=e,w=(0,i.useRef)(null),[$,C]=(0,i.useState)(null),{userSettings:{passwordSettings:I}}=(0,_.O)(),{t:D}=(0,d._)(),{validatePassword:R}=(0,S.T)({...I,validatePassword:p},{onValidationSuccess:()=>h(D((0,c.G)("unstable__errors.zxcvbn.goodPassword"))),onValidationError:e=>g(e),onValidationWarning:e=>f(e),onValidationInfo:e=>{w.current&&(w.current===document.activeElement?m(e):g(e))},onValidationComplexity:e=>b(e)});return(0,a.FD)(l.so,{elementDescriptor:s.$z.formFieldInputGroup,direction:"col",justify:"center",sx:{position:"relative"},children:[(0,a.Y)(l.pd,{...y,tabIndex:v,onChange:e=>($&&clearTimeout($),C(setTimeout(()=>{R(e.target.value)},x.s)),u?.(e)),onBlur:e=>{y.onBlur?.(e),R(e.target.value)},onFocus:e=>{y.onFocus?.(e),R(e.target.value)},ref:A(t,w),type:r?"password":"text",sx:e=>({paddingRight:e.space.$10})}),(0,a.Y)(z.K,{elementDescriptor:s.$z.formFieldInputShowPasswordButton,iconElementDescriptor:s.$z.formFieldInputShowPasswordIcon,"aria-label":`${r?"Show":"Hide"} password`,variant:"ghost",size:"xs",tabIndex:v,onClick:()=>n(e=>!e),sx:e=>({position:"absolute",right:0,marginRight:e.space.$1,color:e.colors.$neutralAlpha400}),icon:r?k.A:P})]})});var D=r(1210),R=r(8023),Y=r(2405),E=r(1586),T=r(1820),F=r(7651);let L=[...T.nU.values()].map(e=>({searchTerm:`${e.iso} ${e.name} ${e.code}`,value:`${e.iso} ${e.name} ${e.code}`,country:e})),M=(0,i.forwardRef)((e,t)=>{let{onChange:r,value:n,locationBasedCountryIso:o,feedbackType:c,sx:d,...u}=e,p=(0,i.useRef)(null),m=(0,i.useRef)(null),{setNumber:h,setIso:f,setNumberAndIso:g,numberWithCode:b,iso:y,formattedNumber:w}=(e=>{let[t,r]=i.useState(()=>{let{number:t}=(0,F.Xd)(e.initPhoneWithCode||"");return t}),[n,o]=i.useState((0,F.Xd)(e.initPhoneWithCode||"").number?(0,F.Xd)(e.initPhoneWithCode||"").iso:e.locationBasedCountryIso||"us");i.useEffect(()=>{r((0,F.sH)(t))},[n,t]);let a=i.useMemo(()=>{if(!t)return"";let e=T.nU.get(n)?.code||"1";return"+"+(0,F.sH)(`${e}${t}`)},[n,t]),l=i.useMemo(()=>((e,t)=>{if(!e)return"";let r=T.nU.get(t);return(0,F.n4)(e,r?.pattern,r?.code)})(t,n),[n,t]),s=i.useCallback(e=>{let{iso:t,number:n}=(0,F.Xd)(e);r(n),o(t)},[n,t]);return{setNumber:r,setIso:o,setNumberAndIso:s,iso:n,number:t,numberWithCode:a,formattedNumber:l}})({initPhoneWithCode:n,locationBasedCountryIso:o}),$=(0,i.useMemo)(()=>L.find(e=>e.country.iso===y)||L[0],[y]);return(0,i.useEffect)(()=>{r?.({target:{value:b}})},[b]),(0,a.FD)(l.so,{elementDescriptor:s.$z.phoneInputBox,direction:"row",hasError:u.hasError,"data-feedback":c,ref:m,sx:e=>({...v.s.borderVariants(e,{hasError:u.hasError}).normal,position:"relative",borderRadius:e.radii.$md,zIndex:1,'&:focus-within,&[data-focus-within="true"]':{...v.s.borderVariants(e,{hasError:u.hasError}).normal["&:focus"]}}),children:[(0,a.FD)(E.l6,{elementId:"countryCode",value:$.value,options:L,portal:!0,referenceElement:m,renderOption:(e,t,r)=>(0,a.Y)(B,{sx:e=>({"&:hover":{backgroundColor:e.colors.$neutralAlpha100},'&[data-focused="true"]':{backgroundColor:e.colors.$neutralAlpha150}}),isSelected:r,country:e.country}),onChange:e=>{f(e.country.iso),p.current?.focus()},noResultsMessage:"No countries found",searchPlaceholder:"Search country or code",comparator:(e,t)=>t.searchTerm.toLowerCase().includes(e.toLowerCase()),children:[(0,a.Y)(E.JC,{variant:"ghost",sx:e=>({borderWidth:"0",borderRadius:e.radii.$md,borderBottomRightRadius:"0",borderTopRightRadius:"0",paddingRight:e.space.$2,":focus":{zIndex:2,boxShadow:"none"},":active":{zIndex:2}}),hoverAsFocus:!0,isDisabled:u.isDisabled,icon:R.A,iconSx:e=>({color:u.isDisabled?e.colors.$neutralAlpha300:e.colors.$neutralAlpha500}),children:(0,a.Y)(l.EY,{colorScheme:"body",as:"span",sx:{textTransform:"uppercase"},children:y})}),(0,a.Y)(E.UL,{sx:{padding:"0 0"},containerSx:e=>({gap:0,padding:`${e.space.$0x5} 0`})})]}),(0,a.FD)(l.so,{sx:{position:"relative",width:"100%"},children:[(0,a.FD)(l.EY,{sx:t=>({display:"flex",alignItems:"center",pointerEvents:"none",paddingLeft:t.space.$0x5,opacity:e.isDisabled?t.opacity.$disabled:1}),children:["+",$.country.code]}),(0,a.Y)(l.pd,{value:w,variant:"unstyled",onPaste:e=>{e.preventDefault();let t=e.clipboardData.getData("text");t.includes("+")?g(t):h(t)},onChange:e=>{let t=e.target.value;t.includes("+")?g(t):h(t)},maxLength:25,type:"tel",sx:[e=>({boxShadow:"none",height:"100%",transitionProperty:e.transitionProperty.$common,transitionTimingFunction:e.transitionTiming.$common,transitionDuration:e.transitionDuration.$focusRing,"&[type=tel]":{borderRadius:e.radii.$md,borderWidth:0,borderTopLeftRadius:0,borderBottomLeftRadius:0,paddingLeft:e.space.$1,"&:focus":{borderColor:"unset",boxShadow:"unset"}}}),d],ref:A(p,t),...u})]})]})}),B=(0,i.memo)(e=>{let{country:t,isSelected:r,sx:n,...o}=e;return(0,a.FD)(l.so,{center:!0,sx:[e=>({width:"100%",gap:e.space.$2,padding:`${e.space.$1x5} ${e.space.$4}`,color:e.colors.$colorForeground}),n],...o,children:[(0,a.Y)(l.In,{icon:Y.A,size:"sm",sx:{visibility:r?"visible":"hidden"}}),(0,a.Y)(l.EY,{as:"div",sx:{width:"100%",textAlign:"left"},children:t.name}),(0,a.FD)(l.EY,{colorScheme:"secondary",children:["+",t.code]})]})}),O=(0,i.forwardRef)((e,t)=>{let{__internal_country:r}=(0,D.ho)();return(0,a.Y)(M,{...e,locationBasedCountryIso:r,ref:t})}),j=(0,i.forwardRef)((e,t)=>{let r=(0,u.Wd)(),{value:n,placeholder:o,...i}=(0,u.Uj)(r);return(0,a.Y)(l.AT,{ref:t,...i,elementDescriptor:s.$z.formFieldRadioInput,id:e.id,focusRing:!1,sx:e=>({width:"fit-content",marginTop:e.space.$0x5}),value:e.value,checked:e.value===n})}),U=e=>(0,a.FD)(l.lR,{elementDescriptor:s.$z.formFieldRadioLabel,htmlFor:e.id,sx:e=>({padding:`${e.space.$none} ${e.space.$2}`,display:"flex",flexDirection:"column"}),children:[(0,a.Y)(l.EY,{elementDescriptor:s.$z.formFieldRadioLabelTitle,variant:"subtitle",localizationKey:e.label}),e.description&&(0,a.Y)(l.EY,{elementDescriptor:s.$z.formFieldRadioLabelDescription,colorScheme:"secondary",localizationKey:e.description})]}),W=(0,i.forwardRef)((e,t)=>{let r=(0,i.useId)();return(0,a.FD)(l.so,{elementDescriptor:s.$z.formFieldRadioGroupItem,align:"start",children:[(0,a.Y)(j,{id:r,ref:t,value:e.value}),(0,a.Y)(U,{id:r,label:e.label,description:e.description})]})}),H=(0,i.forwardRef)((e,t)=>{let{t:r}=(0,d._)(),n=(0,u.Wd)(),{placeholder:o,...i}=(0,u.Uj)(n);return(0,a.Y)(O,{ref:t,elementDescriptor:s.$z.formFieldInput,elementId:s.$z.formFieldInput.setId(n.fieldId),...i,feedbackType:n.feedbackType,placeholder:r(o)})}),N=(0,i.forwardRef)((e,t)=>{let{t:r}=(0,d._)(),n=(0,u.Wd)(),{placeholder:o,...i}=(0,u.Uj)(n,["validatePassword","setError","setWarning","setSuccess","setInfo","setHasPassedComplexity"]);return(0,a.Y)(I,{ref:t,elementDescriptor:s.$z.formFieldInput,elementId:s.$z.formFieldInput.setId(n.fieldId),...i,placeholder:r(o)})}),K=(0,i.forwardRef)(({elementDescriptor:e,elementId:t},r)=>{let n=(0,u.Wd)(),{placeholder:o,...i}=(0,u.Uj)(n);return(0,a.Y)(l.Oc,{ref:r,...i,elementDescriptor:e||s.$z.formFieldInput,elementId:t||s.$z.formFieldInput.setId(n.fieldId),focusRing:!1,sx:e=>({width:"fit-content",flexShrink:0,marginTop:e.space.$0x5})})}),V={Root:e=>{let t=(0,m.f0)(),{children:r,isDisabled:n,...o}=e,i=n||t.isLoading,l={...o,isDisabled:i};return(0,a.Y)(u.BQ,{...l,children:r})},Label:e=>{let{isRequired:t,id:r,label:n,isDisabled:o,hasError:i}=(0,u.Wd)();return e.localizationKey||n||e.children?(0,a.Y)(l.lR,{localizationKey:e.localizationKey||n,elementDescriptor:s.$z.formFieldLabel,elementId:s.$z.formFieldLabel.setId(r),hasError:!!i,isDisabled:o,isRequired:t,sx:{display:"flex",alignItems:"center"},children:e.children}):null},LabelRow:e=>{let{fieldId:t}=(0,u.Wd)();return(0,a.Y)(l.so,{justify:"between",align:"center",elementDescriptor:s.$z.formFieldLabelRow,elementId:s.$z.formFieldLabelRow.setId(t),children:e.children})},Input:(0,i.forwardRef)((e,t)=>{let{t:r}=(0,d._)(),n=(0,u.Wd)(),{placeholder:o,...i}=(0,u.Uj)(n);return(0,a.Y)(l.pd,{ref:t,elementDescriptor:s.$z.formFieldInput,elementId:s.$z.formFieldInput.setId(n.fieldId),...i,placeholder:r(o)})}),PasswordInput:N,PhoneInput:H,InputGroup:(0,i.forwardRef)((e,t)=>{let{t:r}=(0,d._)(),n=(0,u.Wd)(),{placeholder:o,...i}=(0,u.Uj)(n);return(0,a.Y)($,{ref:t,elementDescriptor:s.$z.formFieldInput,elementId:s.$z.formFieldInput.setId(n.fieldId),...i,groupPrefix:e.groupPrefix,groupSuffix:e.groupSuffix,placeholder:r(o)})}),RadioItem:W,CheckboxIndicator:K,CheckboxLabel:e=>{let{label:t,id:r}=(0,u.Wd)();return t?(0,a.Y)(U,{label:t,id:r,description:e.description}):null},Action:e=>{let{fieldId:t,isDisabled:r}=(0,u.Wd)();return e.localizationKey||e.children?(0,a.Y)(l.N_,{localizationKey:e.localizationKey,elementDescriptor:s.$z.formFieldAction,elementId:s.$z.formFieldLabel.setId(t),isDisabled:r,colorScheme:"primary",variant:"buttonSmall",onClick:t=>{t.preventDefault(),e.onClick?.(t)},children:e.children}):null},AsOptional:()=>{let{fieldId:e,isDisabled:t}=(0,u.Wd)();return(0,a.Y)(l.EY,{localizationKey:(0,c.G)("formFieldHintText__optional"),elementDescriptor:s.$z.formFieldHintText,elementId:s.$z.formFieldHintText.setId(e),as:"span",variant:"caption",colorScheme:"secondary",isDisabled:t})},LabelIcon:e=>{let{t}=(0,d._)();return e.icon?(0,a.Y)(l.so,{as:"span",title:t((0,c.G)("formFieldHintText__slug")),sx:{marginRight:"auto"},children:(0,a.Y)(l.In,{icon:e.icon,sx:e=>({marginLeft:e.space.$0x5,color:e.colors.$neutralAlpha400,width:e.sizes.$4,height:e.sizes.$4})})}):null},Feedback:e=>{let{fieldId:t,debouncedFeedback:r}=(0,u.Wd)();return(0,a.Y)(w,{center:e.center,...r,elementDescriptors:e.elementDescriptors,id:t})},OTPRoot:p.oA,OTPCodeControl:p.iG,OTPResendButton:p.Ro}},2454:function(e,t,r){r.d(t,{l:()=>b});var n=r(4518),o=r(1210),a=r(5074),i=r(8272),l=r(8920),s=r(2861),c=r(4901),d=r(8975),u=r(3269),p=r(5507);let[m,h]=(0,o.e3)("FormState"),f=e=>{let{isOptional:t,isLastAuthenticationStrategy:r,icon:o,actionLabel:a,children:s,onActionClicked:c,...d}=e;return(0,n.Y)(p.D.Root,{...d,children:(0,n.FD)(i.fv,{elementDescriptor:l.$z.formField,elementId:l.$z.formField.setId(d.id),sx:{position:"relative",flex:"1 1 auto"},children:[(0,n.FD)(i.so,{direction:"col",sx:e=>({gap:e.space.$2}),children:[(0,n.FD)(p.D.LabelRow,{children:[(0,n.Y)(p.D.Label,{}),(0,n.Y)(p.D.LabelIcon,{icon:o}),!a&&t&&(0,n.Y)(p.D.AsOptional,{}),a&&(0,n.Y)(p.D.Action,{localizationKey:a,onClick:c}),r&&!a&&!t&&(0,n.Y)(g,{}),(0,n.Y)(p.D.Action,{})]}),s]}),(0,n.Y)(p.D.Feedback,{})]})})},g=e=>{let{isLoading:t,isDisabled:r}=h();return(0,n.Y)(d.j,{...e,sx:e=>({opacity:r||t?e.opacity.$disabled:1})})},b={Root:e=>{let t=(0,u.f0)(),r=(0,c.m)(),[o,s]=(0,a.useState)(!1),d=async n=>{if(n.preventDefault(),n.stopPropagation(),e.onSubmit)try{t.setLoading(),r.setLoading(),s(!0),await e.onSubmit(n)}finally{t.setIdle(),r.setIdle()}},p=a.useMemo(()=>({value:{isLoading:r.isLoading,isDisabled:t.isLoading||r.isLoading,submittedWithEnter:o}}),[t.isLoading,r.isLoading,o]);return(0,n.Y)(m.Provider,{value:p,children:(0,n.FD)(i.lV,{elementDescriptor:l.$z.form,gap:6,...e,onSubmit:d,children:[(0,n.Y)("button",{type:"submit","aria-hidden":!0,style:{visibility:"hidden",position:"absolute"}}),e.children]})})},ControlRow:e=>{let{elementId:t,...r}=e;return(0,n.Y)(i.so,{elementDescriptor:l.$z.formFieldRow,elementId:l.$z.formFieldRow.setId(t),justify:"between",gap:4,...r})},PlainInput:e=>(0,n.Y)(f,{...e,children:(0,n.Y)(p.D.Input,{})}),PasswordInput:(0,a.forwardRef)((e,t)=>(0,n.Y)(f,{...e,children:(0,n.Y)(p.D.PasswordInput,{ref:t})})),PhoneInput:e=>(0,n.Y)(f,{...e,children:(0,n.Y)(p.D.PhoneInput,{})}),OTPInput:e=>{let{centerAlign:t=!0}=e;return(0,n.Y)(p.D.Root,{...e.otpControl.otpInputProps,children:(0,n.Y)(p.D.OTPRoot,{...e,children:(0,n.FD)(i.fv,{elementDescriptor:l.$z.form,gap:2,align:t?"center":"start",children:[(0,n.FD)(i.so,{elementDescriptor:l.$z.otpCodeField,isLoading:e.isLoading,hasError:"error"===e.otpControl.otpInputProps.feedbackType,direction:"col",children:[(0,n.Y)(p.D.OTPCodeControl,{}),(0,n.Y)(p.D.Feedback,{center:!0,elementDescriptors:{error:l.$z.otpCodeFieldErrorText,success:l.$z.otpCodeFieldSuccessText}})]}),(0,n.Y)(p.D.OTPResendButton,{})]})})})},InputGroup:e=>{let{groupSuffix:t,groupPrefix:r,...o}=e;return(0,n.Y)(f,{...o,children:(0,n.Y)(p.D.InputGroup,{groupSuffix:t,groupPrefix:r})})},RadioGroup:e=>{let{radioOptions:t,...r}=e;return(0,n.FD)(p.D.Root,{...r,children:[(0,n.Y)(i.fv,{elementDescriptor:l.$z.formFieldRadioGroup,gap:3,children:t?.map(({value:e,description:t,label:r})=>(0,n.Y)(i.so,{sx:e=>({borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha100,borderRadius:e.radii.$md,padding:e.space.$2}),children:(0,n.Y)(p.D.RadioItem,{value:e,label:r,description:t})},e))}),(0,n.Y)(p.D.Feedback,{})]})},Checkbox:e=>(0,n.Y)(p.D.Root,{...e,children:(0,n.FD)(i.so,{align:"start",children:[(0,n.Y)(p.D.CheckboxIndicator,{}),(0,n.Y)(p.D.CheckboxLabel,{description:e.description})]})}),SubmitButton:e=>{let{isLoading:t,isDisabled:r}=h();return(0,n.Y)(i.$n,{elementDescriptor:l.$z.formButtonPrimary,block:!0,textVariant:"buttonLarge",isLoading:t,isDisabled:r,type:"submit",...e,localizationKey:e.localizationKey||(0,s.G)("formButtonPrimary")})},ResetButton:e=>{let{isLoading:t,isDisabled:r}=h();return(0,n.Y)(i.$n,{elementDescriptor:l.$z.formButtonReset,block:!0,variant:"ghost",type:"reset",isDisabled:t||r,...e})},CommonInputWrapper:f}},1475:function(e,t,r){r.d(t,{G:()=>s,c:()=>c});var n=r(4518),o=r(8272),a=r(1550),i=r(2861),l=r(2454);let s=e=>{let{isDisabled:t,onReset:r,submitLabel:o,resetLabel:s,hideReset:d,...u}=e,{navigateToFlowStart:p}=(0,a.C)();return(0,n.FD)(c,{children:[(0,n.Y)(l.l.SubmitButton,{block:!1,isDisabled:t,localizationKey:o||(0,i.G)("userProfile.formButtonPrimary__save"),...u}),!d&&(0,n.Y)(l.l.ResetButton,{localizationKey:s||(0,i.G)("userProfile.formButtonReset"),block:!1,onClick:r||p})]})},c=e=>(0,n.Y)(o.so,{direction:"rowReverse",gap:2,...e,children:e.children})},3549:function(e,t,r){r.d(t,{M:()=>c});var n=r(4518),o=r(8272),a=r(8920),i=r(6088),l=r(3269),s=r(6153);let c=e=>{let{headerTitle:t,headerTitleTextVariant:r="h3",headerSubtitle:c,headerSubtitleTextVariant:d="body",children:u,sx:p,...m}=e,h=(0,l.f0)();return(0,n.FD)(o.fv,{elementDescriptor:a.$z.formContainer,gap:4,...m,sx:[p],children:[(t||c)&&(0,n.FD)(s.Y.Root,{children:[t&&(0,n.Y)(s.Y.Title,{textVariant:r,..."string"==typeof t?{children:t}:{localizationKey:t}}),c&&(0,n.Y)(s.Y.Subtitle,{variant:d,..."string"==typeof c?{children:c}:{localizationKey:c}})]}),(0,n.Y)(i.Z.Alert,{children:h.error}),(0,n.Y)(o.fv,{gap:8,children:u})]})}},1323:function(e,t,r){r.d(t,{R:()=>l});var n=r(4518),o=r(8272),a=r(8920),i=r(7651);let l=e=>{let t=(0,i.Om)(e.value);return(0,n.Y)(o.EY,{as:"span",elementDescriptor:a.$z.formattedPhoneNumberText,children:t})}},2611:function(e,t,r){r.d(t,{K:()=>i});var n=r(4518),o=r(8272),a=r(8920);let i=()=>(0,n.Y)(o.so,{center:!0,sx:{height:"100%"},children:(0,n.Y)(o.y$,{colorScheme:"primary",size:"lg",elementDescriptor:a.$z.spinner})})},6153:function(e,t,r){r.d(t,{Y:()=>f});var n,o=r(4518),a=r(5074),i=r(6580),l=r(8272),s=r(8920);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let d=function(e){return a.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},e),n||(n=a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12H4m6 6-6-6 6-6"})))};var u=r(2037),p=r(6505);let m=a.memo(a.forwardRef((e,t)=>{let{sx:r,children:n,contentSx:a,gap:c=6,showLogo:d=!1,showDivider:m=!1,...h}=e,f="inside"===(0,i.K)().parsedOptions.logoPlacement&&d,g=m&&f;return(0,o.FD)(l.fv,{ref:t,elementDescriptor:s.$z.header,gap:c,sx:r,...h,children:[f&&(0,o.Y)(u.G,{}),g&&(0,o.Y)(p.G,{}),(0,o.Y)(l.fv,{gap:1,sx:a,...h,children:n})]})})),h=a.memo(e=>{let{sx:t,textVariant:r="h2",...n}=e;return(0,o.Y)(l.DZ,{elementDescriptor:s.$z.headerTitle,textVariant:r,sx:t,...n})}),f={Root:m,Title:h,Subtitle:a.memo(e=>{let{sx:t,...r}=e;return(0,o.Y)(l.EY,{elementDescriptor:s.$z.headerSubtitle,variant:"body",colorScheme:"secondary",sx:[{wordWrap:"break-word"},t],...r})}),BackLink:a.memo(e=>{let{sx:t,children:r,...n}=e;return(0,o.FD)(l.N_,{elementDescriptor:s.$z.headerBackLink,sx:e=>[{display:"inline-flex",alignItems:"center",gap:e.space.$2,width:"fit-content","&:hover":{textDecoration:"none"}},t],...n,children:[(0,o.Y)(l.In,{icon:d,sx:e=>({color:e.colors.$colorForeground})}),r]})})}},155:function(e,t,r){r.d(t,{K:()=>l});var n=r(4518),o=r(5074),a=r(78),i=r(8272);let l=e=>{let{children:t,icon:r,localizationKey:l,iconElementDescriptor:s,...c}=e,{t:d}=(0,a._)(),u=d(l),p=(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{"aria-hidden":!0,focusable:!1}):(0,n.Y)(i.In,{elementDescriptor:s,icon:r,size:"md"});return(0,n.Y)(i.$n,{...c,children:(0,n.FD)(n.FK,{children:[p,u||t]})})}},6384:function(e,t,r){r.d(t,{A:()=>a});var n=r(4518),o=r(8272);let a=e=>{let{icon:t,boxElementDescriptor:r,iconElementDescriptor:a,sx:i,...l}=e;return(0,n.Y)(o.so,{center:!0,elementDescriptor:r,sx:[e=>({backgroundColor:e.colors.$neutralAlpha50,width:e.sizes.$16,height:e.sizes.$16,borderRadius:e.radii.$circle}),i],...l,children:(0,n.Y)(o.In,{elementDescriptor:a,icon:t,size:"lg",sx:e=>({color:e.colors.$neutralAlpha600})})})}},196:function(e,t,r){r.d(t,{$:()=>m});var n,o=r(4518),a=r(6435),i=r(5074),l=r(8272),s=r(8920);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let d=function(e){return i.createElement("svg",c({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 16"},e),n||(n=i.createElement("path",{d:"M13.598 5.108c-.418.419-.628.628-.847.669-.22.04-.364-.104-.652-.392l-.984-.984c-.288-.288-.432-.432-.392-.652.04-.22.25-.428.669-.847l.226-.227c.419-.418.628-.628.848-.668.22-.04.364.103.652.392l.983.983c.289.288.433.432.392.652-.04.22-.25.429-.668.848l-.227.226ZM4.66 13.688l-1.206.223c-.5.092-.75.138-.876.011-.127-.126-.08-.376.011-.876l.223-1.206c.04-.217.06-.325.118-.43.058-.105.15-.196.33-.377l5.554-5.554c.419-.418.628-.628.848-.668.22-.04.364.103.652.392l.983.983c.289.288.433.432.392.652-.04.22-.25.429-.668.848l-5.554 5.553c-.181.182-.272.273-.377.331-.105.058-.213.078-.43.118ZM9.25 12.5a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Z",fill:"currentColor"})))};var u=r(9835),p=r(7651);let m=e=>{let{avatarUrl:t=(0,a.l)("avatar_placeholder","jpeg"),identifier:r,onClick:n,...c}=e,m=i.useRef({avatarUrl:t,identifier:(0,u.u)(r)}),h=n&&(0,o.Y)(l.$n,{elementDescriptor:s.$z.identityPreviewEditButton,variant:"link",textVariant:"buttonSmall",onClick:n,"aria-label":"Edit",children:(0,o.Y)(l.In,{elementDescriptor:s.$z.identityPreviewEditButtonIcon,icon:d})});if(!m.current.identifier)return(0,o.Y)(b,{...c,children:h});if((0,u.R)(m.current.identifier)||!m.current.identifier.startsWith("+"))return(0,o.FD)(b,{...c,children:[(0,o.Y)(f,{...m.current}),h]});let v=(0,p.Xd)(m.current.identifier||""),y=(0,p.eL)(v.iso);return(0,o.FD)(b,{...c,children:[(0,o.Y)(g,{identifier:m.current.identifier,flag:y}),h]})},h=e=>(0,o.Y)(l.EY,{elementDescriptor:s.$z.identityPreviewText,colorScheme:"secondary",truncate:!0,...e}),f=e=>(0,o.Y)(h,{children:e.identifier}),g=e=>(0,o.FD)(o.FK,{children:[(0,o.Y)(l.EY,{sx:e=>({fontSize:e.fontSizes.$sm}),children:e.flag}),(0,o.Y)(h,{children:e.identifier})]}),b=e=>(0,o.Y)(l.so,{elementDescriptor:s.$z.identityPreview,align:"center",gap:2,sx:{justifyContent:"center"},...e})},2421:function(e,t,r){r.d(t,{k:()=>i});var n=r(4518),o=r(8272),a=r(9068);function i(e){return(0,n.FD)(o.so,{sx:e=>({gap:e.space.$2,padding:`${e.space.$3} ${e.space.$4}`,backgroundColor:e.colors.$neutralAlpha50,borderRadius:e.radii.$md}),children:[(0,n.Y)(o.In,{icon:a.A,sx:e=>({opacity:e.opacity.$disabled})}),(0,n.Y)(o.EY,{localizationKey:e.message,sx:e=>({color:e.colors.$colorMutedForeground})})]})}},5013:function(e,t,r){r.d(t,{e:()=>i});var n=r(4518),o=r(5074),a=r(8272);let i=o.forwardRef((e,t)=>{let{leftIcon:r,sx:o,...i}=e;return(0,n.FD)(a.so,{center:!0,sx:{width:"100%",position:"relative"},children:[r?(0,n.Y)(a.az,{sx:e=>[{position:"absolute",left:e.space.$3x5,width:e.sizes.$3x5,height:e.sizes.$3x5,pointerEvents:"none",display:"grid",placeContent:"center","& svg":{position:"absolute",width:"100%",height:"100%"}}],children:r}):null,(0,n.Y)(a.pd,{...i,sx:[e=>({width:"100%",paddingLeft:e.space.$10}),o],ref:t})]})})},3832:function(e,t,r){r.d(t,{d:()=>h});var n=r(4518),o=r(7697),a=r(78),i=r(2861),l=r(8272),s=r(8920),c=r(6580),d=r(593),u=r(5507),p=r(6997);let m=e=>{let t,{termsUrl:r,privacyPolicyUrl:o}=e,{t:c}=(0,a._)(),u=(0,d.Wd)(),{placeholder:m,...h}=(0,d.Uj)(u);return r&&o?t=(0,i.G)("signUp.legalConsent.checkbox.label__termsOfServiceAndPrivacyPolicy",{termsOfServiceLink:r,privacyPolicyLink:o}):r?t=(0,i.G)("signUp.legalConsent.checkbox.label__onlyTermsOfService",{termsOfServiceLink:r}):o&&(t=(0,i.G)("signUp.legalConsent.checkbox.label__onlyPrivacyPolicy",{privacyPolicyLink:o})),(0,n.Y)(l.lR,{elementDescriptor:s.$z.formFieldCheckboxLabel,htmlFor:h.id,isDisabled:h.isDisabled,sx:e=>({paddingLeft:e.space.$1x5,textAlign:"left"}),children:(0,n.Y)(l.EY,{variant:"body",as:"span",children:(0,n.Y)(p._,{text:c(t),isExternal:!0,sx:e=>({textDecoration:"underline",textUnderlineOffset:e.space.$1})})})})},h=e=>{let{displayConfig:t}=(0,o.O)(),{parsedOptions:r}=(0,c.K)(),a=r.termsPageUrl||t.termsUrl,i=r.privacyPageUrl||t.privacyPolicyUrl;return(0,n.Y)(u.D.Root,{...e,children:(0,n.FD)(l.so,{justify:"center",children:[(0,n.Y)(u.D.CheckboxIndicator,{elementDescriptor:s.$z.formFieldCheckboxInput,elementId:s.$z.formFieldInput.setId("legalAccepted")}),(0,n.Y)(m,{termsUrl:a,privacyPolicyUrl:i})]})})}},9436:function(e,t,r){r.d(t,{p:()=>f});var n=r(4518),o=r(5074),a=r(8272),i=r(8920),l=r(7782),s=r(2405),c=r(2852),d=r(1464),u=r(9606);let p=o.createContext(void 0);function m({text:e}){let{onCopy:t}=(0,l.i)(e);return(0,n.Y)(a.L9,{elementDescriptor:i.$z.lineItemsDescriptionText,sx:e=>({...d.s.textVariants(e).body,display:"flex",minWidth:"0"}),onCopy:async e=>{e.preventDefault(),await t()},children:(0,u.W)(e,15)})}function h({text:e,copyLabel:t="Copy"}){let{onCopy:r,hasCopied:o}=(0,l.i)(e);return(0,n.Y)(a.$n,{variant:"unstyled",onClick:r,sx:e=>({color:"inherit",width:e.sizes.$4,height:e.sizes.$4,padding:0,borderRadius:e.radii.$sm,"&:focus-visible":{outline:"2px solid",outlineColor:e.colors.$colorRing}}),focusRing:!1,"aria-label":o?"Copied":t,children:(0,n.Y)(a.In,{size:"sm",icon:o?s.A:c.A,"aria-hidden":!0})})}let f={Root:function({children:e}){return(0,n.Y)(a.Dl,{elementDescriptor:i.$z.lineItemsRoot,sx:e=>({display:"grid",gridRowGap:e.space.$2}),children:e})},Group:function({children:e,borderTop:t=!1,variant:r="primary"}){return(0,n.Y)(p.Provider,{value:{variant:r},children:(0,n.Y)(a.az,{elementDescriptor:i.$z.lineItemsGroup,elementId:i.$z.lineItemsGroup.setId(r),sx:e=>({display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",...t?{borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100,paddingTop:e.space.$2}:{}}),children:e})})},Title:o.forwardRef(({title:e,description:t,icon:r,badge:l=null},s)=>{let c=o.useContext(p);if(!c)throw Error("LineItems.Title must be used within LineItems.Group");let{variant:u}=c,m="primary"===u?"subtitle":"caption";return(0,n.FD)(a.Dt,{ref:s,elementDescriptor:i.$z.lineItemsTitle,elementId:i.$z.lineItemsTitle.setId(u),sx:e=>({display:"grid",color:"primary"===u?e.colors.$colorForeground:e.colors.$colorMutedForeground,...d.s.textVariants(e)[m]}),children:[e?(0,n.FD)(a.L9,{sx:e=>({display:"inline-flex",alignItems:"center",gap:e.space.$1}),children:[r?(0,n.Y)(a.In,{size:"md",icon:r,"aria-hidden":!0}):null,(0,n.Y)(a.L9,{localizationKey:e}),l]}):null,t?(0,n.Y)(a.L9,{localizationKey:t,elementDescriptor:i.$z.lineItemsTitleDescription,sx:e=>({fontSize:e.fontSizes.$sm,color:e.colors.$colorMutedForeground})}):null]})}),Description:function({text:e,prefix:t,suffix:r,truncateText:l=!1,copyText:s=!1,copyLabel:c}){let u=o.useContext(p);if(!u)throw Error("LineItems.Description must be used within LineItems.Group");let{variant:f}=u;return(0,n.FD)(a.Dd,{elementDescriptor:i.$z.lineItemsDescription,elementId:i.$z.lineItemsDescription.setId(f),sx:e=>({display:"grid",justifyContent:"end",color:"tertiary"===f?e.colors.$colorMutedForeground:e.colors.$colorForeground}),children:[(0,n.FD)(a.L9,{elementDescriptor:i.$z.lineItemsDescriptionInner,sx:e=>({display:"inline-flex",justifyContent:"flex-end",alignItems:"center",gap:e.space.$1,minWidth:"0"}),children:[t?(0,n.Y)(a.L9,{localizationKey:t,elementDescriptor:i.$z.lineItemsDescriptionPrefix,sx:e=>({color:e.colors.$colorMutedForeground,...d.s.textVariants(e).caption})}):null,"string"==typeof e&&l?(0,n.Y)(m,{text:e}):(0,n.Y)(a.L9,{localizationKey:e,elementDescriptor:i.$z.lineItemsDescriptionText,sx:e=>({...d.s.textVariants(e).body,minWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})}),"string"==typeof e&&s?(0,n.Y)(h,{text:e,copyLabel:c}):null]}),r?(0,n.Y)(a.L9,{localizationKey:r,elementDescriptor:i.$z.lineItemsDescriptionSuffix,sx:e=>({color:e.colors.$colorMutedForeground,...d.s.textVariants(e).caption,justifySelf:"flex-end"})}):null]})}}},6997:function(e,t,r){r.d(t,{_:()=>l});var n=r(4518),o=r(5074),a=r(8272);let i=/\[([^\]]+)\]\(([^)]+)\)/g,l=(0,o.memo)(({text:e,...t})=>{let r=(0,o.useMemo)(()=>t,[t]);return(0,o.useMemo)(()=>{let t=[],o=0;return e.replace(i,(i,l,s,c)=>(c>o&&t.push(e.slice(o,c)),t.push((0,n.Y)(a.N_,{href:s,...r,children:l},c)),o=c+i.length,i)),o<e.length&&t.push(e.slice(o)),t},[e,r])})},6980:function(e,t,r){r.d(t,{B:()=>d,W:()=>c});var n=r(4518),o=r(8272),a=r(8920),i=r(6142),l=r(6088),s=r(3269);let c=({children:e})=>(0,n.FD)(o.so,{direction:"col",center:!0,elementDescriptor:a.$z.main,gap:8,sx:e=>({marginTop:e.space.$16,marginBottom:e.space.$13}),children:[(0,n.Y)(o.y$,{size:"xl",colorScheme:"primary",elementDescriptor:a.$z.spinner}),e]}),d=(0,s.dm)(()=>{let e=(0,s.f0)();return(0,n.FD)(l.Z.Root,{children:[(0,n.FD)(l.Z.Content,{children:[(0,n.Y)(l.Z.Alert,{children:e.error}),(0,n.Y)(c,{}),(0,n.Y)(i.j,{})]}),(0,n.Y)(l.Z.Footer,{})]})})},4365:function(e,t,r){r.d(t,{Dr:()=>y,W1:()=>f,cO:()=>v,cQ:()=>g});var n=r(4518),o=r(1210),a=r(5074),i=r(8920),l=r(8272),s=r(1577),c=r(4374),d=r(4620),u=r(3269),p=r(4373);let[m,h]=(0,o.e3)("MenuState"),f=(0,u.P4)(e=>{let{popoverPlacement:t="bottom-end",elementId:r,...o}=e,i=(0,s.f)({placement:t,offset:8,shoudFlip:!0}),l=a.useMemo(()=>({value:{popoverCtx:i,elementId:r}}),[{...i},r]);return(0,n.Y)(m.Provider,{value:l,...o})}),g=e=>{let{children:t,arialLabel:r}=e,{popoverCtx:n,elementId:o}=h(),{reference:l,toggle:s,isOpen:c}=n,d="function"==typeof r?r(c):r;return(0,a.isValidElement)(t)?(0,a.cloneElement)(t,{ref:l,elementDescriptor:t.props.elementDescriptor||i.$z.menuButton,elementId:t.props.elementId||i.$z.menuButton.setId(o),"aria-label":d,"aria-expanded":c,onClick:e=>{t.props?.onClick?.(e),s()}}):null},b=(e,t,r)=>{let n=r?.countSelf?e.tagName:"",o=e;for(;o&&"BUTTON"!==n.toUpperCase();)o=o["prev"===t?"previousElementSibling":"nextElementSibling"],n=o?.tagName??"";return o},v=e=>{let{sx:t,asPortal:r,...o}=e,{popoverCtx:s,elementId:u}=h(),{floating:m,styles:f,isOpen:g,context:v,nodeId:y}=s,w=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{m(w.current)},[g]),(0,n.Y)(p.A,{context:v,nodeId:y,isOpen:g,portal:r,children:(0,n.Y)(l.fv,{elementDescriptor:i.$z.menuList,elementId:i.$z.menuList.setId(u),ref:w,role:"menu",onKeyDown:e=>{let t=w.current;if(t&&t===document.activeElement&&"ArrowDown"===e.key)return e.preventDefault(),b(t.children[0],"next",{countSelf:!0})?.focus()},sx:[e=>({backgroundColor:d.T.makeSolid(e.colors.$colorBackground),borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,outline:"none",borderRadius:e.radii.$md,padding:e.space.$0x5,overflow:"hidden",top:`calc(100% + ${e.space.$2})`,animation:`${c.W.dropdownSlideInScaleAndFade} ${e.transitionDuration.$slower} ${e.transitionTiming.$slowBezier}`,transformOrigin:"top center",zIndex:e.zIndices.$dropdown,gap:e.space.$0x5}),t],style:f,...o})})},y=e=>{let{sx:t,onClick:r,destructive:o,closeAfterClick:s=!0,...c}=e,{popoverCtx:d,elementId:u}=h(),{toggle:p}=d,m=(0,a.useRef)(null);return(0,n.Y)(l.dF,{ref:m,elementDescriptor:i.$z.menuItem,elementId:i.$z.menuItem.setId(u),hoverAsFocus:!0,variant:"ghost",colorScheme:o?"danger":"neutral",role:"menuitem",onKeyDown:e=>{let t=m.current;if(!t)return;let r=e.key;if("ArrowUp"!==r&&"ArrowDown"!==r)return;e.preventDefault();let n=b(t,"ArrowUp"===r?"prev":"next");n?.focus()},focusRing:!1,onClick:e=>{r?.(e),s&&p()},sx:[e=>({justifyContent:"start",borderRadius:e.radii.$sm,padding:`${e.space.$1} ${e.space.$3}`}),t],...c})}},6705:function(e,t,r){r.d(t,{Modal:()=>b,Y:()=>g});var n=r(4518),o=r(1210),a=r(5074),i=r(8272),l=r(8920),s=r(1577),c=r(8792),d=r(4374),u=r(7591),p=r(3269),m=r(4373);let[h,f,g]=(0,o.e3)("ModalContext"),b=(0,p.P4)(e=>{let{disableScrollLock:t,enableScrollLock:r}=(0,c.K)(),{handleClose:p,handleOpen:f,contentSx:g,containerSx:b,canCloseModal:v,id:y,style:w,portalRoot:$,initialFocusRef:x}=e,_=(0,a.useRef)(null),{floating:S,isOpen:k,context:C,nodeId:P,toggle:A}=(0,s.f)({defaultOpen:!0,autoUpdate:!1,outsidePress:e=>e.target===_.current,canCloseModal:v});a.useEffect(()=>{k?f?.():p?.()},[k]);let z=a.useMemo(()=>({value:!1===v?{}:{toggle:A}}),[A,v]);return(0,o.UQ)(()=>(r(),()=>{t()}),[]),(0,n.Y)(m.A,{nodeId:P,context:C,isOpen:k,outsideElementsInert:!0,root:$,initialFocus:x,children:(0,n.Y)(h.Provider,{value:z,children:(0,n.Y)(i.so,{id:y,ref:_,elementDescriptor:l.$z.modalBackdrop,style:w,sx:[e=>({animation:`${d.W.fadeIn} 150ms ${e.transitionTiming.$common}`,zIndex:e.zIndices.$modal,backgroundColor:e.colors.$colorModalBackdrop,alignItems:"flex-start",justifyContent:"center",overflow:"auto",width:"100vw",height:["100vh","-webkit-fill-available"],position:"fixed",left:0,top:0}),b],children:(0,n.Y)(i.so,{elementDescriptor:l.$z.modalContent,ref:S,"aria-modal":"true",role:"dialog",sx:[e=>({position:"relative",outline:0,animation:`${d.W.modalSlideAndFade} 180ms ${e.transitionTiming.$easeOut}`,margin:`${e.space.$16} 0`,[u.g.sm]:{margin:`${e.space.$10} 0`}}),g],children:e.children})})})})})},9764:function(e,t,r){r.d(t,{oT:()=>D,jq:()=>P,n8:()=>k,XM:()=>C});var n,o=r(4518),a=r(1210),i=r(5074),l=r(8272),s=r(8920),c=r(78),d=r(1550),u=r(1577);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let m=function(e){return i.createElement("svg",p({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),n||(n=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3.75A.75.75 0 0 1 2.75 3h10.5a.75.75 0 1 1 0 1.5H2.75A.75.75 0 0 1 2 3.75ZM2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 1 1 0 1.5H2.75A.75.75 0 0 1 2 8Zm0 4.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 1 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z"})))};var h=r(4964),f=r(7591),g=r(1464),b=r(4374),v=r(4620),y=r(6088),w=r(3269),$=r(846),x=r(4373);let[_,S,k]=(0,a.e3)("NavbarContext"),C=({children:e,contentRef:t})=>{let[r,n]=i.useState(!1),a=i.useCallback(()=>n(!0),[]),l=i.useCallback(()=>n(!1),[]),s=i.useMemo(()=>({value:{isOpen:r,open:a,close:l,contentRef:t}}),[r]);return(0,o.Y)(_.Provider,{value:s,children:e})},P=e=>{let{contentRef:t,title:r,description:n,routes:a,header:c}=e,{close:u}=S(),{navigate:p}=(0,h.r)(),{navigateToFlowStart:m}=(0,d.C)(),f=(0,h.r)(),g=async e=>{t.current&&(u(),"/"===e.path?await m():await p(e.path))},b=(0,i.useCallback)(e=>{if(e.external)return!1;let t=f.currentPath===f.fullPath&&"/"===e.path,r=f.matches(e.path);return t||r},[f.currentPath]),v=(0,o.Y)(l.fv,{elementDescriptor:s.$z.navbarButtons,sx:e=>({gap:e.space.$0x5}),children:a.map(e=>(0,o.Y)(I,{elementDescriptor:s.$z.navbarButton,elementId:s.$z.navbarButton.setId(e.id),iconElementDescriptor:s.$z.navbarButtonIcon,iconElementId:s.$z.navbarButtonIcon.setId(e.id),onClick:e?.external?()=>p(e.path):()=>g(e),icon:e.icon,isActive:b(e),sx:e=>({padding:`${e.space.$1x5} ${e.space.$3}`,minHeight:e.space.$8}),children:(0,o.Y)(l.L9,{elementDescriptor:s.$z.navbarButtonText,elementId:s.$z.navbarButtonText.setId(e.id),localizationKey:e.name})},e.id))});return(0,o.FD)(o.FK,{children:[(0,o.FD)(A,{title:r,description:n,children:[c,v]}),(0,o.FD)(z,{children:[c,v]})]})},A=e=>{let{title:t,description:r}=e;return(0,o.FD)(l.fv,{elementDescriptor:s.$z.navbar,sx:e=>({[f.g.md]:{display:"none"},flex:`0 0 ${e.space.$57}`,width:e.sizes.$57,position:"relative",maxWidth:e.space.$57,background:g.s.mutedBackground(e),padding:`${e.space.$6} ${e.space.$5} ${e.space.$4} ${e.space.$3}`,marginRight:`calc(${e.space.$2} * -1)`,color:e.colors.$colorForeground,justifyContent:"space-between"}),children:[(0,o.Y)($.$,{}),(0,o.FD)(l.fv,{sx:e=>({gap:e.space.$6,flex:`0 0 ${e.space.$60}`}),children:[(0,o.FD)(l.fv,{sx:e=>({gap:e.space.$0x5,padding:`${e.space.$none} ${e.space.$3}`}),children:[(0,o.Y)(l.DZ,{as:"h1",localizationKey:t}),(0,o.Y)(l.EY,{colorScheme:"secondary",localizationKey:r})]}),e.children]}),(0,o.Y)(y.Z.ClerkAndPagesTag,{sx:{width:"fit-content"}})]})},z=(0,w.P4)(e=>{let t=S(),{floating:r,isOpen:n,open:a,close:c,nodeId:d,context:p}=(0,u.f)({defaultOpen:!1,autoUpdate:!1});return i.useEffect(()=>{t.isOpen?a():c()},[t.isOpen]),i.useEffect(()=>{n||t.close()},[n]),(0,o.Y)(x.A,{nodeId:d,context:p,isOpen:n,portal:!1,children:(0,o.Y)(l.fv,{sx:e=>({position:"absolute",top:0,bottom:0,width:"100%",zIndex:e.zIndices.$navbar,overflow:"hidden",color:e.colors.$colorForeground}),children:(0,o.Y)(l.fv,{ref:r,elementDescriptor:s.$z.navbar,tabIndex:0,sx:e=>({outline:0,position:"absolute",top:0,bottom:0,width:e.space.$60,backgroundColor:v.T.makeSolid(e.colors.$colorBackground),borderTopRightRadius:e.radii.$lg,borderBottomRightRadius:e.radii.$lg,padding:`${e.space.$10} ${e.space.$6}`,animation:`${b.W.navbarSlideIn} ${e.transitionDuration.$slower} ${e.transitionTiming.$slowBezier}`,borderRightWidth:e.borderWidths.$normal,borderRightStyle:e.borderStyles.$solid,borderRightColor:e.colors.$borderAlpha150,boxShadow:e.shadows.$cardContentShadow}),children:e.children})})})}),I=e=>{let{icon:t,children:r,isActive:n,iconElementDescriptor:a,iconElementId:i,sx:s,...c}=e;return(0,o.FD)(l.$n,{variant:"unstyled",colorScheme:n?"primary":"neutral",textVariant:"buttonLarge",size:"md",isActive:n,focusRing:!1,...c,sx:[e=>({gap:e.space.$3,justifyContent:"flex-start",backgroundColor:n?e.colors.$neutralAlpha100:void 0,color:n?e.colors.$primary500:e.colors.$colorMutedForeground,"&:hover":{backgroundColor:n?void 0:e.colors.$neutralAlpha25},"&:focus":{backgroundColor:n?void 0:e.colors.$neutralAlpha50}}),s],children:[(0,o.Y)(l.In,{elementDescriptor:a,elementId:i,icon:t,sx:{opacity:n?1:.7,transform:"translateZ(0)"}}),r]})},D=({navbarTitleLocalizationKey:e,...t})=>{let{open:r}=k(),{t:n}=(0,c._)();return r?(0,o.Y)(l.so,{elementDescriptor:s.$z.navbarMobileMenuRow,sx:e=>({display:"none",background:g.s.mutedBackground(e),padding:`${e.space.$2} ${e.space.$3} ${e.space.$4} ${e.space.$3}`,marginBottom:`calc(${e.space.$2} * -1)`,[f.g.md]:{display:"flex"}}),children:(0,o.FD)(l.$n,{elementDescriptor:s.$z.navbarMobileMenuButton,...t,onClick:r,size:"xs",textVariant:"h2",variant:"ghost",sx:e=>({color:e.colors.$colorForeground,gap:e.space.$2x5,width:"fit-content",alignItems:"center",justifyContent:"center"}),children:[(0,o.Y)(l.In,{elementDescriptor:s.$z.navbarMobileMenuButtonIcon,icon:m,size:"md"}),n(e)]})}):null}},6890:function(e,t,r){r.d(t,{h:()=>a});var n=r(4518),o=r(6195);let a=e=>{let{name:t="",imageUrl:r,...a}=e;return(0,n.Y)(o.e,{title:t,initials:(t||" ")[0],imageUrl:r,rounded:!1,...a})}},9001:function(e,t,r){r.d(t,{Q:()=>s});var n=r(4518);r(5074);var o=r(8272),a=r(8920),i=r(3486),l=r(6890);let s=e=>{let{organization:t,size:r="md",icon:s,rounded:c=!1,badge:d,sx:u,user:p,avatarSx:m,mainIdentifierSx:h,mainIdentifierVariant:f,elementId:g,...b}=e,{localizeCustomRole:v}=(0,i.l)(),y=p?.organizationMemberships.find(e=>e.organization.id===t.id),w=y?.roleName,$=v(y?.role)||w;return(0,n.FD)(o.so,{elementDescriptor:a.$z.organizationPreview,elementId:a.$z.organizationPreview.setId(g),gap:3,align:"center",as:"span",sx:[{minWidth:"0"},u],...b,children:[(0,n.FD)(o.so,{elementDescriptor:a.$z.organizationPreviewAvatarContainer,elementId:a.$z.organizationPreviewAvatarContainer.setId(g),justify:"center",as:"span",sx:{position:"relative"},children:[(0,n.Y)(l.h,{boxElementDescriptor:a.$z.organizationPreviewAvatarBox,imageElementDescriptor:a.$z.organizationPreviewAvatarImage,...t,size:e=>({xs:e.sizes.$5,sm:e.sizes.$8,md:e.sizes.$9,lg:e.sizes.$12})[r],sx:m,rounded:c}),s&&(0,n.Y)(o.so,{sx:{position:"absolute",left:0,bottom:0},children:s})]}),(0,n.FD)(o.so,{elementDescriptor:a.$z.organizationPreviewTextContainer,elementId:a.$z.organizationPreviewTextContainer.setId(g),direction:"col",justify:"center",as:"span",sx:{minWidth:"0px",textAlign:"left"},children:[(0,n.FD)(o.EY,{elementDescriptor:a.$z.organizationPreviewMainIdentifier,elementId:a.$z.organizationPreviewMainIdentifier.setId(g),variant:f||({xs:"subtitle",sm:"caption",md:"subtitle",lg:"h1"})[r],as:"span",truncate:!0,sx:h,title:t.name,children:[t.name," ",d]}),$&&(0,n.Y)(o.EY,{elementDescriptor:a.$z.organizationPreviewSecondaryIdentifier,elementId:a.$z.organizationPreviewSecondaryIdentifier.setId(g),as:"span",localizationKey:$,truncate:!0})]})]})}},8819:function(e,t,r){r.d(t,{d:()=>y});var n,o,a=r(4518),i=r(8272),l=r(8920),s=r(2861),c=r(78),d=r(5074);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let p=function(e){return d.createElement("svg",u({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),n||(n=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.55 4.24a.75.75 0 0 1-.04 1.06L6.604 7.998l2.655 2.45a.744.744 0 0 1 .021.022l.25.25a.75.75 0 1 1-1.06 1.06l-.24-.24-3.239-2.989a.75.75 0 0 1-.001-1.1l3.5-3.25a.75.75 0 0 1 1.06.039Z"})))};function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let h=function(e){return d.createElement("svg",m({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o||(o=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.45 11.76a.75.75 0 0 1 .04-1.06l2.906-2.698-2.655-2.45a.756.756 0 0 1-.021-.022l-.25-.25a.75.75 0 0 1 1.06-1.06l.24.24 3.239 2.989a.75.75 0 0 1 .001 1.1l-3.5 3.25a.75.75 0 0 1-1.06-.039Z"})))};var f=r(7591);let g=e=>{let{sx:t,isActive:r,icon:n,children:o,...s}=e;return(0,a.FD)(i.$n,{size:"xs",variant:"outline",sx:e=>[{color:e.colors.$colorForeground,opacity:r?1:e.opacity.$inactive,padding:`${e.space.$0x5} ${e.space.$0x5}`},t],elementDescriptor:l.$z.paginationButton,...s,children:[n&&(0,a.Y)(i.In,{size:"md",elementDescriptor:l.$z.paginationButtonIcon,icon:e.icon}),o]})},b=e=>{let{rowInfo:{startingRow:t,endingRow:r,allRowsCount:n}}=e;return(0,a.FD)(i.EY,{children:[(0,a.Y)(i.EY,{as:"span",elementDescriptor:l.$z.paginationRowText,elementId:l.$z.paginationRowText?.setId("displaying"),sx:e=>({opacity:e.opacity.$inactive}),localizationKey:(0,s.G)("paginationRowText__displaying"),colorScheme:"secondary"})," ",(0,a.Y)(i.EY,{as:"span",elementDescriptor:l.$z.paginationRowText,elementId:l.$z.paginationRowText?.setId("rowsCount"),sx:e=>({fontWeight:e.fontWeights.$medium}),children:t===r&&[0,1].includes(t)?t:`${t} – ${r}`})," ",(0,a.Y)(i.EY,{as:"span",elementDescriptor:l.$z.paginationRowText,elementId:l.$z.paginationRowText?.setId("displaying"),sx:e=>({opacity:e.opacity.$inactive}),localizationKey:(0,s.G)("paginationRowText__of")})," ",(0,a.Y)(i.EY,{as:"span",elementDescriptor:l.$z.paginationRowText,elementId:l.$z.paginationRowText?.setId("allRowsCount"),children:n})]})},v=()=>(0,a.Y)(i.so,{center:!0,children:(0,a.Y)(i.EY,{colorScheme:"secondary",children:"..."})}),y=e=>{let{page:t,count:r,rowInfo:n,siblingCount:o=1,onChange:l}=e,{t:d}=(0,c._)();return(0,a.FD)(i.so,{justify:n?"between":"center",align:"center",sx:e=>({fontSize:e.fontSizes.$sm,"*":{fontSize:"inherit"},[f.g.sm]:{flexDirection:"column",gap:e.space.$2}}),children:[n&&(0,a.Y)(b,{rowInfo:n}),(0,a.FD)(i.so,{gap:2,align:"center",sx:{display:"inline-flex"},children:[(0,a.Y)(g,{isDisabled:t<=1,icon:p,"aria-label":d((0,s.G)("paginationButton__previous")),onClick:()=>{l?.(t-1)}}),Array.from({length:r-1+1},(e,t)=>1+t).map(e=>Math.abs(t-e)<=o||e===r||1===e?(0,a.Y)(g,{isActive:e===t,variant:"ghost",onClick:()=>{l?.(e)},children:e},e):Math.abs(t-e)===o+1?(0,a.Y)(v,{},e):null),(0,a.Y)(g,{isDisabled:t>=r||t<1,icon:h,"aria-label":d((0,s.G)("paginationButton__next")),onClick:()=>{l?.(t+1)}})]})]})}},781:function(e,t,r){r.d(t,{i:()=>a});var n=r(4518),o=r(9345);let a=e=>(0,n.Y)(o.c,{elementId:"personalWorkspace",rounded:!1,...e})},1820:function(e,t,r){r.d(t,{mK:()=>o,nU:()=>i,zh:()=>l});let n=[["United States","us","1","(...) ...-....",100],["United Kingdom","gb","44",".... ......",100],["India","in","91",".....-.....",100],["Canada","ca","1","(...) ...-....",100],["Germany","de","49","... .......",100],["France","fr","33",". .. .. .. ..",100],["Russia","ru","7","... ...-..-..",100],["Afghanistan","af","93"],["\xc5land Islands","ax","358"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61","... ... ..."],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375"],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1441"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599"],["Cayman Islands","ky","1345"],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","...-....-...."],["Colombia","co","57"],["Comoros","km","269"],["Democratic Republic of the Congo","cd","243"],["Republic of the Congo","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506","....-...."],["C\xf4te d’Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599"],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1"],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30","... ......."],["Greenland","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590"],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972"],["Italy","it","39","... ......"],["Jamaica","jm","1876"],["Japan","jp","81","... .. ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-.."],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262"],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1664"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",".. ........"],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1670"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1"],["Qatar","qa","974"],["R\xe9union","re","262"],["Romania","ro","40"],["Rwanda","rw","250"],["Saint Barth\xe9lemy","bl","590"],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin","mf","590"],["Saint Pierre and Miquelon","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Sint Maarten","sx","1721"],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Eswatini","sz","268"],["Sweden","se","46",".. ... .. .."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["Uruguay","uy","598"],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ...."],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis and Futuna","wf","681"],["Western Sahara","eh","212"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],o={us:new Set(["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]),ca:new Set(["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"])},a=([e,t,r,n="",o=0])=>({name:e,iso:t,code:r,pattern:n,priority:o}),i=n.reduce((e,t)=>e.set(t[1],a(t)),new Map),l=n.reduce((e,t)=>{let r=t[2],n=a(t);return e.has(r)?e.get(r)?.push(n):e.set(r,[n]),e},new Map)},4373:function(e,t,r){r.d(t,{A:()=>a});var n=r(4518),o=r(2119);r(5074);let a=e=>{let{context:t,initialFocus:r,outsideElementsInert:a=!1,order:i=["reference","content"],nodeId:l,isOpen:s,portal:c=!0,root:d,children:u}=e;return c?(0,n.Y)(o.$c,{id:l,children:(0,n.Y)(o.XF,{root:d,children:s&&(0,n.Y)(o.s3,{context:t,initialFocus:r,outsideElementsInert:a,order:i,children:(0,n.Y)(n.FK,{children:u})})})}):(0,n.Y)(o.$c,{id:l,children:s&&(0,n.Y)(o.s3,{context:t,initialFocus:r,order:i,children:(0,n.Y)(n.FK,{children:u})})})}},9972:function(e,t,r){r.d(t,{Y:()=>h});var n=r(4518),o=r(5074),a=r(7697),i=r(4607),l=r(8920),s=r(8272),c=r(6580),d=r(4374),u=r(1464),p=r(4620),m=r(6088);let h={Root:o.forwardRef((e,t)=>{let{elementDescriptor:r,shouldEntryAnimate:o=!0,...a}=e;return(0,n.Y)(i.n.Part,{part:"popover",children:(0,n.Y)(m.Z.Root,{elementDescriptor:[l.$z.popoverBox,r],...a,ref:t,sx:[e=>({width:e.sizes.$94,maxWidth:`calc(100vw - ${e.sizes.$8})`,zIndex:e.zIndices.$modal,borderRadius:e.radii.$xl,outline:"none"}),e=>({animation:o?`${d.W.dropdownSlideInScaleAndFade} ${e.transitionDuration.$fast}`:void 0})],children:e.children})})}),Content:e=>{let{sx:t,...r}=e;return(0,n.Y)(s.so,{direction:"col",sx:[e=>({backgroundColor:e.colors.$colorBackground,overflow:"hidden",borderRadius:e.radii.$lg,zIndex:e.zIndices.$card,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,marginInline:"-1px",marginBlockStart:"-1px"}),t],...r,children:e.children})},Footer:e=>{let{sx:t,children:r,...o}=e,{branded:i}=(0,a.O)().displayConfig,{privacyPageUrl:l,termsPageUrl:d,helpPageUrl:h}=(0,c.K)().parsedOptions;return(0,n.FD)(s.fv,{justify:"between",sx:[e=>({background:u.s.mergedColorsBackground(p.T.setAlpha(e.colors.$colorBackground,1),e.colors.$neutralAlpha50),marginTop:`calc(${e.space.$2} * -1)`,paddingTop:e.space.$2,"&:empty":{padding:0,marginTop:0},">:not(:first-of-type)":{padding:`${e.space.$4} ${e.space.$8}`,borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100}}),t],...o,children:[r,(0,n.Y)(m.Z.ClerkAndPagesTag,{outerSx:e=>({padding:`${e.space.$4} ${e.space.$8}`}),withFooterPages:!!(i||l||d||h),devModeNoticeSx:e=>({padding:e.space.$none}),withDevOverlay:!0})]})}}},1986:function(e,t,r){r.d(t,{Z:()=>a});var n=r(5074),o=r(5323);let a=e=>{let t=n.useRef(document.createElement("div"));return n.useEffect(()=>(document.body.appendChild(t.current),()=>{document.body.removeChild(t.current)}),[]),(0,o.createPortal)(e.children,t.current)}},750:function(e,t,r){r.d(t,{P:()=>i});var n=r(4518),o=r(8272),a=r(3269);let i=e=>{let{sx:t,children:r,icon:i,iconProps:l,showIconOnHover:s=!0,...c}=e,d=(0,a.f0)(),{sx:u,...p}=l||{};return(0,n.FD)(o.$n,{variant:"ghost",colorScheme:"neutral",focusRing:!1,block:!0,hoverAsFocus:!0,isDisabled:d.isLoading,sx:[e=>({justifyContent:"space-between",padding:`${e.space.$4} ${e.space.$5}`,borderRadius:0,...s?{":hover > svg":{visibility:"initial"}}:{}}),t],...c,children:[r,i&&(0,n.Y)(o.In,{icon:i,sx:[e=>({color:e.colors.$colorMutedForeground,marginLeft:e.space.$2,visibility:s?"hidden":"initial"}),u],...p})]})}},5396:function(e,t,r){r.d(t,{a:()=>h});var n=r(4518),o=r(5074),a=r(8272),i=r(8920),l=r(4964),s=r(7591),c=r(1464),d=r(5057),u=r(6088),p=r(155),m=r(6705);let h={Root:o.forwardRef((e,t)=>{let{sx:r,children:o,...l}=e,{toggle:c}=(0,m.Y)();return(0,n.FD)(u.Z.Root,{ref:t,sx:[e=>({width:e.sizes.$220,maxWidth:`calc(100vw - ${e.sizes.$8})`,display:"flex",flexDirection:"row",[s.g.md]:{display:"flex",flexDirection:"column"},overflow:"hidden",height:e.sizes.$176,position:"relative"}),r],...l,children:[c&&(0,n.Y)(a.az,{sx:e=>({[s.g.md]:{padding:`${e.space.$1x5} ${e.space.$2}`,top:e.space.$none,right:e.space.$none},zIndex:e.zIndices.$modal,position:"absolute",top:e.space.$2,right:e.space.$2}),children:(0,n.Y)(p.K,{elementDescriptor:i.$z.modalCloseButton,variant:"ghost","aria-label":"Close modal",onClick:c,icon:(0,n.Y)(a.In,{icon:d.A,size:"sm"}),sx:e=>({color:e.colors.$colorMutedForeground,padding:e.space.$3})})}),o,(0,n.Y)(u.Z.Footer,{isProfileFooter:!0,sx:{display:"none",[s.g.md]:{display:"flex"}}})]})}),Content:e=>{let{contentRef:t,children:r,scrollBoxId:d}=e,u=(0,l.r)(),p=o.useRef(0);return o.useEffect(()=>{let e=e=>{let t=e.target;t.scrollTop&&(p.current=t.scrollTop)};return t?.current?.addEventListener("scroll",e),()=>t?.current?.removeEventListener("scroll",e)},[]),o.useLayoutEffect(()=>{p.current&&t?.current&&(t.current.scrollTop=p.current)},[u.currentPath]),(0,n.Y)(a.fv,{elementDescriptor:i.$z.scrollBox,sx:e=>({backgroundColor:e.colors.$colorBackground,position:"relative",borderRadius:e.radii.$lg,width:"100%",overflow:"hidden",borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,marginBlock:"-1px",marginInlineEnd:"-1px",flex:1}),"data-clerk-profile-scroll-box-root":d,children:(0,n.Y)(a.fv,{elementDescriptor:i.$z.pageScrollBox,sx:e=>({flex:"1",scrollbarGutter:"stable",paddingTop:e.space.$7,paddingBottom:e.space.$7,paddingLeft:e.space.$8,paddingRight:e.space.$6,[s.g.sm]:{padding:`${e.space.$8} ${e.space.$5}`},...c.s.maxHeightScroller(e)}),ref:t,children:r})})}}},6760:function(e,t,r){r.d(t,{U:()=>l});var n=r(4518),o=r(5074),a=r(6580),i=r(6505);let l=e=>{let t=(0,a.K)(),r=c(o.Children.toArray(e.children),e=>(0,n.Y)(i.c,{},`divider${e}`));return(0,n.Y)(s,{reverse:"bottom"===t.parsedOptions.socialButtonsPlacement,...e,children:r})},s=e=>{let{children:t,reverse:r}=e;return(0,n.Y)(n.FK,{children:r?o.Children.toArray(t).reverse():t})},c=(e,t)=>e.reduce((r,n,o)=>o===e.length-1?[...r,n]:[...r,n,t(o)],[])},1005:function(e,t,r){r.d(t,{M:()=>a});var n=r(4518),o=r(8272);let a=e=>(0,n.Y)(o.fv,{...e,sx:e=>({boxSizing:"border-box",width:"fit-content",color:e.colors.$colorForeground,fontFamily:e.fonts.$main,fontStyle:e.fontStyles.$normal})})},4387:function(e,t,r){r.d(t,{W:()=>i});var n=r(4518),o=r(8272),a=r(4964);let i=e=>{let{to:t,onClick:r,...i}=e,l=(0,a.r)(),s=l.resolve(t||l.indexPath);return(0,n.Y)(o.N_,{...i,onClick:e=>(e.preventDefault(),r&&!t)?r(e):l.navigate(s.href),href:s.href})}},4003:function(e,t,r){r.d(t,{rd:()=>m});var n=r(4518),o=r(5074),a=r(8272),i=r(8920),l=r(9679),s=r(7591),c=r(579),d=r(8738),u=r(4365);let p=(0,o.forwardRef)((e,t)=>{let{children:r,leftIcon:o=l.A,id:a,sx:s,localizationKey:c,...u}=e;return(0,n.Y)(d.X,{elementDescriptor:i.$z.profileSectionPrimaryButton,elementId:i.$z.profileSectionPrimaryButton.setId(a),variant:"ghost",sx:[e=>({textWrap:"nowrap",justifyContent:"start",height:e.sizes.$8}),s],textLocalizationKey:c,leftIcon:o,leftIconSx:e=>({width:e.sizes.$4,height:e.sizes.$4}),ref:t,...u,children:r})}),m={Root:e=>{let{title:t,centered:r=!0,children:l,id:c,sx:d,...u}=e,p=(0,o.useRef)(null),[m,f]=(0,o.useState)(0);return(0,o.useLayoutEffect)(()=>{let e=p.current;e&&f(e.clientHeight+e.clientTop||0)},[]),(0,n.FD)(a.so,{elementDescriptor:i.$z.profileSection,elementId:i.$z.profileSection.setId(c),sx:[e=>({flexDirection:"row-reverse",borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100,paddingTop:e.space.$4,paddingBottom:e.space.$4,gap:e.space.$6,[s.g.lg]:{flexDirection:"column-reverse",gap:e.space.$2}}),d],...u,children:[(0,n.Y)(a.fv,{elementDescriptor:i.$z.profileSectionContent,elementId:i.$z.profileSectionContent.setId(c),gap:2,ref:p,sx:{minWidth:0,width:"100%","+ *":{"--clerk-height":`${m}px`}},children:l}),(0,n.Y)(a.fv,{elementDescriptor:i.$z.profileSectionHeader,elementId:i.$z.profileSectionHeader.setId(c),sx:e=>({padding:r?void 0:`${e.space.$1x5} 0`,gap:e.space.$1,width:e.space.$66,alignSelf:m?"self-start":r?"center":void 0,marginTop:r?"calc(var(--clerk-height)/2)":void 0,transform:m&&r?"translateY(-50%)":void 0,[s.g.lg]:{alignSelf:"self-start",marginTop:"unset",transform:"none",padding:0}}),children:(0,n.Y)(h,{localizationKey:t,elementDescriptor:i.$z.profileSectionTitle,elementId:i.$z.profileSectionTitle.setId(c),textElementDescriptor:i.$z.profileSectionTitleText,textElementId:i.$z.profileSectionTitleText.setId(c)})})]})},ItemList:e=>{let{children:t,id:r,disableAnimation:o=!1,...l}=e,s=(0,n.Y)(a.fv,{elementDescriptor:i.$z.profileSectionItemList,elementId:i.$z.profileSectionItemList.setId(r),sx:e=>({gap:e.space.$0x5}),...l,children:t});return o?s:(0,n.Y)(c.k,{asChild:!0,children:s})},Item:e=>{let{children:t,id:r,sx:o,hoverable:l,...s}=e;return(0,n.Y)(a.so,{elementDescriptor:i.$z.profileSectionItem,elementId:i.$z.profileSectionItem.setId(r),sx:[e=>({justifyContent:"space-between",width:"100%",alignItems:"center",padding:`${e.space.$1} ${e.space.$1} ${e.space.$1} ${e.space.$2x5}`,gap:e.space.$2,...l&&{borderRadius:e.radii.$lg,":hover":{backgroundColor:e.colors.$neutralAlpha50}}}),o],...s,children:t})},Button:e=>{let{children:t,id:r,sx:o,...l}=e;return(0,n.Y)(a.$n,{elementDescriptor:i.$z.profileSectionPrimaryButton,elementId:i.$z.profileSectionPrimaryButton.setId(r),variant:"ghost",sx:[e=>({whiteSpace:"nowrap",justifyContent:"start",gap:e.space.$2,padding:`${e.space.$1x5} ${e.space.$3} ${e.space.$1x5} ${e.space.$2x5}`}),o],...l,children:t})},ArrowButton:p,ButtonGroup:e=>{let{children:t,id:r,...o}=e;return(0,n.Y)(a.so,{elementDescriptor:i.$z.profileSectionButtonGroup,elementId:i.$z.profileSectionButtonGroup.setId(r),justify:"between",gap:2,...o,children:t})},ActionMenu:e=>{let{children:t,triggerLocalizationKey:r,id:o,triggerSx:i,onClick:s}=e;return(0,n.Y)(a.so,{sx:{position:"relative"},children:(0,n.FD)(u.W1,{elementId:o,children:[(0,n.Y)(u.cQ,{children:(0,n.Y)(p,{id:o,textLocalizationKey:r,sx:[e=>({justifyContent:"start",height:e.sizes.$8}),i],leftIcon:l.A,leftIconSx:e=>({width:e.sizes.$4,height:e.sizes.$4}),onClick:s})}),(0,n.Y)(u.cO,{asPortal:!1,sx:e=>({width:"100%",padding:e.space.$1}),children:t})]})})},ActionMenuItem:e=>{let{children:t,isLoading:r,localizationKey:l,sx:s,leftIcon:c,leftIconSx:d,...p}=e,m=(0,o.isValidElement)(c);return(0,n.FD)(u.Dr,{sx:[e=>({padding:`${e.space.$1x5} ${e.space.$2}`}),s],isLoading:r,...p,children:[(r||c)&&(0,n.Y)(a.so,{as:"span",sx:e=>({flex:`0 0 ${e.space.$4}`}),children:r?(0,n.Y)(a.y$,{elementDescriptor:i.$z.spinner,size:"sm"}):!m&&c?(0,n.Y)(a.In,{icon:c,sx:[e=>({color:e.colors.$neutralAlpha600,width:e.sizes.$5}),d]}):c}),(0,n.Y)(a.EY,{localizationKey:l})]})}},h=e=>{let{textElementDescriptor:t,textElementId:r,localizationKey:o,...i}=e;return(0,n.Y)(a.so,{...i,children:(0,n.Y)(a.EY,{localizationKey:o,variant:"subtitle",elementDescriptor:t,elementId:r})})}},6839:function(e,t,r){r.d(t,{I:()=>u});var n=r(4518),o=r(2119),a=r(5074),i=r(8272),l=r(8920);let s=(0,a.createContext)(null),c=a.forwardRef(({children:e,value:t,defaultValue:r,onChange:c,"aria-label":d,"aria-labelledby":u,size:p="md",fullWidth:m=!1,sx:h},f)=>{let[g,b]=(0,a.useState)(r),v=void 0!==t;return(0,n.Y)(s.Provider,{value:{currentValue:v?t:g,onValueChange:e=>{v||b(e),c?.(e)},size:p,fullWidth:m},children:(0,n.Y)(o.eC,{orientation:"horizontal",role:"radiogroup",loop:!1,render:(0,n.Y)(i.so,{ref:f,elementDescriptor:l.$z.segmentedControlRoot,"aria-label":d,"aria-labelledby":u,sx:[e=>({backgroundColor:e.colors.$neutralAlpha50,borderRadius:e.radii.$md,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha100,isolation:"isolate"}),h]}),children:e})})});c.displayName="SegmentedControl.Root";let d=a.forwardRef(({text:e,value:t},r)=>{let{currentValue:c,onValueChange:d,size:u,fullWidth:p}=function(){let e=(0,a.useContext)(s);if(!e)throw Error("SegmentedControl.Button must be used within SegmentedControl.Root");return e}(),m=t===c;return(0,n.Y)(o.lb,{render:o=>(0,n.Y)(i.dF,{ref:r,...o,localizationKey:e,elementDescriptor:l.$z.segmentedControlButton,variant:"unstyled",role:"radio","aria-checked":m,onClick:()=>d(t),isActive:m,sx:e=>({position:"relative",width:p?"100%":"auto",backgroundColor:m?e.colors.$colorBackground:"transparent",color:m?e.colors.$colorForeground:e.colors.$colorMutedForeground,fontSize:"lg"===u?e.fontSizes.$md:e.fontSizes.$xs,minHeight:e.sizes.$6,boxShadow:m?e.shadows.$segmentedControl:"none",borderRadius:`calc(${e.radii.$md} - ${e.borderWidths.$normal})`,zIndex:1,":focus-visible":{zIndex:2}})})})});d.displayName="SegmentedControl.Button";let u={Root:c,Button:d}},1586:function(e,t,r){r.d(t,{JC:()=>S,l6:()=>y,UL:()=>_});var n=r(4518),o=r(1210),a=r(5074),i=r(8272),l=r(8920),s=r(1577),c=r(7649),d=r(1464),u=r(4374),p=r(4620),m=r(3269),h=r(4373);let[f,g]=(0,o.e3)("SelectState"),b=(e,t)=>(0,n.Y)(i.so,{sx:e=>({position:"relative",width:"100%",padding:`${e.space.$2} ${e.space.$4}`,margin:`0 ${e.space.$1}`,borderRadius:e.radii.$md,'&:hover, &[data-focused="true"]':{background:d.s.mutedBackground(e)},"&::before":{content:'""',position:"absolute",inset:`calc(${e.space.$0x5} * -1) calc(${e.space.$1} * -1)`}}),children:(0,n.Y)(i.EY,{truncate:!0,children:e.label||e.value})}),v=e=>e.label||e.value,y=(0,m.P4)(e=>{let{value:t,options:r,onChange:o,renderOption:i,noResultsMessage:l,comparator:c,placeholder:d="Select an option",searchPlaceholder:u,elementId:p,children:m,portal:h=!1,referenceElement:g=null,...y}=e,w=(0,s.f)({autoUpdate:!0,adjustToReferenceWidth:!!g,referenceElement:g}),$=w.toggle,x=a.useRef(null),k=(e=>{let{items:t,comparator:r,searchTermForItem:n}=e,[o,i]=a.useState(""),l=a.useMemo(()=>t.reduce((e,t)=>(e.set(t,n?.(t)),e),new Map),[t]),s=a.useMemo(()=>o?t.filter(e=>r(o,e,l.get(e))):t,[t,o]);return{searchInputProps:{onChange:e=>i(e.target.value||""),value:o},filteredItems:s}})({items:r,comparator:c||(()=>!0)}),C=a.useCallback(e=>{o?.(e),$()},[$,o]),P=(0,n.FD)(n.FK,{children:[(0,n.Y)(_,{}),(0,n.Y)(S,{})]});return(0,n.Y)(f.Provider,{value:{value:{popoverCtx:w,searchInputCtx:k,selectedOption:r.find(e=>e.value===t)||null,noResultsMessage:l,focusedItemRef:x,value:t,renderOption:i||b,buttonRenderOption:i||v,placeholder:d,searchPlaceholder:u,comparator:c,select:C,onTriggerClick:$,elementId:p,portal:h}},...y,children:a.Children.count(m)?m:P})}),w=a.memo(a.forwardRef((e,t)=>{let{option:r,renderOption:o,isSelected:s,index:c,handleSelect:d,isFocused:u,elementId:p}=e;return(0,n.Y)(i.so,{ref:t,sx:{userSelect:"none",cursor:"pointer"},onClick:()=>{d(r)},children:a.cloneElement(o(r,c,s),{elementDescriptor:l.$z.selectOption,elementId:l.$z.selectOption.setId(p),"data-selected":s,"data-focused":u})})})),$=e=>{let{sx:t,...r}=e;a.useEffect(()=>()=>e.onChange({target:{value:""}}),[]);let{elementId:o}=g();return(0,n.Y)(i.so,{sx:e=>({padding:e.space.$0x5}),children:(0,n.Y)(i.pd,{elementDescriptor:l.$z.selectSearchInput,elementId:l.$z.selectSearchInput.setId(o),focusRing:!1,variant:"unstyled",sx:[e=>({borderRadius:e.radii.$md,backgroundColor:e.colors.$neutralAlpha100,padding:e.space.$2}),t],...r})})},x=e=>{let{sx:t,...r}=e;return(0,n.Y)(i.EY,{as:"div",sx:[e=>({width:"100%",padding:`${e.space.$1} ${e.space.$2} ${e.space.$2} ${e.space.$2}`}),t],...r})},_=e=>{let{containerSx:t,sx:r,...o}=e,{popoverCtx:s,searchInputCtx:c,value:d,renderOption:m,searchPlaceholder:f,comparator:b,focusedItemRef:v,noResultsMessage:y,select:_,onTriggerClick:S,elementId:k,portal:C}=g(),{filteredItems:P,searchInputProps:A}=c,[z,I]=(0,a.useState)(0),{isOpen:D,floating:R,styles:Y,nodeId:E,context:T}=s,F=a.useRef(null);return a.useEffect(()=>{D?v.current?.scrollIntoView?.({block:"nearest"}):I(-1)},[z,D]),a.useEffect(()=>I(0),[P.length]),a.useEffect(()=>{if(b||F?.current?.focus(),D){I(P.findIndex(e=>e.value===d)),v.current?.scrollIntoView?.({block:"nearest"});return}},[D]),(0,n.Y)(h.A,{nodeId:E,context:T,isOpen:D,portal:C||!1,order:["content"],children:(0,n.FD)(i.so,{elementDescriptor:l.$z.selectOptionsContainer,elementId:l.$z.selectOptionsContainer.setId(k),ref:R,onKeyDown:e=>"ArrowUp"===e.key?(e.preventDefault(),D)?I((e=0)=>0===e?P.length-1:e-1):S():"ArrowDown"===e.key?(e.preventDefault(),D)?I((e=0)=>e===P.length-1?0:e+1):S():"Enter"===e.key&&z>=0?(e.preventDefault(),_(P[z])):void 0,direction:"col",justify:"start",sx:[e=>({backgroundColor:p.T.makeSolid(e.colors.$colorBackground),borderRadius:e.radii.$lg,overflow:"hidden",animation:`${u.W.dropdownSlideInScaleAndFade} ${e.transitionDuration.$slower} ${e.transitionTiming.$slowBezier}`,transformOrigin:"top center",boxShadow:e.shadows.$menuShadow,zIndex:e.zIndices.$dropdown}),r],style:{...Y,left:Y.left-1},children:[b&&(0,n.Y)($,{placeholder:f,...A}),(0,n.FD)(i.so,{ref:F,direction:"col",tabIndex:b?void 0:0,sx:[e=>({gap:e.space.$0x5,outline:"none",overflowY:"auto",maxHeight:"18vh",padding:`${e.space.$0x5} ${e.space.$0x5}`}),t],...o,children:[P.map((e,t)=>{let r=t===z,o=d===e.value;return(0,n.Y)(w,{index:t,ref:r?v:void 0,option:e,renderOption:m,isSelected:o,isFocused:r,handleSelect:_,elementId:k},e.value)}),y&&0===P.length&&(0,n.Y)(x,{children:y})]})]})})},S=e=>{let{sx:t,children:r,icon:o,iconSx:a,...s}=e,{popoverCtx:d,onTriggerClick:u,buttonRenderOption:p,selectedOption:m,placeholder:h,elementId:f}=g(),{reference:b}=d,v=r;return r||(v=m?p(m):(0,n.Y)(i.EY,{as:"span",sx:e=>({opacity:e.opacity.$inactive}),children:h})),(0,n.FD)(i.$n,{elementDescriptor:l.$z.selectButton,elementId:l.$z.selectButton.setId(f),ref:b,variant:"outline",textVariant:"buttonLarge",onClick:u,sx:[e=>({gap:e.space.$2,paddingLeft:e.space.$3x5,paddingRight:e.space.$3x5,alignItems:"center","> *":{pointerEvents:"none"}}),t],...s,children:[v,(0,n.Y)(i.In,{elementDescriptor:l.$z.selectButtonIcon,elementId:l.$z.selectButtonIcon.setId(f),size:"md",icon:o||c.A,sx:a})]})}},3226:function(e,t,r){r.d(t,{V:()=>y});var n=r(4518),o=r(1652),a=r(1210),i=r(5074),l=r(2660),s=r(6580),c=r(8272),d=r(8920),u=r(2861),p=r(2216),m=r(2229),h=r(7591),f=r(6735),g=r(8975),b=r(3269),v=r(2523);let y=i.memo(e=>{let{oauthCallback:t,web3Callback:r,alternativePhoneCodeCallback:i,enableOAuthProviders:g=!0,enableWeb3Providers:y=!0,enableAlternativePhoneCodeProviders:x=!0,idleAfterDelay:_=!0,showLastAuthenticationStrategy:S=!1}=e,{web3Strategies:k,authenticatableOauthStrategies:C,strategyToDisplayData:P,alternativePhoneCodeChannels:A}=(0,p.k)(),z=(0,m.F)(),I=(0,b.f0)(),D=(0,a.ho)(),{socialButtonsVariant:R}=(0,s.K)().parsedOptions,Y=[...g?C:[],...y?k:[],...x?A:[]];if(!Y.length)return null;let E=S?D.client?.lastAuthenticationStrategy:null,T=E?.startsWith("saml_")?E.replace("saml_","oauth_"):E,F=T&&Y.includes(T)?T:null,{strategyRows:L,lastAuthenticationStrategyPresent:M}=(0,v.a)([...Y],5,F),B=L.at(+!!M)?.length??0,O=M?Y.length-1:Y.length,j=!M&&2===Y.length,U="blockButton"===R||"iconButton"!==R&&Y.length<=2,W=async e=>{I.setLoading(e);try{e.startsWith("web3_")?await r(e):await t(e)}catch{await (0,f.y)(1e3),I.setIdle()}_&&(await (0,f.y)(5e3),I.setIdle())},H=U?$:w;return(0,n.Y)(c.so,{direction:"col",gap:2,elementDescriptor:d.$z.socialButtonsRoot,children:L.map((e,t)=>(0,n.Y)(c.xA,{elementDescriptor:d.$z.socialButtons,gap:2,sx:r=>({justifyContent:"center",[h.g.sm]:{gridTemplateColumns:j?"repeat(1, minmax(0, 1fr))":void 0},gridTemplateColumns:Y.length<1?"repeat(1, minmax(0, 1fr))":`repeat(${e.length}, ${0===t?"minmax(0, 1fr)":`minmax(0, calc((100% - (${B} - 1) * ${r.sizes.$2}) / ${B}))`})`}),children:e.map(t=>{let r=1===O||t===F&&1===e.length,a=r?`Continue with ${P[t].name}`:P[t].name,s=r?(0,u.G)("socialButtonsBlockButton",{provider:P[t].name}):(0,u.G)("socialButtonsBlockButtonManyInView",{provider:P[t].name}),p=P[t].iconUrl?(0,n.Y)(c._V,{elementDescriptor:[d.$z.providerIcon,d.$z.socialButtonsProviderIcon],elementId:d.$z.socialButtonsProviderIcon.setId(P[t].id),isLoading:I.loadingMetadata===t,isDisabled:I.isLoading,src:P[t].iconUrl,alt:`Sign in with ${P[t].name}`,sx:e=>({width:e.sizes.$4,height:"auto",maxWidth:"100%"})}):(0,n.Y)(l.T,{id:P[t].id,value:P[t].name,isLoading:I.loadingMetadata===t,isDisabled:I.isLoading});return(0,n.Y)(H,{id:P[t].id,onClick:async()=>{(0,o.y)(t)?i(t):await W(t)},isLoading:I.loadingMetadata===t,isDisabled:I.isLoading,label:a,textLocalizationKey:s,icon:p,lastAuthenticationStrategy:t===F&&z>1},t)})},e.join("-")))})}),w=(0,i.forwardRef)((e,t)=>{let{icon:r,label:o,id:a,textLocalizationKey:i,lastAuthenticationStrategy:l,...s}=e;return l?(0,n.Y)($,{...e,ref:t}):(0,n.Y)(c.$n,{ref:t,elementDescriptor:d.$z.socialButtonsIconButton,elementId:d.$z.socialButtonsIconButton.setId(a),textVariant:"buttonLarge",variant:"outline",colorScheme:"neutral",hoverAsFocus:!0,sx:e=>({minHeight:e.sizes.$8,width:"100%"}),...s,children:r})}),$=(0,i.forwardRef)((e,t)=>{let{id:r,icon:o,isLoading:a,label:l,textLocalizationKey:s,lastAuthenticationStrategy:u,...p}=e,m=(0,i.isValidElement)(o);return(0,n.FD)(c.dF,{elementDescriptor:d.$z.socialButtonsBlockButton,elementId:d.$z.socialButtonsBlockButton.setId(r),variant:"outline",block:!0,isLoading:a,hoverAsFocus:!0,ref:t,...p,sx:t=>[{gap:t.space.$4,position:"relative",justifyContent:"flex-start"},e.sx],children:[u&&(0,n.Y)(g.j,{overlay:!0}),(0,n.FD)(c.so,{justify:"center",align:"center",as:"span",gap:3,sx:{width:"100%",overflow:"hidden"},children:[(a||o)&&(0,n.Y)(c.so,{as:"span",center:!0,sx:e=>({flex:`0 0 ${e.space.$4}`}),children:a?(0,n.Y)(c.y$,{size:"sm",elementDescriptor:d.$z.spinner}):!m&&o?(0,n.Y)(c.In,{icon:o,sx:[e=>({color:e.colors.$neutralAlpha600,width:e.sizes.$4,position:"absolute"})]}):o}),(0,n.Y)(c.EY,{elementDescriptor:d.$z.socialButtonsBlockButtonText,elementId:d.$z.socialButtonsBlockButtonText.setId(r),as:"span",truncate:!0,variant:"buttonLarge",localizationKey:s,children:l})]})]})})},6370:function(e,t,r){r.d(t,{B:()=>d});var n=r(4518);r(5074);var o=r(8272),a=r(8920),i=r(1550),l=r(2861),s=r(1475),c=r(6153);let d=e=>{let{text:t,title:r,finishLabel:d,onFinish:u,contents:p,...m}=e,{navigateToFlowStart:h}=(0,i.C)();return(0,n.FD)(o.fv,{...m,gap:4,children:[(0,n.Y)(c.Y.Root,{children:(0,n.Y)(c.Y.Title,{localizationKey:r,textVariant:"subtitle"})}),(0,n.Y)(o.fv,{gap:4,children:Array.isArray(t)?t.map(e=>(0,n.Y)(o.EY,{localizationKey:e,colorScheme:"secondary",sx:e=>({display:"inline",":not(:last-of-type)":{marginRight:e.sizes.$1}})},e.key)):(0,n.Y)(o.EY,{localizationKey:t,colorScheme:"secondary"})}),p,(0,n.Y)(s.c,{children:(0,n.Y)(o.$n,{autoFocus:!0,localizationKey:d||(0,l.G)("userProfile.formButtonPrimary__finish"),elementDescriptor:a.$z.formButtonPrimary,onClick:u||h})})]})}},8511:function(e,t,r){r.d(t,{d:()=>s});var n=r(4518),o=r(5074),a=r(8272),i=r(8920),l=r(1464);let s=(0,o.forwardRef)(({isChecked:e,defaultChecked:t,onChange:r,isDisabled:s=!1,label:c},d)=>{let[u,p]=(0,o.useState)(!!t),m=void 0!==e,h=m?e:u;return(0,n.FD)(a.so,{ref:d,elementDescriptor:i.$z.switchRoot,direction:"row",align:"center",as:"label",sx:e=>({isolation:"isolate",width:"fit-content","&:has(input:focus-visible) > input + span":{...l.s.focusRingStyles(e)}}),children:[(0,n.Y)("input",{type:"checkbox",role:"switch",disabled:s,defaultChecked:t,checked:h,onChange:e=>{s||(m||p(e.target.checked),r?.(e.target.checked))},style:{...l.s.visuallyHidden()}}),(0,n.Y)(a.so,{elementDescriptor:i.$z.switchIndicator,as:"span","data-checked":h,sx:e=>({width:e.sizes.$6,height:e.sizes.$4,alignItems:"center",position:"relative",backgroundColor:h?e.colors.$primary500:e.colors.$neutralAlpha150,borderRadius:999,transition:"background-color 0.2s",opacity:s?.6:1,cursor:s?"not-allowed":"pointer",outline:"none",boxSizing:"border-box",boxShadow:"0px 0px 0px 1px rgba(0, 0, 0, 0.06) inset"}),children:(0,n.Y)(a.so,{as:"span",elementDescriptor:i.$z.switchThumb,sx:e=>({position:"absolute",left:e.sizes.$0x5,width:e.sizes.$3,height:e.sizes.$3,borderRadius:"50%",backgroundColor:e.colors.$colorBackground,boxShadow:e.shadows.$switchControl,transform:`translateX(${h?e.sizes.$2:0})`,transition:"transform 0.2s",zIndex:1})})}),(0,n.Y)(a.EY,{as:"span",variant:"caption",colorScheme:"secondary",localizationKey:c,sx:e=>({paddingInlineStart:e.sizes.$2,cursor:s?"not-allowed":"pointer",userSelect:"none"})})]})});s.displayName="Switch"},5073:function(e,t,r){r.d(t,{T2:()=>g,Kp:()=>b,j7:()=>h,oz:()=>f,tU:()=>m});var n=r(4518),o=r(1210),a=r(5074),i=r(8272),l=r(8920),s=r(78);function c(e){return a.Children.toArray(e).filter(e=>a.isValidElement(e))}let[d,u]=(0,o.e3)("TabsContext"),p=e=>{let t=a.useMemo(()=>({value:e.value}),[e.value.selectedIndex,e.value.setFocusedIndex]);return(0,n.Y)(d.Provider,{value:t,children:e.children})},m=e=>{let{value:t,onChange:r,defaultIndex:o=0,children:i}=e,[l,s]=a.useState(o),[c,d]=a.useState(-1),u=a.useCallback(e=>{r?r(e):s(e)},[r]);return(0,n.Y)(p,{value:{selectedIndex:void 0!==t?t:l,setSelectedIndex:u,focusedIndex:c,setFocusedIndex:d},children:i})},h=e=>{let{children:t,sx:r,...o}=e,{setSelectedIndex:s,selectedIndex:d,setFocusedIndex:p}=u(),m=0,h=c(t).map(e=>{let t=a.cloneElement(e,{tabIndex:e.type===f?m:void 0});return m++,t});return(0,n.Y)(i.so,{elementDescriptor:l.$z.tabListContainer,onKeyDown:e=>{let t=h.filter(e=>!e.props?.isDisabled&&e.type===f).map(e=>e.props.tabIndex),r=t.length,n=t.indexOf(d);if("ArrowLeft"===e.key){let e=0===n?t[r-1]:t[n-1];return p(e),s(e)}if("ArrowRight"===e.key){let e=r-1===n?t[0]:t[n+1];return p(e),s(e)}},role:"tablist",sx:[e=>({borderBottomStyle:e.borderStyles.$solid,borderBottomWidth:e.borderWidths.$normal,borderColor:e.colors.$borderAlpha100}),r],...o,children:h})},f=e=>{let{t}=(0,s._)(),{children:r,sx:o,tabIndex:c,isDisabled:d,localizationKey:p,...m}=e;if(void 0===c)throw Error("Tab component must be a direct child of TabList.");let{setSelectedIndex:h,selectedIndex:f,focusedIndex:g,setFocusedIndex:b}=u(),v=a.useRef(null),y=c===f,w=c===g;return a.useEffect(()=>{d&&0===c&&h(c+1)},[]),a.useEffect(()=>{v.current&&w&&v.current.focus()},[w]),(0,n.FD)(i.$n,{elementDescriptor:l.$z.tabButton,onClick:()=>{h(c),b(-1)},isDisabled:d,tabIndex:y?0:-1,variant:"ghost","aria-selected":y,id:`cl-tab-${c}`,"aria-controls":`cl-tabpanel-${c}`,role:"tab",ref:v,sx:[e=>({background:e.colors.$transparent,color:y?e.colors.$primary500:e.colors.$neutralAlpha700,gap:e.space.$1x5,fontWeight:e.fontWeights.$medium,borderBottomWidth:y?e.borderWidths.$normal:0,borderBottomStyle:e.borderStyles.$solid,borderBottomColor:e.colors.$primary500,marginBottom:y?"-1px":0,borderRadius:0,padding:`${e.space.$2x5} ${e.space.$0x25}`,width:"fit-content","&:hover, :focus":{backgroundColor:e.colors.$transparent,boxShadow:"none"}}),o],...m,children:[t(p),r]})},g=e=>{let{children:t}=e,r=c(t).map((e,t)=>a.cloneElement(e,{tabIndex:t}));return(0,n.Y)(n.FK,{children:r})},b=e=>{let{tabIndex:t,sx:r,children:o,...a}=e;if(void 0===t)throw Error("TabPanel component must be a direct child of TabPanels.");let{selectedIndex:s}=u();return t!==s?null:(0,n.Y)(i.so,{elementDescriptor:l.$z.tabPanel,id:`cl-tabpanel-${t}`,role:"tabpanel",tabIndex:0,"aria-labelledby":`cl-tab-${t}`,sx:[{outline:0},r],...a,children:o})}},6212:function(e,t,r){r.d(t,{F:()=>u});var n=r(4518),o=r(5074),a=r(78),i=r(8272),l=r(8920),s=r(9679),c=r(1464);let d=e=>e.trim(),u=e=>{let{t}=(0,a._)(),{sx:r,placeholder:s,validate:u=()=>!0,value:m,onChange:h,autoFocus:f,validateUnsubmittedEmail:g=()=>null,...b}=e,v=m.split(",").map(d).filter(Boolean),y=new Set(v),w=o.useRef(!0),$=o.useRef(null),[x,_]=o.useState(""),S=e=>{h({target:{value:e.join(",")}}),C(),g("")},k=e=>{let t=(Array.isArray(e)?[...e]:[e]).map(d).filter(Boolean).filter(u).filter(e=>!y.has(e));t.length&&(S([...v,...t]),_(""),C())},C=()=>{$.current?.focus()};return(0,n.FD)(i.so,{elementDescriptor:l.$z.tagInputContainer,align:"start",gap:2,wrap:"wrap",onClick:C,onFocus:C,sx:[e=>({maxWidth:"100%",padding:`${e.space.$1x5} ${e.space.$2}`,backgroundColor:e.colors.$colorInput,color:e.colors.$colorInputForeground,minHeight:e.sizes.$20,maxHeight:e.sizes.$60,overflowY:"auto",cursor:"text",justifyItems:"center",...c.s.borderVariants(e,{hoverStyles:!0}).normal}),r],...b,children:[v.map(e=>(0,n.Y)(p,{onRemoveClick:()=>{S(v.filter(t=>t!==e))},children:e},e)),(0,n.Y)(i.pd,{ref:$,value:x,type:"email","data-testid":"tag-input",placeholder:v.length?void 0:t(s),onKeyDown:e=>{let{key:t}=e;(","===t||" "===t||"Enter"===t)&&x.length?(e.preventDefault(),k(x)):"Backspace"===t&&!x.length&&v.length&&w.current&&(e.preventDefault(),S(v.slice(0,-1))),w.current=!1},onKeyUp:()=>{w.current=!0},onChange:e=>{_(e.target.value),g(e.target.value)},onPaste:e=>{e.preventDefault(),k((e.clipboardData.getData("text")||"").split(/,| |\n|\t/).filter(Boolean).map(e=>e.trim()))},onBlur:e=>{e.preventDefault(),k(x)},focusRing:!1,autoFocus:f,variant:"unstyled",sx:e=>({flexGrow:1,borderWidth:0,width:"initial",padding:0,lineHeight:e.space.$5,paddingLeft:e.space.$1,"::placeholder":{color:e.colors.$colorMutedForeground},boxShadow:"none",":hover":{boxShadow:"none"}})})]})},p=e=>{let{onRemoveClick:t,children:r,...o}=e;return(0,n.FD)(i.so,{elementDescriptor:l.$z.tagPillContainer,onClick:t,gap:1,center:!0,...o,sx:e=>({padding:`${e.space.$0x5} ${e.space.$1x5}`,borderRadius:e.radii.$sm,color:e.colors.$primary500,backgroundColor:e.colors.$neutralAlpha50,boxShadow:e.shadows.$badge,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha100,display:"inline-flex",marginRight:"1px",cursor:"pointer",":hover":{backgroundColor:e.colors.$neutralAlpha100},":hover svg":{color:e.colors.$danger500},overflow:"hidden"}),children:[(0,n.Y)(i.EY,{truncate:!0,variant:"buttonSmall",children:r}),(0,n.Y)(i.In,{elementDescriptor:l.$z.tagPillIcon,size:"md",icon:s.A,sx:e=>({color:e.colors.$colorMutedForeground,transform:"translateY(0px) rotate(45deg)"})})]})}},8080:function(e,t,r){r.d(t,{o:()=>u});var n,o=r(4518),a=r(8272),i=r(8920),l=r(5074);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let c=function(e){return l.createElement("svg",s({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),n||(n=l.createElement("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"},l.createElement("path",{d:"M10.01 10H10M4.01 10H4M16.01 10H16"}))))};var d=r(4365);let u=e=>{let{actions:t,elementId:r,variant:n}=e,l="bordered"===n;return(0,o.FD)(d.W1,{elementId:r,children:[(0,o.Y)(d.cQ,{arialLabel:e=>`${e?"Close":"Open"} menu`,children:(0,o.Y)(a.$n,{sx:e=>l?{width:e.sizes.$6,height:e.sizes.$6}:{padding:e.space.$0x5,boxSizing:"content-box",opacity:e.opacity.$inactive,":hover,:focus-visible":{opacity:1}},variant:l?"bordered":"ghost",colorScheme:l?"secondary":"neutral",elementDescriptor:[i.$z.menuButton,l?i.$z.menuButtonEllipsisBordered:i.$z.menuButtonEllipsis],children:(0,o.Y)(a.In,{icon:c,sx:e=>l?{width:e.sizes.$4,height:e.sizes.$4,opacity:e.opacity.$inactive}:{width:"auto",height:e.sizes.$5}})})}),(0,o.Y)(d.cO,{children:t.map((e,t)=>(0,o.Y)(d.Dr,{destructive:e.isDestructive,onClick:e.onClick,isDisabled:e.isDisabled,localizationKey:e.label},t))})]})}},1829:function(e,t,r){r.d(t,{M:()=>s});var n=r(4518),o=r(1210),a=r(5074),i=r(78),l=r(8272);let s=e=>{let{t}=(0,i._)(),{onClick:r,throttleTimeInSec:s=30,startDisabled:c,children:d,localizationKey:u,showCounter:p=!0,...m}=e,[h,f]=a.useState(0),g=a.useRef(void 0);(0,o.UQ)(()=>{c&&b()},[]),(0,a.useEffect)(()=>()=>clearInterval(g.current),[]);let b=()=>{f(s),g.current=window.setInterval(()=>{f(e=>(1===e&&clearInterval(g.current),e-1))},1e3)};return(0,n.FD)(l.$n,{variant:"link",...m,textVariant:"buttonSmall",isDisabled:h>0||e.isDisabled,onClick:e=>{h||(r?.(e),b())},children:[t(u)||d,h&&p?` (${h})`:""]})}},6455:function(e,t,r){r.d(t,{m_:()=>h});var n=r(4518),o=r(2119),a=r(6836),i=r(4166),l=r(5074),s=r(6580),c=r(8272),d=r(8920),u=r(359);let p=l.createContext(null),m=()=>{let e=l.useContext(p);if(null==e)throw Error("Tooltip components must be wrapped in <Tooltip />");return e},h={Root:function({children:e,...t}){let r=function({initialOpen:e=!1,placement:t="top",open:r,onOpenChange:n}={}){let[c,d]=l.useState(e),p=r??c,m=n??d,h=(0,u.j)(),{animations:f}=(0,s.K)().parsedOptions,g=(0,o.we)({placement:t,open:p,onOpenChange:m,whileElementsMounted:a.ll,middleware:[(0,i.cY)(6),(0,i.UU)({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:6}),(0,i.BN)({padding:6})]}),b=g.context,v=(0,o.Mk)(b,{move:!1,enabled:null==r}),y=(0,o.iQ)(b,{enabled:null==r}),w=(0,o.s9)(b),$=(0,o.It)(b,{role:"tooltip"}),{isMounted:x,styles:_}=(0,o.DL)(b,{duration:200*!!(!h&&!0===f),initial:({side:e})=>({opacity:0,transform:"top"===e?"translateY(4px)":"translateY(-4px)"}),open:{opacity:1,transform:"translate(0)"},close:({side:e})=>({opacity:0,transform:"top"===e?"translateY(4px)":"translateY(-4px)"})}),S=(0,o.bv)([v,y,w,$]);return l.useMemo(()=>({open:p,setOpen:m,isMounted:x,...S,...g,transitionStyles:_}),[p,m,S,g,x,_])}(t);return(0,n.Y)(p.Provider,{value:r,children:e})},Trigger:l.forwardRef(function({children:e,sx:t,...r},a){let i=m(),s=e.ref,d=(0,o.SV)([i.refs.setReference,a,s]);return l.isValidElement(e)?e.props.isDisabled||e.props.disabled?(0,n.Y)(c.L9,{ref:d,...i.getReferenceProps({...r}),"data-state":i.open?"open":"closed",sx:[{width:"fit-content",display:"inline-block",cursor:"not-allowed",outline:"none"},t],tabIndex:0,children:e}):l.cloneElement(e,i.getReferenceProps({ref:d,...r,...e.props,"data-state":i.open?"open":"closed"})):null}),Content:l.forwardRef(function({style:e,text:t,sx:r,...a},i){let l=m(),s=(0,o.SV)([l.refs.setFloating,i]);return l.isMounted?(0,n.Y)(o.XF,{children:(0,n.Y)(c.az,{ref:s,elementDescriptor:d.$z.tooltip,style:{...l.floatingStyles,...e},...l.getFloatingProps(a),children:(0,n.Y)(c.az,{elementDescriptor:d.$z.tooltipContent,style:l.transitionStyles,sx:[e=>({paddingBlock:e.space.$1,paddingInline:e.space.$1x5,borderRadius:e.radii.$md,backgroundColor:e.colors.$black,color:e.colors.$white,maxWidth:e.sizes.$60}),r],children:(0,n.Y)(c.EY,{elementDescriptor:d.$z.tooltipText,localizationKey:t,variant:"body",colorScheme:"inherit"})})})}):null})}},9538:function(e,t,r){r.d(t,{H:()=>i});var n=r(4518),o=r(8095),a=r(6195);let i=e=>{let{name:t,firstName:r,lastName:i,avatarUrl:l,imageUrl:s,...c}=e,d=(0,o.dS)({name:t,firstName:r,lastName:i}),u=(0,o.IM)({name:t,firstName:r,lastName:i});return(0,n.Y)(a.e,{title:d,initials:u,imageUrl:l||s,...c})}},9345:function(e,t,r){r.d(t,{c:()=>c});var n=r(4518),o=r(8095);r(5074);var a=r(78),i=r(8272),l=r(8920),s=r(9538);let c=e=>{let{user:t,externalAccount:r,enterpriseAccount:c,size:d="md",showAvatar:u=!0,icon:p,iconSx:m,rounded:h=!0,imageUrl:f,badge:g,elementId:b,sx:v,title:y,subtitle:w,avatarSx:$,mainIdentifierSx:x,mainIdentifierVariant:_,subtitleProps:S,...k}=e,{t:C}=(0,a._)(),P=(0,o.dS)({...t})||(0,o.dS)({...r})||(0,o.dS)({...c}),A=(0,o.Cm)({...t})||r?.accountIdentifier?.()||c?.emailAddress,z=C(y),I=f||t?.imageUrl||r?.imageUrl,D=e=>({xs:e.sizes.$5,sm:e.sizes.$8,md:e.sizes.$9,lg:e.sizes.$12})[d],R=z||P||A;return(0,n.FD)(i.so,{elementDescriptor:l.$z.userPreview,elementId:l.$z.userPreview.setId(b),align:"center",as:"span",sx:[e=>({minWidth:"0px",width:"fit-content",gap:e.space.$4,minHeight:I&&!u?D(e):void 0}),v],...k,children:[I&&u?(0,n.FD)(i.so,{elementDescriptor:l.$z.userPreviewAvatarContainer,elementId:l.$z.userPreviewAvatarContainer.setId(b),justify:"center",as:"span",sx:{position:"relative"},children:[(0,n.Y)(s.H,{boxElementDescriptor:l.$z.userPreviewAvatarBox,imageElementDescriptor:l.$z.userPreviewAvatarImage,...t,...r,...c,name:P,avatarUrl:I,size:D,sx:$,rounded:h}),p&&(0,n.Y)(i.so,{elementDescriptor:l.$z.userPreviewAvatarIcon,sx:[{position:"absolute",left:0,bottom:0},m],as:"span",children:p})]}):null,(0,n.FD)(i.so,{elementDescriptor:l.$z.userPreviewTextContainer,elementId:l.$z.userPreviewTextContainer.setId(b),direction:"col",justify:"center",as:"span",sx:{minWidth:"0px",textAlign:"left"},children:[(0,n.FD)(i.EY,{elementDescriptor:l.$z.userPreviewMainIdentifier,elementId:l.$z.userPreviewMainIdentifier.setId(b),variant:_||({xs:"subtitle",sm:"caption",md:"subtitle",lg:"h1"})[d],as:"span",sx:[e=>({display:"flex",gap:e.sizes.$1,alignItems:"center"}),x],children:[R&&(0,n.Y)(i.EY,{elementDescriptor:l.$z.userPreviewMainIdentifierText,elementId:l.$z.userPreviewMainIdentifierText.setId(b),as:"span",truncate:!0,sx:{fontWeight:"inherit"},children:R}),g]}),(w||P&&A)&&(0,n.Y)(i.EY,{elementDescriptor:l.$z.userPreviewSecondaryIdentifier,elementId:l.$z.userPreviewSecondaryIdentifier.setId(b),truncate:!0,as:"span",localizationKey:w||A,colorScheme:"secondary",...S})]})]})}},7912:function(e,t,r){r.d(t,{j:()=>m});var n=r(4518);r(5074);var o=r(8272),a=r(8920),i=r(2861),l=r(6088),s=r(3356),c=r(3269),d=r(2454),u=r(6153),p=r(196);let m=e=>{let{showAlternativeMethods:t=!0,cardNotice:r,children:m}=e,h=(0,c.f0)(),f=(0,s.xM)({onCodeEntryFinished:(t,r,n)=>{e.onCodeEntryFinishedAction(t,r,n)},onResendCodeClicked:e.onResendCodeClicked});return(0,n.FD)(l.Z.Root,{children:[(0,n.FD)(l.Z.Content,{children:[(0,n.FD)(u.Y.Root,{children:[(0,n.Y)(u.Y.Title,{localizationKey:e.cardTitle}),(0,n.Y)(u.Y.Subtitle,{localizationKey:e.cardSubtitle}),(0,n.Y)(p.$,{identifier:e.safeIdentifier,avatarUrl:e.profileImageUrl,onClick:e.onBackLinkClicked?void 0:e.onIdentityPreviewEditClicked})]}),(0,n.Y)(l.Z.Alert,{children:h.error}),m,(0,n.FD)(o.fv,{elementDescriptor:a.$z.main,gap:8,children:[(0,n.Y)(d.l.OTPInput,{...f,label:e.inputLabel,resendButton:e.resendButton}),r&&(0,n.Y)(o.Fc,{colorScheme:"warning",children:(0,n.Y)(o.EY,{colorScheme:"warning",localizationKey:r,variant:"caption"})}),(0,n.FD)(o.fv,{gap:3,children:[(0,n.Y)(o.$n,{elementDescriptor:a.$z.formButtonPrimary,block:!0,hasArrow:!0,isLoading:f.isLoading,localizationKey:(0,i.G)("formButtonPrimary"),onClick:f.onFakeContinue}),t&&e.onShowAlternativeMethodsClicked&&(0,n.Y)(l.Z.Action,{elementId:"alternativeMethods",children:(0,n.Y)(l.Z.ActionLink,{localizationKey:e.alternativeMethodsLabel??(0,i.G)("footerActionLink__useAnotherMethod"),onClick:e.onShowAlternativeMethodsClicked})})]})]})]}),(0,n.Y)(l.Z.Footer,{})]})}},2027:function(e,t,r){r.d(t,{_:()=>h,i:()=>f});var n=r(4518);r(5074);var o=r(4607),a=r(8272),i=r(2861),l=r(8920),s=r(4964),c=r(6088),d=r(3269),u=r(6153),p=r(196),m=r(1829);let h=e=>{let{navigate:t}=(0,s.r)(),r=(0,d.f0)();return(0,n.Y)(o.n.Part,{part:"emailLinkVerify",children:(0,n.FD)(c.Z.Root,{children:[(0,n.FD)(c.Z.Content,{children:[(0,n.FD)(u.Y.Root,{showLogo:!0,children:[(0,n.Y)(u.Y.Title,{localizationKey:e.cardTitle}),(0,n.FD)(f,{formSubtitle:e.formSubtitle,resendButton:e.resendButton,onResendCodeClicked:e.onResendCodeClicked,children:[" ",(0,n.Y)(p.$,{identifier:e.safeIdentifier,avatarUrl:e.profileImageUrl,onClick:()=>t("../")})]})]}),(0,n.Y)(c.Z.Alert,{children:r.error}),e.cardNotice&&(0,n.Y)(a.Fc,{colorScheme:"warning",children:(0,n.Y)(a.EY,{colorScheme:"warning",localizationKey:e.cardNotice,variant:"caption"})}),(0,n.Y)(c.Z.Action,{elementId:"alternativeMethods",children:e.onShowAlternativeMethodsClicked&&(0,n.Y)(c.Z.ActionLink,{localizationKey:(0,i.G)("footerActionLink__useAnotherMethod"),onClick:e.onShowAlternativeMethodsClicked})})]}),(0,n.Y)(c.Z.Footer,{})]})})},f=e=>{let t=(0,d.f0)();return(0,n.FD)(a.fv,{elementDescriptor:l.$z.form,gap:1,children:[(0,n.FD)(a.fv,{elementDescriptor:l.$z.formHeader,gap:1,children:[!!e.formSubtitle&&(0,n.Y)(a.EY,{localizationKey:e.formSubtitle,elementDescriptor:l.$z.formHeaderSubtitle,colorScheme:"secondary"}),e.children]}),(0,n.Y)(m.M,{localizationKey:e.resendButton,elementDescriptor:l.$z.formResendCodeLink,onClick:e.onResendCodeClicked,startDisabled:!0,isDisabled:t.isLoading,throttleTimeInSec:60,sx:e=>({marginTop:e.space.$4,width:"100%"})})]})}},6464:function(e,t,r){r.d(t,{Web3SolanaWalletButtons:()=>k});var n=r(4518),o=r(6198),a=r(5334),i=r(4971),l=r(8521),s=r(6137),c=r(5074),d=r(8272),u=r(8920),p=r(1464);let m=e=>{let{value:t,id:r,...o}=e;return(0,n.Y)(d.az,{as:"span",elementDescriptor:[u.$z.walletIcon,u.$z.web3SolanaWalletButtonsWalletInitialIcon],elementId:u.$z.web3SolanaWalletButtonsWalletInitialIcon.setId(r),sx:e=>({...p.s.centeredFlex("inline-flex"),width:e.space.$4,height:e.space.$4,borderRadius:e.radii.$sm,color:e.colors.$colorPrimaryForeground,backgroundColor:e.colors.$primary500}),...o,children:(0,n.Y)(d.EY,{as:"span",variant:"buttonSmall",sx:{...p.s.centeredFlex("inline-flex"),width:"100%"},children:t[0].toUpperCase()??""})})};var h=r(78),f=r(2861),g=r(6088),b=r(3269),v=r(6997),y=r(2523),w=r(7591),$=r(6735);let x=({web3AuthCallback:e})=>{let t=(0,b.f0)(),{wallets:r}=(0,a.v)(),{t:i}=(0,h._)(),l=c.useMemo(()=>r.filter(e=>e.readyState===o.Ok.Installed).map(e=>({name:e.adapter.name,icon:e.adapter.icon})),[r]),{strategyRows:s}=(0,y.a)(l,5,void 0),p=s.at(0)?.length??0,x=2===l.length,k=l.length<=2?S:_;return 0===l.length?(0,n.Y)(g.Z.Alert,{children:(0,n.Y)(v._,{text:i((0,f.G)("web3SolanaWalletButtons.noneAvailable",{solanaWalletsLink:"https://solana.com/solana-wallets"})),isExternal:!0,sx:e=>({textDecoration:"underline",textUnderlineOffset:e.space.$1,color:"inherit"})})}):(0,n.Y)(d.so,{direction:"col",gap:2,elementDescriptor:u.$z.web3SolanaWalletButtonsRoot,children:s.map((o,a)=>(0,n.Y)(d.xA,{elementDescriptor:u.$z.web3SolanaWalletButtons,gap:2,sx:e=>({justifyContent:"center",[w.g.sm]:{gridTemplateColumns:x?"repeat(1, minmax(0, 1fr))":void 0},gridTemplateColumns:r.length<1?"repeat(1, minmax(0, 1fr))":`repeat(${o.length}, ${0===a?"minmax(0, 1fr)":`minmax(0, calc((100% - (${p} - 1) * ${e.sizes.$2}) / ${p}))`})`}),children:o.map(r=>{let o,a=1===l.length?(0,f.G)("web3SolanaWalletButtons.continue",{walletName:r.name}):r.name,s=r.icon?(0,n.Y)(d._V,{elementDescriptor:[u.$z.walletIcon,u.$z.web3SolanaWalletButtonsWalletInitialIcon],isDisabled:t.isLoading,isLoading:t.loadingMetadata===r.name,src:r.icon,alt:i((0,f.G)("web3SolanaWalletButtons.connect",{walletName:r.name})),sx:e=>({width:e.sizes.$4,height:"auto",maxWidth:"100%"})}):(0,n.Y)(m,{value:r.name,isDisabled:t.isLoading,id:r.name});return(0,n.Y)(k,{id:r.name,onClick:(o=r.name,async()=>{t.setLoading(o);try{await e({walletName:o})}catch{await (0,$.y)(1e3)}finally{t.setIdle()}}),isLoading:t.loadingMetadata===r.name,isDisabled:t.isLoading,label:i(a),icon:s},r.name)})},o.map(e=>e.name).join("-")))})},_=(0,c.forwardRef)((e,t)=>{let{icon:r,label:o,id:a,...i}=e;return(0,n.Y)(d.$n,{ref:t,"aria-label":o,textVariant:"buttonLarge",variant:"outline",colorScheme:"neutral",hoverAsFocus:!0,sx:e=>({minHeight:e.sizes.$8,width:"100%"}),...i,children:r})}),S=(0,c.forwardRef)((e,t)=>{let{id:r,icon:o,isLoading:a,label:i,...l}=e,s=(0,c.isValidElement)(o);return(0,n.Y)(d.dF,{variant:"outline",block:!0,isLoading:a,hoverAsFocus:!0,ref:t,...l,sx:t=>[{gap:t.space.$4,position:"relative",justifyContent:"flex-start"},e.sx],children:(0,n.FD)(d.so,{justify:"center",align:"center",as:"span",gap:3,sx:{width:"100%",overflow:"hidden"},children:[(a||o)&&(0,n.Y)(d.so,{as:"span",center:!0,sx:e=>({flex:`0 0 ${e.space.$4}`}),children:a?(0,n.Y)(d.y$,{size:"sm",elementDescriptor:u.$z.spinner}):!s&&o?(0,n.Y)(d.In,{icon:o,sx:[e=>({color:e.colors.$neutralAlpha600,width:e.sizes.$4,position:"absolute"})]}):o}),(0,n.Y)(d.EY,{as:"span",truncate:!0,variant:"buttonLarge",children:i})]})})}),k=e=>{let t=s.RU,r=(0,c.useMemo)(()=>[],[t]);return(0,n.Y)(i.S,{endpoint:t,children:(0,n.Y)(l.r,{wallets:r,onError:e=>{console.error(e)},children:(0,n.Y)(x,{web3AuthCallback:e.web3AuthCallback})})})}},3269:function(e,t,r){r.d(t,{FlowMetadataProvider:()=>g,P4:()=>b,PB:()=>f,dm:()=>m,f0:()=>p});var n=r(4518),o=r(1210),a=r(2119),i=r(5074),l=r(4964),s=r(78);let[c,d]=(0,o.e3)("CardState"),u=e=>{let{translateError:t}=(0,s._)(),r=(0,l.r)(),[o,a]=i.useState(()=>({status:"idle",metadata:void 0,error:t(window?.Clerk?.__internal_last_error||void 0)}));i.useEffect(()=>{let e=window?.Clerk?.__internal_last_error;e&&a(r=>({...r,error:t(e)}))},[t,a,r.currentPath]);let d=i.useMemo(()=>({value:{state:o,setState:a}}),[o,a]);return(0,n.Y)(c.Provider,{value:d,children:e.children})},p=()=>{let{state:e,setState:t}=d(),{translateError:r}=(0,s._)(),n=e=>t(t=>({...t,status:"idle",metadata:e})),o=e=>t(t=>({...t,status:"loading",metadata:e})),a=async(e,t)=>(o(t),("function"==typeof e?e():e).then(e=>e).finally(()=>n(t)));return{setIdle:n,setError:e=>t(t=>({...t,error:r(e)})),setLoading:o,runAsync:a,loadingMetadata:"loading"===e.status?e.metadata:void 0,error:e.error?e.error:void 0,isLoading:"loading"===e.status,isIdle:"idle"===e.status,state:e}},m=e=>t=>(0,n.Y)(u,{children:(0,n.Y)(e,{...t})}),[h,f]=(0,o.e3)("FlowMetadata"),g=e=>{let{flow:t,part:r}=e,o=i.useMemo(()=>({value:e}),[t,r]);return(0,n.Y)(h.Provider,{value:o,children:e.children})},b=e=>t=>null==(0,a.R1)()?(0,n.Y)(a.P6,{children:(0,n.Y)(e,{...t})}):(0,n.Y)(e,{...t})},2523:function(e,t,r){r.d(t,{a:()=>function e(t,r,n){if(n&&t.includes(n)){let o=t.filter(e=>e!==n);return 0===o.length?{strategyRows:[[n]],lastAuthenticationStrategyPresent:!0}:{strategyRows:[[n],...e(o,r,null).strategyRows],lastAuthenticationStrategyPresent:!0}}if(t.length<=r)return{strategyRows:[t],lastAuthenticationStrategyPresent:!1};let o=Math.ceil(t.length/r),a=Math.ceil(t.length/o),i=Array.from({length:o},()=>[]),l=0;for(let e of t)i[l].push(e),i[l].length===a&&l++;return{strategyRows:i,lastAuthenticationStrategyPresent:!1}}})},1778:function(e,t,r){r.d(t,{H:()=>i});var n=r(4518),o=r(5074),a=r(6580);let i=e=>(0,o.forwardRef)((t,r)=>{let{parsedOptions:o}=(0,a.K)();return(0,n.Y)(e,{...t,ref:r,sx:[o.shimmer?{":hover":{"--cl-shimmer-hover-transform":"skew(-45deg) translateX(600%)","--cl-shimmer-hover-after-transform":"skewX(45deg) translateX(-150%)"}}:{},t.sx]})})},4091:function(e,t,r){r.d(t,{KP:()=>o,Rx:()=>a,_8:()=>i,wz:()=>n});let n=Object.freeze({slowest:600,slower:280,slow:200,fast:120,focusRing:200,controls:100,textField:450,drawer:500}),o=Object.freeze(Object.fromEntries(Object.entries(n).map(([e,t])=>[e,`${t}ms`]))),a=Object.freeze({common:"background-color,background,border-color,color,fill,stroke,opacity,box-shadow,transform"}),i=Object.freeze({common:"ease",easeOut:"ease-out",bezier:"cubic-bezier(0.32, 0.72, 0, 1)",slowBezier:"cubic-bezier(0.16, 1, 0.3, 1)"})},3474:function(e,t,r){r.d(t,{y:()=>l});var n=r(2620),o=r(5763),a=r(8289),i=r(2216);function l({filterOutFactor:e,supportedFirstFactors:t}){let{strategies:r}=(0,i.k)(),l=t||[],s=l.filter(t=>t.strategy!==e?.strategy&&!(0,o.Kw)(t.strategy)).length+r.length>0,c=l.filter(t=>!t.strategy.startsWith("oauth_")&&t.strategy!==e?.strategy).filter(e=>(0,o.Cm)(e)).filter(e=>"passkey"!==e.strategy||(0,n.Bz)()).sort(a.aR);return{hasAnyStrategy:s,hasFirstParty:!!c,firstPartyFactors:c}}},7782:function(e,t,r){r.d(t,{i:()=>i});var n=r(5606),o=r.n(n),a=r(5074);function i(e,t={}){let[r,n]=(0,a.useState)(!1),{timeout:l=1500,...s}="number"==typeof t?{timeout:t}:t,c=(0,a.useCallback)(()=>{n(o()(e,s))},[e,s]);return(0,a.useEffect)(()=>{let e=null;return r&&(e=window.setTimeout(()=>{n(!1)},l)),()=>{e&&window.clearTimeout(e)}},[l,r]),{value:e,onCopy:c,hasCopied:r}}},4317:function(e,t,r){r.d(t,{d:()=>o});var n=r(5074);function o(e,t){let[r,o]=(0,n.useState)(e),[a,i]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>(a&&(clearTimeout(a),i(void 0)),i(setTimeout(()=>{o(e),i(void 0)},t||500)),()=>{a&&(clearTimeout(a),i(void 0))}),[JSON.stringify(e),t]),r}},180:function(e,t,r){r.d(t,{Q:()=>i});var n=r(5074),o=r(7697),a=r(6580);function i(){let{displayConfig:e,isDevelopmentOrStaging:t}=(0,o.O)(),r=t(),{unsafe_disableDevelopmentModeWarnings:i=!1}=(0,a.K)().parsedOptions,l=r&&i;return{showDevModeNotice:(0,n.useMemo)(()=>!l&&e.showDevModeWarning,[l,e])}}},2992:function(e,t,r){r.d(t,{u:()=>o});var n=r(5074);function o(e){let{startEmailLinkFlow:t,cancelEmailLinkFlow:r}=n.useMemo(()=>e.createEmailLinkFlow(),[e]);return n.useEffect(()=>r,[]),{startEmailLinkFlow:t,cancelEmailLinkFlow:r}}},2216:function(e,t,r){r.d(t,{k:()=>h});var n=r(1652),o=r(6435);let a=[{provider:"google",strategy:"oauth_google",name:"Google",docsUrl:"https://clerk.com/docs/authentication/social-connections/google"},{provider:"discord",strategy:"oauth_discord",name:"Discord",docsUrl:"https://clerk.com/docs/authentication/social-connections/discord"},{provider:"facebook",strategy:"oauth_facebook",name:"Facebook",docsUrl:"https://clerk.com/docs/authentication/social-connections/facebook"},{provider:"twitch",strategy:"oauth_twitch",name:"Twitch",docsUrl:"https://clerk.com/docs/authentication/social-connections/twitch"},{provider:"twitter",strategy:"oauth_twitter",name:"Twitter",docsUrl:"https://clerk.com/docs/authentication/social-connections/twitter"},{provider:"microsoft",strategy:"oauth_microsoft",name:"Microsoft",docsUrl:"https://clerk.com/docs/authentication/social-connections/microsoft"},{provider:"tiktok",strategy:"oauth_tiktok",name:"TikTok",docsUrl:"https://clerk.com/docs/authentication/social-connections/tiktok"},{provider:"linkedin",strategy:"oauth_linkedin",name:"LinkedIn",docsUrl:"https://clerk.com/docs/authentication/social-connections/linkedin"},{provider:"linkedin_oidc",strategy:"oauth_linkedin_oidc",name:"LinkedIn",docsUrl:"https://clerk.com/docs/authentication/social-connections/linkedin-oidc"},{provider:"github",strategy:"oauth_github",name:"GitHub",docsUrl:"https://clerk.com/docs/authentication/social-connections/github"},{provider:"gitlab",strategy:"oauth_gitlab",name:"GitLab",docsUrl:"https://clerk.com/docs/authentication/social-connections/gitlab"},{provider:"dropbox",strategy:"oauth_dropbox",name:"Dropbox",docsUrl:"https://clerk.com/docs/authentication/social-connections/dropbox"},{provider:"atlassian",strategy:"oauth_atlassian",name:"Atlassian",docsUrl:"https://clerk.com/docs/authentication/social-connections/atlassian"},{provider:"bitbucket",strategy:"oauth_bitbucket",name:"Bitbucket",docsUrl:"https://clerk.com/docs/authentication/social-connections/bitbucket"},{provider:"hubspot",strategy:"oauth_hubspot",name:"HubSpot",docsUrl:"https://clerk.com/docs/authentication/social-connections/hubspot"},{provider:"notion",strategy:"oauth_notion",name:"Notion",docsUrl:"https://clerk.com/docs/authentication/social-connections/notion"},{provider:"apple",strategy:"oauth_apple",name:"Apple",docsUrl:"https://clerk.com/docs/authentication/social-connections/apple"},{provider:"line",strategy:"oauth_line",name:"LINE",docsUrl:"https://clerk.com/docs/authentication/social-connections/line"},{provider:"instagram",strategy:"oauth_instagram",name:"Instagram",docsUrl:"https://clerk.com/docs/authentication/social-connections/instagram"},{provider:"coinbase",strategy:"oauth_coinbase",name:"Coinbase",docsUrl:"https://clerk.com/docs/authentication/social-connections/coinbase"},{provider:"spotify",strategy:"oauth_spotify",name:"Spotify",docsUrl:"https://clerk.com/docs/authentication/social-connections/spotify"},{provider:"xero",strategy:"oauth_xero",name:"Xero",docsUrl:"https://clerk.com/docs/authentication/social-connections/xero"},{provider:"box",strategy:"oauth_box",name:"Box",docsUrl:"https://clerk.com/docs/authentication/social-connections/box"},{provider:"slack",strategy:"oauth_slack",name:"Slack",docsUrl:"https://clerk.com/docs/authentication/social-connections/slack"},{provider:"linear",strategy:"oauth_linear",name:"Linear",docsUrl:"https://clerk.com/docs/authentication/social-connections/linear"},{provider:"x",strategy:"oauth_x",name:"X / Twitter",docsUrl:"https://clerk.com/docs/authentication/social-connections/x-twitter-v2"},{provider:"enstall",strategy:"oauth_enstall",name:"Enstall",docsUrl:"https://clerk.com/docs/authentication/social-connections/enstall"},{provider:"huggingface",strategy:"oauth_huggingface",name:"Hugging Face",docsUrl:"https://clerk.com/docs/authentication/social-connections/huggingface"},{provider:"vercel",strategy:"oauth_vercel",name:"Vercel",docsUrl:"https://clerk.com/docs/authentication/social-connections/vercel"}],i=[{provider:"metamask",strategy:"web3_metamask_signature",name:"MetaMask"},{provider:"base",strategy:"web3_base_signature",name:"Base"},{provider:"coinbase_wallet",strategy:"web3_coinbase_wallet_signature",name:"Coinbase Wallet"},{provider:"okx_wallet",strategy:"web3_okx_wallet_signature",name:"OKX Wallet"},{provider:"solana",strategy:"web3_solana_signature",name:"Solana"}];var l=r(7697),s=r(1020);let c=a.map(e=>e.strategy),d=i.map(e=>e.strategy),u=n.c.map(e=>e.channel),p=(0,s.P)([...[...a,...i].map(e=>[e.provider,{strategy:e.strategy,name:e.name,iconUrl:(0,o.l)(e.provider)}]),...[...n.c].map(e=>[e.channel,{strategy:e.channel,name:e.name,iconUrl:(0,o.l)(e.channel)}])]),m=(0,s.P)([...[...a,...i].map(e=>[e.strategy,{id:e.provider,name:e.name,iconUrl:(0,o.l)(e.provider)}]),...[...n.c].map(e=>[e.channel,{id:e.channel,name:e.name,iconUrl:(0,o.l)(e.channel)}])]),h=()=>{let{socialProviderStrategies:e,web3FirstFactors:t,authenticatableSocialStrategies:r,social:n,alternativePhoneCodeChannels:o}=(0,l.O)().userSettings,a=e.filter(e=>c.includes(e)),i=e.filter(e=>!c.includes(e)&&e.startsWith("oauth_custom_")),s=r.filter(e=>c.includes(e)),h=r.filter(e=>!c.includes(e)&&e.startsWith("oauth_custom_")),f=Object.keys(n).filter(e=>e.startsWith("oauth_custom_")),g=e.filter(e=>!c.includes(e)||e.startsWith("oauth_custom_"));f.forEach(e=>{p[e.replace("oauth_","")]={strategy:e,name:n[e].name,iconUrl:n[e].logo_url||""}}),g.forEach(e=>{let t=e.replace("oauth_","");m[e]={id:t,iconUrl:n[e].logo_url||"",name:n[e].name}});let b=[...s,...h];b.sort((e,t)=>{let r=e.replace(/^oauth_custom_|^oauth_/,""),n=t.replace(/^oauth_custom_|^oauth_/,"");return r.localeCompare(n)});let v=t.filter(e=>d.includes(e)),y=o.filter(e=>u.includes(e));return{strategies:[...a,...v,...i,...y],web3Strategies:v,alternativePhoneCodeChannels:y,authenticatableOauthStrategies:b,strategyToDisplayData:m,providerToDisplayData:p}}},8586:function(e,t,r){r.d(t,{q:()=>o});var n=r(5074);function o(e){let{startEnterpriseSSOLinkFlow:t,cancelEnterpriseSSOLinkFlow:r}=n.useMemo(()=>e.createEnterpriseSSOLinkFlow(),[e]);return n.useEffect(()=>r,[]),{startEnterpriseSSOLinkFlow:t,cancelEnterpriseSSOLinkFlow:r}}},7896:function(e,t,r){r.d(t,{s:()=>s});var n=r(5074);let o=new Map,a=new Set,i=e=>"string"==typeof e?e:JSON.stringify(e),l=(e,t=i)=>{let r=t(e),l=(0,n.useCallback)(()=>o.get(r),[r]),s=(0,n.useCallback)(e=>{o.set(r,"function"==typeof e?e(l()):e),a.forEach(e=>e())},[r]),c=(0,n.useCallback)(()=>{s({isLoading:!1,isValidating:!1,data:null,error:null,cachedAt:void 0})},[s]);return{getCache:l,setCache:s,subscribeCache:(0,n.useCallback)(e=>(a.add(e),()=>a.delete(e)),[]),clearCache:c}},s=(e,t,r,o)=>{let a={resourceId:o,params:t},{subscribeCache:s,getCache:c,setCache:d,clearCache:u}=l(a),{subscribeCache:p,getCache:m,setCache:h}=l({...a,rv:!0}),f=r?.staleTime??12e4,g=r?.throttleTime||0,b=(0,n.useRef)(e);if(g<0)throw Error("ClerkJS: A negative value for `throttleTime` is not allowed ");let v=(0,n.useSyncExternalStore)(s,c),y=(0,n.useSyncExternalStore)(p,m),w=(0,n.useCallback)(()=>{d(e=>({...e,cachedAt:0})),h(e=>({isLoading:!1,isValidating:!1,error:null,data:(e?.data||0)+1}))},[d,h]);return(0,n.useEffect)(()=>{b.current=e;let n=!b.current,o=void 0===c()?.cachedAt||Date.now()-(c()?.cachedAt||0)>=f,a=c()?.isValidating??!1;if(n||!o||a)return;let i=performance.now();d({data:c()?.data??null,isLoading:!c()?.data,isValidating:!0,error:null}),b.current(t).then(e=>{if(void 0!==e){let t=Array.isArray(e)?e:"object"==typeof e?{...e}:e;setTimeout(()=>{d({data:t,isLoading:!1,isValidating:!1,error:null,cachedAt:Date.now()}),r?.onSuccess?.(t)},g-(performance.now()-i))}}).catch(e=>{d({data:c()?.data??null,isLoading:!1,isValidating:!1,error:e,cachedAt:Date.now()}),e&&r?.onError?.(e)})},[i(t),d,c,y]),{...v,setCache:d,invalidate:u,revalidate:w}}},3486:function(e,t,r){r.d(t,{l:()=>u,x:()=>d});var n=r(1210),o=r(7477),a=r(78),i=r(2861);let l={basic_member:(0,i.G)("membershipRole__basicMember"),guest_member:(0,i.G)("membershipRole__guestMember"),admin:(0,i.G)("membershipRole__admin")};var s=r(7896);let c={pageSize:20},d=(e=!0)=>{let{organization:t}=(0,n.Z5)(),r=(0,o.Fd)({permission:"org:sys_memberships:manage"}),a=(0,o.Fd)({permission:"org:sys_memberships:read"}),i=e&&!!t?.id&&(r||a),{data:l,isLoading:d}=(0,s.s)(i?({pageSize:e,initialPage:r})=>t.getRoles({pageSize:e,initialPage:r}):void 0,{...c,orgId:t?.id});return{isLoading:d,options:l?.data?.map(e=>({value:e.key,label:e.name}))}},u=()=>{let{t:e}=(0,a._)();return{localizeCustomRole:t=>e((e=>{if(e)return(0,i.G)(`roles.${e}`)})(t))||e((e=>{if(e)return l[e]})(t))}}},2364:function(e,t,r){r.d(t,{W:()=>o});var n=r(5074);let o=e=>{let[t,r]=(0,n.useState)(!1),o=(0,n.useRef)(null),a=Array.isArray(e.threshold)?e.threshold:[e.threshold||0],i=(0,n.useRef)();return i.current=e.onChange,{inView:t,ref:(0,n.useCallback)(t=>{if(!t){o.current&&o.current.disconnect();return}o.current=new IntersectionObserver(e=>{e.forEach(e=>{let t=e.isIntersecting&&a.some(t=>e.intersectionRatio>=t);r(t),i.current&&i.current(t,e)})},{root:e.root,rootMargin:e.rootMargin,threshold:a}),o.current.observe(t)},[])}}},4901:function(e,t,r){r.d(t,{m:()=>o});var n=r(5074);let o=e=>{let[t,r]=function(e){let[t,r]=n.useState(e),o=n.useRef(!0);return n.useEffect(()=>()=>{o.current=!1},[]),[t,n.useCallback(e=>{o.current&&r(e)},[])]}({status:"idle",metadata:void 0,...e});return{status:t.status,setIdle:e=>r({status:"idle",metadata:e}),setError:e=>r({status:"error",metadata:e}),setLoading:e=>r({status:"loading",metadata:e}),loadingMetadata:"loading"===t.status?t.metadata:void 0,isLoading:"loading"===t.status,isIdle:"idle"===t.status}}},8691:function(e,t,r){r.d(t,{z:()=>o});var n=r(1210);let o=e=>{let t=(0,n.ho)().client.signedInSessions;return{signedInSessions:t,otherSessions:t.filter(t=>t.user?.id!==e.user?.id)}}},1550:function(e,t,r){r.d(t,{C:()=>o});var n=r(4964);let o=()=>{let e=(0,n.r)();return{navigateToFlowStart:async()=>{let t=e.indexPath;return t!==e.currentPath?e.navigate(t):e.urlStateParam?.path?e.navigate("/"+e.basePath+e.urlStateParam?.startPath):void 0}}}},2227:function(e,t,r){r.d(t,{f:()=>i});var n=r(1210),o=r(3689),a=r(2364);let i=()=>{let{userMemberships:e,userInvitations:t,userSuggestions:r}=(0,n.D_)(o.mu),{ref:i}=(0,a.W)({threshold:0,onChange:n=>{n&&(e.hasNextPage?e.fetchNext?.():t.hasNextPage?t.fetchNext?.():r.fetchNext?.())}});return{userMemberships:e,userInvitations:t,userSuggestions:r,ref:i}}},620:function(e,t,r){r.d(t,{T:()=>d,Z:()=>u});var n=r(8693),o=r(5074),a=r(5243),i=r(78),l=r(2861),s=r(3990);let c={max_length:["unstable__errors.passwordComplexity.maximumLength","length"],min_length:["unstable__errors.passwordComplexity.minimumLength","length"],require_numbers:"unstable__errors.passwordComplexity.requireNumbers",require_lowercase:"unstable__errors.passwordComplexity.requireLowercase",require_uppercase:"unstable__errors.passwordComplexity.requireUppercase",require_special_char:"unstable__errors.passwordComplexity.requireSpecialCharacter"},d=(e,t)=>{let{t:r,locale:d}=(0,i._)(),u=(0,a.R)(),{onValidationError:p=n.t,onValidationSuccess:m=n.t,onValidationWarning:h=n.t,onValidationInfo:f=n.t,onValidationComplexity:g}=t||{},b=(0,o.useCallback)(t=>{if(Object.values(t?.complexity||{}).length>0){let n=(({config:e,failedValidations:t,locale:r,t:n})=>{if(!t||0===Object.keys(t).length)return"";let o=t?.min_length||!1,a=Object.entries(t).filter(e=>!o||"min_length"===e[0]).filter(([,e])=>!!e).map(([t])=>{let r=c[t];if(Array.isArray(r)){let[o,a]=r;return n((0,l.G)(o,{[a]:e[t]}))}return n((0,l.G)(r))}),i=(0,s.kS)(a,r);return(0,s.zJ)(`${n((0,l.G)("unstable__errors.passwordComplexity.sentencePrefix"))} ${i}`)})({config:e,t:r,failedValidations:t.complexity,locale:d});return t.complexity?.min_length?f(n):p(n)}return t?.strength?.state==="fail"?p(t.strength.keys.map(e=>r((0,l.G)(e))).join(" ")):t?.strength?.state==="pass"?h(t.strength.keys.map(e=>r((0,l.G)(e))).join(" ")):m()},[t,r,d]);return{validatePassword:(0,o.useMemo)(()=>{let{loadZxcvbn:t}={loadZxcvbn:()=>Promise.all([u.import("@zxcvbn-ts/core"),u.import("@zxcvbn-ts/language-common")]).then(([e,t])=>{if(!e||!t)throw Error("Failed to load zxcvbn modules");let{zxcvbnOptions:r,zxcvbn:n}=e,{dictionary:o,adjacencyGraphs:a}=t;return r.setOptions({dictionary:{...o},graphs:a}),n})};return((e,t,r)=>{let{onValidation:o=n.t,onValidationComplexity:a=n.t}=r||{},{show_zxcvbn:i,validatePassword:l}=t,s=e=>((e,t)=>{let{max_length:r,min_length:n,require_special_char:o,require_lowercase:a,require_numbers:i,require_uppercase:l}=t,s=(e=>{let t;if(e.allowed_special_characters){let r=e.allowed_special_characters.replace("[","\\[");r=r.replace("]","\\]"),t=RegExp(`[${r}]`)}else t=/[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/;return(e,{minLength:r,maxLength:n})=>({max_length:e.length<n,min_length:e.length>=r,require_numbers:/\d/.test(e),require_lowercase:/[a-z]/.test(e),require_uppercase:/[A-Z]/.test(e),require_special_char:t.test(e)})})(t)(e,{maxLength:t.max_length,minLength:t.min_length}),c={max_length:r,min_length:n,require_special_char:o,require_lowercase:a,require_numbers:i,require_uppercase:l},d=new Map;for(let e in c)c[e]&&!s[e]&&d.set(e,!0);return Object.freeze(Object.fromEntries(d))})(e,t),c=(({min_zxcvbn_strength:e,onResult:t})=>r=>n=>{let o=r(n);return(t?.(o),o.score>=e&&o.score<3)?{state:"pass",keys:["unstable__errors.zxcvbn.couldBeStronger"],result:o}:o.score>=e?{state:"excellent",result:o}:{state:"fail",keys:["unstable__errors.zxcvbn.notEnough",...o.feedback.suggestions.map(e=>`unstable__errors.zxcvbn.suggestions.${e}`)],result:o}})(t),d={};return(t,r)=>{let{onValidation:n=o,onValidationComplexity:u=a}=r||{};if(!l)return;let p=s(t);u(0===Object.keys(p).length),d={...d,complexity:p},i&&e().then(e=>{let r=c(e)(t);n({...d={...d,strength:r},strength:r})}),d.complexity&&0===Object.keys(d.complexity).length&&i||n(d)}})(t,e,{onValidation:b,onValidationComplexity:g})},[b,e,u])}},u=({passwordField:e,confirmPasswordField:t})=>{let{t:r}=(0,i._)(),n=(0,o.useCallback)(t=>e.value===t,[e.value]),a=(0,o.useMemo)(()=>n(t.value),[n,t.value]);return{setConfirmPasswordFeedback:(0,o.useCallback)(e=>{n(e)?t.setSuccess(r((0,l.G)("formFieldError__matchingPasswords"))):t.setError(r((0,l.G)("formFieldError__notMatchingPasswords")))},[t.setError,t.setSuccess,r,n]),isPasswordMatch:a}}},1577:function(e,t,r){r.d(t,{f:()=>l});var n=r(2119),o=r(6836),a=r(4166),i=r(5074);let l=(e={})=>{let{bubbles:t=!1,shoudFlip:r=!0,outsidePress:l,adjustToReferenceWidth:s=!1,referenceElement:c,canCloseModal:d}=e,[u,p]=i.useState(e.defaultOpen||!1),m=(0,n.fI)(),{update:h,refs:f,strategy:g,x:b,y:v,context:y}=(0,n.we)({open:u,onOpenChange:p,elements:{reference:c?.current},nodeId:m,whileElementsMounted:!1===e.autoUpdate?void 0:o.ll,placement:e.placement||"bottom-start",middleware:[(0,a.cY)(e.offset||6),r&&(0,a.UU)(),(0,a.BN)(),(0,a.Ej)({apply({elements:e}){if(s){let t=e.reference;e.floating.style.width=t?`${t?.offsetWidth}px`:""}}})]});(0,n.s9)(y,{enabled:!1!==d,bubbles:t,outsidePress:l}),(0,i.useEffect)(()=>{e.defaultOpen&&h()},[]);let w=i.useCallback(()=>p(e=>!e),[p]),$=i.useCallback(()=>p(!0),[p]),x=i.useCallback(()=>p(!1),[p]);return{reference:f.setReference,floating:f.setFloating,toggle:w,open:$,nodeId:m,close:x,isOpen:u,styles:{position:g,top:v??0,left:b??0},context:y}}},359:function(e,t,r){r.d(t,{j:()=>i});var n=r(5074);let o="(prefers-reduced-motion: no-preference)",a=()=>"undefined"==typeof window||!window.matchMedia(o).matches;function i(){let[e,t]=(0,n.useState)(a);return(0,n.useEffect)(()=>{let e=window.matchMedia(o);t(!window.matchMedia(o).matches);let r=e=>{t(!e.matches)};return"addEventListener"in e?e.addEventListener("change",r):e.addListener(r),()=>"addEventListener"in e?e.removeEventListener("change",r):e.removeListener(r)},[]),e}},7607:function(e,t,r){r.d(t,{Z:()=>a});var n=r(7697),o=r(7896);function a(){let{organizationSettings:e}=(0,n.O)(),t=e.forceOrganizationSelection;(0,o.s)(t?()=>Promise.all([r.e("26"),r.e("545"),r.e("666"),r.e("472"),r.e("723"),r.e("390")]).then(r.bind(r,1662)):void 0,"preloadComponent",{staleTime:1/0})}},8792:function(e,t,r){r.d(t,{K:()=>a});let n=0,o=()=>{};function a(){return{enableScrollLock:()=>{1==++n&&(o=function(){let e,t=/iP(hone|ad|od)|iOS/.test((e=navigator.userAgentData,e?.platform?e.platform:navigator.platform)),r=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,a=r.left?parseFloat(r.left):window.scrollX,i=r.top?parseFloat(r.top):window.scrollY;if(r.overflow="hidden",o&&(r[n]=`${o}px`),t){let e=window.visualViewport?.offsetLeft||0,t=window.visualViewport?.offsetTop||0;Object.assign(r,{position:"fixed",top:`${-(i-Math.floor(t))}px`,left:`${-(a-Math.floor(e))}px`,right:"0"})}return()=>{Object.assign(r,{overflow:"",[n]:""}),t&&(Object.assign(r,{position:"",top:"",left:"",right:""}),window.scrollTo(a,i))}}())},disableScrollLock:()=>{0==--n&&o()}}}},9107:function(e,t,r){r.d(t,{h:()=>l});var n=r(1210),o=r(5074),a=r(4),i=r(4964);let l=(e=2e3)=>{let{queryString:t}=(0,i.r)(),{setActive:r}=(0,n.ho)(),{afterSignInUrl:l}=(0,a.r)();(0,o.useEffect)(()=>{let n,o=new URLSearchParams(t).get("createdSessionId");return o&&(n=setTimeout(()=>{r({session:o,redirectUrl:l})},e)),()=>{n&&clearTimeout(n)}},[r,l,t])}},9426:function(e,t,r){r.d(t,{p:()=>l});var n=r(1210),o=r(5074),a=r(2366),i=r(7697);function l(){let e=(0,n.ho)(),{supportEmail:t}=(0,a.II)(),{displayConfig:r}=(0,i.O)(),{supportEmail:l}=r;return o.useMemo(()=>t||l||function({localPart:e,frontendApi:t}){return`${e}@${t?t.replace("clerk.",""):"clerk.com"}`}({localPart:"support",frontendApi:e.frontendApi}),[e.frontendApi,t,l])}},5914:function(e,t,r){r.d(t,{i:()=>a});var n=r(5074),o=r(4964);let a=(e,t=0)=>{let r=(0,o.r)(),a=()=>{let n=r.queryParams.tab,o=Object.entries(e).find(([e,t])=>t===n)?.[0];return o?parseInt(o,10):t},[i,l]=(0,n.useState)(a());return(0,n.useEffect)(()=>{let e=a();e!==i&&l(e)},[r.queryParams.tab]),{selectedTab:i,handleTabChange:t=>{l(t);let n=r.currentPath;r.navigate(n,{searchParams:new URLSearchParams({tab:e[t]||""})})}}}},2229:function(e,t,r){r.d(t,{F:()=>a});var n=r(7697),o=r(2216);let a=()=>{let{userSettings:e}=(0,n.O)(),{authenticatableOauthStrategies:t,web3Strategies:r,alternativePhoneCodeChannels:a}=(0,o.k)();return e.enabledFirstFactorIdentifiers.filter(e=>"passkey"!==e).length+t.length+r.length+a.length}},8501:function(e,t,r){r.d(t,{MountedCheckoutDrawer:()=>l});var n=r(4518),o=r(1210),a=r(4096),i=r(4642);function l({appearance:e,checkoutDrawer:t,onOpenChange:r}){let{user:l}=(0,o.Jd)();return t.props?(0,n.Y)(i.$h,{globalAppearance:e,appearanceKey:"checkout",componentAppearance:t.props.appearance||{},flowName:"checkout",open:t.open,onOpenChange:r,componentName:"Checkout",portalId:t.props?.portalId,portalRoot:t.props?.portalRoot,children:t.props&&(0,n.Y)(a.RW,{planId:t.props.planId,planPeriod:t.props.planPeriod,for:t.props.for,onSubscriptionComplete:t.props.onSubscriptionComplete,portalRoot:t.props.portalRoot,appearance:t.props.appearance,newSubscriptionRedirectUrl:t.props.newSubscriptionRedirectUrl})},l?.id):null}},4027:function(e,t,r){r.d(t,{MountedPlanDetailDrawer:()=>l});var n=r(4518),o=r(1210),a=r(4096),i=r(4642);function l({appearance:e,planDetailsDrawer:t,onOpenChange:r}){let{user:l}=(0,o.Jd)();return t.props?(0,n.Y)(i.$h,{globalAppearance:e,appearanceKey:"planDetails",componentAppearance:t.props.appearance||{},flowName:"planDetails",open:t.open,onOpenChange:r,componentName:"PlanDetails",portalId:t.props.portalId,portalRoot:t.props.portalRoot,children:(0,n.Y)(a.ym,{...t.props})},l?.id):null}},9949:function(e,t,r){r.d(t,{MountedSubscriptionDetailDrawer:()=>l});var n=r(4518),o=r(1210),a=r(1461),i=r(4642);function l({appearance:e,subscriptionDetailsDrawer:t,onOpenChange:r}){let{user:l}=(0,o.Jd)();return t.props?(0,n.Y)(i.$h,{globalAppearance:e,appearanceKey:"subscriptionDetails",componentAppearance:t.props.appearance||{},flowName:"subscriptionDetails",open:t.open,onOpenChange:r,componentName:"SubscriptionDetails",portalId:t.props.portalId,portalRoot:t.props.portalRoot,children:(0,n.Y)(a.SubscriptionDetails,{...t.props})},l?.id):null}},6053:function(e,t,r){r.d(t,{createRoot:()=>n.createRoot});var n=r(4292)},2861:function(e,t,r){r.d(t,{G:()=>n});let n=(e,...t)=>({key:e,params:t[0]})},78:function(e,t,r){let n,o;r.d(t,{d:()=>$,_:()=>x});var a=r(4518),i=r(3610),l=r(5074),s=r(2366),c=r(1210),d=r(7697),u=r(6988);let p={titleize:r(1044).Ns,timeString:(e,t)=>{try{return new Intl.DateTimeFormat(t||"en-US",{timeStyle:"short"}).format((0,u.OG)(e))}catch(e){return console.warn(e),""}},weekday:(e,t,r)=>{try{return new Intl.DateTimeFormat(t||"en-US",{weekday:r||"long"}).format((0,u.OG)(e))}catch(e){return console.warn(e),""}},numeric:(e,t)=>{try{return new Intl.DateTimeFormat(t||"en-US").format((0,u.OG)(e))}catch(e){return console.warn(e),""}},link:(e,t)=>`[${t}](${e})`,shortDate:(e,t)=>{let r=(0,u.OG)(e);try{return new Intl.DateTimeFormat(t||"en-US",{month:"short",day:"numeric",...r.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{}}).format((0,u.OG)(e))}catch(e){return console.warn(e),""}},longDate:(e,t)=>{try{return new Intl.DateTimeFormat(t||"en-US",{month:"long",day:"numeric",year:"numeric"}).format((0,u.OG)(e))}catch(e){return console.warn(e),""}}},m=()=>{let{applicationName:e}=(0,d.O)().displayConfig,{client:t,user:r}=(0,c.ho)(),{signIn:n}=t||{};return{applicationName:e,"signIn.identifier":n?.identifier||"","user.username":r?.username||"","user.firstName":r?.firstName||"","user.lastName":r?.lastName||"","user.primaryEmailAddress":r?.primaryEmailAddress?.emailAddress||"","user.primaryPhoneNumber":r?.primaryPhoneNumber?.phoneNumber||""}},h=e=>Object.prototype.hasOwnProperty.call(p,e),f=e=>{let t=e.split(/[(,)]/g).map(e=>e.trim()).filter(e=>!!e);if(1===t.length){let[e]=t;return{modifierName:e,params:[]}}{let[e,...r]=t;return{modifierName:e,params:r.map(e=>e.replace(/['"]+/g,""))}}},g={locale:"en-US",apiKeys:{action__add:"Add new key",action__search:"Search keys",copySecret:{formButtonPrimary__copyAndClose:"Copy & Close",formHint:"For security reasons, we won't allow you to view it again later.",formTitle:'Copy your "{{name}}" API Key now'},createdAndExpirationStatus__expiresOn:"Created {{ createdDate | shortDate('en-US') }} • Expires {{ expiresDate | longDate('en-US') }}",createdAndExpirationStatus__never:"Created {{ createdDate | shortDate('en-US') }} • Never expires",detailsTitle__emptyRow:"No API keys found",formButtonPrimary__add:"Create key",formFieldCaption__expiration__expiresOn:"Expiring {{ date }}",formFieldCaption__expiration__never:"This key will never expire",formFieldOption__expiration__180d:"180 Days",formFieldOption__expiration__1d:"1 Day",formFieldOption__expiration__1y:"1 Year",formFieldOption__expiration__30d:"30 Days",formFieldOption__expiration__60d:"60 Days",formFieldOption__expiration__7d:"7 Days",formFieldOption__expiration__90d:"90 Days",formFieldOption__expiration__never:"Never",formHint:"Provide a name to generate a new key. You’ll be able to revoke it anytime.",formTitle:"Add new API key",lastUsed__days:"{{days}}d ago",lastUsed__hours:"{{hours}}h ago",lastUsed__minutes:"{{minutes}}m ago",lastUsed__months:"{{months}}mo ago",lastUsed__seconds:"{{seconds}}s ago",lastUsed__years:"{{years}}y ago",menuAction__revoke:"Revoke key",revokeConfirmation:{confirmationText:"Revoke",formButtonPrimary__revoke:"Revoke key",formHint:"Are you sure you want to delete this Secret key?",formTitle:'Revoke "{{apiKeyName}}" secret key?'}},backButton:"Back",badge__activePlan:"Active",badge__canceledEndsAt:"Canceled • Ends {{ date | shortDate('en-US') }}",badge__currentPlan:"Current plan",badge__default:"Default",badge__endsAt:"Ends {{ date | shortDate('en-US') }}",badge__expired:"Expired",badge__freeTrial:"Free trial",badge__otherImpersonatorDevice:"Other impersonator device",badge__pastDueAt:"Past due {{ date | shortDate('en-US') }}",badge__pastDuePlan:"Past due",badge__primary:"Primary",badge__renewsAt:"Renews {{ date | shortDate('en-US') }}",badge__requiresAction:"Requires action",badge__startsAt:"Starts {{ date | shortDate('en-US') }}",badge__thisDevice:"This device",badge__trialEndsAt:"Trial ends {{ date | shortDate('en-US') }}",badge__unverified:"Unverified",badge__upcomingPlan:"Upcoming",badge__userDevice:"User device",badge__you:"You",billing:{addPaymentMethod__label:"Add payment method",alwaysFree:"Always free",annually:"Annually",availableFeatures:"Available features",billedAnnually:"Billed annually",billedMonthlyOnly:"Only billed monthly",cancelFreeTrial:"Cancel free trial",cancelFreeTrialAccessUntil:"Your trial will stay active until {{ date | longDate('en-US') }}. After that, you'll lose access to trial features. You won't be charged.",cancelFreeTrialTitle:"Cancel free trial for {{plan}} plan?",cancelSubscription:"Cancel subscription",cancelSubscriptionAccessUntil:"You can keep using '{{plan}}' features until {{ date | longDate('en-US') }}, after which you will no longer have access.",cancelSubscriptionNoCharge:"You will not be charged for this subscription.",cancelSubscriptionPastDue:"Your subscription will end immediately and you will lose access to all plan features. You will be asked to pay the past due amount on your next subscription.",cancelSubscriptionTitle:"Cancel {{plan}} Subscription?",cannotSubscribeMonthly:"You cannot subscribe to this plan by paying monthly. To subscribe to this plan, you need to choose to pay annually.",cannotSubscribeUnrecoverable:"You cannot subscribe to this plan. Your existing subscription is more expensive than this plan.",checkout:{description__paymentSuccessful:"Your payment was successful.",description__subscriptionSuccessful:"Your new subscription is all set.",downgradeNotice:"You will keep your current subscription and its features until the end of the billing cycle, then you will be switched to this subscription.",emailForm:{subtitle:"Before you can complete your purchase you must add an email address where receipts will be sent.",title:"Add an email address"},lineItems:{title__freeTrialEndsAt:"Trial ends on",title__paymentMethod:"Payment method",title__statementId:"Statement ID",title__subscriptionBegins:"Subscription begins",title__totalPaid:"Total paid"},pastDueNotice:"Your previous subscription was past due, with no payment.",perMonth:"per month",title:"Checkout",title__paymentSuccessful:"Payment was successful!",title__subscriptionSuccessful:"Success!",title__trialSuccess:"Trial successfully started!",totalDueAfterTrial:"Total Due after trial ends in {{days}} days"},credit:"Credit",creditRemainder:"Credit for the remainder of your current subscription.",defaultFreePlanActive:"You're currently on the Free plan",free:"Free",getStarted:"Get started",keepFreeTrial:"Keep free trial",keepSubscription:"Keep subscription",manage:"Manage",manageSubscription:"Manage subscription",month:"Month",monthly:"Monthly",pastDue:"Past due",pay:"Pay {{amount}}",paymentMethod:{applePayDescription:{annual:"Annual payment",monthly:"Monthly payment"},dev:{anyNumbers:"Any numbers",cardNumber:"Card number",cvcZip:"CVC, ZIP",developmentMode:"Development mode",expirationDate:"Expiration date",testCardInfo:"Test card information"}},paymentMethods__label:"Payment Methods",popular:"Popular",pricingTable:{billingCycle:"Billing cycle",included:"Included"},reSubscribe:"Resubscribe",seeAllFeatures:"See all features",startFreeTrial:"Start free trial",startFreeTrial__days:"Start {{days}}-day free trial",subscribe:"Subscribe",subscriptionDetails:{beginsOn:"Begins on",currentBillingCycle:"Current billing cycle",endsOn:"Ends on",firstPaymentAmount:"First payment amount",firstPaymentOn:"First payment on",nextPaymentAmount:"Next payment amount",nextPaymentOn:"Next payment on",pastDueAt:"Past due on",renewsAt:"Renews at",subscribedOn:"Subscribed on",title:"Subscription",trialEndsOn:"Trial ends on",trialStartedOn:"Trial started on"},subtotal:"Subtotal",switchPlan:"Switch to this plan",switchToAnnual:"Switch to annual",switchToAnnualWithAnnualPrice:"Switch to annual {{currency}}{{price}} / year",switchToMonthly:"Switch to monthly",switchToMonthlyWithPrice:"Switch to monthly {{currency}}{{price}} / month",totalDue:"Total due",totalDueToday:"Total Due Today",viewFeatures:"View features",viewPayment:"View payment",year:"Year"},createOrganization:{formButtonSubmit:"Create organization",invitePage:{formButtonReset:"Skip"},title:"Create organization"},dates:{lastDay:"Yesterday at {{ date | timeString('en-US') }}",next6Days:"{{ date | weekday('en-US','long') }} at {{ date | timeString('en-US') }}",nextDay:"Tomorrow at {{ date | timeString('en-US') }}",numeric:"{{ date | numeric('en-US') }}",previous6Days:"Last {{ date | weekday('en-US','long') }} at {{ date | timeString('en-US') }}",sameDay:"Today at {{ date | timeString('en-US') }}"},dividerText:"or",footerActionLink__alternativePhoneCodeProvider:"Send code via SMS instead",footerActionLink__useAnotherMethod:"Use another method",footerPageLink__help:"Help",footerPageLink__privacy:"Privacy",footerPageLink__terms:"Terms",formButtonPrimary:"Continue",formButtonPrimary__verify:"Verify",formFieldAction__forgotPassword:"Forgot password?",formFieldError__matchingPasswords:"Passwords match.",formFieldError__notMatchingPasswords:"Passwords don't match.",formFieldError__verificationLinkExpired:"The verification link expired. Please request a new link.",formFieldHintText__optional:"Optional",formFieldHintText__slug:"A slug is a human-readable ID that must be unique. It’s often used in URLs.",formFieldInputPlaceholder__apiKeyDescription:"Explain why you’re generating this key",formFieldInputPlaceholder__apiKeyExpirationDate:"Select date",formFieldInputPlaceholder__apiKeyName:"Enter your secret key name",formFieldInputPlaceholder__backupCode:"Enter backup code",formFieldInputPlaceholder__confirmDeletionUserAccount:"Delete account",formFieldInputPlaceholder__emailAddress:"Enter your email address",formFieldInputPlaceholder__emailAddress_username:"Enter email or username",formFieldInputPlaceholder__emailAddresses:"example@email.com, example2@email.com",formFieldInputPlaceholder__firstName:"First name",formFieldInputPlaceholder__lastName:"Last name",formFieldInputPlaceholder__organizationDomain:"example.com",formFieldInputPlaceholder__organizationDomainEmailAddress:"you@example.com",formFieldInputPlaceholder__organizationName:"Organization name",formFieldInputPlaceholder__organizationSlug:"my-org",formFieldInputPlaceholder__password:"Enter your password",formFieldInputPlaceholder__phoneNumber:"Enter your phone number",formFieldInputPlaceholder__username:void 0,formFieldInput__emailAddress_format:"Example format: name@example.com",formFieldLabel__apiKey:"API key",formFieldLabel__apiKeyDescription:"Description",formFieldLabel__apiKeyExpiration:"Expiration",formFieldLabel__apiKeyName:"Secret key name",formFieldLabel__automaticInvitations:"Enable automatic invitations for this domain",formFieldLabel__backupCode:"Backup code",formFieldLabel__confirmDeletion:"Confirmation",formFieldLabel__confirmPassword:"Confirm password",formFieldLabel__currentPassword:"Current password",formFieldLabel__emailAddress:"Email address",formFieldLabel__emailAddress_username:"Email address or username",formFieldLabel__emailAddresses:"Email addresses",formFieldLabel__firstName:"First name",formFieldLabel__lastName:"Last name",formFieldLabel__newPassword:"New password",formFieldLabel__organizationDomain:"Domain",formFieldLabel__organizationDomainDeletePending:"Delete pending invitations and suggestions",formFieldLabel__organizationDomainEmailAddress:"Verification email address",formFieldLabel__organizationDomainEmailAddressDescription:"Enter an email address under this domain to receive a code and verify this domain.",formFieldLabel__organizationName:"Name",formFieldLabel__organizationSlug:"Slug",formFieldLabel__passkeyName:"Name of passkey",formFieldLabel__password:"Password",formFieldLabel__phoneNumber:"Phone number",formFieldLabel__role:"Role",formFieldLabel__signOutOfOtherSessions:"Sign out of all other devices",formFieldLabel__username:"Username",impersonationFab:{action__signOut:"Sign out",title:"Signed in as {{identifier}}"},lastAuthenticationStrategy:"Last used",maintenanceMode:"We are currently undergoing maintenance, but don't worry, it shouldn't take more than a few minutes.",membershipRole__admin:"Admin",membershipRole__basicMember:"Member",membershipRole__guestMember:"Guest",organizationList:{action__createOrganization:"Create organization",action__invitationAccept:"Join",action__suggestionsAccept:"Request to join",createOrganization:"Create Organization",invitationAcceptedLabel:"Joined",subtitle:"to continue to {{applicationName}}",suggestionsAcceptedLabel:"Pending approval",title:"Choose an account",titleWithoutPersonal:"Choose an organization"},organizationProfile:{apiKeysPage:{title:"API keys"},badge__automaticInvitation:"Automatic invitations",badge__automaticSuggestion:"Automatic suggestions",badge__manualInvitation:"No automatic enrollment",badge__unverified:"Unverified",billingPage:{paymentHistorySection:{empty:"No payment history",notFound:"Payment attempt not found",tableHeader__amount:"Amount",tableHeader__date:"Date",tableHeader__status:"Status"},paymentMethodsSection:{actionLabel__default:"Make default",actionLabel__remove:"Remove",add:"Add new payment method",addSubtitle:"Add a new payment method to your account.",cancelButton:"Cancel",formButtonPrimary__add:"Add Payment Method",formButtonPrimary__pay:"Pay {{amount}}",payWithTestCardButton:"Pay with test card",removeMethod:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this payment method and any recurring subscriptions dependent on it will no longer work.",successMessage:"{{paymentMethod}} has been removed from your account.",title:"Remove payment method"},title:"Payment methods"},start:{headerTitle__payments:"Payments",headerTitle__plans:"Plans",headerTitle__statements:"Statements",headerTitle__subscriptions:"Subscription"},statementsSection:{empty:"No statements to display",itemCaption__paidForPlan:"Paid for {{plan}} {{period}} plan",itemCaption__proratedCredit:"Prorated credit for partial usage of previous subscription",itemCaption__subscribedAndPaidForPlan:"Subscribed and paid for {{plan}} {{period}} plan",notFound:"Statement not found",tableHeader__amount:"Amount",tableHeader__date:"Date",title:"Statements",totalPaid:"Total paid"},subscriptionsListSection:{actionLabel__manageSubscription:"Manage",actionLabel__newSubscription:"Subscribe to a plan",actionLabel__switchPlan:"Switch plans",tableHeader__edit:"Edit",tableHeader__plan:"Plan",tableHeader__startDate:"Start date",title:"Subscription"},subscriptionsSection:{actionLabel__default:"Manage"},switchPlansSection:{title:"Switch plans"},title:"Billing"},createDomainPage:{subtitle:"Add the domain to verify. Users with email addresses at this domain can join the organization automatically or request to join.",title:"Add domain"},invitePage:{detailsTitle__inviteFailed:"The invitations could not be sent. There are already pending invitations for the following email addresses: {{email_addresses}}.",formButtonPrimary__continue:"Send invitations",selectDropdown__role:"Select role",subtitle:"Enter or paste one or more email addresses, separated by spaces or commas.",successMessage:"Invitations successfully sent",title:"Invite new members"},membersPage:{action__invite:"Invite",action__search:"Search",activeMembersTab:{menuAction__remove:"Remove member",tableHeader__actions:"Actions",tableHeader__joined:"Joined",tableHeader__role:"Role",tableHeader__user:"User"},detailsTitle__emptyRow:"No members to display",invitationsTab:{autoInvitations:{headerSubtitle:"Invite users by connecting an email domain with your organization. Anyone who signs up with a matching email domain will be able to join the organization anytime.",headerTitle:"Automatic invitations",primaryButton:"Manage verified domains"},table__emptyRow:"No invitations to display"},invitedMembersTab:{menuAction__revoke:"Revoke invitation",tableHeader__invited:"Invited"},requestsTab:{autoSuggestions:{headerSubtitle:"Users who sign up with a matching email domain, will be able to see a suggestion to request to join your organization.",headerTitle:"Automatic suggestions",primaryButton:"Manage verified domains"},menuAction__approve:"Approve",menuAction__reject:"Reject",tableHeader__requested:"Requested access",table__emptyRow:"No requests to display"},start:{headerTitle__invitations:"Invitations",headerTitle__members:"Members",headerTitle__requests:"Requests"}},navbar:{apiKeys:"API keys",billing:"Billing",description:"Manage your organization.",general:"General",members:"Members",title:"Organization"},plansPage:{alerts:{noPermissionsToManageBilling:"You do not have permissions to manage billing for this organization."},title:"Plans"},profilePage:{dangerSection:{deleteOrganization:{actionDescription:'Type "{{organizationName}}" below to continue.',messageLine1:"Are you sure you want to delete this organization?",messageLine2:"This action is permanent and irreversible.",successMessage:"You have deleted the organization.",title:"Delete organization"},leaveOrganization:{actionDescription:'Type "{{organizationName}}" below to continue.',messageLine1:"Are you sure you want to leave this organization? You will lose access to this organization and its applications.",messageLine2:"This action is permanent and irreversible.",successMessage:"You have left the organization.",title:"Leave organization"},title:"Danger"},domainSection:{menuAction__manage:"Manage",menuAction__remove:"Delete",menuAction__verify:"Verify",primaryButton:"Add domain",subtitle:"Allow users to join the organization automatically or request to join based on a verified email domain.",title:"Verified domains"},successMessage:"The organization has been updated.",title:"Update profile"},removeDomainPage:{messageLine1:"The email domain {{domain}} will be removed.",messageLine2:"Users won’t be able to join the organization automatically after this.",successMessage:"{{domain}} has been removed.",title:"Remove domain"},start:{headerTitle__general:"General",headerTitle__members:"Members",profileSection:{primaryButton:"Update profile",title:"Organization Profile",uploadAction__title:"Logo"}},verifiedDomainPage:{dangerTab:{calloutInfoLabel:"Removing this domain will affect invited users.",removeDomainActionLabel__remove:"Remove domain",removeDomainSubtitle:"Remove this domain from your verified domains",removeDomainTitle:"Remove domain"},enrollmentTab:{automaticInvitationOption__description:"Users are automatically invited to join the organization when they sign-up and can join anytime.",automaticInvitationOption__label:"Automatic invitations",automaticSuggestionOption__description:"Users receive a suggestion to request to join, but must be approved by an admin before they are able to join the organization.",automaticSuggestionOption__label:"Automatic suggestions",calloutInfoLabel:"Changing the enrollment mode will only affect new users.",calloutInvitationCountLabel:"Pending invitations sent to users: {{count}}",calloutSuggestionCountLabel:"Pending suggestions sent to users: {{count}}",manualInvitationOption__description:"Users can only be invited manually to the organization.",manualInvitationOption__label:"No automatic enrollment",subtitle:"Choose how users from this domain can join the organization."},start:{headerTitle__danger:"Danger",headerTitle__enrollment:"Enrollment options"},subtitle:"The domain {{domain}} is now verified. Continue by selecting enrollment mode.",title:"Update {{domain}}"},verifyDomainPage:{formSubtitle:"Enter the verification code sent to your email address",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"The domain {{domainName}} needs to be verified via email.",subtitleVerificationCodeScreen:"A verification code was sent to {{emailAddress}}. Enter the code to continue.",title:"Verify domain"}},organizationSwitcher:{action__closeOrganizationSwitcher:"Close organization switcher",action__createOrganization:"Create organization",action__invitationAccept:"Join",action__manageOrganization:"Manage",action__openOrganizationSwitcher:"Open organization switcher",action__suggestionsAccept:"Request to join",notSelected:"No organization selected",personalWorkspace:"Personal account",suggestionsAcceptedLabel:"Pending approval"},paginationButton__next:"Next",paginationButton__previous:"Previous",paginationRowText__displaying:"Displaying",paginationRowText__of:"of",reverification:{alternativeMethods:{actionLink:"Get help",actionText:"Don’t have any of these?",blockButton__backupCode:"Use a backup code",blockButton__emailCode:"Email code to {{identifier}}",blockButton__passkey:"Use your passkey",blockButton__password:"Continue with your password",blockButton__phoneCode:"Send SMS code to {{identifier}}",blockButton__totp:"Use your authenticator app",getHelp:{blockButton__emailSupport:"Email support",content:"If you have trouble verifying your account, email us and we will work with you to restore access as soon as possible.",title:"Get help"},subtitle:"Facing issues? You can use any of these methods for verification.",title:"Use another method"},backupCodeMfa:{subtitle:"Enter the backup code you received when setting up two-step authentication",title:"Enter a backup code"},emailCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your email to continue",title:"Verification required"},noAvailableMethods:{message:"Cannot proceed with verification. No suitable authentication factor is configured",subtitle:"An error occurred",title:"Cannot verify your account"},passkey:{blockButton__passkey:"Use your passkey",subtitle:"Using your passkey confirms your identity. Your device may ask for your fingerprint, face, or screen lock.",title:"Use your passkey"},password:{actionLink:"Use another method",subtitle:"Enter your current password to continue",title:"Verification required"},phoneCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your phone to continue",title:"Verification required"},phoneCodeMfa:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your phone to continue",title:"Verification required"},totpMfa:{formTitle:"Verification code",subtitle:"Enter the code generated by your authenticator app to continue",title:"Verification required"}},signIn:{accountSwitcher:{action__addAccount:"Add account",action__signOutAll:"Sign out of all accounts",subtitle:"Select the account with which you wish to continue.",title:"Choose an account"},alternativeMethods:{actionLink:"Get help",actionText:"Don’t have any of these?",blockButton__backupCode:"Use a backup code",blockButton__emailCode:"Email code to {{identifier}}",blockButton__emailLink:"Email link to {{identifier}}",blockButton__passkey:"Sign in with your passkey",blockButton__password:"Sign in with your password",blockButton__phoneCode:"Send SMS code to {{identifier}}",blockButton__totp:"Use your authenticator app",getHelp:{blockButton__emailSupport:"Email support",content:"If you have trouble signing into your account, email us and we will work with you to restore access as soon as possible.",title:"Get help"},subtitle:"Facing issues? You can use any of these methods to sign in.",title:"Use another method"},alternativePhoneCodeProvider:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your {{provider}}"},backupCodeMfa:{subtitle:"Your backup code is the one you got when setting up two-step authentication.",title:"Enter a backup code"},emailCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},emailCodeMfa:{formTitle:"Check your email",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},emailLink:{clientMismatch:{subtitle:"To continue, open the verification link on the device and browser from which you initiated the sign-in",title:"Verification link is invalid for this device"},expired:{subtitle:"Return to the original tab to continue.",title:"This verification link has expired"},failed:{subtitle:"Return to the original tab to continue.",title:"This verification link is invalid"},formSubtitle:"Use the verification link sent to your email",formTitle:"Verification link",loading:{subtitle:"You will be redirected soon",title:"Signing in..."},resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email",unusedTab:{title:"You may close this tab"},verified:{subtitle:"You will be redirected soon",title:"Successfully signed in"},verifiedSwitchTab:{subtitle:"Return to original tab to continue",subtitleNewTab:"Return to the newly opened tab to continue",titleNewTab:"Signed in on other tab"}},emailLinkMfa:{formSubtitle:"Use the verification link sent to your email",resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},enterpriseConnections:{subtitle:"Select the enterprise account with which you wish to continue.",title:"Choose your enterprise account"},forgotPassword:{formTitle:"Reset password code",resendButton:"Didn't receive a code? Resend",subtitle:"to reset your password",subtitle_email:"First, enter the code sent to your email address",subtitle_phone:"First, enter the code sent to your phone",title:"Reset password"},forgotPasswordAlternativeMethods:{blockButton__resetPassword:"Reset your password",label__alternativeMethods:"Or, sign in with another method",title:"Forgot Password?"},newDeviceVerificationNotice:"You're signing in from a new device. We're asking for verification to keep your account secure.",noAvailableMethods:{message:"Cannot proceed with sign in. There's no available authentication factor.",subtitle:"An error occurred",title:"Cannot sign in"},passkey:{subtitle:"Using your passkey confirms it's you. Your device may ask for your fingerprint, face or screen lock.",title:"Use your passkey"},password:{actionLink:"Use another method",subtitle:"Enter the password associated with your account",title:"Enter your password"},passwordCompromised:{title:"Password compromised"},passwordPwned:{title:"Password compromised"},passwordUntrusted:{title:"Password untrusted"},phoneCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your phone"},phoneCodeMfa:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"To continue, please enter the verification code sent to your phone",title:"Check your phone"},resetPassword:{formButtonPrimary:"Reset Password",requiredMessage:"For security reasons, it is required to reset your password.",successMessage:"Your password was successfully changed. Signing you in, please wait a moment.",title:"Set new password"},resetPasswordMfa:{detailsLabel:"We need to verify your identity before resetting your password."},start:{actionLink:"Sign up",actionLink__join_waitlist:"Join waitlist",actionLink__use_email:"Use email",actionLink__use_email_username:"Use email or username",actionLink__use_passkey:"Use passkey instead",actionLink__use_phone:"Use phone",actionLink__use_username:"Use username",actionText:"Don’t have an account?",actionText__join_waitlist:"Want early access?",alternativePhoneCodeProvider:{actionLink:"Use another method",label:"{{provider}} phone number",subtitle:"Enter your phone number to get a verification code on {{provider}}.",title:"Sign in to {{applicationName}} with {{provider}}"},subtitle:"Welcome back! Please sign in to continue",subtitleCombined:void 0,title:"Sign in to {{applicationName}}",titleCombined:"Continue to {{applicationName}}"},totpMfa:{formTitle:"Verification code",subtitle:"To continue, please enter the verification code generated by your authenticator app",title:"Two-step verification"},web3Solana:{subtitle:"Select a wallet below to sign in",title:"Sign in with Solana"}},signInEnterPasswordTitle:"Enter your password",signUp:{alternativePhoneCodeProvider:{resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your {{provider}}",title:"Verify your {{provider}}"},continue:{actionLink:"Sign in",actionText:"Already have an account?",subtitle:"Please fill in the remaining details to continue.",title:"Fill in missing fields"},emailCode:{formSubtitle:"Enter the verification code sent to your email address",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your email",title:"Verify your email"},emailLink:{clientMismatch:{subtitle:"To continue, open the verification link on the device and browser from which you initiated the sign-up",title:"Verification link is invalid for this device"},formSubtitle:"Use the verification link sent to your email address",formTitle:"Verification link",loading:{title:"Signing up..."},resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Verify your email",verified:{title:"Successfully signed up"},verifiedSwitchTab:{subtitle:"Return to the newly opened tab to continue",subtitleNewTab:"Return to previous tab to continue",title:"Successfully verified email"}},enterpriseConnections:{subtitle:"Select the enterprise account with which you wish to continue.",title:"Choose your enterprise account"},legalConsent:{checkbox:{label__onlyPrivacyPolicy:'I agree to the {{ privacyPolicyLink || link("Privacy Policy") }}',label__onlyTermsOfService:'I agree to the {{ termsOfServiceLink || link("Terms of Service") }}',label__termsOfServiceAndPrivacyPolicy:'I agree to the {{ termsOfServiceLink || link("Terms of Service") }} and {{ privacyPolicyLink || link("Privacy Policy") }}'},continue:{subtitle:"Please read and accept the terms to continue",title:"Legal consent"}},phoneCode:{formSubtitle:"Enter the verification code sent to your phone number",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your phone",title:"Verify your phone"},restrictedAccess:{actionLink:"Sign in",actionText:"Already have an account?",blockButton__emailSupport:"Email support",blockButton__joinWaitlist:"Join waitlist",subtitle:"Sign ups are currently disabled. If you believe you should have access, please contact support.",subtitleWaitlist:"Sign ups are currently disabled. To be the first to know when we launch, join the waitlist.",title:"Access restricted"},start:{actionLink:"Sign in",actionLink__use_email:"Use email instead",actionLink__use_phone:"Use phone instead",actionText:"Already have an account?",alternativePhoneCodeProvider:{actionLink:"Use another method",label:"{{provider}} phone number",subtitle:"Enter your phone number to get a verification code on {{provider}}.",title:"Sign up to {{applicationName}} with {{provider}}"},subtitle:"Welcome! Please fill in the details to get started.",subtitleCombined:"Welcome! Please fill in the details to get started.",title:"Create your account",titleCombined:"Create your account"},web3Solana:{subtitle:"Select a wallet below to sign up",title:"Sign up with Solana"}},socialButtonsBlockButton:"Continue with {{provider|titleize}}",socialButtonsBlockButtonManyInView:"{{provider|titleize}}",taskChooseOrganization:{chooseOrganization:{action__createOrganization:"Create new organization",action__invitationAccept:"Join",action__suggestionsAccept:"Request to join",subtitle:"Join an existing organization or create a new one",suggestionsAcceptedLabel:"Pending approval",title:"Choose an organization"},createOrganization:{formButtonReset:"Cancel",formButtonSubmit:"Continue",formFieldInputPlaceholder__name:"My Organization",formFieldInputPlaceholder__slug:"my-organization",formFieldLabel__name:"Name",formFieldLabel__slug:"Slug",subtitle:"Enter your organization details to continue",title:"Setup your organization"},organizationCreationDisabled:{title:"You must belong to an organization",subtitle:"Contact your organization admin for an invitation."},signOut:{actionLink:"Sign out",actionText:"Signed in as {{identifier}}"}},taskResetPassword:{formButtonPrimary:"Reset Password",signOut:{actionLink:"Sign out",actionText:"Signed in as {{identifier}}"},subtitle:"Your account requires a new password before you can continue",title:"Reset your password"},unstable__errors:{already_a_member_in_organization:"{{email}} is already a member of the organization.",avatar_file_size_exceeded:"File size exceeds the maximum limit of 10MB. Please choose a smaller file.",avatar_file_type_invalid:"File type not supported. Please upload a JPG, PNG, GIF, or WEBP image.",captcha_invalid:void 0,captcha_unavailable:"Sign up unsuccessful due to failed bot validation. Please refresh the page to try again or reach out to support for more assistance.",form_code_incorrect:void 0,form_email_address_blocked:void 0,form_identifier_exists__email_address:void 0,form_identifier_exists__phone_number:void 0,form_identifier_exists__username:void 0,form_identifier_not_found:void 0,form_new_password_matches_current:"New password cannot be the same as the current password.",form_param_format_invalid:void 0,form_param_format_invalid__email_address:void 0,form_param_format_invalid__phone_number:void 0,form_param_max_length_exceeded__first_name:void 0,form_param_max_length_exceeded__last_name:void 0,form_param_max_length_exceeded__name:void 0,form_param_nil:void 0,form_param_type_invalid:void 0,form_param_type_invalid__email_address:void 0,form_param_type_invalid__phone_number:void 0,form_param_value_invalid:void 0,form_password_incorrect:void 0,form_password_or_identifier_incorrect:void 0,form_password_length_too_short:"Your password is too short. It must be at least 8 characters long.",form_password_not_strong_enough:"Your password is not strong enough.",form_password_pwned:"This password has been found as part of a breach and can not be used, please try another password instead.",form_password_pwned__sign_in:"This password has been found as part of a breach and can not be used, please reset your password.",form_password_size_in_bytes_exceeded:void 0,form_password_compromised__sign_in:void 0,form_password_untrusted__sign_in:"Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.",form_password_validation_failed:void 0,form_username_invalid_character:void 0,form_username_invalid_length:"Your username must be between {{min_length}} and {{max_length}} characters long.",form_username_needs_non_number_char:"Your username must contain at least one non-numeric character.",identification_deletion_failed:void 0,not_allowed_access:void 0,organization_domain_blocked:void 0,organization_domain_common:void 0,organization_domain_exists_for_enterprise_connection:void 0,organization_membership_quota_exceeded:void 0,organization_minimum_permissions_needed:void 0,organization_not_found_or_unauthorized:"You are no longer a member of this organization. Please choose or create another one.",organization_not_found_or_unauthorized_with_create_organization_disabled:"You are no longer a member of this organization. Please choose another one.",passkey_already_exists:"A passkey is already registered with this device.",passkey_not_supported:"Passkeys are not supported on this device.",passkey_pa_not_supported:"Registration requires a platform authenticator but the device does not support it.",passkey_registration_cancelled:"Passkey registration was cancelled or timed out.",passkey_retrieval_cancelled:"Passkey verification was cancelled or timed out.",passwordComplexity:{maximumLength:"less than {{length}} characters",minimumLength:"{{length}} or more characters",requireLowercase:"a lowercase letter",requireNumbers:"a number",requireSpecialCharacter:"a special character",requireUppercase:"an uppercase letter",sentencePrefix:"Your password must contain"},phone_number_exists:void 0,session_exists:void 0,web3_missing_identifier:"A Web3 Wallet extension cannot be found. Please install one to continue.",web3_signature_request_rejected:"You have rejected the signature request. Please try again to continue.",web3_solana_signature_generation_failed:"An error occurred while generating the signature. Please try again to continue.",zxcvbn:{couldBeStronger:"Your password works, but could be stronger. Try adding more characters.",goodPassword:"Your password meets all the necessary requirements.",notEnough:"Your password is not strong enough.",suggestions:{allUppercase:"Capitalize some, but not all letters.",anotherWord:"Add more words that are less common.",associatedYears:"Avoid years that are associated with you.",capitalization:"Capitalize more than the first letter.",dates:"Avoid dates and years that are associated with you.",l33t:"Avoid predictable letter substitutions like '@' for 'a'.",longerKeyboardPattern:"Use longer keyboard patterns and change typing direction multiple times.",noNeed:"You can create strong passwords without using symbols, numbers, or uppercase letters.",pwned:"If you use this password elsewhere, you should change it.",recentYears:"Avoid recent years.",repeated:"Avoid repeated words and characters.",reverseWords:"Avoid reversed spellings of common words.",sequences:"Avoid common character sequences.",useWords:"Use multiple words, but avoid common phrases."},warnings:{common:"This is a commonly used password.",commonNames:"Common names and surnames are easy to guess.",dates:"Dates are easy to guess.",extendedRepeat:'Repeated character patterns like "abcabcabc" are easy to guess.',keyPattern:"Short keyboard patterns are easy to guess.",namesByThemselves:"Single names or surnames are easy to guess.",pwned:"Your password was exposed by a data breach on the Internet.",recentYears:"Recent years are easy to guess.",sequences:'Common character sequences like "abc" are easy to guess.',similarToCommon:"This is similar to a commonly used password.",simpleRepeat:'Repeated characters like "aaa" are easy to guess.',straightRow:"Straight rows of keys on your keyboard are easy to guess.",topHundred:"This is a frequently used password.",topTen:"This is a heavily used password.",userInputs:"There should not be any personal or page related data.",wordByItself:"Single words are easy to guess."}}},userButton:{action__addAccount:"Add account",action__closeUserMenu:"Close user menu",action__manageAccount:"Manage account",action__openUserMenu:"Open user menu",action__signOut:"Sign out",action__signOutAll:"Sign out of all accounts"},userProfile:{apiKeysPage:{title:"API keys"},backupCodePage:{actionLabel__copied:"Copied!",actionLabel__copy:"Copy all",actionLabel__download:"Download .txt",actionLabel__print:"Print",infoText1:"Backup codes will be enabled for this account.",infoText2:"Keep the backup codes secret and store them securely. You may regenerate backup codes if you suspect they have been compromised.",subtitle__codelist:"Store them securely and keep them secret.",successMessage:"Backup codes are now enabled. You can use one of these to sign in to your account, if you lose access to your authentication device. Each code can only be used once.",successSubtitle:"You can use one of these to sign in to your account, if you lose access to your authentication device.",title:"Add backup code verification",title__codelist:"Backup codes"},billingPage:{paymentHistorySection:{empty:"No payment history",notFound:"Payment attempt not found",tableHeader__amount:"Amount",tableHeader__date:"Date",tableHeader__status:"Status"},paymentMethodsSection:{actionLabel__default:"Make default",actionLabel__remove:"Remove",add:"Add new payment method",addSubtitle:"Add a new payment method to your account.",cancelButton:"Cancel",formButtonPrimary__add:"Add Payment Method",formButtonPrimary__pay:"Pay {{amount}}",payWithTestCardButton:"Pay with test card",removeMethod:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this payment source and any recurring subscriptions dependent on it will no longer work.",successMessage:"{{paymentMethod}} has been removed from your account.",title:"Remove payment method"},title:"Payment methods"},start:{headerTitle__payments:"Payments",headerTitle__plans:"Plans",headerTitle__statements:"Statements",headerTitle__subscriptions:"Subscription"},statementsSection:{empty:"No statements to display",itemCaption__paidForPlan:"Paid for {{plan}} {{period}} plan",itemCaption__proratedCredit:"Prorated credit for partial usage of previous subscription",itemCaption__subscribedAndPaidForPlan:"Subscribed and paid for {{plan}} {{period}} plan",notFound:"Statement not found",tableHeader__amount:"Amount",tableHeader__date:"Date",title:"Statements",totalPaid:"Total paid"},subscriptionsListSection:{actionLabel__manageSubscription:"Manage",actionLabel__newSubscription:"Subscribe to a plan",actionLabel__switchPlan:"Switch plans",tableHeader__edit:"Edit",tableHeader__plan:"Plan",tableHeader__startDate:"Start date",title:"Subscription"},subscriptionsSection:{actionLabel__default:"Manage"},switchPlansSection:{title:"Switch plans"},title:"Billing"},connectedAccountPage:{formHint:"Select a provider to connect your account.",formHint__noAccounts:"There are no available external account providers.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this connected account and any dependent features will no longer work.",successMessage:"{{connectedAccount}} has been removed from your account.",title:"Remove connected account"},socialButtonsBlockButton:"{{provider|titleize}}",successMessage:"The provider has been added to your account",title:"Add connected account"},deletePage:{actionDescription:'Type "Delete account" below to continue.',confirm:"Delete account",messageLine1:"Are you sure you want to delete your account? Some associated data may be retained. To request full data deletion, please contact support.",messageLine2:"This action is permanent and irreversible.",title:"Delete account"},emailAddressPage:{emailCode:{formHint:"An email containing a verification code will be sent to this email address.",formSubtitle:"Enter the verification code sent to {{identifier}}",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",successMessage:"The email {{identifier}} has been added to your account."},emailLink:{formHint:"An email containing a verification link will be sent to this email address.",formSubtitle:"Click on the verification link in the email sent to {{identifier}}",formTitle:"Verification link",resendButton:"Didn't receive a link? Resend",successMessage:"The email {{identifier}} has been added to your account."},enterpriseSSOLink:{formButton:"Click to sign-in",formSubtitle:"Complete the sign-in with {{identifier}}"},formHint:"You'll need to verify this email address before it can be added to your account.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this email address.",successMessage:"{{emailAddress}} has been removed from your account.",title:"Remove email address"},title:"Add email address",verifyTitle:"Verify email address"},formButtonPrimary__add:"Add",formButtonPrimary__continue:"Continue",formButtonPrimary__finish:"Finish",formButtonPrimary__remove:"Remove",formButtonPrimary__save:"Save",formButtonReset:"Cancel",mfaPage:{formHint:"Select a method to add.",title:"Add two-step verification"},mfaPhoneCodePage:{backButton:"Use existing number",primaryButton__addPhoneNumber:"Add phone number",removeResource:{messageLine1:"{{identifier}} will be no longer receiving verification codes when signing in.",messageLine2:"Your account may not be as secure. Are you sure you want to continue?",successMessage:"SMS code two-step verification has been removed for {{mfaPhoneCode}}",title:"Remove two-step verification"},subtitle__availablePhoneNumbers:"Select an existing phone number to register for SMS code two-step verification or add a new one.",subtitle__unavailablePhoneNumbers:"There are no available phone numbers to register for SMS code two-step verification, please add a new one.",successMessage1:"When signing in, you will need to enter a verification code sent to this phone number as an additional step.",successMessage2:"Save these backup codes and store them somewhere safe. If you lose access to your authentication device, you can use backup codes to sign in.",successTitle:"SMS code verification enabled",title:"Add SMS code verification"},mfaTOTPPage:{authenticatorApp:{buttonAbleToScan__nonPrimary:"Scan QR code instead",buttonUnableToScan__nonPrimary:"Can’t scan QR code?",infoText__ableToScan:"Set up a new sign-in method in your authenticator app and scan the following QR code to link it to your account.",infoText__unableToScan:"Set up a new sign-in method in your authenticator and enter the Key provided below.",inputLabel__unableToScan1:"Make sure Time-based or One-time passwords is enabled, then finish linking your account.",inputLabel__unableToScan2:"Alternatively, if your authenticator supports TOTP URIs, you can also copy the full URI."},removeResource:{messageLine1:"Verification codes from this authenticator will no longer be required when signing in.",messageLine2:"Your account may not be as secure. Are you sure you want to continue?",successMessage:"Two-step verification via authenticator application has been removed.",title:"Remove two-step verification"},successMessage:"Two-step verification is now enabled. When signing in, you will need to enter a verification code from this authenticator as an additional step.",title:"Add authenticator application",verifySubtitle:"Enter verification code generated by your authenticator",verifyTitle:"Verification code"},mobileButton__menu:"Menu",navbar:{account:"Profile",apiKeys:"API keys",billing:"Billing",description:"Manage your account info.",security:"Security",title:"Account"},passkeyScreen:{removeResource:{messageLine1:"{{name}} will be removed from this account.",title:"Remove passkey"},subtitle__rename:"You can change the passkey name to make it easier to find.",title__rename:"Rename Passkey"},passwordPage:{checkboxInfoText__signOutOfOtherSessions:"It is recommended to sign out of all other devices which may have used your old password.",readonly:"Your password can currently not be edited because you can sign in only via the enterprise connection.",successMessage__set:"Your password has been set.",successMessage__signOutOfOtherSessions:"All other devices have been signed out.",successMessage__update:"Your password has been updated.",title__set:"Set password",title__update:"Update password"},phoneNumberPage:{infoText:"A text message containing a verification code will be sent to this phone number. Message and data rates may apply.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this phone number.",successMessage:"{{phoneNumber}} has been removed from your account.",title:"Remove phone number"},successMessage:"{{identifier}} has been added to your account.",title:"Add phone number",verifySubtitle:"Enter the verification code sent to {{identifier}}",verifyTitle:"Verify phone number"},plansPage:{title:"Plans"},profilePage:{fileDropAreaHint:"Recommended size 1:1, up to 10MB.",imageFormDestructiveActionSubtitle:"Remove",imageFormSubtitle:"Upload",imageFormTitle:"Profile image",readonly:"Your profile information has been provided by the enterprise connection and cannot be edited.",successMessage:"Your profile has been updated.",title:"Update profile"},start:{activeDevicesSection:{destructiveAction:"Sign out of device",title:"Active devices"},connectedAccountsSection:{actionLabel__connectionFailed:"Reconnect",actionLabel__reauthorize:"Authorize now",destructiveActionTitle:"Remove",primaryButton:"Connect account",subtitle__disconnected:"This account has been disconnected.",subtitle__reauthorize:"The required scopes have been updated, and you may be experiencing limited functionality. Please re-authorize this application to avoid any issues",title:"Connected accounts"},dangerSection:{deleteAccountButton:"Delete account",title:"Delete account"},emailAddressesSection:{destructiveAction:"Remove email",detailsAction__nonPrimary:"Set as primary",detailsAction__primary:"Complete verification",detailsAction__unverified:"Verify",primaryButton:"Add email address",title:"Email addresses"},enterpriseAccountsSection:{title:"Enterprise accounts"},headerTitle__account:"Profile details",headerTitle__security:"Security",mfaSection:{backupCodes:{actionLabel__regenerate:"Regenerate",headerTitle:"Backup codes",subtitle__regenerate:"Get a fresh set of secure backup codes. Prior backup codes will be deleted and cannot be used.",title__regenerate:"Regenerate backup codes"},phoneCode:{actionLabel__setDefault:"Set as default",destructiveActionLabel:"Remove"},primaryButton:"Add two-step verification",title:"Two-step verification",totp:{destructiveActionTitle:"Remove",headerTitle:"Authenticator application"}},passkeysSection:{menuAction__destructive:"Remove",menuAction__rename:"Rename",primaryButton:"Add a passkey",title:"Passkeys"},passwordSection:{primaryButton__setPassword:"Set password",primaryButton__updatePassword:"Update password",title:"Password"},phoneNumbersSection:{destructiveAction:"Remove phone number",detailsAction__nonPrimary:"Set as primary",detailsAction__primary:"Complete verification",detailsAction__unverified:"Verify phone number",primaryButton:"Add phone number",title:"Phone numbers"},profileSection:{primaryButton:"Update profile",title:"Profile"},usernameSection:{primaryButton__setUsername:"Set username",primaryButton__updateUsername:"Update username",title:"Username"},web3WalletsSection:{destructiveAction:"Remove wallet",detailsAction__nonPrimary:"Set as primary",primaryButton:"Connect wallet",title:"Web3 wallets",web3SelectSolanaWalletScreen:{subtitle:"Select a Solana wallet to connect to your account.",title:"Add a Solana wallet"}}},usernamePage:{successMessage:"Your username has been updated.",title__set:"Set username",title__update:"Update username"},web3WalletPage:{removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this web3 wallet.",successMessage:"{{web3Wallet}} has been removed from your account.",title:"Remove web3 wallet"},subtitle__availableWallets:"Select a web3 wallet to connect to your account.",subtitle__unavailableWallets:"There are no available web3 wallets.",successMessage:"The wallet has been added to your account.",title:"Add web3 wallet",web3WalletButtonsBlockButton:"{{provider|titleize}}"}},waitlist:{start:{actionLink:"Sign in",actionText:"Already have access?",formButton:"Join the waitlist",subtitle:"Enter your email address and we’ll let you know when your spot is ready",title:"Join the waitlist"},success:{message:"You will be redirected soon...",subtitle:"We’ll be in touch when your spot is ready",title:"Thanks for joining the waitlist!"}},web3SolanaWalletButtons:{connect:"Connect with {{walletName}}",continue:"Continue with {{walletName}}",noneAvailable:'No Solana Web3 wallets detected. Please install a Web3 supported {{ solanaWalletsLink || link("wallet extension") }}.'}};var b=r(2861),v=r(9869),y=r(7447);let w=()=>{let{localization:e}=(0,s.II)();var t=e||{};if(!n||o&&o!==t&&!(0,y.j)(t,o)){o=t;let e={};(0,v.n)(g,e),(0,v.n)(t,e),n=e}return n},$=e=>{let t=l.forwardRef((t,r)=>{let n=w(),{localizationKey:o,...i}=t,l=m();return o?"string"==typeof o?(0,a.Y)(e,{...i,ref:r,children:o}):(0,a.Y)(e,{...i,ref:r,"data-localization-key":_(o),children:S(o,n,l)||i.children}):(0,a.Y)(e,{...i,ref:r})}),r=e.displayName||e.name||"Component";return t.displayName=`Localizable${r}`.replace("_",""),t},x=()=>{let{localization:e}=(0,s.II)(),t=w(),r=m(),n=e=>e&&"string"!=typeof e?S(e,t,r):e||"";return{t:n,translateError:e=>{if(!e||"string"==typeof e)return n(e);if((0,i.Cm)(e))return n((0,b.G)(`unstable__errors.${e.code}`))||e.message;let{code:t,message:r,longMessage:o,meta:a}=e||{},{paramName:l=""}=a||{};return t?n((0,b.G)(`unstable__errors.${t}__${l}`))||n((0,b.G)(`unstable__errors.${t}`))||o||r:""},locale:e?.locale||g.locale}},_=e=>e.key,S=(e,t,r)=>{let n=((e,t)=>{let r=(t||"").split("."),n=e;for(let e=0;e<r.length;e++)if(void 0===(n=n[r[e]]))return;return n})(t,e.key),o=e.params;return((e,t)=>{var r,n;let o,a,i,l,s;if(!e)return"";let{normalisedString:c,expressions:d}=(r=e,n=t,o=(r.match(/{{.+?}}/g)||[]).map(e=>e.replace(/[{}]/g,"")).map(e=>e.split("|").map(e=>e.trim())).filter(e=>e[0]in n).map(([e,...t])=>({token:e,modifiers:t.map(e=>f(e)).filter(e=>h(e.modifierName))})),a=r,o.forEach(({token:e})=>{a=a.replace(/{{.+?}}/,`_++${e}++_`)}),{expressions:o,normalisedString:a});return i=c,l=d,s=t,l.forEach(({token:e,modifiers:t})=>{let r=t.reduce((e,t)=>{try{return p[t.modifierName](e,...t.params)}catch(e){return console.warn(e),""}},s[e]);i=i.replace(`_++${e}++_`,r)}),i})(n||"",{...r,...o})}},9661:function(e,t,r){r.d(t,{VirtualBodyRootPortal:()=>T,Portal:()=>E});var n=r(4518),o=r(2166),a=r(2950),i=r(5074),l=r(5323),s=r(4),c=r(5350),d=r(5240),u=r(9078),p=r(3620),m=r(9233),h=r(2826),f=r(9953),g=r(5892),b=r(1),v=r(7032),y=r(451),w=r(6256),$=r(164),x=r(8188),_=r(2121),S=r(1616);function k({componentName:e,props:t,children:r}){switch(e){case"SignIn":return(0,n.Y)(s.Q.Provider,{value:{componentName:e,...t},children:r});case"SignUp":return(0,n.Y)(c.g.Provider,{value:{componentName:e,...t},children:r});case"UserProfile":return(0,n.Y)(d.M.Provider,{value:{componentName:e,...t},children:r});case"UserVerification":return(0,n.Y)(u._.Provider,{value:{componentName:e,...t},children:r});case"UserAvatar":return(0,n.Y)(p.E.Provider,{value:{componentName:e,...t},children:r});case"UserButton":return(0,n.Y)(m.P.Provider,{value:{componentName:e,...t},children:r});case"OrganizationSwitcher":return(0,n.Y)(h.U.Provider,{value:{componentName:e,...t},children:r});case"OrganizationList":return(0,n.Y)(f.f.Provider,{value:{componentName:e,...t},children:r});case"OrganizationProfile":return(0,n.Y)(g.o.Provider,{value:{componentName:e,...t},children:r});case"CreateOrganization":return(0,n.Y)(b.$.Provider,{value:{componentName:e,...t},children:r});case"GoogleOneTap":return(0,n.Y)(v.Q.Provider,{value:{componentName:e,...t},children:r});case"Waitlist":return(0,n.Y)(y.r.Provider,{value:{componentName:e,...t},children:r});case"PricingTable":return(0,n.Y)(w.m$.Provider,{value:t.for||"user",children:(0,n.Y)($.a.Provider,{value:{componentName:e,...t},children:r})});case"APIKeys":return(0,n.Y)(x.w.Provider,{value:{componentName:e,...t},children:r});case"OAuthConsent":return(0,n.Y)(_.n.Provider,{value:{componentName:e,...t},children:r});case"TaskChooseOrganization":return(0,n.Y)(S.lY.Provider,{value:{componentName:"TaskChooseOrganization",...t},children:(0,n.Y)(S.qx.Provider,{value:{...t},children:r})});case"TaskResetPassword":return(0,n.Y)(S.pq.Provider,{value:{componentName:"TaskResetPassword",...t},children:(0,n.Y)(S.qx.Provider,{value:{...t},children:r})});default:throw Error(`Unknown component context: ${e}`)}}var C=r(4173),P=r(1210),A=r(4777);let z=({basePath:e,preservedParams:t,children:r})=>{let{navigate:o}=(0,P.ho)(),[a,l]=i.useState(!1);if(!o)throw Error("Clerk: Missing navigate option.");let s=(e,t)=>{if(e)return o((0,C.FV)(e),t)};return(i.useEffect(()=>{(async()=>{if((0,C.tL)(window.location.hash)){let e=(0,C.yR)(new URL(window.location.href));await s(e.href,{replace:!0}),l(!0)}})()},[l,o,window.location.hash]),(0,C.tL)(window.location.hash)&&!a)?null:(0,n.Y)(A.F,{basePath:e.substring(1),startPath:"",getPath:()=>window.location.pathname,getQueryString:()=>window.location.search,internalNavigate:s,refreshEvents:["popstate"],preservedParams:t,children:r})},I="CLERK-ROUTER/HASH",D=({preservedParams:e,children:t})=>{let r=async e=>{if(e)return window.location.hash=(0,C.FV)(e).substring(1+I.length),Promise.resolve()},o=()=>new URL((0,C.tL)(window.location.hash)?window.location.origin+window.location.hash.substring(1):window.location.origin);return(0,n.Y)(A.F,{getPath:()=>"/"===o().pathname?"/"+I:"/"+I+o().pathname,basePath:I,startPath:"",getQueryString:()=>o().search,internalNavigate:r,refreshEvents:["popstate","hashchange"],preservedParams:e,children:t})};var R=r(4132),Y=r(4692);function E({props:e,component:t,componentName:r,node:s}){let c={...e,...(0,Y.C)({routing:e?.routing,path:e?.path})},d=(0,n.Y)(k,{componentName:r,props:c,children:(0,n.Y)(i.Suspense,{fallback:"",children:i.createElement(t,c)})});return c?.routing==="path"?(c?.path||(0,a.a)(r),l.createPortal((0,n.Y)(z,{preservedParams:o.l,basePath:c.path,children:d}),s)):l.createPortal((0,n.Y)(D,{preservedParams:o.l,children:d}),s)}class T extends i.PureComponent{elRef=document.createElement("div");componentDidMount(){document.body.appendChild(this.elRef)}componentWillUnmount(){document.body.removeChild(this.elRef)}render(){let{props:e,startPath:t,component:r,componentName:o}=this.props;return l.createPortal((0,n.Y)(R.x,{startPath:t,children:(0,n.Y)(k,{componentName:o,props:e??{},children:(0,n.Y)(i.Suspense,{fallback:"",children:i.createElement(r,e)})})}),this.elRef)}}},2349:function(e,t,r){r.d(t,{F:()=>c});var n=r(4518),o=r(1914),a=r(1464),i=r(6488);let{applyVariants:l,filterProps:s}=(0,o.v)(e=>({base:{padding:`${e.space.$3} ${e.space.$4}`,backgroundColor:e.colors.$neutralAlpha50,...a.s.borderVariants(e,{hoverStyles:!1}).normal},variants:{colorScheme:{danger:{color:e.colors.$danger500,backgroundColor:e.colors.$dangerAlpha50,...a.s.borderVariants(e,{hasError:!0}).normal},info:{color:e.colors.$neutralAlpha150,background:e.colors.$neutralAlpha50},warning:{backgroundColor:e.colors.$warningAlpha100,...a.s.borderVariants(e,{hasWarning:!0,hoverStyles:!1}).normal}}},defaultVariants:{colorScheme:"warning"}})),c=e=>(0,n.Y)(i.s,{align:"center",justify:"start",...s(e),css:l(e),children:e.children})},7736:function(e,t,r){r.d(t,{a:()=>s});var n=r(4518),o=r(5074),a=r(1914),i=r(1908);let{applyVariants:l}=(0,a.v)(()=>({base:{boxSizing:"border-box"},variants:{}})),s=o.forwardRef((e,t)=>{let{as:r="div",...o}=e;return(0,n.Y)(r,{...(0,i.k)(o),css:l(e),ref:t})})},6488:function(e,t,r){r.d(t,{f:()=>u,s:()=>d});var n=r(4518),o=r(5074),a=r(1914),i=r(7736);let l=(e,t)=>navigator?.userAgent?.match(/(iphone|ipad).+(os).*(\s13_).+safari/i)?{'& > *:not([hidden]):not([style*="visibility: hidden"]) + *:not([hidden]):not([style*="visibility: hidden"])':{marginLeft:"row"===t?e:void 0,marginTop:"col"===t?e:void 0}}:{gap:e},{applyVariants:s,filterProps:c}=(0,a.v)((e,t)=>{let r="col"===t.flexDirection||"colReverse"===t.flexDirection||"col"===t.direction||"colReverse"===t.direction?"col":"row";return{base:{display:"flex"},variants:{direction:{row:{flexDirection:"row"},col:{flexDirection:"column"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}},align:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"flex-end"},stretch:{alignItems:"stretch"},baseline:{alignItems:"baseline"}},justify:{start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"},between:{justifyContent:"space-between"}},wrap:{noWrap:{flexWrap:"nowrap"},wrap:{flexWrap:"wrap"},wrapReverse:{flexWrap:"wrap-reverse"}},gap:{1:l(e.space.$1,r),2:l(e.space.$2,r),3:l(e.space.$3,r),4:l(e.space.$4,r),5:l(e.space.$5,r),6:l(e.space.$6,r),7:l(e.space.$7,r),8:l(e.space.$8,r),9:l(e.space.$9,r)},center:{true:{justifyContent:"center",alignItems:"center"}}},defaultVariants:{direction:"row",align:"stretch",justify:"start",wrap:"noWrap"}}}),d=o.forwardRef((e,t)=>(0,n.Y)(i.a,{...c(e),css:s(e),ref:t})),u=o.forwardRef((e,t)=>(0,n.Y)(d,{...e,direction:"col",ref:t}))},2204:function(e,t,r){r.d(t,{AT:()=>g,Oc:()=>f,pd:()=>m,TM:()=>b,EP:()=>h});var n=r(4518),o=r(5074),a=r(78),i=r(2861),l=r(1914),s=r(1464),c=r(7591),d=r(593);let{applyVariants:u,filterProps:p}=(0,l.v)((e,t)=>({base:{boxSizing:"border-box",margin:0,padding:`${e.space.$1x5} ${e.space.$3}`,backgroundColor:e.colors.$colorInput,color:e.colors.$colorInputForeground,outline:"transparent solid 2px",outlineOffset:"2px",maxHeight:e.sizes.$9,width:"checkbox"===t.type?e.sizes.$4:"100%",aspectRatio:"checkbox"===t.type?"1/1":"unset",accentColor:e.colors.$primary500,...s.s.textVariants(e).body,...s.s.disabled(e),[c.g.ios]:{fontSize:e.fontSizes.$lg,'&:not([type="checkbox"]):not([type="radio"])':{WebkitAppearance:"none"}},":autofill":{animationName:"onAutoFillStart"},"::placeholder":{color:e.colors.$colorMutedForeground}},variants:{variant:{default:{...s.s.borderVariants(e,t).normal},unstyled:{borderWidth:0,boxShadow:"unset",backgroundColor:"transparent"}}},defaultVariants:{variant:"default"}})),m=o.forwardRef((e,t)=>{var r;let l=(0,d.Wd)()||{},{t:s}=(0,a._)(),{feedbackMessageId:c,ignorePasswordManager:m,feedbackType:h,...f}=(0,d.Uj)(l,["feedbackMessageId","ignorePasswordManager","feedbackType"]),g=p({...e,hasError:e.hasError||f.hasError}),{onChange:b}=(r=g.onChange,{onChange:function(e){e.persist(),"function"==typeof r&&r(e)},ref:o.useRef(null)}),{isDisabled:v,hasError:y,focusRing:w,isRequired:$,type:x,..._}=g,S=v||f.isDisabled,k=$||f.isRequired,C=y||f.hasError,P="email"===x?{type:"text",pattern:"^.*@[a-zA-Z0-9\\-]+\\.[a-zA-Z0-9\\-\\.]+$",inputMode:"email",title:s((0,i.G)("formFieldInput__emailAddress_format"))}:{type:x||"text"};return(0,n.Y)("input",{..._,...P,...m?{"data-1p-ignore":!0}:void 0,ref:t,onChange:b,disabled:v,required:k,id:e.id||f.id,"aria-invalid":C,"aria-describedby":c||void 0,"aria-required":k,"aria-disabled":S,"data-feedback":h,"data-variant":e.variant||"default",css:u(e)})}),h=o.forwardRef((e,t)=>{let r=(0,d.Wd)()||{},{feedbackType:o}=(0,d.Uj)(r,["feedbackType","data-active"]),{isDisabled:a,hasError:i,focusRing:l,isRequired:s,...c}=p({...e,hasError:e.hasError});return(0,n.Y)("div",{...c,ref:t,id:e.id,"aria-invalid":i,"data-feedback":o,"data-variant":e.variant||"default","data-focus-within":l,css:u(e)})}),f=o.forwardRef((e,t)=>(0,n.Y)(m,{...e,type:"checkbox",ref:t})),g=o.forwardRef((e,t)=>(0,n.Y)(m,{...e,type:"radio",ref:t})),b=o.forwardRef((e,t)=>{let{isDisabled:r,hasError:o,focusRing:a,isRequired:i,...l}=e,s=r||e.isDisabled,c=i||e.isRequired,d=o||e.hasError;return(0,n.Y)("textarea",{...l,ref:t,disabled:s,required:c,"aria-invalid":d,"aria-required":c,css:u(e)})})},3707:function(e,t,r){r.d(t,{N:()=>d});var n=r(4518),o=r(4173);r(5074);var a=r(1914),i=r(1464),l=r(1908);let{applyVariants:s,filterProps:c}=(0,a.v)(e=>({base:{boxSizing:"border-box",display:"inline-flex",alignItems:"center",margin:0,cursor:"pointer",...i.s.disabled(e),textDecoration:"none","&:hover":{textDecoration:"underline"}},variants:{variant:i.s.textVariants(e),colorScheme:{primary:{color:e.colors.$primary500,"&:hover":{color:e.colors.$primary400},"&:active":{color:e.colors.$primary600}},danger:{color:e.colors.$danger500,"&:hover":{color:e.colors.$danger400},"&:active":{color:e.colors.$danger600}},neutral:{color:e.colors.$colorMutedForeground},inherit:{color:"inherit"}},focusRing:{true:{"&:focus":{outline:"none",...i.s.focusRing(e)}}}},defaultVariants:{colorScheme:"primary",variant:"body",focusRing:!1}})),d=e=>{let{isExternal:t,children:r,href:a,onClick:i,...d}=e,u=(0,o.d3)(a),p=i?e=>{u||e.preventDefault(),i(e)}:void 0;return(0,n.Y)("a",{...(0,l.k)(c(d)),onClick:p,href:u||"",target:u&&t?"_blank":void 0,rel:u&&t?"noopener noreferrer":void 0,css:s(e),children:r})}},7852:function(e,t,r){r.d(t,{y:()=>p});var n=r(4518),o=r(2637),a=r(1914),i=r(4374);let{size:l,thickness:s,speed:c}=(0,o.T)("speed","size","thickness"),{applyVariants:d,filterProps:u}=(0,a.v)(e=>({base:{display:"inline-block",borderRadius:"99999px",borderTop:`${s} solid currentColor`,borderRight:`${s} solid currentColor`,borderBottomWidth:s,borderLeftWidth:s,borderBottomStyle:"solid",borderLeftStyle:"solid",borderBottomColor:e.colors.$transparent,borderLeftColor:e.colors.$transparent,opacity:1,animation:`${i.W.spinning} ${c} linear 0s infinite normal none running`,width:[l],height:[l],minWidth:[l],minHeight:[l]},variants:{colorScheme:{primary:{borderTopColor:e.colors.$primary500,borderRightColor:e.colors.$primary500,opacity:1},neutral:{borderTopColor:e.colors.$borderAlpha700,borderRightColor:e.colors.$borderAlpha700,opacity:1}},thickness:{sm:{[s]:e.sizes.$0x5},md:{[s]:e.sizes.$1}},size:{xs:{[l]:e.sizes.$3},sm:{[l]:e.sizes.$4},md:{[l]:e.sizes.$5},lg:{[l]:e.sizes.$6},xl:{[l]:e.sizes.$8}},speed:{slow:{[c]:"600ms"},normal:{[c]:"400ms"}}},defaultVariants:{speed:"normal",thickness:"sm",size:"sm"}})),p=e=>(0,n.Y)("span",{...u(e),css:d(e),"aria-busy":!0,"aria-live":"polite"})},1908:function(e,t,r){r.d(t,{k:()=>n});let n=e=>{let{hasError:t,isDisabled:r,isLoading:n,isOpen:o,isActive:a,...i}=e;return{"data-error":t||void 0,"data-disabled":r||void 0,"data-loading":n||void 0,"data-open":o||void 0,"data-active":a||void 0,...i}}},593:function(e,t,r){r.d(t,{BQ:()=>c,Uj:()=>d,Wd:()=>s});var n=r(4518),o=r(1210),a=r(5074),i=r(8640);let[l,,s]=(0,o.e3)("FormFieldContext"),c=e=>{let{id:t,isRequired:r=!1,isDisabled:o=!1,setError:s,setSuccess:c,setWarning:d,setHasPassedComplexity:u,setInfo:p,clearFeedback:m,children:h,feedbackType:f,feedback:g,isFocused:b,...v}=e,y=`${t}-field`,{debounced:w}=(0,i.eW)({feedback:g,feedbackType:f,isFocused:b}),$="error"===w.feedbackType,x=w.feedback?"error"===w.feedbackType?`error-${t}`:`${t}-${w.feedbackType}-feedback`:"",_=a.useMemo(()=>({isRequired:r,isDisabled:o,hasError:$,id:y,fieldId:t,feedbackMessageId:x,setError:s,setSuccess:c,setWarning:d,setInfo:p,clearFeedback:m,setHasPassedComplexity:u,feedbackType:f,feedback:g,isFocused:b}),[r,$,y,t,x,o,s,c,d,p,m,u,f,g,b]);return(0,n.Y)(l.Provider,{value:{value:{..._,...v,debouncedFeedback:w}},children:e.children})},d=(e,t)=>{let{radioOptions:r,validatePassword:n,hasPassedComplexity:o,isFocused:a,feedback:i,feedbackType:l,setHasPassedComplexity:s,setWarning:c,setSuccess:d,setError:u,setInfo:p,feedbackMessageId:m,fieldId:h,label:f,clearFeedback:g,infoText:b,debouncedFeedback:v,ignorePasswordManager:y,transformer:w,...$}=e;return t?.forEach(t=>{$[t]=e[t]}),$}},4777:function(e,t,r){r.d(t,{F:()=>p});var n=r(4518),o=r(8902),a=r(4173),i=r(1210),l=r(5074),s=r(734),c=r(8595),d=r(2265),u=r(4964);let p=({basePath:e,startPath:t,getPath:r,getQueryString:p,internalNavigate:m,refreshEvents:h,preservedParams:f,urlStateParam:g,children:b})=>{let{navigate:v}=(0,i.ho)(),[y,w]=l.useState({path:r(),queryString:p()}),$=y.path,x=y.queryString,_=(0,o.t)(y.queryString),S=(e,t)=>{let[r,n]=(0,s.N)("","",e,t),o=(0,a.Kj)($),i=e&&(0,c.YW)(n+"/:foo*")(o)||t&&(0,c.YW)(r)(o)||t&&(0,c.YW)(n)(o)||!1;return!1!==i&&i.params},k=l.useCallback(()=>{let e=r(),t=p();(e!==$||t!==x)&&w({path:e,queryString:t})},[$,x,r,p]);l.useEffect(()=>{let e=[h].flat().filter(e=>!!e);if(e.length)return e.forEach(e=>window.addEventListener(e,k)),()=>{e.forEach(e=>window.removeEventListener(e,k))}},[h,k]);let C=async t=>{if(!t)return;let r=t.origin!==window.location.origin;if(!t.pathname.startsWith("/"+e)||r){let e=await v(t.href);return k(),e}if(f){let e=(0,o.t)(t.search);f.forEach(t=>{!e[t]&&_[t]&&(e[t]=_[t])}),t.search=(0,o.n)(e)}let n=await m(t,{metadata:{navigationType:"internal"}});return w({path:t.pathname,queryString:t.search}),n};return(0,n.Y)(u.P.Provider,{value:{basePath:e,startPath:t,flowStartPath:t,fullPath:"",indexPath:"",currentPath:$,queryString:x,queryParams:_,getMatchData:S.bind(void 0),matches:((e,t)=>!!S(e,t)).bind(void 0),baseNavigate:C.bind(void 0),navigate:async()=>{},resolve:(e=>new URL(e,window.location.origin)).bind(void 0),refresh:k.bind(void 0),params:{},urlStateParam:g},children:(0,n.Y)(d.q,{path:e,children:b})})}},2265:function(e,t,r){r.d(t,{q:()=>p});var n=r(4518),o=r(4173),a=r(1210),i=r(5074),l=r(1550),s=r(734),c=r(8595),d=r(4964);let u=({canActivate:e,children:t})=>{let{navigateToFlowStart:r}=(0,l.C)(),o=(0,a.ho)();return(i.useEffect(()=>{e(o)||r()}),e(o))?(0,n.Y)(n.FK,{children:t}):null};function p(e){let t=(0,d.r)();if(!e.children)return null;if(!e.index&&!e.path)return(0,n.Y)(n.FK,{children:e.children});if(!t.matches(e.path,e.index))return null;let[r,a]=(0,s.N)(t.indexPath,t.fullPath,e.path,e.index),i=(e,{searchParams:t}={})=>{let r=new URL(e,window.location.origin+a+"/");return t&&(r.search=t.toString()),r.pathname=(0,o.Kj)(r.pathname),r},l=(e,n)=>{let[i,l]=(0,s.N)(r,a,e,n),d=(0,o.Kj)(t.currentPath),u=e&&(0,c.YW)(l+"/:foo*")(d)||n&&(0,c.YW)(i)(d)||n&&(0,c.YW)(l)(d)||!1;return!1!==u&&u.params},p=t.getMatchData(e.path,e.index)||{},m={};for(let[e,t]of Object.entries(p))m[e]=t;let h=(e.flowStart?(0,o.yY)(t.fullPath).replace("/"+t.basePath,""):t.flowStartPath)||t.startPath;return(0,n.Y)(d.P.Provider,{value:{basePath:t.basePath,startPath:t.startPath,flowStartPath:h,indexPath:r,fullPath:a,currentPath:t.currentPath,queryParams:t.queryParams,queryString:t.queryString,baseNavigate:t.baseNavigate,getMatchData:l,matches:(e,t)=>!!l(e,t),resolve:i,navigate:(e,{searchParams:r}={})=>{let n=i(e,{searchParams:r});return t.baseNavigate(n)},refresh:t.refresh,params:m,urlStateParam:t.urlStateParam},children:e.canActivate?(0,n.Y)(u,{canActivate:e.canActivate,children:e.children}):e.children})}},4964:function(e,t,r){r.d(t,{P:()=>o,r:()=>a});var n=r(5074);let o=n.createContext(null);o.displayName="RouteContext";let a=()=>{let e=n.useContext(o);if(!e)throw Error("useRouter called while Router is null");return e}},7831:function(e,t,r){r.d(t,{d:()=>l});var n=r(4518),o=r(5074),a=r(2265),i=r(4964);function l({children:e}){let t=(0,i.r)(),r=null;return o.Children.forEach(e,e=>{if(r||!(e&&o.isValidElement(e)&&"object"==typeof e&&e.type===a.q))return;let{index:n,path:i}=e.props;(!n&&!i||t.matches(i,n))&&(r=e)}),(0,n.Y)(n.FK,{children:r})}},4132:function(e,t,r){r.d(t,{I:()=>s,x:()=>c});var n=r(4518),o=r(1210),a=r(5074),i=r(3727),l=r(4777);let s="CLERK-ROUTER/VIRTUAL",c=({startPath:e,preservedParams:t,onExternalNavigate:r,children:c})=>{let{__internal_addNavigationListener:d}=(0,o.ho)(),[u,p]=a.useState(new URL("/"+s+e,window.location.origin)),{urlStateParam:m,removeQueryParam:h}=(0,i.x)();return(0,a.useEffect)(()=>{let e=()=>{};return r&&(e=d(r)),()=>{e()}},[]),m.componentName&&h(),(0,n.Y)(l.F,{getPath:()=>u.pathname,basePath:s,startPath:e,getQueryString:()=>u.search,internalNavigate:e=>{e&&p(e)},preservedParams:t,urlStateParam:m,children:c})}},3394:function(e,t,r){r.d(t,{VirtualRouter:()=>n.x});var n=r(4132)},734:function(e,t,r){r.d(t,{N:()=>n});let n=(e,t,r,n)=>{let o=e;r&&(o=t,n||(o+="/"+r)),o.startsWith("//")&&(o=o.substr(1));let a=t+(r?"/"+r:"");return a.startsWith("//")&&(a=a.substr(1)),[o,a]}},8595:function(e,t,r){function n(e,t){let r=[];return function(e,t,r={}){let{decode:n=e=>e}=r;return function(r){let o=e.exec(r);if(!o)return!1;let{0:a,index:i}=o,l=Object.create(null);for(let e=1;e<o.length;e++){if(void 0===o[e])continue;let r=t[e-1];"*"===r.modifier||"+"===r.modifier?l[r.name]=o[e].split(r.prefix+r.suffix).map(e=>n(e,r)):l[r.name]=n(o[e],r)}return{path:a,index:i,params:l}}}(function e(t,r,n){if(t instanceof RegExp){if(!r)return t;let e=t.source.match(/\((?!\?)/g);if(e)for(let t=0;t<e.length;t++)r.push({name:t,prefix:"",suffix:"",modifier:"",pattern:""});return t}if(Array.isArray(t)){let o;return o=t.map(t=>e(t,r,n).source),RegExp(`(?:${o.join("|")})`,a(n))}return function(e,t,r={}){let{strict:n=!1,start:i=!0,end:l=!0,encode:s=e=>e}=r,c=`[${o(r.endsWith||"")}]|$`,d=`[${o(r.delimiter||"/#?")}]`,u=i?"^":"";for(let r of e)if("string"==typeof r)u+=o(s(r));else{let e=o(s(r.prefix)),n=o(s(r.suffix));if(r.pattern)if(t&&t.push(r),e||n)if("+"===r.modifier||"*"===r.modifier){let t="*"===r.modifier?"?":"";u+=`(?:${e}((?:${r.pattern})(?:${n}${e}(?:${r.pattern}))*)${n})${t}`}else u+=`(?:${e}(${r.pattern})${n})${r.modifier}`;else u+=`(${r.pattern})${r.modifier}`;else u+=`(?:${e}${n})${r.modifier}`}if(l)n||(u+=`${d}?`),u+=r.endsWith?`(?=${c})`:"$";else{let t=e[e.length-1],r="string"==typeof t?d.indexOf(t[t.length-1])>-1:void 0===t;n||(u+=`(?:${d}(?=${c}))?`),r||(u+=`(?=${d}|${c})`)}return new RegExp(u,a(r))}(function(e,t={}){let r=function(e){let t=[],r=0;for(;r<e.length;){let n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){let n="",o=r+1;for(;o<e.length;){let t=e.charCodeAt(o);if(t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t){n+=e[o++];continue}break}if(!n)throw TypeError(`Missing parameter name at ${r}`);t.push({type:"NAME",index:r,value:n}),r=o;continue}if("("===n){let n=1,o="",a=r+1;if("?"===e[a])throw TypeError(`Pattern cannot start with "?" at ${a}`);for(;a<e.length;){if("\\"===e[a]){o+=e[a++]+e[a++];continue}if(")"===e[a]){if(0==--n){a++;break}}else if("("===e[a]&&(n++,"?"!==e[a+1]))throw TypeError(`Capturing groups are not allowed at ${a}`);o+=e[a++]}if(n)throw TypeError(`Unbalanced pattern at ${r}`);if(!o)throw TypeError(`Missing pattern at ${r}`);t.push({type:"PATTERN",index:r,value:o}),r=a;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),{prefixes:n="./"}=t,a=`[^${o(t.delimiter||"/#?")}]+?`,i=[],l=0,s=0,c="",d=e=>{if(s<r.length&&r[s].type===e)return r[s++].value},u=e=>{let t=d(e);if(void 0!==t)return t;let{type:n,index:o}=r[s];throw TypeError(`Unexpected ${n} at ${o}, expected ${e}`)},p=()=>{let e,t="";for(;e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};for(;s<r.length;){let e=d("CHAR"),t=d("NAME"),r=d("PATTERN");if(t||r){let o=e||"";-1===n.indexOf(o)&&(c+=o,o=""),c&&(i.push(c),c=""),i.push({name:t||l++,prefix:o,suffix:"",pattern:r||a,modifier:d("MODIFIER")||""});continue}let o=e||d("ESCAPED_CHAR");if(o){c+=o;continue}if(c&&(i.push(c),c=""),d("OPEN")){let e=p(),t=d("NAME")||"",r=d("PATTERN")||"",n=p();u("CLOSE"),i.push({name:t||(r?l++:""),pattern:t&&!r?a:r,prefix:e,suffix:n,modifier:d("MODIFIER")||""});continue}u("END")}return i}(t,n),r,n)}(e,r,t),r,t)}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}r.d(t,{YW:()=>n})},9406:function(e,t,r){r.d(t,{S:()=>i});var n=r(4518),o=r(6668);r(5074);var a=r(6580);let i=e=>{let{parsedInternalTheme:t}=(0,a.K)();return(0,n.Y)(o.a,{theme:t,children:e.children})}},5287:function(e,t,r){r.d(t,{StyleCacheProvider:()=>s});var n=r(4518),o=r(1785),a=r(6668),i=r(5074);let l=document.querySelector("style#cl-style-insertion-point"),s=e=>{let t=(0,i.useMemo)(()=>{let t=(0,o.A)({key:"cl-internal",prepend:!e.cssLayerName&&!l,insertionPoint:l||void 0,nonce:e.nonce});if(e.cssLayerName){let r=t.insert.bind(t);t.insert=(t,n,o,a)=>{if(n&&"string"==typeof n.styles&&!n.styles.startsWith("@layer")){let i={...n};return i.styles=`@layer ${e.cssLayerName} {${n.styles}}`,r(t,i,o,a)}return r(t,n,o,a)}}return t},[e.nonce,e.cssLayerName]);return(0,n.Y)(a.C,{value:t,children:e.children})}},4374:function(e,t,r){r.d(t,{W:()=>f});var n=r(8802);let o=(0,n.i7)`
14
+ `}),(0,n.Y)(s.so,{align:"center",justify:"center",sx:()=>({animation:"caret-blink-animation 1s infinite",pointerEvents:"none",position:"absolute",inset:0}),children:(0,n.Y)(s.az,{sx:e=>({height:e.space.$4,width:e.space.$px,backgroundColor:e.colors.$colorInputForeground})})})]})}},374:function(e,t,r){r.d(t,{J2:()=>c,bQ:()=>l});var n=r(4518);r(5074);var o=r(8272),a=r(8920),i=r(8819);let l=e=>{let{headers:t,page:r,onPageChange:l,rows:c,isLoading:d,itemCount:u,itemsPerPage:p,pageCount:m,emptyStateLocalizationKey:h}=e,f=u>0?Math.max(0,(r-1)*p)+1:0,g=Math.min(r*p,u);return(0,n.FD)(o.fv,{gap:4,sx:{width:"100%"},children:[(0,n.Y)(o.so,{sx:e=>({overflowX:"auto",padding:e.space.$1}),children:(0,n.FD)(o.XI,{sx:{tableLayout:"fixed"},children:[(0,n.Y)(o.d8,{children:(0,n.Y)(o.Tr,{children:t.map((e,t)=>(0,n.Y)(o.Th,{elementDescriptor:a.$z.tableHead,localizationKey:e,sx:{width:0===t?"auto":"25%"}},t))})}),(0,n.Y)(o.NN,{children:d?(0,n.Y)(o.Tr,{children:(0,n.Y)(o.Td,{colSpan:4,children:(0,n.Y)(o.y$,{colorScheme:"primary",sx:{margin:"auto",display:"block"},elementDescriptor:a.$z.spinner})})}):c.length?c:(0,n.Y)(s,{localizationKey:h},"empty")})]})}),m>1&&(0,n.Y)(i.d,{count:m,page:r,onChange:l,siblingCount:1,rowInfo:{allRowsCount:u,startingRow:f,endingRow:g}})]})},s=e=>(0,n.Y)(o.Tr,{children:(0,n.Y)(o.Td,{colSpan:4,children:(0,n.Y)(o.EY,{localizationKey:e.localizationKey,sx:{margin:"auto",display:"block",width:"fit-content"}})})}),c=e=>(0,n.Y)(o.Tr,{...e,sx:e=>({":hover":{backgroundColor:e.colors.$neutralAlpha50}})})},846:function(e,t,r){r.d(t,{$:()=>i,t:()=>l});var n=r(4518),o=r(8272),a=r(180);let i=e=>{let{gradient:t=60}=e,{showDevModeNotice:r}=(0,a.Q)();return r?(0,n.Y)(o.az,{sx:e=>({userSelect:"none",pointerEvents:"none",inset:0,position:"absolute",background:`repeating-linear-gradient(-45deg,${e.colors.$warningAlpha100},${e.colors.$warningAlpha100} 6px,${e.colors.$warningAlpha150} 6px,${e.colors.$warningAlpha150} 12px)`,maskImage:`linear-gradient(transparent ${t}%, black)`})}):null},l=e=>{let{sx:t}=e,{showDevModeNotice:r}=(0,a.Q)();return r?(0,n.Y)(o.EY,{sx:[e=>({color:e.colors.$warning500,fontWeight:e.fontWeights.$semibold,padding:e.space.$1x5}),t],children:"Development mode"}):null}},6505:function(e,t,r){r.d(t,{G:()=>s,c:()=>l});var n=r(4518),o=r(8272),a=r(8920),i=r(2861);let l=e=>{let{dividerText:t,...r}=e;return(0,n.FD)(o.so,{center:!0,elementDescriptor:a.$z.dividerRow,...r,children:[(0,n.Y)(c,{}),(0,n.Y)(o.EY,{localizationKey:t||(0,i.G)("dividerText"),elementDescriptor:a.$z.dividerText,variant:"body",colorScheme:"secondary",sx:e=>({margin:`0 ${e.space.$4}`})}),(0,n.Y)(c,{})]})},s=e=>{let{sx:t,...r}=e;return(0,n.Y)(o.so,{center:!0,direction:"col",elementDescriptor:a.$z.dividerColumn,sx:[e=>({height:e.space.$6}),t],...r,children:(0,n.Y)(c,{vertical:!0})})},c=e=>{let t=e?.vertical?{width:"1px"}:{height:"1px"};return(0,n.Y)(o.so,{elementDescriptor:a.$z.dividerLine,sx:e=>({flex:"1",backgroundColor:e.colors.$borderAlpha100,...t})})}},8532:function(e,t,r){r.d(t,{g:()=>v,Drawer:()=>P});var n=r(4518),o=r(1210),a=r(2119),i=r(5074),l=r(8272),s=r(8920),c=r(6580),d=r(4091),u=r(8792),p=r(359),m=r(5057),h=r(1464),f=r(4620),g=r(155);let b=i.createContext(null),v=()=>{let e=i.useContext(b);if(!e)throw Error("Drawer components must be wrapped in <Drawer.Root>");return e},y=i.forwardRef(function(e,t){let{strategy:r}=v(),{disableScrollLock:a,enableScrollLock:i}=(0,u.K)();return(0,o.UQ)(()=>{if("fixed"===r)return i(),()=>{a()}},[r,a,i]),(0,n.Y)(l.az,{ref:t,...e,elementDescriptor:s.$z.drawerBackdrop,sx:[e=>({inset:0,backgroundColor:f.T.setAlpha(e.colors.$colorBackground,.28)}),e.sx]})}),w=i.forwardRef((e,t)=>{let{strategy:r,context:o}=v(),{isMounted:i,styles:l}=(0,a.DL)(o,{initial:{opacity:0},open:{opacity:1},close:{opacity:0},common:{position:r,inset:0,transitionProperty:"opacity",transitionTimingFunction:d._8.bezier},duration:d.wz.drawer});return i?(0,n.Y)(y,{ref:t,style:{...l}}):null});w.displayName="Drawer.Overlay";let $=i.forwardRef(({children:e},t)=>{let r=(0,p.j)(),{animations:o}=(0,c.K)().parsedOptions,{strategy:i,refs:u,context:m,getFloatingProps:h,direction:f}=v(),g=(0,a.SV)([t,u.setFloating]),{isMounted:b,styles:y}=(0,a.DL)(m,{initial:{transform:"translate3d(var(--transform-offset), 0, 0)"},open:{transform:"translate3d(0, 0, 0)"},close:{transform:"translate3d(var(--transform-offset), 0, 0)"},common:{transitionProperty:"transform",transitionTimingFunction:d._8.bezier},duration:r||!0!==o?0:d.wz.drawer});return b?(0,n.Y)(a.s3,{context:m,modal:!0,outsideElementsInert:!0,initialFocus:u.floating,children:(0,n.Y)(l.az,{ref:g,...h(),sx:e=>({position:i,insetBlock:0,insetInline:0,pointerEvents:"none",isolation:"isolate",zIndex:"absolute"===i?e.zIndices.$modal:void 0}),elementDescriptor:s.$z.drawerRoot,children:(0,n.Y)(l.so,{elementDescriptor:s.$z.drawerContent,style:y,direction:"col",sx:e=>({"--transform-offset":"fixed"===i?`calc((100% + ${e.space.$3} + ${e.space.$8x75}) * ${"rtl"===f?-1:1})`:`calc((100% + ${e.space.$8x75}) * ${"rtl"===f?-1:1})`,willChange:"transform",position:i,insetBlock:"fixed"===i?e.space.$3:0,insetInlineEnd:"fixed"===i?e.space.$3:0,outline:0,width:e.sizes.$100,maxWidth:"fixed"===i?`calc(100% - ${e.space.$6})`:"100%",backgroundColor:e.colors.$colorBackground,borderStartStartRadius:e.radii.$lg,borderEndStartRadius:e.radii.$lg,borderEndEndRadius:"fixed"===i?e.radii.$lg:0,borderStartEndRadius:"fixed"===i?e.radii.$lg:0,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,overflow:"hidden",pointerEvents:"auto"}),children:e})})}):null});$.displayName="Drawer.Content";let x=i.forwardRef(({title:e,children:t,sx:r},o)=>(0,n.Y)(l.az,{ref:o,elementDescriptor:s.$z.drawerHeader,as:"header",sx:[t=>({display:"flex",background:h.s.mergedColorsBackground(f.T.setAlpha(t.colors.$colorBackground,1),t.colors.$neutralAlpha50),borderBlockEndWidth:t.borderWidths.$normal,borderBlockEndStyle:t.borderStyles.$solid,borderBlockEndColor:t.colors.$borderAlpha150,borderStartStartRadius:t.radii.$lg,borderStartEndRadius:t.radii.$lg,paddingBlock:e?t.space.$3:void 0,paddingInline:e?t.space.$4:void 0}),r],children:e?(0,n.FD)(n.FK,{children:[(0,n.Y)(l.DZ,{localizationKey:e,as:"h2",elementDescriptor:s.$z.drawerTitle,textVariant:"h2",sx:{alignSelf:"center"}}),(0,n.Y)(k,{})]}):t})),_=i.forwardRef(({children:e,...t},r)=>(0,n.Y)(l.az,{ref:r,elementDescriptor:s.$z.drawerBody,sx:[()=>({display:"flex",flexDirection:"column",flex:1,overflowY:"auto",overflowX:"hidden"}),t.sx],...t,children:e})),S=i.forwardRef(({children:e,sx:t,...r},o)=>(0,n.Y)(l.az,{ref:o,elementDescriptor:s.$z.drawerFooter,sx:[e=>({display:"flex",flexDirection:"column",background:h.s.mergedColorsBackground(f.T.setAlpha(e.colors.$colorBackground,1),e.colors.$neutralAlpha50),borderBlockStartWidth:e.borderWidths.$normal,borderBlockStartStyle:e.borderStyles.$solid,borderBlockStartColor:e.colors.$borderAlpha100,borderEndStartRadius:e.radii.$xl,borderEndEndRadius:e.radii.$xl,paddingBlock:e.space.$3,paddingInline:e.space.$4}),t],...r,children:e})),k=i.forwardRef((e,t)=>{let{setIsOpen:r}=v();return(0,n.Y)(g.K,{ref:t,elementDescriptor:s.$z.drawerClose,variant:"ghost","aria-label":"Close drawer",onClick:()=>r(!1),icon:(0,n.Y)(l.In,{icon:m.A,size:"sm"}),sx:e=>({color:e.colors.$colorMutedForeground,padding:e.space.$3,marginInlineStart:"auto"})})});k.displayName="Drawer.Close";let C=i.forwardRef(({open:e,onOpenChange:t,children:r,actionsSlot:o,roleProps:i},u)=>{let m=(0,p.j)(),{animations:g}=(0,c.K)().parsedOptions,{refs:b,context:v}=(0,a.we)({open:e,onOpenChange:t,transform:!1,strategy:"absolute"}),{getFloatingProps:y}=(0,a.bv)([(0,a.kp)(v),(0,a.s9)(v),(0,a.It)(v,{role:"alertdialog",...i})]),w=(0,a.SV)([u,b.setFloating]),{styles:$}=(0,a.DL)(v,{initial:{opacity:0},open:{opacity:1},close:{opacity:0},common:{transitionProperty:"opacity",transitionTimingFunction:d._8.bezier},duration:d.wz.drawer}),{isMounted:x,styles:_}=(0,a.DL)(v,{initial:{transform:"translate3D(0, 100%, 0)"},open:{transform:"translate3D(0, 0, 0)"},close:{transform:"translate3D(0, 100%, 0)"},common:{transitionProperty:"transform",transitionTimingFunction:d._8.bezier},duration:m||!0!==g?0:d.wz.drawer});return x?(0,n.FD)(n.FK,{children:[(0,n.Y)(l.L9,{elementDescriptor:s.$z.drawerConfirmationBackdrop,style:$,sx:e=>({position:"absolute",inset:0,backgroundImage:`linear-gradient(to bottom, ${f.T.setAlpha(e.colors.$colorBackground,.28)}, ${e.colors.$colorBackground})`})}),(0,n.Y)(a.s3,{context:v,modal:!0,outsideElementsInert:!0,initialFocus:b.floating,children:(0,n.FD)(l.az,{ref:w,elementDescriptor:s.$z.drawerConfirmationRoot,style:_,...y(),sx:e=>({display:"flex",flexDirection:"column",rowGap:e.space.$6,outline:"none",willChange:"transform",position:"absolute",bottom:0,left:0,right:0,background:h.s.mergedColorsBackground(f.T.setAlpha(e.colors.$colorBackground,1),e.colors.$neutralAlpha50),padding:e.space.$4,borderStartStartRadius:e.radii.$md,borderStartEndRadius:e.radii.$md,boxShadow:`0 0 0 1px ${e.colors.$borderAlpha100}`}),children:[r,(0,n.Y)(l.so,{elementDescriptor:s.$z.drawerConfirmationActions,gap:3,justify:"end",children:o})]})})]}):null});C.displayName="Drawer.Confirmation";let P={Root:function({children:e,open:t,onOpenChange:r,strategy:o="fixed",floatingProps:i,portalProps:l,dismissProps:s}){var c;let d,u="undefined"==typeof window?"ltr":"rtl"===(d=(c=document.documentElement).dir)?"rtl":"ltr"===d?"ltr":"auto"!==d&&d||"rtl"!==window.getComputedStyle(c).direction?"ltr":"rtl",{refs:p,context:m}=(0,a.we)({open:t,onOpenChange:r,transform:!1,strategy:o,placement:"ltr"===u?"right":"left",...i}),{getFloatingProps:h}=(0,a.bv)([(0,a.kp)(m),(0,a.s9)(m,s),(0,a.It)(m)]);return(0,n.Y)(b.Provider,{value:{isOpen:t,setIsOpen:r,strategy:o,portalProps:l||{},refs:p,context:m,getFloatingProps:h,direction:u},children:(0,n.Y)(a.XF,{...l,children:e})})},Overlay:w,Content:$,Header:x,Body:_,Footer:S,Confirmation:C,Close:k}},5170:function(e,t,r){r.d(t,{J:()=>m});var n=r(4518);r(5074);var o=r(4607),a=r(8272),i=r(8920),l=r(2861),s=r(9426),c=r(4964),d=r(6088),u=r(3269),p=r(6153);let m=e=>{let{shouldNavigateBack:t=!0}=e,r=(0,u.f0)(),{navigate:m}=(0,c.r)(),h=(0,s.p)();return(0,n.Y)(o.n.Part,{part:"havingTrouble",children:(0,n.FD)(d.Z.Root,{children:[(0,n.FD)(d.Z.Content,{children:[(0,n.FD)(p.Y.Root,{showLogo:!0,children:[(0,n.Y)(p.Y.Title,{localizationKey:e.cardTitle||"Error"}),e.cardSubtitle&&(0,n.Y)(p.Y.Subtitle,{localizationKey:e.cardSubtitle})]}),(0,n.Y)(d.Z.Alert,{children:r.error}),(0,n.FD)(a.so,{direction:"col",elementDescriptor:i.$z.main,gap:4,children:[e.message&&(0,n.Y)(a.EY,{colorScheme:"secondary",localizationKey:e.message}),(0,n.Y)(a.$n,{localizationKey:(0,l.G)("signIn.alternativeMethods.getHelp.blockButton__emailSupport"),onClick:()=>{window.location.href=`mailto:${h}`},hasArrow:!0}),t?(0,n.Y)(d.Z.Action,{elementId:"alternativeMethods",children:(0,n.Y)(d.Z.ActionLink,{localizationKey:(0,l.G)("backButton"),onClick:r=>{if(e.onBackLinkClick)return e.onBackLinkClick(r);t&&m("../")}})}):null]})]}),(0,n.Y)(d.Z.Footer,{})]})})}},5507:function(e,t,r){r.d(t,{D:()=>V});var n,o,a=r(4518),i=r(5074),l=r(8272),s=r(8920),c=r(2861),d=r(78),u=r(593),p=r(3356),m=r(3269),h=r(1044),f=r(6580),g=r(359),b=r(4374),v=r(1464);let y=({feedback:e})=>{let[t,r]=(0,i.useState)(0);return{height:t,calculateHeight:(0,i.useCallback)(e=>{e&&r(e.scrollHeight+2*e.offsetTop)},[e])}},w=e=>{let{id:t,elementDescriptors:r,sx:n,feedback:o,feedbackType:c="info",center:d=!1}=e,u=(0,i.useRef)({a:void 0,b:void 0}),{getFormTextAnimation:p}=function(){let e=(0,g.j)(),{animations:t}=(0,f.K)().parsedOptions;return{getFormTextAnimation:(0,i.useCallback)((r,n)=>{if(e||!t)return{animation:"none"};let o=n?.inDelay?b.W.inDelayAnimation:b.W.inAnimation;return e=>({animation:`${r?o:b.W.outAnimation} ${e.transitionDuration.$textField} ${e.transitionTiming.$common}`,transitionProperty:"height",transitionDuration:e.transitionDuration.$slow,transitionTimingFunction:e.transitionTiming.$common})},[e,t])}}(),m={error:s.$z.formFieldErrorText,warning:s.$z.formFieldWarningText,info:s.$z.formFieldInfoText,success:s.$z.formFieldSuccessText},w=(0,i.useMemo)(()=>{let e,t=u.current;return u.current=e=t.a?.shouldEnter?{a:{...t.a,shouldEnter:!1},b:{feedback:o,feedbackType:c,shouldEnter:!0}}:{a:{feedback:o,feedbackType:c,shouldEnter:!0},b:{...t.b,shouldEnter:!1}},e},[o,c]),{calculateHeight:$,height:x}=y({feedback:w.a?.feedback||""}),{calculateHeight:_,height:S}=y({feedback:w.b?.feedback||""}),k=(0,i.useRef)(Math.max(x,S)),C=(0,i.useMemo)(()=>{let e=Math.max(x,S,k.current);return k.current=e,e},[x,S]),P=e=>{if(!e)return{};let n=r?.[e]||m[e];return{elementDescriptor:n,elementId:t?n?.setId?.(t):void 0,id:"error"===e?`error-${t}`:`${t}-${e}-feedback`}},A={error:l.wF,info:l.cN,success:l.TP,warning:l.sE},z=A[w.a?.feedbackType||"info"],I=A[w.b?.feedbackType||"info"];return(0,a.FD)(a.FK,{children:[(0,a.Y)(l.L9,{"aria-live":"polite","aria-atomic":"true",sx:{...v.s.visuallyHidden()},children:o?(0,h.Ns)(o):""}),(0,a.FD)(l.so,{style:{height:o?C:0,position:"relative"},center:d,sx:[p(!!o),n],children:[(0,a.Y)(z,{...P(w.a?.feedbackType),...w.a?.feedbackType&&{"data-testid":`form-feedback-${w.a.feedbackType}`},ref:$,sx:[()=>({visibility:w.a?.shouldEnter?"visible":"hidden"}),p(!!w.a?.shouldEnter,{inDelay:!0})],localizationKey:(0,h.Ns)(w.a?.feedback)}),(0,a.Y)(I,{...P(w.b?.feedbackType),...w.b?.feedbackType&&{"data-testid":`form-feedback-${w.b.feedbackType}`},ref:_,sx:[()=>({visibility:w.b?.shouldEnter?"visible":"hidden"}),p(!!w.b?.shouldEnter,{inDelay:!0})],localizationKey:(0,h.Ns)(w.b?.feedback)})]})]})},$=(0,i.forwardRef)((e,t)=>{let{sx:r,groupPrefix:n,groupSuffix:o,...i}=e,c=n?{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"}:{borderTopRightRadius:"0",borderBottomRightRadius:"0"},d=e=>({paddingInline:e.space.$2,borderTopRightRadius:"0",borderBottomRightRadius:"0",width:"fit-content",display:"flex",alignItems:"center"});return(0,a.FD)(l.so,{elementDescriptor:s.$z.formInputGroup,direction:"row",hasError:i.hasError,sx:e=>({position:"relative",zIndex:1,...v.s.borderVariants(e).normal,':focus-within,&[data-focus-within="true"]':{...v.s.borderVariants(e,{focusRing:!0}).normal["&:focus"]}}),children:[n&&(0,a.Y)(l.EY,{colorScheme:"secondary",sx:d,children:n}),(0,a.Y)(l.pd,{maxLength:25,sx:[{...c},r],variant:"unstyled",ref:t,...i}),o&&(0,a.Y)(l.EY,{colorScheme:"secondary",sx:d,children:o})]})});var x=r(2166),_=r(7697),S=r(620),k=r(6294);function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let P=function(e){return i.createElement("svg",C({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),n||(n=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.732 3.126a.48.48 0 0 0-.662.011.465.465 0 0 0-.012.651l9.211 9.063a.477.477 0 0 0 .527.115.479.479 0 0 0 .263-.26.46.46 0 0 0-.117-.518l-1.108-1.09A6.278 6.278 0 0 0 13.93 8.36a1.016 1.016 0 0 0 0-.74 6.27 6.27 0 0 0-2.333-2.909A6.428 6.428 0 0 0 8 3.613a6.407 6.407 0 0 0-3.014.747L3.732 3.126Zm2.84 2.794.694.682a1.61 1.61 0 0 1 1.858.28A1.54 1.54 0 0 1 9.41 8.71l.693.683a2.47 2.47 0 0 0-.304-3.174 2.573 2.573 0 0 0-3.226-.3Z"})),o||(o=i.createElement("path",{d:"m8.476 10.445 1.602 1.576a6.437 6.437 0 0 1-2.077.342c-2.705 0-5.014-1.662-5.931-4.006a1.016 1.016 0 0 1 0-.741c.31-.79.78-1.51 1.382-2.115l2.052 2.02c-.078.4-.054.813.067 1.203.122.39.34.744.632 1.033a2.58 2.58 0 0 0 2.272.688Z"})))},A=(...e)=>t=>{for(let r of e)r&&(r.current=t)};var z=r(155);let I=(0,i.forwardRef)((e,t)=>{let[r,n]=i.useState(!0),{id:o,onChange:u,validatePassword:p=!1,setInfo:m,setSuccess:h,setWarning:f,setError:g,setHasPassedComplexity:b,tabIndex:v,...y}=e,w=(0,i.useRef)(null),[$,C]=(0,i.useState)(null),{userSettings:{passwordSettings:I}}=(0,_.O)(),{t:D}=(0,d._)(),{validatePassword:R}=(0,S.T)({...I,validatePassword:p},{onValidationSuccess:()=>h(D((0,c.G)("unstable__errors.zxcvbn.goodPassword"))),onValidationError:e=>g(e),onValidationWarning:e=>f(e),onValidationInfo:e=>{w.current&&(w.current===document.activeElement?m(e):g(e))},onValidationComplexity:e=>b(e)});return(0,a.FD)(l.so,{elementDescriptor:s.$z.formFieldInputGroup,direction:"col",justify:"center",sx:{position:"relative"},children:[(0,a.Y)(l.pd,{...y,tabIndex:v,onChange:e=>($&&clearTimeout($),C(setTimeout(()=>{R(e.target.value)},x.s)),u?.(e)),onBlur:e=>{y.onBlur?.(e),R(e.target.value)},onFocus:e=>{y.onFocus?.(e),R(e.target.value)},ref:A(t,w),type:r?"password":"text",sx:e=>({paddingRight:e.space.$10})}),(0,a.Y)(z.K,{elementDescriptor:s.$z.formFieldInputShowPasswordButton,iconElementDescriptor:s.$z.formFieldInputShowPasswordIcon,"aria-label":`${r?"Show":"Hide"} password`,variant:"ghost",size:"xs",tabIndex:v,onClick:()=>n(e=>!e),sx:e=>({position:"absolute",right:0,marginRight:e.space.$1,color:e.colors.$neutralAlpha400}),icon:r?k.A:P})]})});var D=r(1210),R=r(8023),Y=r(2405),E=r(1586),T=r(1820),F=r(7651);let L=[...T.nU.values()].map(e=>({searchTerm:`${e.iso} ${e.name} ${e.code}`,value:`${e.iso} ${e.name} ${e.code}`,country:e})),M=(0,i.forwardRef)((e,t)=>{let{onChange:r,value:n,locationBasedCountryIso:o,feedbackType:c,sx:d,...u}=e,p=(0,i.useRef)(null),m=(0,i.useRef)(null),{setNumber:h,setIso:f,setNumberAndIso:g,numberWithCode:b,iso:y,formattedNumber:w}=(e=>{let[t,r]=i.useState(()=>{let{number:t}=(0,F.Xd)(e.initPhoneWithCode||"");return t}),[n,o]=i.useState((0,F.Xd)(e.initPhoneWithCode||"").number?(0,F.Xd)(e.initPhoneWithCode||"").iso:e.locationBasedCountryIso||"us");i.useEffect(()=>{r((0,F.sH)(t))},[n,t]);let a=i.useMemo(()=>{if(!t)return"";let e=T.nU.get(n)?.code||"1";return"+"+(0,F.sH)(`${e}${t}`)},[n,t]),l=i.useMemo(()=>((e,t)=>{if(!e)return"";let r=T.nU.get(t);return(0,F.n4)(e,r?.pattern,r?.code)})(t,n),[n,t]),s=i.useCallback(e=>{let{iso:t,number:n}=(0,F.Xd)(e);r(n),o(t)},[n,t]);return{setNumber:r,setIso:o,setNumberAndIso:s,iso:n,number:t,numberWithCode:a,formattedNumber:l}})({initPhoneWithCode:n,locationBasedCountryIso:o}),$=(0,i.useMemo)(()=>L.find(e=>e.country.iso===y)||L[0],[y]);return(0,i.useEffect)(()=>{r?.({target:{value:b}})},[b]),(0,a.FD)(l.so,{elementDescriptor:s.$z.phoneInputBox,direction:"row",hasError:u.hasError,"data-feedback":c,ref:m,sx:e=>({...v.s.borderVariants(e,{hasError:u.hasError}).normal,position:"relative",borderRadius:e.radii.$md,zIndex:1,'&:focus-within,&[data-focus-within="true"]':{...v.s.borderVariants(e,{hasError:u.hasError}).normal["&:focus"]}}),children:[(0,a.FD)(E.l6,{elementId:"countryCode",value:$.value,options:L,portal:!0,referenceElement:m,renderOption:(e,t,r)=>(0,a.Y)(B,{sx:e=>({"&:hover":{backgroundColor:e.colors.$neutralAlpha100},'&[data-focused="true"]':{backgroundColor:e.colors.$neutralAlpha150}}),isSelected:r,country:e.country}),onChange:e=>{f(e.country.iso),p.current?.focus()},noResultsMessage:"No countries found",searchPlaceholder:"Search country or code",comparator:(e,t)=>t.searchTerm.toLowerCase().includes(e.toLowerCase()),children:[(0,a.Y)(E.JC,{variant:"ghost",sx:e=>({borderWidth:"0",borderRadius:e.radii.$md,borderBottomRightRadius:"0",borderTopRightRadius:"0",paddingRight:e.space.$2,":focus":{zIndex:2,boxShadow:"none"},":active":{zIndex:2}}),hoverAsFocus:!0,isDisabled:u.isDisabled,icon:R.A,iconSx:e=>({color:u.isDisabled?e.colors.$neutralAlpha300:e.colors.$neutralAlpha500}),children:(0,a.Y)(l.EY,{colorScheme:"body",as:"span",sx:{textTransform:"uppercase"},children:y})}),(0,a.Y)(E.UL,{sx:{padding:"0 0"},containerSx:e=>({gap:0,padding:`${e.space.$0x5} 0`})})]}),(0,a.FD)(l.so,{sx:{position:"relative",width:"100%"},children:[(0,a.FD)(l.EY,{sx:t=>({display:"flex",alignItems:"center",pointerEvents:"none",paddingLeft:t.space.$0x5,opacity:e.isDisabled?t.opacity.$disabled:1}),children:["+",$.country.code]}),(0,a.Y)(l.pd,{value:w,variant:"unstyled",onPaste:e=>{e.preventDefault();let t=e.clipboardData.getData("text");t.includes("+")?g(t):h(t)},onChange:e=>{let t=e.target.value;t.includes("+")?g(t):h(t)},maxLength:25,type:"tel",sx:[e=>({boxShadow:"none",height:"100%",transitionProperty:e.transitionProperty.$common,transitionTimingFunction:e.transitionTiming.$common,transitionDuration:e.transitionDuration.$focusRing,"&[type=tel]":{borderRadius:e.radii.$md,borderWidth:0,borderTopLeftRadius:0,borderBottomLeftRadius:0,paddingLeft:e.space.$1,"&:focus":{borderColor:"unset",boxShadow:"unset"}}}),d],ref:A(p,t),...u})]})]})}),B=(0,i.memo)(e=>{let{country:t,isSelected:r,sx:n,...o}=e;return(0,a.FD)(l.so,{center:!0,sx:[e=>({width:"100%",gap:e.space.$2,padding:`${e.space.$1x5} ${e.space.$4}`,color:e.colors.$colorForeground}),n],...o,children:[(0,a.Y)(l.In,{icon:Y.A,size:"sm",sx:{visibility:r?"visible":"hidden"}}),(0,a.Y)(l.EY,{as:"div",sx:{width:"100%",textAlign:"left"},children:t.name}),(0,a.FD)(l.EY,{colorScheme:"secondary",children:["+",t.code]})]})}),O=(0,i.forwardRef)((e,t)=>{let{__internal_country:r}=(0,D.ho)();return(0,a.Y)(M,{...e,locationBasedCountryIso:r,ref:t})}),j=(0,i.forwardRef)((e,t)=>{let r=(0,u.Wd)(),{value:n,placeholder:o,...i}=(0,u.Uj)(r);return(0,a.Y)(l.AT,{ref:t,...i,elementDescriptor:s.$z.formFieldRadioInput,id:e.id,focusRing:!1,sx:e=>({width:"fit-content",marginTop:e.space.$0x5}),value:e.value,checked:e.value===n})}),U=e=>(0,a.FD)(l.lR,{elementDescriptor:s.$z.formFieldRadioLabel,htmlFor:e.id,sx:e=>({padding:`${e.space.$none} ${e.space.$2}`,display:"flex",flexDirection:"column"}),children:[(0,a.Y)(l.EY,{elementDescriptor:s.$z.formFieldRadioLabelTitle,variant:"subtitle",localizationKey:e.label}),e.description&&(0,a.Y)(l.EY,{elementDescriptor:s.$z.formFieldRadioLabelDescription,colorScheme:"secondary",localizationKey:e.description})]}),W=(0,i.forwardRef)((e,t)=>{let r=(0,i.useId)();return(0,a.FD)(l.so,{elementDescriptor:s.$z.formFieldRadioGroupItem,align:"start",children:[(0,a.Y)(j,{id:r,ref:t,value:e.value}),(0,a.Y)(U,{id:r,label:e.label,description:e.description})]})}),H=(0,i.forwardRef)((e,t)=>{let{t:r}=(0,d._)(),n=(0,u.Wd)(),{placeholder:o,...i}=(0,u.Uj)(n);return(0,a.Y)(O,{ref:t,elementDescriptor:s.$z.formFieldInput,elementId:s.$z.formFieldInput.setId(n.fieldId),...i,feedbackType:n.feedbackType,placeholder:r(o)})}),N=(0,i.forwardRef)((e,t)=>{let{t:r}=(0,d._)(),n=(0,u.Wd)(),{placeholder:o,...i}=(0,u.Uj)(n,["validatePassword","setError","setWarning","setSuccess","setInfo","setHasPassedComplexity"]);return(0,a.Y)(I,{ref:t,elementDescriptor:s.$z.formFieldInput,elementId:s.$z.formFieldInput.setId(n.fieldId),...i,placeholder:r(o)})}),K=(0,i.forwardRef)(({elementDescriptor:e,elementId:t},r)=>{let n=(0,u.Wd)(),{placeholder:o,...i}=(0,u.Uj)(n);return(0,a.Y)(l.Oc,{ref:r,...i,elementDescriptor:e||s.$z.formFieldInput,elementId:t||s.$z.formFieldInput.setId(n.fieldId),focusRing:!1,sx:e=>({width:"fit-content",flexShrink:0,marginTop:e.space.$0x5})})}),V={Root:e=>{let t=(0,m.f0)(),{children:r,isDisabled:n,...o}=e,i=n||t.isLoading,l={...o,isDisabled:i};return(0,a.Y)(u.BQ,{...l,children:r})},Label:e=>{let{isRequired:t,id:r,label:n,isDisabled:o,hasError:i}=(0,u.Wd)();return e.localizationKey||n||e.children?(0,a.Y)(l.lR,{localizationKey:e.localizationKey||n,elementDescriptor:s.$z.formFieldLabel,elementId:s.$z.formFieldLabel.setId(r),hasError:!!i,isDisabled:o,isRequired:t,sx:{display:"flex",alignItems:"center"},children:e.children}):null},LabelRow:e=>{let{fieldId:t}=(0,u.Wd)();return(0,a.Y)(l.so,{justify:"between",align:"center",elementDescriptor:s.$z.formFieldLabelRow,elementId:s.$z.formFieldLabelRow.setId(t),children:e.children})},Input:(0,i.forwardRef)((e,t)=>{let{t:r}=(0,d._)(),n=(0,u.Wd)(),{placeholder:o,...i}=(0,u.Uj)(n);return(0,a.Y)(l.pd,{ref:t,elementDescriptor:s.$z.formFieldInput,elementId:s.$z.formFieldInput.setId(n.fieldId),...i,placeholder:r(o)})}),PasswordInput:N,PhoneInput:H,InputGroup:(0,i.forwardRef)((e,t)=>{let{t:r}=(0,d._)(),n=(0,u.Wd)(),{placeholder:o,...i}=(0,u.Uj)(n);return(0,a.Y)($,{ref:t,elementDescriptor:s.$z.formFieldInput,elementId:s.$z.formFieldInput.setId(n.fieldId),...i,groupPrefix:e.groupPrefix,groupSuffix:e.groupSuffix,placeholder:r(o)})}),RadioItem:W,CheckboxIndicator:K,CheckboxLabel:e=>{let{label:t,id:r}=(0,u.Wd)();return t?(0,a.Y)(U,{label:t,id:r,description:e.description}):null},Action:e=>{let{fieldId:t,isDisabled:r}=(0,u.Wd)();return e.localizationKey||e.children?(0,a.Y)(l.N_,{localizationKey:e.localizationKey,elementDescriptor:s.$z.formFieldAction,elementId:s.$z.formFieldLabel.setId(t),isDisabled:r,colorScheme:"primary",variant:"buttonSmall",onClick:t=>{t.preventDefault(),e.onClick?.(t)},children:e.children}):null},AsOptional:()=>{let{fieldId:e,isDisabled:t}=(0,u.Wd)();return(0,a.Y)(l.EY,{localizationKey:(0,c.G)("formFieldHintText__optional"),elementDescriptor:s.$z.formFieldHintText,elementId:s.$z.formFieldHintText.setId(e),as:"span",variant:"caption",colorScheme:"secondary",isDisabled:t})},LabelIcon:e=>{let{t}=(0,d._)();return e.icon?(0,a.Y)(l.so,{as:"span",title:t((0,c.G)("formFieldHintText__slug")),sx:{marginRight:"auto"},children:(0,a.Y)(l.In,{icon:e.icon,sx:e=>({marginLeft:e.space.$0x5,color:e.colors.$neutralAlpha400,width:e.sizes.$4,height:e.sizes.$4})})}):null},Feedback:e=>{let{fieldId:t,debouncedFeedback:r}=(0,u.Wd)();return(0,a.Y)(w,{center:e.center,...r,elementDescriptors:e.elementDescriptors,id:t})},OTPRoot:p.oA,OTPCodeControl:p.iG,OTPResendButton:p.Ro}},2454:function(e,t,r){r.d(t,{l:()=>b});var n=r(4518),o=r(1210),a=r(5074),i=r(8272),l=r(8920),s=r(2861),c=r(4901),d=r(8975),u=r(3269),p=r(5507);let[m,h]=(0,o.e3)("FormState"),f=e=>{let{isOptional:t,isLastAuthenticationStrategy:r,icon:o,actionLabel:a,children:s,onActionClicked:c,...d}=e;return(0,n.Y)(p.D.Root,{...d,children:(0,n.FD)(i.fv,{elementDescriptor:l.$z.formField,elementId:l.$z.formField.setId(d.id),sx:{position:"relative",flex:"1 1 auto"},children:[(0,n.FD)(i.so,{direction:"col",sx:e=>({gap:e.space.$2}),children:[(0,n.FD)(p.D.LabelRow,{children:[(0,n.Y)(p.D.Label,{}),(0,n.Y)(p.D.LabelIcon,{icon:o}),!a&&t&&(0,n.Y)(p.D.AsOptional,{}),a&&(0,n.Y)(p.D.Action,{localizationKey:a,onClick:c}),r&&!a&&!t&&(0,n.Y)(g,{}),(0,n.Y)(p.D.Action,{})]}),s]}),(0,n.Y)(p.D.Feedback,{})]})})},g=e=>{let{isLoading:t,isDisabled:r}=h();return(0,n.Y)(d.j,{...e,sx:e=>({opacity:r||t?e.opacity.$disabled:1})})},b={Root:e=>{let t=(0,u.f0)(),r=(0,c.m)(),[o,s]=(0,a.useState)(!1),d=async n=>{if(n.preventDefault(),n.stopPropagation(),e.onSubmit)try{t.setLoading(),r.setLoading(),s(!0),await e.onSubmit(n)}finally{t.setIdle(),r.setIdle()}},p=a.useMemo(()=>({value:{isLoading:r.isLoading,isDisabled:t.isLoading||r.isLoading,submittedWithEnter:o}}),[t.isLoading,r.isLoading,o]);return(0,n.Y)(m.Provider,{value:p,children:(0,n.FD)(i.lV,{elementDescriptor:l.$z.form,gap:6,...e,onSubmit:d,children:[(0,n.Y)("button",{type:"submit","aria-hidden":!0,style:{visibility:"hidden",position:"absolute"}}),e.children]})})},ControlRow:e=>{let{elementId:t,...r}=e;return(0,n.Y)(i.so,{elementDescriptor:l.$z.formFieldRow,elementId:l.$z.formFieldRow.setId(t),justify:"between",gap:4,...r})},PlainInput:e=>(0,n.Y)(f,{...e,children:(0,n.Y)(p.D.Input,{})}),PasswordInput:(0,a.forwardRef)((e,t)=>(0,n.Y)(f,{...e,children:(0,n.Y)(p.D.PasswordInput,{ref:t})})),PhoneInput:e=>(0,n.Y)(f,{...e,children:(0,n.Y)(p.D.PhoneInput,{})}),OTPInput:e=>{let{centerAlign:t=!0}=e;return(0,n.Y)(p.D.Root,{...e.otpControl.otpInputProps,children:(0,n.Y)(p.D.OTPRoot,{...e,children:(0,n.FD)(i.fv,{elementDescriptor:l.$z.form,gap:2,align:t?"center":"start",children:[(0,n.FD)(i.so,{elementDescriptor:l.$z.otpCodeField,isLoading:e.isLoading,hasError:"error"===e.otpControl.otpInputProps.feedbackType,direction:"col",children:[(0,n.Y)(p.D.OTPCodeControl,{}),(0,n.Y)(p.D.Feedback,{center:!0,elementDescriptors:{error:l.$z.otpCodeFieldErrorText,success:l.$z.otpCodeFieldSuccessText}})]}),(0,n.Y)(p.D.OTPResendButton,{})]})})})},InputGroup:e=>{let{groupSuffix:t,groupPrefix:r,...o}=e;return(0,n.Y)(f,{...o,children:(0,n.Y)(p.D.InputGroup,{groupSuffix:t,groupPrefix:r})})},RadioGroup:e=>{let{radioOptions:t,...r}=e;return(0,n.FD)(p.D.Root,{...r,children:[(0,n.Y)(i.fv,{elementDescriptor:l.$z.formFieldRadioGroup,gap:3,children:t?.map(({value:e,description:t,label:r})=>(0,n.Y)(i.so,{sx:e=>({borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha100,borderRadius:e.radii.$md,padding:e.space.$2}),children:(0,n.Y)(p.D.RadioItem,{value:e,label:r,description:t})},e))}),(0,n.Y)(p.D.Feedback,{})]})},Checkbox:e=>(0,n.Y)(p.D.Root,{...e,children:(0,n.FD)(i.so,{align:"start",children:[(0,n.Y)(p.D.CheckboxIndicator,{}),(0,n.Y)(p.D.CheckboxLabel,{description:e.description})]})}),SubmitButton:e=>{let{isLoading:t,isDisabled:r}=h();return(0,n.Y)(i.$n,{elementDescriptor:l.$z.formButtonPrimary,block:!0,textVariant:"buttonLarge",isLoading:t,isDisabled:r,type:"submit",...e,localizationKey:e.localizationKey||(0,s.G)("formButtonPrimary")})},ResetButton:e=>{let{isLoading:t,isDisabled:r}=h();return(0,n.Y)(i.$n,{elementDescriptor:l.$z.formButtonReset,block:!0,variant:"ghost",type:"reset",isDisabled:t||r,...e})},CommonInputWrapper:f}},1475:function(e,t,r){r.d(t,{G:()=>s,c:()=>c});var n=r(4518),o=r(8272),a=r(1550),i=r(2861),l=r(2454);let s=e=>{let{isDisabled:t,onReset:r,submitLabel:o,resetLabel:s,hideReset:d,...u}=e,{navigateToFlowStart:p}=(0,a.C)();return(0,n.FD)(c,{children:[(0,n.Y)(l.l.SubmitButton,{block:!1,isDisabled:t,localizationKey:o||(0,i.G)("userProfile.formButtonPrimary__save"),...u}),!d&&(0,n.Y)(l.l.ResetButton,{localizationKey:s||(0,i.G)("userProfile.formButtonReset"),block:!1,onClick:r||p})]})},c=e=>(0,n.Y)(o.so,{direction:"rowReverse",gap:2,...e,children:e.children})},3549:function(e,t,r){r.d(t,{M:()=>c});var n=r(4518),o=r(8272),a=r(8920),i=r(6088),l=r(3269),s=r(6153);let c=e=>{let{headerTitle:t,headerTitleTextVariant:r="h3",headerSubtitle:c,headerSubtitleTextVariant:d="body",children:u,sx:p,...m}=e,h=(0,l.f0)();return(0,n.FD)(o.fv,{elementDescriptor:a.$z.formContainer,gap:4,...m,sx:[p],children:[(t||c)&&(0,n.FD)(s.Y.Root,{children:[t&&(0,n.Y)(s.Y.Title,{textVariant:r,..."string"==typeof t?{children:t}:{localizationKey:t}}),c&&(0,n.Y)(s.Y.Subtitle,{variant:d,..."string"==typeof c?{children:c}:{localizationKey:c}})]}),(0,n.Y)(i.Z.Alert,{children:h.error}),(0,n.Y)(o.fv,{gap:8,children:u})]})}},1323:function(e,t,r){r.d(t,{R:()=>l});var n=r(4518),o=r(8272),a=r(8920),i=r(7651);let l=e=>{let t=(0,i.Om)(e.value);return(0,n.Y)(o.EY,{as:"span",elementDescriptor:a.$z.formattedPhoneNumberText,children:t})}},2611:function(e,t,r){r.d(t,{K:()=>i});var n=r(4518),o=r(8272),a=r(8920);let i=()=>(0,n.Y)(o.so,{center:!0,sx:{height:"100%"},children:(0,n.Y)(o.y$,{colorScheme:"primary",size:"lg",elementDescriptor:a.$z.spinner})})},6153:function(e,t,r){r.d(t,{Y:()=>f});var n,o=r(4518),a=r(5074),i=r(6580),l=r(8272),s=r(8920);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let d=function(e){return a.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},e),n||(n=a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12H4m6 6-6-6 6-6"})))};var u=r(2037),p=r(6505);let m=a.memo(a.forwardRef((e,t)=>{let{sx:r,children:n,contentSx:a,gap:c=6,showLogo:d=!1,showDivider:m=!1,...h}=e,f="inside"===(0,i.K)().parsedOptions.logoPlacement&&d,g=m&&f;return(0,o.FD)(l.fv,{ref:t,elementDescriptor:s.$z.header,gap:c,sx:r,...h,children:[f&&(0,o.Y)(u.G,{}),g&&(0,o.Y)(p.G,{}),(0,o.Y)(l.fv,{gap:1,sx:a,...h,children:n})]})})),h=a.memo(e=>{let{sx:t,textVariant:r="h2",...n}=e;return(0,o.Y)(l.DZ,{elementDescriptor:s.$z.headerTitle,textVariant:r,sx:t,...n})}),f={Root:m,Title:h,Subtitle:a.memo(e=>{let{sx:t,...r}=e;return(0,o.Y)(l.EY,{elementDescriptor:s.$z.headerSubtitle,variant:"body",colorScheme:"secondary",sx:[{wordWrap:"break-word"},t],...r})}),BackLink:a.memo(e=>{let{sx:t,children:r,...n}=e;return(0,o.FD)(l.N_,{elementDescriptor:s.$z.headerBackLink,sx:e=>[{display:"inline-flex",alignItems:"center",gap:e.space.$2,width:"fit-content","&:hover":{textDecoration:"none"}},t],...n,children:[(0,o.Y)(l.In,{icon:d,sx:e=>({color:e.colors.$colorForeground})}),r]})})}},155:function(e,t,r){r.d(t,{K:()=>l});var n=r(4518),o=r(5074),a=r(78),i=r(8272);let l=e=>{let{children:t,icon:r,localizationKey:l,iconElementDescriptor:s,...c}=e,{t:d}=(0,a._)(),u=d(l),p=(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{"aria-hidden":!0,focusable:!1}):(0,n.Y)(i.In,{elementDescriptor:s,icon:r,size:"md"});return(0,n.Y)(i.$n,{...c,children:(0,n.FD)(n.FK,{children:[p,u||t]})})}},6384:function(e,t,r){r.d(t,{A:()=>a});var n=r(4518),o=r(8272);let a=e=>{let{icon:t,boxElementDescriptor:r,iconElementDescriptor:a,sx:i,...l}=e;return(0,n.Y)(o.so,{center:!0,elementDescriptor:r,sx:[e=>({backgroundColor:e.colors.$neutralAlpha50,width:e.sizes.$16,height:e.sizes.$16,borderRadius:e.radii.$circle}),i],...l,children:(0,n.Y)(o.In,{elementDescriptor:a,icon:t,size:"lg",sx:e=>({color:e.colors.$neutralAlpha600})})})}},196:function(e,t,r){r.d(t,{$:()=>m});var n,o=r(4518),a=r(6435),i=r(5074),l=r(8272),s=r(8920);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let d=function(e){return i.createElement("svg",c({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 16"},e),n||(n=i.createElement("path",{d:"M13.598 5.108c-.418.419-.628.628-.847.669-.22.04-.364-.104-.652-.392l-.984-.984c-.288-.288-.432-.432-.392-.652.04-.22.25-.428.669-.847l.226-.227c.419-.418.628-.628.848-.668.22-.04.364.103.652.392l.983.983c.289.288.433.432.392.652-.04.22-.25.429-.668.848l-.227.226ZM4.66 13.688l-1.206.223c-.5.092-.75.138-.876.011-.127-.126-.08-.376.011-.876l.223-1.206c.04-.217.06-.325.118-.43.058-.105.15-.196.33-.377l5.554-5.554c.419-.418.628-.628.848-.668.22-.04.364.103.652.392l.983.983c.289.288.433.432.392.652-.04.22-.25.429-.668.848l-5.554 5.553c-.181.182-.272.273-.377.331-.105.058-.213.078-.43.118ZM9.25 12.5a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Z",fill:"currentColor"})))};var u=r(9835),p=r(7651);let m=e=>{let{avatarUrl:t=(0,a.l)("avatar_placeholder","jpeg"),identifier:r,onClick:n,...c}=e,m=i.useRef({avatarUrl:t,identifier:(0,u.u)(r)}),h=n&&(0,o.Y)(l.$n,{elementDescriptor:s.$z.identityPreviewEditButton,variant:"link",textVariant:"buttonSmall",onClick:n,"aria-label":"Edit",children:(0,o.Y)(l.In,{elementDescriptor:s.$z.identityPreviewEditButtonIcon,icon:d})});if(!m.current.identifier)return(0,o.Y)(b,{...c,children:h});if((0,u.R)(m.current.identifier)||!m.current.identifier.startsWith("+"))return(0,o.FD)(b,{...c,children:[(0,o.Y)(f,{...m.current}),h]});let v=(0,p.Xd)(m.current.identifier||""),y=(0,p.eL)(v.iso);return(0,o.FD)(b,{...c,children:[(0,o.Y)(g,{identifier:m.current.identifier,flag:y}),h]})},h=e=>(0,o.Y)(l.EY,{elementDescriptor:s.$z.identityPreviewText,colorScheme:"secondary",truncate:!0,...e}),f=e=>(0,o.Y)(h,{children:e.identifier}),g=e=>(0,o.FD)(o.FK,{children:[(0,o.Y)(l.EY,{sx:e=>({fontSize:e.fontSizes.$sm}),children:e.flag}),(0,o.Y)(h,{children:e.identifier})]}),b=e=>(0,o.Y)(l.so,{elementDescriptor:s.$z.identityPreview,align:"center",gap:2,sx:{justifyContent:"center"},...e})},2421:function(e,t,r){r.d(t,{k:()=>i});var n=r(4518),o=r(8272),a=r(9068);function i(e){return(0,n.FD)(o.so,{sx:e=>({gap:e.space.$2,padding:`${e.space.$3} ${e.space.$4}`,backgroundColor:e.colors.$neutralAlpha50,borderRadius:e.radii.$md}),children:[(0,n.Y)(o.In,{icon:a.A,sx:e=>({opacity:e.opacity.$disabled})}),(0,n.Y)(o.EY,{localizationKey:e.message,sx:e=>({color:e.colors.$colorMutedForeground})})]})}},5013:function(e,t,r){r.d(t,{e:()=>i});var n=r(4518),o=r(5074),a=r(8272);let i=o.forwardRef((e,t)=>{let{leftIcon:r,sx:o,...i}=e;return(0,n.FD)(a.so,{center:!0,sx:{width:"100%",position:"relative"},children:[r?(0,n.Y)(a.az,{sx:e=>[{position:"absolute",left:e.space.$3x5,width:e.sizes.$3x5,height:e.sizes.$3x5,pointerEvents:"none",display:"grid",placeContent:"center","& svg":{position:"absolute",width:"100%",height:"100%"}}],children:r}):null,(0,n.Y)(a.pd,{...i,sx:[e=>({width:"100%",paddingLeft:e.space.$10}),o],ref:t})]})})},3832:function(e,t,r){r.d(t,{d:()=>h});var n=r(4518),o=r(7697),a=r(78),i=r(2861),l=r(8272),s=r(8920),c=r(6580),d=r(593),u=r(5507),p=r(6997);let m=e=>{let t,{termsUrl:r,privacyPolicyUrl:o}=e,{t:c}=(0,a._)(),u=(0,d.Wd)(),{placeholder:m,...h}=(0,d.Uj)(u);return r&&o?t=(0,i.G)("signUp.legalConsent.checkbox.label__termsOfServiceAndPrivacyPolicy",{termsOfServiceLink:r,privacyPolicyLink:o}):r?t=(0,i.G)("signUp.legalConsent.checkbox.label__onlyTermsOfService",{termsOfServiceLink:r}):o&&(t=(0,i.G)("signUp.legalConsent.checkbox.label__onlyPrivacyPolicy",{privacyPolicyLink:o})),(0,n.Y)(l.lR,{elementDescriptor:s.$z.formFieldCheckboxLabel,htmlFor:h.id,isDisabled:h.isDisabled,sx:e=>({paddingLeft:e.space.$1x5,textAlign:"left"}),children:(0,n.Y)(l.EY,{variant:"body",as:"span",children:(0,n.Y)(p._,{text:c(t),isExternal:!0,sx:e=>({textDecoration:"underline",textUnderlineOffset:e.space.$1})})})})},h=e=>{let{displayConfig:t}=(0,o.O)(),{parsedOptions:r}=(0,c.K)(),a=r.termsPageUrl||t.termsUrl,i=r.privacyPageUrl||t.privacyPolicyUrl;return(0,n.Y)(u.D.Root,{...e,children:(0,n.FD)(l.so,{justify:"center",children:[(0,n.Y)(u.D.CheckboxIndicator,{elementDescriptor:s.$z.formFieldCheckboxInput,elementId:s.$z.formFieldInput.setId("legalAccepted")}),(0,n.Y)(m,{termsUrl:a,privacyPolicyUrl:i})]})})}},9436:function(e,t,r){r.d(t,{p:()=>f});var n=r(4518),o=r(5074),a=r(8272),i=r(8920),l=r(7782),s=r(2405),c=r(2852),d=r(1464),u=r(9606);let p=o.createContext(void 0);function m({text:e}){let{onCopy:t}=(0,l.i)(e);return(0,n.Y)(a.L9,{elementDescriptor:i.$z.lineItemsDescriptionText,sx:e=>({...d.s.textVariants(e).body,display:"flex",minWidth:"0"}),onCopy:async e=>{e.preventDefault(),await t()},children:(0,u.W)(e,15)})}function h({text:e,copyLabel:t="Copy"}){let{onCopy:r,hasCopied:o}=(0,l.i)(e);return(0,n.Y)(a.$n,{variant:"unstyled",onClick:r,sx:e=>({color:"inherit",width:e.sizes.$4,height:e.sizes.$4,padding:0,borderRadius:e.radii.$sm,"&:focus-visible":{outline:"2px solid",outlineColor:e.colors.$colorRing}}),focusRing:!1,"aria-label":o?"Copied":t,children:(0,n.Y)(a.In,{size:"sm",icon:o?s.A:c.A,"aria-hidden":!0})})}let f={Root:function({children:e}){return(0,n.Y)(a.Dl,{elementDescriptor:i.$z.lineItemsRoot,sx:e=>({display:"grid",gridRowGap:e.space.$2}),children:e})},Group:function({children:e,borderTop:t=!1,variant:r="primary"}){return(0,n.Y)(p.Provider,{value:{variant:r},children:(0,n.Y)(a.az,{elementDescriptor:i.$z.lineItemsGroup,elementId:i.$z.lineItemsGroup.setId(r),sx:e=>({display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",...t?{borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100,paddingTop:e.space.$2}:{}}),children:e})})},Title:o.forwardRef(({title:e,description:t,icon:r,badge:l=null},s)=>{let c=o.useContext(p);if(!c)throw Error("LineItems.Title must be used within LineItems.Group");let{variant:u}=c,m="primary"===u?"subtitle":"caption";return(0,n.FD)(a.Dt,{ref:s,elementDescriptor:i.$z.lineItemsTitle,elementId:i.$z.lineItemsTitle.setId(u),sx:e=>({display:"grid",color:"primary"===u?e.colors.$colorForeground:e.colors.$colorMutedForeground,...d.s.textVariants(e)[m]}),children:[e?(0,n.FD)(a.L9,{sx:e=>({display:"inline-flex",alignItems:"center",gap:e.space.$1}),children:[r?(0,n.Y)(a.In,{size:"md",icon:r,"aria-hidden":!0}):null,(0,n.Y)(a.L9,{localizationKey:e}),l]}):null,t?(0,n.Y)(a.L9,{localizationKey:t,elementDescriptor:i.$z.lineItemsTitleDescription,sx:e=>({fontSize:e.fontSizes.$sm,color:e.colors.$colorMutedForeground})}):null]})}),Description:function({text:e,prefix:t,suffix:r,truncateText:l=!1,copyText:s=!1,copyLabel:c}){let u=o.useContext(p);if(!u)throw Error("LineItems.Description must be used within LineItems.Group");let{variant:f}=u;return(0,n.FD)(a.Dd,{elementDescriptor:i.$z.lineItemsDescription,elementId:i.$z.lineItemsDescription.setId(f),sx:e=>({display:"grid",justifyContent:"end",color:"tertiary"===f?e.colors.$colorMutedForeground:e.colors.$colorForeground}),children:[(0,n.FD)(a.L9,{elementDescriptor:i.$z.lineItemsDescriptionInner,sx:e=>({display:"inline-flex",justifyContent:"flex-end",alignItems:"center",gap:e.space.$1,minWidth:"0"}),children:[t?(0,n.Y)(a.L9,{localizationKey:t,elementDescriptor:i.$z.lineItemsDescriptionPrefix,sx:e=>({color:e.colors.$colorMutedForeground,...d.s.textVariants(e).caption})}):null,"string"==typeof e&&l?(0,n.Y)(m,{text:e}):(0,n.Y)(a.L9,{localizationKey:e,elementDescriptor:i.$z.lineItemsDescriptionText,sx:e=>({...d.s.textVariants(e).body,minWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})}),"string"==typeof e&&s?(0,n.Y)(h,{text:e,copyLabel:c}):null]}),r?(0,n.Y)(a.L9,{localizationKey:r,elementDescriptor:i.$z.lineItemsDescriptionSuffix,sx:e=>({color:e.colors.$colorMutedForeground,...d.s.textVariants(e).caption,justifySelf:"flex-end"})}):null]})}}},6997:function(e,t,r){r.d(t,{_:()=>l});var n=r(4518),o=r(5074),a=r(8272);let i=/\[([^\]]+)\]\(([^)]+)\)/g,l=(0,o.memo)(({text:e,...t})=>{let r=(0,o.useMemo)(()=>t,[t]);return(0,o.useMemo)(()=>{let t=[],o=0;return e.replace(i,(i,l,s,c)=>(c>o&&t.push(e.slice(o,c)),t.push((0,n.Y)(a.N_,{href:s,...r,children:l},c)),o=c+i.length,i)),o<e.length&&t.push(e.slice(o)),t},[e,r])})},6980:function(e,t,r){r.d(t,{B:()=>d,W:()=>c});var n=r(4518),o=r(8272),a=r(8920),i=r(6142),l=r(6088),s=r(3269);let c=({children:e})=>(0,n.FD)(o.so,{direction:"col",center:!0,elementDescriptor:a.$z.main,gap:8,sx:e=>({marginTop:e.space.$16,marginBottom:e.space.$13}),children:[(0,n.Y)(o.y$,{size:"xl",colorScheme:"primary",elementDescriptor:a.$z.spinner}),e]}),d=(0,s.dm)(()=>{let e=(0,s.f0)();return(0,n.FD)(l.Z.Root,{children:[(0,n.FD)(l.Z.Content,{children:[(0,n.Y)(l.Z.Alert,{children:e.error}),(0,n.Y)(c,{}),(0,n.Y)(i.j,{})]}),(0,n.Y)(l.Z.Footer,{})]})})},4365:function(e,t,r){r.d(t,{Dr:()=>y,W1:()=>f,cO:()=>v,cQ:()=>g});var n=r(4518),o=r(1210),a=r(5074),i=r(8920),l=r(8272),s=r(1577),c=r(4374),d=r(4620),u=r(3269),p=r(4373);let[m,h]=(0,o.e3)("MenuState"),f=(0,u.P4)(e=>{let{popoverPlacement:t="bottom-end",elementId:r,...o}=e,i=(0,s.f)({placement:t,offset:8,shoudFlip:!0}),l=a.useMemo(()=>({value:{popoverCtx:i,elementId:r}}),[{...i},r]);return(0,n.Y)(m.Provider,{value:l,...o})}),g=e=>{let{children:t,arialLabel:r}=e,{popoverCtx:n,elementId:o}=h(),{reference:l,toggle:s,isOpen:c}=n,d="function"==typeof r?r(c):r;return(0,a.isValidElement)(t)?(0,a.cloneElement)(t,{ref:l,elementDescriptor:t.props.elementDescriptor||i.$z.menuButton,elementId:t.props.elementId||i.$z.menuButton.setId(o),"aria-label":d,"aria-expanded":c,onClick:e=>{t.props?.onClick?.(e),s()}}):null},b=(e,t,r)=>{let n=r?.countSelf?e.tagName:"",o=e;for(;o&&"BUTTON"!==n.toUpperCase();)o=o["prev"===t?"previousElementSibling":"nextElementSibling"],n=o?.tagName??"";return o},v=e=>{let{sx:t,asPortal:r,...o}=e,{popoverCtx:s,elementId:u}=h(),{floating:m,styles:f,isOpen:g,context:v,nodeId:y}=s,w=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{m(w.current)},[g]),(0,n.Y)(p.A,{context:v,nodeId:y,isOpen:g,portal:r,children:(0,n.Y)(l.fv,{elementDescriptor:i.$z.menuList,elementId:i.$z.menuList.setId(u),ref:w,role:"menu",onKeyDown:e=>{let t=w.current;if(t&&t===document.activeElement&&"ArrowDown"===e.key)return e.preventDefault(),b(t.children[0],"next",{countSelf:!0})?.focus()},sx:[e=>({backgroundColor:d.T.makeSolid(e.colors.$colorBackground),borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,outline:"none",borderRadius:e.radii.$md,padding:e.space.$0x5,overflow:"hidden",top:`calc(100% + ${e.space.$2})`,animation:`${c.W.dropdownSlideInScaleAndFade} ${e.transitionDuration.$slower} ${e.transitionTiming.$slowBezier}`,transformOrigin:"top center",zIndex:e.zIndices.$dropdown,gap:e.space.$0x5}),t],style:f,...o})})},y=e=>{let{sx:t,onClick:r,destructive:o,closeAfterClick:s=!0,...c}=e,{popoverCtx:d,elementId:u}=h(),{toggle:p}=d,m=(0,a.useRef)(null);return(0,n.Y)(l.dF,{ref:m,elementDescriptor:i.$z.menuItem,elementId:i.$z.menuItem.setId(u),hoverAsFocus:!0,variant:"ghost",colorScheme:o?"danger":"neutral",role:"menuitem",onKeyDown:e=>{let t=m.current;if(!t)return;let r=e.key;if("ArrowUp"!==r&&"ArrowDown"!==r)return;e.preventDefault();let n=b(t,"ArrowUp"===r?"prev":"next");n?.focus()},focusRing:!1,onClick:e=>{r?.(e),s&&p()},sx:[e=>({justifyContent:"start",borderRadius:e.radii.$sm,padding:`${e.space.$1} ${e.space.$3}`}),t],...c})}},6705:function(e,t,r){r.d(t,{Modal:()=>b,Y:()=>g});var n=r(4518),o=r(1210),a=r(5074),i=r(8272),l=r(8920),s=r(1577),c=r(8792),d=r(4374),u=r(7591),p=r(3269),m=r(4373);let[h,f,g]=(0,o.e3)("ModalContext"),b=(0,p.P4)(e=>{let{disableScrollLock:t,enableScrollLock:r}=(0,c.K)(),{handleClose:p,handleOpen:f,contentSx:g,containerSx:b,canCloseModal:v,id:y,style:w,portalRoot:$,initialFocusRef:x}=e,_=(0,a.useRef)(null),{floating:S,isOpen:k,context:C,nodeId:P,toggle:A}=(0,s.f)({defaultOpen:!0,autoUpdate:!1,outsidePress:e=>e.target===_.current,canCloseModal:v});a.useEffect(()=>{k?f?.():p?.()},[k]);let z=a.useMemo(()=>({value:!1===v?{}:{toggle:A}}),[A,v]);return(0,o.UQ)(()=>(r(),()=>{t()}),[]),(0,n.Y)(m.A,{nodeId:P,context:C,isOpen:k,outsideElementsInert:!0,root:$,initialFocus:x,children:(0,n.Y)(h.Provider,{value:z,children:(0,n.Y)(i.so,{id:y,ref:_,elementDescriptor:l.$z.modalBackdrop,style:w,sx:[e=>({animation:`${d.W.fadeIn} 150ms ${e.transitionTiming.$common}`,zIndex:e.zIndices.$modal,backgroundColor:e.colors.$colorModalBackdrop,alignItems:"flex-start",justifyContent:"center",overflow:"auto",width:"100vw",height:["100vh","-webkit-fill-available"],position:"fixed",left:0,top:0}),b],children:(0,n.Y)(i.so,{elementDescriptor:l.$z.modalContent,ref:S,"aria-modal":"true",role:"dialog",sx:[e=>({position:"relative",outline:0,animation:`${d.W.modalSlideAndFade} 180ms ${e.transitionTiming.$easeOut}`,margin:`${e.space.$16} 0`,[u.g.sm]:{margin:`${e.space.$10} 0`}}),g],children:e.children})})})})})},9764:function(e,t,r){r.d(t,{oT:()=>D,jq:()=>P,n8:()=>k,XM:()=>C});var n,o=r(4518),a=r(1210),i=r(5074),l=r(8272),s=r(8920),c=r(78),d=r(1550),u=r(1577);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let m=function(e){return i.createElement("svg",p({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),n||(n=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3.75A.75.75 0 0 1 2.75 3h10.5a.75.75 0 1 1 0 1.5H2.75A.75.75 0 0 1 2 3.75ZM2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 1 1 0 1.5H2.75A.75.75 0 0 1 2 8Zm0 4.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 1 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z"})))};var h=r(4964),f=r(7591),g=r(1464),b=r(4374),v=r(4620),y=r(6088),w=r(3269),$=r(846),x=r(4373);let[_,S,k]=(0,a.e3)("NavbarContext"),C=({children:e,contentRef:t})=>{let[r,n]=i.useState(!1),a=i.useCallback(()=>n(!0),[]),l=i.useCallback(()=>n(!1),[]),s=i.useMemo(()=>({value:{isOpen:r,open:a,close:l,contentRef:t}}),[r]);return(0,o.Y)(_.Provider,{value:s,children:e})},P=e=>{let{contentRef:t,title:r,description:n,routes:a,header:c}=e,{close:u}=S(),{navigate:p}=(0,h.r)(),{navigateToFlowStart:m}=(0,d.C)(),f=(0,h.r)(),g=async e=>{t.current&&(u(),"/"===e.path?await m():await p(e.path))},b=(0,i.useCallback)(e=>{if(e.external)return!1;let t=f.currentPath===f.fullPath&&"/"===e.path,r=f.matches(e.path);return t||r},[f.currentPath]),v=(0,o.Y)(l.fv,{elementDescriptor:s.$z.navbarButtons,sx:e=>({gap:e.space.$0x5}),children:a.map(e=>(0,o.Y)(I,{elementDescriptor:s.$z.navbarButton,elementId:s.$z.navbarButton.setId(e.id),iconElementDescriptor:s.$z.navbarButtonIcon,iconElementId:s.$z.navbarButtonIcon.setId(e.id),onClick:e?.external?()=>p(e.path):()=>g(e),icon:e.icon,isActive:b(e),sx:e=>({padding:`${e.space.$1x5} ${e.space.$3}`,minHeight:e.space.$8}),children:(0,o.Y)(l.L9,{elementDescriptor:s.$z.navbarButtonText,elementId:s.$z.navbarButtonText.setId(e.id),localizationKey:e.name})},e.id))});return(0,o.FD)(o.FK,{children:[(0,o.FD)(A,{title:r,description:n,children:[c,v]}),(0,o.FD)(z,{children:[c,v]})]})},A=e=>{let{title:t,description:r}=e;return(0,o.FD)(l.fv,{elementDescriptor:s.$z.navbar,sx:e=>({[f.g.md]:{display:"none"},flex:`0 0 ${e.space.$57}`,width:e.sizes.$57,position:"relative",maxWidth:e.space.$57,background:g.s.mutedBackground(e),padding:`${e.space.$6} ${e.space.$5} ${e.space.$4} ${e.space.$3}`,marginRight:`calc(${e.space.$2} * -1)`,color:e.colors.$colorForeground,justifyContent:"space-between"}),children:[(0,o.Y)($.$,{}),(0,o.FD)(l.fv,{sx:e=>({gap:e.space.$6,flex:`0 0 ${e.space.$60}`}),children:[(0,o.FD)(l.fv,{sx:e=>({gap:e.space.$0x5,padding:`${e.space.$none} ${e.space.$3}`}),children:[(0,o.Y)(l.DZ,{as:"h1",localizationKey:t}),(0,o.Y)(l.EY,{colorScheme:"secondary",localizationKey:r})]}),e.children]}),(0,o.Y)(y.Z.ClerkAndPagesTag,{sx:{width:"fit-content"}})]})},z=(0,w.P4)(e=>{let t=S(),{floating:r,isOpen:n,open:a,close:c,nodeId:d,context:p}=(0,u.f)({defaultOpen:!1,autoUpdate:!1});return i.useEffect(()=>{t.isOpen?a():c()},[t.isOpen]),i.useEffect(()=>{n||t.close()},[n]),(0,o.Y)(x.A,{nodeId:d,context:p,isOpen:n,portal:!1,children:(0,o.Y)(l.fv,{sx:e=>({position:"absolute",top:0,bottom:0,width:"100%",zIndex:e.zIndices.$navbar,overflow:"hidden",color:e.colors.$colorForeground}),children:(0,o.Y)(l.fv,{ref:r,elementDescriptor:s.$z.navbar,tabIndex:0,sx:e=>({outline:0,position:"absolute",top:0,bottom:0,width:e.space.$60,backgroundColor:v.T.makeSolid(e.colors.$colorBackground),borderTopRightRadius:e.radii.$lg,borderBottomRightRadius:e.radii.$lg,padding:`${e.space.$10} ${e.space.$6}`,animation:`${b.W.navbarSlideIn} ${e.transitionDuration.$slower} ${e.transitionTiming.$slowBezier}`,borderRightWidth:e.borderWidths.$normal,borderRightStyle:e.borderStyles.$solid,borderRightColor:e.colors.$borderAlpha150,boxShadow:e.shadows.$cardContentShadow}),children:e.children})})})}),I=e=>{let{icon:t,children:r,isActive:n,iconElementDescriptor:a,iconElementId:i,sx:s,...c}=e;return(0,o.FD)(l.$n,{variant:"unstyled",colorScheme:n?"primary":"neutral",textVariant:"buttonLarge",size:"md",isActive:n,focusRing:!1,...c,sx:[e=>({gap:e.space.$3,justifyContent:"flex-start",backgroundColor:n?e.colors.$neutralAlpha100:void 0,color:n?e.colors.$primary500:e.colors.$colorMutedForeground,"&:hover":{backgroundColor:n?void 0:e.colors.$neutralAlpha25},"&:focus":{backgroundColor:n?void 0:e.colors.$neutralAlpha50}}),s],children:[(0,o.Y)(l.In,{elementDescriptor:a,elementId:i,icon:t,sx:{opacity:n?1:.7,transform:"translateZ(0)"}}),r]})},D=({navbarTitleLocalizationKey:e,...t})=>{let{open:r}=k(),{t:n}=(0,c._)();return r?(0,o.Y)(l.so,{elementDescriptor:s.$z.navbarMobileMenuRow,sx:e=>({display:"none",background:g.s.mutedBackground(e),padding:`${e.space.$2} ${e.space.$3} ${e.space.$4} ${e.space.$3}`,marginBottom:`calc(${e.space.$2} * -1)`,[f.g.md]:{display:"flex"}}),children:(0,o.FD)(l.$n,{elementDescriptor:s.$z.navbarMobileMenuButton,...t,onClick:r,size:"xs",textVariant:"h2",variant:"ghost",sx:e=>({color:e.colors.$colorForeground,gap:e.space.$2x5,width:"fit-content",alignItems:"center",justifyContent:"center"}),children:[(0,o.Y)(l.In,{elementDescriptor:s.$z.navbarMobileMenuButtonIcon,icon:m,size:"md"}),n(e)]})}):null}},6890:function(e,t,r){r.d(t,{h:()=>a});var n=r(4518),o=r(6195);let a=e=>{let{name:t="",imageUrl:r,...a}=e;return(0,n.Y)(o.e,{title:t,initials:(t||" ")[0],imageUrl:r,rounded:!1,...a})}},9001:function(e,t,r){r.d(t,{Q:()=>s});var n=r(4518);r(5074);var o=r(8272),a=r(8920),i=r(3486),l=r(6890);let s=e=>{let{organization:t,size:r="md",icon:s,rounded:c=!1,badge:d,sx:u,user:p,avatarSx:m,mainIdentifierSx:h,mainIdentifierVariant:f,elementId:g,...b}=e,{localizeCustomRole:v}=(0,i.l)(),y=p?.organizationMemberships.find(e=>e.organization.id===t.id),w=y?.roleName,$=v(y?.role)||w;return(0,n.FD)(o.so,{elementDescriptor:a.$z.organizationPreview,elementId:a.$z.organizationPreview.setId(g),gap:3,align:"center",as:"span",sx:[{minWidth:"0"},u],...b,children:[(0,n.FD)(o.so,{elementDescriptor:a.$z.organizationPreviewAvatarContainer,elementId:a.$z.organizationPreviewAvatarContainer.setId(g),justify:"center",as:"span",sx:{position:"relative"},children:[(0,n.Y)(l.h,{boxElementDescriptor:a.$z.organizationPreviewAvatarBox,imageElementDescriptor:a.$z.organizationPreviewAvatarImage,...t,size:e=>({xs:e.sizes.$5,sm:e.sizes.$8,md:e.sizes.$9,lg:e.sizes.$12})[r],sx:m,rounded:c}),s&&(0,n.Y)(o.so,{sx:{position:"absolute",left:0,bottom:0},children:s})]}),(0,n.FD)(o.so,{elementDescriptor:a.$z.organizationPreviewTextContainer,elementId:a.$z.organizationPreviewTextContainer.setId(g),direction:"col",justify:"center",as:"span",sx:{minWidth:"0px",textAlign:"left"},children:[(0,n.FD)(o.EY,{elementDescriptor:a.$z.organizationPreviewMainIdentifier,elementId:a.$z.organizationPreviewMainIdentifier.setId(g),variant:f||({xs:"subtitle",sm:"caption",md:"subtitle",lg:"h1"})[r],as:"span",truncate:!0,sx:h,title:t.name,children:[t.name," ",d]}),$&&(0,n.Y)(o.EY,{elementDescriptor:a.$z.organizationPreviewSecondaryIdentifier,elementId:a.$z.organizationPreviewSecondaryIdentifier.setId(g),as:"span",localizationKey:$,truncate:!0})]})]})}},8819:function(e,t,r){r.d(t,{d:()=>y});var n,o,a=r(4518),i=r(8272),l=r(8920),s=r(2861),c=r(78),d=r(5074);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let p=function(e){return d.createElement("svg",u({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),n||(n=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.55 4.24a.75.75 0 0 1-.04 1.06L6.604 7.998l2.655 2.45a.744.744 0 0 1 .021.022l.25.25a.75.75 0 1 1-1.06 1.06l-.24-.24-3.239-2.989a.75.75 0 0 1-.001-1.1l3.5-3.25a.75.75 0 0 1 1.06.039Z"})))};function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let h=function(e){return d.createElement("svg",m({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o||(o=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.45 11.76a.75.75 0 0 1 .04-1.06l2.906-2.698-2.655-2.45a.756.756 0 0 1-.021-.022l-.25-.25a.75.75 0 0 1 1.06-1.06l.24.24 3.239 2.989a.75.75 0 0 1 .001 1.1l-3.5 3.25a.75.75 0 0 1-1.06-.039Z"})))};var f=r(7591);let g=e=>{let{sx:t,isActive:r,icon:n,children:o,...s}=e;return(0,a.FD)(i.$n,{size:"xs",variant:"outline",sx:e=>[{color:e.colors.$colorForeground,opacity:r?1:e.opacity.$inactive,padding:`${e.space.$0x5} ${e.space.$0x5}`},t],elementDescriptor:l.$z.paginationButton,...s,children:[n&&(0,a.Y)(i.In,{size:"md",elementDescriptor:l.$z.paginationButtonIcon,icon:e.icon}),o]})},b=e=>{let{rowInfo:{startingRow:t,endingRow:r,allRowsCount:n}}=e;return(0,a.FD)(i.EY,{children:[(0,a.Y)(i.EY,{as:"span",elementDescriptor:l.$z.paginationRowText,elementId:l.$z.paginationRowText?.setId("displaying"),sx:e=>({opacity:e.opacity.$inactive}),localizationKey:(0,s.G)("paginationRowText__displaying"),colorScheme:"secondary"})," ",(0,a.Y)(i.EY,{as:"span",elementDescriptor:l.$z.paginationRowText,elementId:l.$z.paginationRowText?.setId("rowsCount"),sx:e=>({fontWeight:e.fontWeights.$medium}),children:t===r&&[0,1].includes(t)?t:`${t} – ${r}`})," ",(0,a.Y)(i.EY,{as:"span",elementDescriptor:l.$z.paginationRowText,elementId:l.$z.paginationRowText?.setId("displaying"),sx:e=>({opacity:e.opacity.$inactive}),localizationKey:(0,s.G)("paginationRowText__of")})," ",(0,a.Y)(i.EY,{as:"span",elementDescriptor:l.$z.paginationRowText,elementId:l.$z.paginationRowText?.setId("allRowsCount"),children:n})]})},v=()=>(0,a.Y)(i.so,{center:!0,children:(0,a.Y)(i.EY,{colorScheme:"secondary",children:"..."})}),y=e=>{let{page:t,count:r,rowInfo:n,siblingCount:o=1,onChange:l}=e,{t:d}=(0,c._)();return(0,a.FD)(i.so,{justify:n?"between":"center",align:"center",sx:e=>({fontSize:e.fontSizes.$sm,"*":{fontSize:"inherit"},[f.g.sm]:{flexDirection:"column",gap:e.space.$2}}),children:[n&&(0,a.Y)(b,{rowInfo:n}),(0,a.FD)(i.so,{gap:2,align:"center",sx:{display:"inline-flex"},children:[(0,a.Y)(g,{isDisabled:t<=1,icon:p,"aria-label":d((0,s.G)("paginationButton__previous")),onClick:()=>{l?.(t-1)}}),Array.from({length:r-1+1},(e,t)=>1+t).map(e=>Math.abs(t-e)<=o||e===r||1===e?(0,a.Y)(g,{isActive:e===t,variant:"ghost",onClick:()=>{l?.(e)},children:e},e):Math.abs(t-e)===o+1?(0,a.Y)(v,{},e):null),(0,a.Y)(g,{isDisabled:t>=r||t<1,icon:h,"aria-label":d((0,s.G)("paginationButton__next")),onClick:()=>{l?.(t+1)}})]})]})}},781:function(e,t,r){r.d(t,{i:()=>a});var n=r(4518),o=r(9345);let a=e=>(0,n.Y)(o.c,{elementId:"personalWorkspace",rounded:!1,...e})},1820:function(e,t,r){r.d(t,{mK:()=>o,nU:()=>i,zh:()=>l});let n=[["United States","us","1","(...) ...-....",100],["United Kingdom","gb","44",".... ......",100],["India","in","91",".....-.....",100],["Canada","ca","1","(...) ...-....",100],["Germany","de","49","... .......",100],["France","fr","33",". .. .. .. ..",100],["Russia","ru","7","... ...-..-..",100],["Afghanistan","af","93"],["\xc5land Islands","ax","358"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61","... ... ..."],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375"],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1441"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599"],["Cayman Islands","ky","1345"],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","...-....-...."],["Colombia","co","57"],["Comoros","km","269"],["Democratic Republic of the Congo","cd","243"],["Republic of the Congo","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506","....-...."],["C\xf4te d’Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599"],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1"],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30","... ......."],["Greenland","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590"],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972"],["Italy","it","39","... ......"],["Jamaica","jm","1876"],["Japan","jp","81","... .. ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-.."],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262"],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1664"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",".. ........"],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1670"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1"],["Qatar","qa","974"],["R\xe9union","re","262"],["Romania","ro","40"],["Rwanda","rw","250"],["Saint Barth\xe9lemy","bl","590"],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin","mf","590"],["Saint Pierre and Miquelon","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Sint Maarten","sx","1721"],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Eswatini","sz","268"],["Sweden","se","46",".. ... .. .."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["Uruguay","uy","598"],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ...."],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis and Futuna","wf","681"],["Western Sahara","eh","212"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],o={us:new Set(["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]),ca:new Set(["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"])},a=([e,t,r,n="",o=0])=>({name:e,iso:t,code:r,pattern:n,priority:o}),i=n.reduce((e,t)=>e.set(t[1],a(t)),new Map),l=n.reduce((e,t)=>{let r=t[2],n=a(t);return e.has(r)?e.get(r)?.push(n):e.set(r,[n]),e},new Map)},4373:function(e,t,r){r.d(t,{A:()=>a});var n=r(4518),o=r(2119);r(5074);let a=e=>{let{context:t,initialFocus:r,outsideElementsInert:a=!1,order:i=["reference","content"],nodeId:l,isOpen:s,portal:c=!0,root:d,children:u}=e;return c?(0,n.Y)(o.$c,{id:l,children:(0,n.Y)(o.XF,{root:d,children:s&&(0,n.Y)(o.s3,{context:t,initialFocus:r,outsideElementsInert:a,order:i,children:(0,n.Y)(n.FK,{children:u})})})}):(0,n.Y)(o.$c,{id:l,children:s&&(0,n.Y)(o.s3,{context:t,initialFocus:r,order:i,children:(0,n.Y)(n.FK,{children:u})})})}},9972:function(e,t,r){r.d(t,{Y:()=>h});var n=r(4518),o=r(5074),a=r(7697),i=r(4607),l=r(8920),s=r(8272),c=r(6580),d=r(4374),u=r(1464),p=r(4620),m=r(6088);let h={Root:o.forwardRef((e,t)=>{let{elementDescriptor:r,shouldEntryAnimate:o=!0,...a}=e;return(0,n.Y)(i.n.Part,{part:"popover",children:(0,n.Y)(m.Z.Root,{elementDescriptor:[l.$z.popoverBox,r],...a,ref:t,sx:[e=>({width:e.sizes.$94,maxWidth:`calc(100vw - ${e.sizes.$8})`,zIndex:e.zIndices.$modal,borderRadius:e.radii.$xl,outline:"none"}),e=>({animation:o?`${d.W.dropdownSlideInScaleAndFade} ${e.transitionDuration.$fast}`:void 0})],children:e.children})})}),Content:e=>{let{sx:t,...r}=e;return(0,n.Y)(s.so,{direction:"col",sx:[e=>({backgroundColor:e.colors.$colorBackground,overflow:"hidden",borderRadius:e.radii.$lg,zIndex:e.zIndices.$card,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,marginInline:"-1px",marginBlockStart:"-1px"}),t],...r,children:e.children})},Footer:e=>{let{sx:t,children:r,...o}=e,{branded:i}=(0,a.O)().displayConfig,{privacyPageUrl:l,termsPageUrl:d,helpPageUrl:h}=(0,c.K)().parsedOptions;return(0,n.FD)(s.fv,{justify:"between",sx:[e=>({background:u.s.mergedColorsBackground(p.T.setAlpha(e.colors.$colorBackground,1),e.colors.$neutralAlpha50),marginTop:`calc(${e.space.$2} * -1)`,paddingTop:e.space.$2,"&:empty":{padding:0,marginTop:0},">:not(:first-of-type)":{padding:`${e.space.$4} ${e.space.$8}`,borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100}}),t],...o,children:[r,(0,n.Y)(m.Z.ClerkAndPagesTag,{outerSx:e=>({padding:`${e.space.$4} ${e.space.$8}`}),withFooterPages:!!(i||l||d||h),devModeNoticeSx:e=>({padding:e.space.$none}),withDevOverlay:!0})]})}}},1986:function(e,t,r){r.d(t,{Z:()=>a});var n=r(5074),o=r(5323);let a=e=>{let t=n.useRef(document.createElement("div"));return n.useEffect(()=>(document.body.appendChild(t.current),()=>{document.body.removeChild(t.current)}),[]),(0,o.createPortal)(e.children,t.current)}},750:function(e,t,r){r.d(t,{P:()=>i});var n=r(4518),o=r(8272),a=r(3269);let i=e=>{let{sx:t,children:r,icon:i,iconProps:l,showIconOnHover:s=!0,...c}=e,d=(0,a.f0)(),{sx:u,...p}=l||{};return(0,n.FD)(o.$n,{variant:"ghost",colorScheme:"neutral",focusRing:!1,block:!0,hoverAsFocus:!0,isDisabled:d.isLoading,sx:[e=>({justifyContent:"space-between",padding:`${e.space.$4} ${e.space.$5}`,borderRadius:0,...s?{":hover > svg":{visibility:"initial"}}:{}}),t],...c,children:[r,i&&(0,n.Y)(o.In,{icon:i,sx:[e=>({color:e.colors.$colorMutedForeground,marginLeft:e.space.$2,visibility:s?"hidden":"initial"}),u],...p})]})}},5396:function(e,t,r){r.d(t,{a:()=>h});var n=r(4518),o=r(5074),a=r(8272),i=r(8920),l=r(4964),s=r(7591),c=r(1464),d=r(5057),u=r(6088),p=r(155),m=r(6705);let h={Root:o.forwardRef((e,t)=>{let{sx:r,children:o,...l}=e,{toggle:c}=(0,m.Y)();return(0,n.FD)(u.Z.Root,{ref:t,sx:[e=>({width:e.sizes.$220,maxWidth:`calc(100vw - ${e.sizes.$8})`,display:"flex",flexDirection:"row",[s.g.md]:{display:"flex",flexDirection:"column"},overflow:"hidden",height:e.sizes.$176,position:"relative"}),r],...l,children:[c&&(0,n.Y)(a.az,{sx:e=>({[s.g.md]:{padding:`${e.space.$1x5} ${e.space.$2}`,top:e.space.$none,right:e.space.$none},zIndex:e.zIndices.$modal,position:"absolute",top:e.space.$2,right:e.space.$2}),children:(0,n.Y)(p.K,{elementDescriptor:i.$z.modalCloseButton,variant:"ghost","aria-label":"Close modal",onClick:c,icon:(0,n.Y)(a.In,{icon:d.A,size:"sm"}),sx:e=>({color:e.colors.$colorMutedForeground,padding:e.space.$3})})}),o,(0,n.Y)(u.Z.Footer,{isProfileFooter:!0,sx:{display:"none",[s.g.md]:{display:"flex"}}})]})}),Content:e=>{let{contentRef:t,children:r,scrollBoxId:d}=e,u=(0,l.r)(),p=o.useRef(0);return o.useEffect(()=>{let e=e=>{let t=e.target;t.scrollTop&&(p.current=t.scrollTop)};return t?.current?.addEventListener("scroll",e),()=>t?.current?.removeEventListener("scroll",e)},[]),o.useLayoutEffect(()=>{p.current&&t?.current&&(t.current.scrollTop=p.current)},[u.currentPath]),(0,n.Y)(a.fv,{elementDescriptor:i.$z.scrollBox,sx:e=>({backgroundColor:e.colors.$colorBackground,position:"relative",borderRadius:e.radii.$lg,width:"100%",overflow:"hidden",borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,marginBlock:"-1px",marginInlineEnd:"-1px",flex:1}),"data-clerk-profile-scroll-box-root":d,children:(0,n.Y)(a.fv,{elementDescriptor:i.$z.pageScrollBox,sx:e=>({flex:"1",scrollbarGutter:"stable",paddingTop:e.space.$7,paddingBottom:e.space.$7,paddingLeft:e.space.$8,paddingRight:e.space.$6,[s.g.sm]:{padding:`${e.space.$8} ${e.space.$5}`},...c.s.maxHeightScroller(e)}),ref:t,children:r})})}}},6760:function(e,t,r){r.d(t,{U:()=>l});var n=r(4518),o=r(5074),a=r(6580),i=r(6505);let l=e=>{let t=(0,a.K)(),r=c(o.Children.toArray(e.children),e=>(0,n.Y)(i.c,{},`divider${e}`));return(0,n.Y)(s,{reverse:"bottom"===t.parsedOptions.socialButtonsPlacement,...e,children:r})},s=e=>{let{children:t,reverse:r}=e;return(0,n.Y)(n.FK,{children:r?o.Children.toArray(t).reverse():t})},c=(e,t)=>e.reduce((r,n,o)=>o===e.length-1?[...r,n]:[...r,n,t(o)],[])},1005:function(e,t,r){r.d(t,{M:()=>a});var n=r(4518),o=r(8272);let a=e=>(0,n.Y)(o.fv,{...e,sx:e=>({boxSizing:"border-box",width:"fit-content",color:e.colors.$colorForeground,fontFamily:e.fonts.$main,fontStyle:e.fontStyles.$normal})})},4387:function(e,t,r){r.d(t,{W:()=>i});var n=r(4518),o=r(8272),a=r(4964);let i=e=>{let{to:t,onClick:r,...i}=e,l=(0,a.r)(),s=l.resolve(t||l.indexPath);return(0,n.Y)(o.N_,{...i,onClick:e=>(e.preventDefault(),r&&!t)?r(e):l.navigate(s.href),href:s.href})}},4003:function(e,t,r){r.d(t,{rd:()=>m});var n=r(4518),o=r(5074),a=r(8272),i=r(8920),l=r(9679),s=r(7591),c=r(579),d=r(8738),u=r(4365);let p=(0,o.forwardRef)((e,t)=>{let{children:r,leftIcon:o=l.A,id:a,sx:s,localizationKey:c,...u}=e;return(0,n.Y)(d.X,{elementDescriptor:i.$z.profileSectionPrimaryButton,elementId:i.$z.profileSectionPrimaryButton.setId(a),variant:"ghost",sx:[e=>({textWrap:"nowrap",justifyContent:"start",height:e.sizes.$8}),s],textLocalizationKey:c,leftIcon:o,leftIconSx:e=>({width:e.sizes.$4,height:e.sizes.$4}),ref:t,...u,children:r})}),m={Root:e=>{let{title:t,centered:r=!0,children:l,id:c,sx:d,...u}=e,p=(0,o.useRef)(null),[m,f]=(0,o.useState)(0);return(0,o.useLayoutEffect)(()=>{let e=p.current;e&&f(e.clientHeight+e.clientTop||0)},[]),(0,n.FD)(a.so,{elementDescriptor:i.$z.profileSection,elementId:i.$z.profileSection.setId(c),sx:[e=>({flexDirection:"row-reverse",borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100,paddingTop:e.space.$4,paddingBottom:e.space.$4,gap:e.space.$6,[s.g.lg]:{flexDirection:"column-reverse",gap:e.space.$2}}),d],...u,children:[(0,n.Y)(a.fv,{elementDescriptor:i.$z.profileSectionContent,elementId:i.$z.profileSectionContent.setId(c),gap:2,ref:p,sx:{minWidth:0,width:"100%","+ *":{"--clerk-height":`${m}px`}},children:l}),(0,n.Y)(a.fv,{elementDescriptor:i.$z.profileSectionHeader,elementId:i.$z.profileSectionHeader.setId(c),sx:e=>({padding:r?void 0:`${e.space.$1x5} 0`,gap:e.space.$1,width:e.space.$66,alignSelf:m?"self-start":r?"center":void 0,marginTop:r?"calc(var(--clerk-height)/2)":void 0,transform:m&&r?"translateY(-50%)":void 0,[s.g.lg]:{alignSelf:"self-start",marginTop:"unset",transform:"none",padding:0}}),children:(0,n.Y)(h,{localizationKey:t,elementDescriptor:i.$z.profileSectionTitle,elementId:i.$z.profileSectionTitle.setId(c),textElementDescriptor:i.$z.profileSectionTitleText,textElementId:i.$z.profileSectionTitleText.setId(c)})})]})},ItemList:e=>{let{children:t,id:r,disableAnimation:o=!1,...l}=e,s=(0,n.Y)(a.fv,{elementDescriptor:i.$z.profileSectionItemList,elementId:i.$z.profileSectionItemList.setId(r),sx:e=>({gap:e.space.$0x5}),...l,children:t});return o?s:(0,n.Y)(c.k,{asChild:!0,children:s})},Item:e=>{let{children:t,id:r,sx:o,hoverable:l,...s}=e;return(0,n.Y)(a.so,{elementDescriptor:i.$z.profileSectionItem,elementId:i.$z.profileSectionItem.setId(r),sx:[e=>({justifyContent:"space-between",width:"100%",alignItems:"center",padding:`${e.space.$1} ${e.space.$1} ${e.space.$1} ${e.space.$2x5}`,gap:e.space.$2,...l&&{borderRadius:e.radii.$lg,":hover":{backgroundColor:e.colors.$neutralAlpha50}}}),o],...s,children:t})},Button:e=>{let{children:t,id:r,sx:o,...l}=e;return(0,n.Y)(a.$n,{elementDescriptor:i.$z.profileSectionPrimaryButton,elementId:i.$z.profileSectionPrimaryButton.setId(r),variant:"ghost",sx:[e=>({whiteSpace:"nowrap",justifyContent:"start",gap:e.space.$2,padding:`${e.space.$1x5} ${e.space.$3} ${e.space.$1x5} ${e.space.$2x5}`}),o],...l,children:t})},ArrowButton:p,ButtonGroup:e=>{let{children:t,id:r,...o}=e;return(0,n.Y)(a.so,{elementDescriptor:i.$z.profileSectionButtonGroup,elementId:i.$z.profileSectionButtonGroup.setId(r),justify:"between",gap:2,...o,children:t})},ActionMenu:e=>{let{children:t,triggerLocalizationKey:r,id:o,triggerSx:i,onClick:s}=e;return(0,n.Y)(a.so,{sx:{position:"relative"},children:(0,n.FD)(u.W1,{elementId:o,children:[(0,n.Y)(u.cQ,{children:(0,n.Y)(p,{id:o,textLocalizationKey:r,sx:[e=>({justifyContent:"start",height:e.sizes.$8}),i],leftIcon:l.A,leftIconSx:e=>({width:e.sizes.$4,height:e.sizes.$4}),onClick:s})}),(0,n.Y)(u.cO,{asPortal:!1,sx:e=>({width:"100%",padding:e.space.$1}),children:t})]})})},ActionMenuItem:e=>{let{children:t,isLoading:r,localizationKey:l,sx:s,leftIcon:c,leftIconSx:d,...p}=e,m=(0,o.isValidElement)(c);return(0,n.FD)(u.Dr,{sx:[e=>({padding:`${e.space.$1x5} ${e.space.$2}`}),s],isLoading:r,...p,children:[(r||c)&&(0,n.Y)(a.so,{as:"span",sx:e=>({flex:`0 0 ${e.space.$4}`}),children:r?(0,n.Y)(a.y$,{elementDescriptor:i.$z.spinner,size:"sm"}):!m&&c?(0,n.Y)(a.In,{icon:c,sx:[e=>({color:e.colors.$neutralAlpha600,width:e.sizes.$5}),d]}):c}),(0,n.Y)(a.EY,{localizationKey:l})]})}},h=e=>{let{textElementDescriptor:t,textElementId:r,localizationKey:o,...i}=e;return(0,n.Y)(a.so,{...i,children:(0,n.Y)(a.EY,{localizationKey:o,variant:"subtitle",elementDescriptor:t,elementId:r})})}},6839:function(e,t,r){r.d(t,{I:()=>u});var n=r(4518),o=r(2119),a=r(5074),i=r(8272),l=r(8920);let s=(0,a.createContext)(null),c=a.forwardRef(({children:e,value:t,defaultValue:r,onChange:c,"aria-label":d,"aria-labelledby":u,size:p="md",fullWidth:m=!1,sx:h},f)=>{let[g,b]=(0,a.useState)(r),v=void 0!==t;return(0,n.Y)(s.Provider,{value:{currentValue:v?t:g,onValueChange:e=>{v||b(e),c?.(e)},size:p,fullWidth:m},children:(0,n.Y)(o.eC,{orientation:"horizontal",role:"radiogroup",loop:!1,render:(0,n.Y)(i.so,{ref:f,elementDescriptor:l.$z.segmentedControlRoot,"aria-label":d,"aria-labelledby":u,sx:[e=>({backgroundColor:e.colors.$neutralAlpha50,borderRadius:e.radii.$md,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha100,isolation:"isolate"}),h]}),children:e})})});c.displayName="SegmentedControl.Root";let d=a.forwardRef(({text:e,value:t},r)=>{let{currentValue:c,onValueChange:d,size:u,fullWidth:p}=function(){let e=(0,a.useContext)(s);if(!e)throw Error("SegmentedControl.Button must be used within SegmentedControl.Root");return e}(),m=t===c;return(0,n.Y)(o.lb,{render:o=>(0,n.Y)(i.dF,{ref:r,...o,localizationKey:e,elementDescriptor:l.$z.segmentedControlButton,variant:"unstyled",role:"radio","aria-checked":m,onClick:()=>d(t),isActive:m,sx:e=>({position:"relative",width:p?"100%":"auto",backgroundColor:m?e.colors.$colorBackground:"transparent",color:m?e.colors.$colorForeground:e.colors.$colorMutedForeground,fontSize:"lg"===u?e.fontSizes.$md:e.fontSizes.$xs,minHeight:e.sizes.$6,boxShadow:m?e.shadows.$segmentedControl:"none",borderRadius:`calc(${e.radii.$md} - ${e.borderWidths.$normal})`,zIndex:1,":focus-visible":{zIndex:2}})})})});d.displayName="SegmentedControl.Button";let u={Root:c,Button:d}},1586:function(e,t,r){r.d(t,{JC:()=>S,l6:()=>y,UL:()=>_});var n=r(4518),o=r(1210),a=r(5074),i=r(8272),l=r(8920),s=r(1577),c=r(7649),d=r(1464),u=r(4374),p=r(4620),m=r(3269),h=r(4373);let[f,g]=(0,o.e3)("SelectState"),b=(e,t)=>(0,n.Y)(i.so,{sx:e=>({position:"relative",width:"100%",padding:`${e.space.$2} ${e.space.$4}`,margin:`0 ${e.space.$1}`,borderRadius:e.radii.$md,'&:hover, &[data-focused="true"]':{background:d.s.mutedBackground(e)},"&::before":{content:'""',position:"absolute",inset:`calc(${e.space.$0x5} * -1) calc(${e.space.$1} * -1)`}}),children:(0,n.Y)(i.EY,{truncate:!0,children:e.label||e.value})}),v=e=>e.label||e.value,y=(0,m.P4)(e=>{let{value:t,options:r,onChange:o,renderOption:i,noResultsMessage:l,comparator:c,placeholder:d="Select an option",searchPlaceholder:u,elementId:p,children:m,portal:h=!1,referenceElement:g=null,...y}=e,w=(0,s.f)({autoUpdate:!0,adjustToReferenceWidth:!!g,referenceElement:g}),$=w.toggle,x=a.useRef(null),k=(e=>{let{items:t,comparator:r,searchTermForItem:n}=e,[o,i]=a.useState(""),l=a.useMemo(()=>t.reduce((e,t)=>(e.set(t,n?.(t)),e),new Map),[t]),s=a.useMemo(()=>o?t.filter(e=>r(o,e,l.get(e))):t,[t,o]);return{searchInputProps:{onChange:e=>i(e.target.value||""),value:o},filteredItems:s}})({items:r,comparator:c||(()=>!0)}),C=a.useCallback(e=>{o?.(e),$()},[$,o]),P=(0,n.FD)(n.FK,{children:[(0,n.Y)(_,{}),(0,n.Y)(S,{})]});return(0,n.Y)(f.Provider,{value:{value:{popoverCtx:w,searchInputCtx:k,selectedOption:r.find(e=>e.value===t)||null,noResultsMessage:l,focusedItemRef:x,value:t,renderOption:i||b,buttonRenderOption:i||v,placeholder:d,searchPlaceholder:u,comparator:c,select:C,onTriggerClick:$,elementId:p,portal:h}},...y,children:a.Children.count(m)?m:P})}),w=a.memo(a.forwardRef((e,t)=>{let{option:r,renderOption:o,isSelected:s,index:c,handleSelect:d,isFocused:u,elementId:p}=e;return(0,n.Y)(i.so,{ref:t,sx:{userSelect:"none",cursor:"pointer"},onClick:()=>{d(r)},children:a.cloneElement(o(r,c,s),{elementDescriptor:l.$z.selectOption,elementId:l.$z.selectOption.setId(p),"data-selected":s,"data-focused":u})})})),$=e=>{let{sx:t,...r}=e;a.useEffect(()=>()=>e.onChange({target:{value:""}}),[]);let{elementId:o}=g();return(0,n.Y)(i.so,{sx:e=>({padding:e.space.$0x5}),children:(0,n.Y)(i.pd,{elementDescriptor:l.$z.selectSearchInput,elementId:l.$z.selectSearchInput.setId(o),focusRing:!1,variant:"unstyled",sx:[e=>({borderRadius:e.radii.$md,backgroundColor:e.colors.$neutralAlpha100,padding:e.space.$2}),t],...r})})},x=e=>{let{sx:t,...r}=e;return(0,n.Y)(i.EY,{as:"div",sx:[e=>({width:"100%",padding:`${e.space.$1} ${e.space.$2} ${e.space.$2} ${e.space.$2}`}),t],...r})},_=e=>{let{containerSx:t,sx:r,...o}=e,{popoverCtx:s,searchInputCtx:c,value:d,renderOption:m,searchPlaceholder:f,comparator:b,focusedItemRef:v,noResultsMessage:y,select:_,onTriggerClick:S,elementId:k,portal:C}=g(),{filteredItems:P,searchInputProps:A}=c,[z,I]=(0,a.useState)(0),{isOpen:D,floating:R,styles:Y,nodeId:E,context:T}=s,F=a.useRef(null);return a.useEffect(()=>{D?v.current?.scrollIntoView?.({block:"nearest"}):I(-1)},[z,D]),a.useEffect(()=>I(0),[P.length]),a.useEffect(()=>{if(b||F?.current?.focus(),D){I(P.findIndex(e=>e.value===d)),v.current?.scrollIntoView?.({block:"nearest"});return}},[D]),(0,n.Y)(h.A,{nodeId:E,context:T,isOpen:D,portal:C||!1,order:["content"],children:(0,n.FD)(i.so,{elementDescriptor:l.$z.selectOptionsContainer,elementId:l.$z.selectOptionsContainer.setId(k),ref:R,onKeyDown:e=>"ArrowUp"===e.key?(e.preventDefault(),D)?I((e=0)=>0===e?P.length-1:e-1):S():"ArrowDown"===e.key?(e.preventDefault(),D)?I((e=0)=>e===P.length-1?0:e+1):S():"Enter"===e.key&&z>=0?(e.preventDefault(),_(P[z])):void 0,direction:"col",justify:"start",sx:[e=>({backgroundColor:p.T.makeSolid(e.colors.$colorBackground),borderRadius:e.radii.$lg,overflow:"hidden",animation:`${u.W.dropdownSlideInScaleAndFade} ${e.transitionDuration.$slower} ${e.transitionTiming.$slowBezier}`,transformOrigin:"top center",boxShadow:e.shadows.$menuShadow,zIndex:e.zIndices.$dropdown}),r],style:{...Y,left:Y.left-1},children:[b&&(0,n.Y)($,{placeholder:f,...A}),(0,n.FD)(i.so,{ref:F,direction:"col",tabIndex:b?void 0:0,sx:[e=>({gap:e.space.$0x5,outline:"none",overflowY:"auto",maxHeight:"18vh",padding:`${e.space.$0x5} ${e.space.$0x5}`}),t],...o,children:[P.map((e,t)=>{let r=t===z,o=d===e.value;return(0,n.Y)(w,{index:t,ref:r?v:void 0,option:e,renderOption:m,isSelected:o,isFocused:r,handleSelect:_,elementId:k},e.value)}),y&&0===P.length&&(0,n.Y)(x,{children:y})]})]})})},S=e=>{let{sx:t,children:r,icon:o,iconSx:a,...s}=e,{popoverCtx:d,onTriggerClick:u,buttonRenderOption:p,selectedOption:m,placeholder:h,elementId:f}=g(),{reference:b}=d,v=r;return r||(v=m?p(m):(0,n.Y)(i.EY,{as:"span",sx:e=>({opacity:e.opacity.$inactive}),children:h})),(0,n.FD)(i.$n,{elementDescriptor:l.$z.selectButton,elementId:l.$z.selectButton.setId(f),ref:b,variant:"outline",textVariant:"buttonLarge",onClick:u,sx:[e=>({gap:e.space.$2,paddingLeft:e.space.$3x5,paddingRight:e.space.$3x5,alignItems:"center","> *":{pointerEvents:"none"}}),t],...s,children:[v,(0,n.Y)(i.In,{elementDescriptor:l.$z.selectButtonIcon,elementId:l.$z.selectButtonIcon.setId(f),size:"md",icon:o||c.A,sx:a})]})}},3226:function(e,t,r){r.d(t,{V:()=>y});var n=r(4518),o=r(1652),a=r(1210),i=r(5074),l=r(2660),s=r(6580),c=r(8272),d=r(8920),u=r(2861),p=r(2216),m=r(2229),h=r(7591),f=r(6735),g=r(8975),b=r(3269),v=r(2523);let y=i.memo(e=>{let{oauthCallback:t,web3Callback:r,alternativePhoneCodeCallback:i,enableOAuthProviders:g=!0,enableWeb3Providers:y=!0,enableAlternativePhoneCodeProviders:x=!0,idleAfterDelay:_=!0,showLastAuthenticationStrategy:S=!1}=e,{web3Strategies:k,authenticatableOauthStrategies:C,strategyToDisplayData:P,alternativePhoneCodeChannels:A}=(0,p.k)(),z=(0,m.F)(),I=(0,b.f0)(),D=(0,a.ho)(),{socialButtonsVariant:R}=(0,s.K)().parsedOptions,Y=[...g?C:[],...y?k:[],...x?A:[]];if(!Y.length)return null;let E=S?D.client?.lastAuthenticationStrategy:null,T=E?.startsWith("saml_")?E.replace("saml_","oauth_"):E,F=T&&Y.includes(T)?T:null,{strategyRows:L,lastAuthenticationStrategyPresent:M}=(0,v.a)([...Y],5,F),B=L.at(+!!M)?.length??0,O=M?Y.length-1:Y.length,j=!M&&2===Y.length,U="blockButton"===R||"iconButton"!==R&&Y.length<=2,W=async e=>{I.setLoading(e);try{e.startsWith("web3_")?await r(e):await t(e)}catch{await (0,f.y)(1e3),I.setIdle()}_&&(await (0,f.y)(5e3),I.setIdle())},H=U?$:w;return(0,n.Y)(c.so,{direction:"col",gap:2,elementDescriptor:d.$z.socialButtonsRoot,children:L.map((e,t)=>(0,n.Y)(c.xA,{elementDescriptor:d.$z.socialButtons,gap:2,sx:r=>({justifyContent:"center",[h.g.sm]:{gridTemplateColumns:j?"repeat(1, minmax(0, 1fr))":void 0},gridTemplateColumns:Y.length<1?"repeat(1, minmax(0, 1fr))":`repeat(${e.length}, ${0===t?"minmax(0, 1fr)":`minmax(0, calc((100% - (${B} - 1) * ${r.sizes.$2}) / ${B}))`})`}),children:e.map(t=>{let r=1===O||t===F&&1===e.length,a=r?`Continue with ${P[t].name}`:P[t].name,s=r?(0,u.G)("socialButtonsBlockButton",{provider:P[t].name}):(0,u.G)("socialButtonsBlockButtonManyInView",{provider:P[t].name}),p=P[t].iconUrl?(0,n.Y)(c._V,{elementDescriptor:[d.$z.providerIcon,d.$z.socialButtonsProviderIcon],elementId:d.$z.socialButtonsProviderIcon.setId(P[t].id),isLoading:I.loadingMetadata===t,isDisabled:I.isLoading,src:P[t].iconUrl,alt:`Sign in with ${P[t].name}`,sx:e=>({width:e.sizes.$4,height:"auto",maxWidth:"100%"})}):(0,n.Y)(l.T,{id:P[t].id,value:P[t].name,isLoading:I.loadingMetadata===t,isDisabled:I.isLoading});return(0,n.Y)(H,{id:P[t].id,onClick:async()=>{(0,o.y)(t)?i(t):await W(t)},isLoading:I.loadingMetadata===t,isDisabled:I.isLoading,label:a,textLocalizationKey:s,icon:p,lastAuthenticationStrategy:t===F&&z>1},t)})},e.join("-")))})}),w=(0,i.forwardRef)((e,t)=>{let{icon:r,label:o,id:a,textLocalizationKey:i,lastAuthenticationStrategy:l,...s}=e;return l?(0,n.Y)($,{...e,ref:t}):(0,n.Y)(c.$n,{ref:t,elementDescriptor:d.$z.socialButtonsIconButton,elementId:d.$z.socialButtonsIconButton.setId(a),textVariant:"buttonLarge",variant:"outline",colorScheme:"neutral",hoverAsFocus:!0,sx:e=>({minHeight:e.sizes.$8,width:"100%"}),...s,children:r})}),$=(0,i.forwardRef)((e,t)=>{let{id:r,icon:o,isLoading:a,label:l,textLocalizationKey:s,lastAuthenticationStrategy:u,...p}=e,m=(0,i.isValidElement)(o);return(0,n.FD)(c.dF,{elementDescriptor:d.$z.socialButtonsBlockButton,elementId:d.$z.socialButtonsBlockButton.setId(r),variant:"outline",block:!0,isLoading:a,hoverAsFocus:!0,ref:t,...p,sx:t=>[{gap:t.space.$4,position:"relative",justifyContent:"flex-start"},e.sx],children:[u&&(0,n.Y)(g.j,{overlay:!0}),(0,n.FD)(c.so,{justify:"center",align:"center",as:"span",gap:3,sx:{width:"100%",overflow:"hidden"},children:[(a||o)&&(0,n.Y)(c.so,{as:"span",center:!0,sx:e=>({flex:`0 0 ${e.space.$4}`}),children:a?(0,n.Y)(c.y$,{size:"sm",elementDescriptor:d.$z.spinner}):!m&&o?(0,n.Y)(c.In,{icon:o,sx:[e=>({color:e.colors.$neutralAlpha600,width:e.sizes.$4,position:"absolute"})]}):o}),(0,n.Y)(c.EY,{elementDescriptor:d.$z.socialButtonsBlockButtonText,elementId:d.$z.socialButtonsBlockButtonText.setId(r),as:"span",truncate:!0,variant:"buttonLarge",localizationKey:s,children:l})]})]})})},6370:function(e,t,r){r.d(t,{B:()=>d});var n=r(4518);r(5074);var o=r(8272),a=r(8920),i=r(1550),l=r(2861),s=r(1475),c=r(6153);let d=e=>{let{text:t,title:r,finishLabel:d,onFinish:u,contents:p,...m}=e,{navigateToFlowStart:h}=(0,i.C)();return(0,n.FD)(o.fv,{...m,gap:4,children:[(0,n.Y)(c.Y.Root,{children:(0,n.Y)(c.Y.Title,{localizationKey:r,textVariant:"subtitle"})}),(0,n.Y)(o.fv,{gap:4,children:Array.isArray(t)?t.map(e=>(0,n.Y)(o.EY,{localizationKey:e,colorScheme:"secondary",sx:e=>({display:"inline",":not(:last-of-type)":{marginRight:e.sizes.$1}})},e.key)):(0,n.Y)(o.EY,{localizationKey:t,colorScheme:"secondary"})}),p,(0,n.Y)(s.c,{children:(0,n.Y)(o.$n,{autoFocus:!0,localizationKey:d||(0,l.G)("userProfile.formButtonPrimary__finish"),elementDescriptor:a.$z.formButtonPrimary,onClick:u||h})})]})}},8511:function(e,t,r){r.d(t,{d:()=>s});var n=r(4518),o=r(5074),a=r(8272),i=r(8920),l=r(1464);let s=(0,o.forwardRef)(({isChecked:e,defaultChecked:t,onChange:r,isDisabled:s=!1,label:c},d)=>{let[u,p]=(0,o.useState)(!!t),m=void 0!==e,h=m?e:u;return(0,n.FD)(a.so,{ref:d,elementDescriptor:i.$z.switchRoot,direction:"row",align:"center",as:"label",sx:e=>({isolation:"isolate",width:"fit-content","&:has(input:focus-visible) > input + span":{...l.s.focusRingStyles(e)}}),children:[(0,n.Y)("input",{type:"checkbox",role:"switch",disabled:s,defaultChecked:t,checked:h,onChange:e=>{s||(m||p(e.target.checked),r?.(e.target.checked))},style:{...l.s.visuallyHidden()}}),(0,n.Y)(a.so,{elementDescriptor:i.$z.switchIndicator,as:"span","data-checked":h,sx:e=>({width:e.sizes.$6,height:e.sizes.$4,alignItems:"center",position:"relative",backgroundColor:h?e.colors.$primary500:e.colors.$neutralAlpha150,borderRadius:999,transition:"background-color 0.2s",opacity:s?.6:1,cursor:s?"not-allowed":"pointer",outline:"none",boxSizing:"border-box",boxShadow:"0px 0px 0px 1px rgba(0, 0, 0, 0.06) inset"}),children:(0,n.Y)(a.so,{as:"span",elementDescriptor:i.$z.switchThumb,sx:e=>({position:"absolute",left:e.sizes.$0x5,width:e.sizes.$3,height:e.sizes.$3,borderRadius:"50%",backgroundColor:e.colors.$colorBackground,boxShadow:e.shadows.$switchControl,transform:`translateX(${h?e.sizes.$2:0})`,transition:"transform 0.2s",zIndex:1})})}),(0,n.Y)(a.EY,{as:"span",variant:"caption",colorScheme:"secondary",localizationKey:c,sx:e=>({paddingInlineStart:e.sizes.$2,cursor:s?"not-allowed":"pointer",userSelect:"none"})})]})});s.displayName="Switch"},5073:function(e,t,r){r.d(t,{T2:()=>g,Kp:()=>b,j7:()=>h,oz:()=>f,tU:()=>m});var n=r(4518),o=r(1210),a=r(5074),i=r(8272),l=r(8920),s=r(78);function c(e){return a.Children.toArray(e).filter(e=>a.isValidElement(e))}let[d,u]=(0,o.e3)("TabsContext"),p=e=>{let t=a.useMemo(()=>({value:e.value}),[e.value.selectedIndex,e.value.setFocusedIndex]);return(0,n.Y)(d.Provider,{value:t,children:e.children})},m=e=>{let{value:t,onChange:r,defaultIndex:o=0,children:i}=e,[l,s]=a.useState(o),[c,d]=a.useState(-1),u=a.useCallback(e=>{r?r(e):s(e)},[r]);return(0,n.Y)(p,{value:{selectedIndex:void 0!==t?t:l,setSelectedIndex:u,focusedIndex:c,setFocusedIndex:d},children:i})},h=e=>{let{children:t,sx:r,...o}=e,{setSelectedIndex:s,selectedIndex:d,setFocusedIndex:p}=u(),m=0,h=c(t).map(e=>{let t=a.cloneElement(e,{tabIndex:e.type===f?m:void 0});return m++,t});return(0,n.Y)(i.so,{elementDescriptor:l.$z.tabListContainer,onKeyDown:e=>{let t=h.filter(e=>!e.props?.isDisabled&&e.type===f).map(e=>e.props.tabIndex),r=t.length,n=t.indexOf(d);if("ArrowLeft"===e.key){let e=0===n?t[r-1]:t[n-1];return p(e),s(e)}if("ArrowRight"===e.key){let e=r-1===n?t[0]:t[n+1];return p(e),s(e)}},role:"tablist",sx:[e=>({borderBottomStyle:e.borderStyles.$solid,borderBottomWidth:e.borderWidths.$normal,borderColor:e.colors.$borderAlpha100}),r],...o,children:h})},f=e=>{let{t}=(0,s._)(),{children:r,sx:o,tabIndex:c,isDisabled:d,localizationKey:p,...m}=e;if(void 0===c)throw Error("Tab component must be a direct child of TabList.");let{setSelectedIndex:h,selectedIndex:f,focusedIndex:g,setFocusedIndex:b}=u(),v=a.useRef(null),y=c===f,w=c===g;return a.useEffect(()=>{d&&0===c&&h(c+1)},[]),a.useEffect(()=>{v.current&&w&&v.current.focus()},[w]),(0,n.FD)(i.$n,{elementDescriptor:l.$z.tabButton,onClick:()=>{h(c),b(-1)},isDisabled:d,tabIndex:y?0:-1,variant:"ghost","aria-selected":y,id:`cl-tab-${c}`,"aria-controls":`cl-tabpanel-${c}`,role:"tab",ref:v,sx:[e=>({background:e.colors.$transparent,color:y?e.colors.$primary500:e.colors.$neutralAlpha700,gap:e.space.$1x5,fontWeight:e.fontWeights.$medium,borderBottomWidth:y?e.borderWidths.$normal:0,borderBottomStyle:e.borderStyles.$solid,borderBottomColor:e.colors.$primary500,marginBottom:y?"-1px":0,borderRadius:0,padding:`${e.space.$2x5} ${e.space.$0x25}`,width:"fit-content","&:hover, :focus":{backgroundColor:e.colors.$transparent,boxShadow:"none"}}),o],...m,children:[t(p),r]})},g=e=>{let{children:t}=e,r=c(t).map((e,t)=>a.cloneElement(e,{tabIndex:t}));return(0,n.Y)(n.FK,{children:r})},b=e=>{let{tabIndex:t,sx:r,children:o,...a}=e;if(void 0===t)throw Error("TabPanel component must be a direct child of TabPanels.");let{selectedIndex:s}=u();return t!==s?null:(0,n.Y)(i.so,{elementDescriptor:l.$z.tabPanel,id:`cl-tabpanel-${t}`,role:"tabpanel",tabIndex:0,"aria-labelledby":`cl-tab-${t}`,sx:[{outline:0},r],...a,children:o})}},6212:function(e,t,r){r.d(t,{F:()=>u});var n=r(4518),o=r(5074),a=r(78),i=r(8272),l=r(8920),s=r(9679),c=r(1464);let d=e=>e.trim(),u=e=>{let{t}=(0,a._)(),{sx:r,placeholder:s,validate:u=()=>!0,value:m,onChange:h,autoFocus:f,validateUnsubmittedEmail:g=()=>null,...b}=e,v=m.split(",").map(d).filter(Boolean),y=new Set(v),w=o.useRef(!0),$=o.useRef(null),[x,_]=o.useState(""),S=e=>{h({target:{value:e.join(",")}}),C(),g("")},k=e=>{let t=(Array.isArray(e)?[...e]:[e]).map(d).filter(Boolean).filter(u).filter(e=>!y.has(e));t.length&&(S([...v,...t]),_(""),C())},C=()=>{$.current?.focus()};return(0,n.FD)(i.so,{elementDescriptor:l.$z.tagInputContainer,align:"start",gap:2,wrap:"wrap",onClick:C,onFocus:C,sx:[e=>({maxWidth:"100%",padding:`${e.space.$1x5} ${e.space.$2}`,backgroundColor:e.colors.$colorInput,color:e.colors.$colorInputForeground,minHeight:e.sizes.$20,maxHeight:e.sizes.$60,overflowY:"auto",cursor:"text",justifyItems:"center",...c.s.borderVariants(e,{hoverStyles:!0}).normal}),r],...b,children:[v.map(e=>(0,n.Y)(p,{onRemoveClick:()=>{S(v.filter(t=>t!==e))},children:e},e)),(0,n.Y)(i.pd,{ref:$,value:x,type:"email","data-testid":"tag-input",placeholder:v.length?void 0:t(s),onKeyDown:e=>{let{key:t}=e;(","===t||" "===t||"Enter"===t)&&x.length?(e.preventDefault(),k(x)):"Backspace"===t&&!x.length&&v.length&&w.current&&(e.preventDefault(),S(v.slice(0,-1))),w.current=!1},onKeyUp:()=>{w.current=!0},onChange:e=>{_(e.target.value),g(e.target.value)},onPaste:e=>{e.preventDefault(),k((e.clipboardData.getData("text")||"").split(/,| |\n|\t/).filter(Boolean).map(e=>e.trim()))},onBlur:e=>{e.preventDefault(),k(x)},focusRing:!1,autoFocus:f,variant:"unstyled",sx:e=>({flexGrow:1,borderWidth:0,width:"initial",padding:0,lineHeight:e.space.$5,paddingLeft:e.space.$1,"::placeholder":{color:e.colors.$colorMutedForeground},boxShadow:"none",":hover":{boxShadow:"none"}})})]})},p=e=>{let{onRemoveClick:t,children:r,...o}=e;return(0,n.FD)(i.so,{elementDescriptor:l.$z.tagPillContainer,onClick:t,gap:1,center:!0,...o,sx:e=>({padding:`${e.space.$0x5} ${e.space.$1x5}`,borderRadius:e.radii.$sm,color:e.colors.$primary500,backgroundColor:e.colors.$neutralAlpha50,boxShadow:e.shadows.$badge,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha100,display:"inline-flex",marginRight:"1px",cursor:"pointer",":hover":{backgroundColor:e.colors.$neutralAlpha100},":hover svg":{color:e.colors.$danger500},overflow:"hidden"}),children:[(0,n.Y)(i.EY,{truncate:!0,variant:"buttonSmall",children:r}),(0,n.Y)(i.In,{elementDescriptor:l.$z.tagPillIcon,size:"md",icon:s.A,sx:e=>({color:e.colors.$colorMutedForeground,transform:"translateY(0px) rotate(45deg)"})})]})}},8080:function(e,t,r){r.d(t,{o:()=>u});var n,o=r(4518),a=r(8272),i=r(8920),l=r(5074);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let c=function(e){return l.createElement("svg",s({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),n||(n=l.createElement("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"},l.createElement("path",{d:"M10.01 10H10M4.01 10H4M16.01 10H16"}))))};var d=r(4365);let u=e=>{let{actions:t,elementId:r,variant:n}=e,l="bordered"===n;return(0,o.FD)(d.W1,{elementId:r,children:[(0,o.Y)(d.cQ,{arialLabel:e=>`${e?"Close":"Open"} menu`,children:(0,o.Y)(a.$n,{sx:e=>l?{width:e.sizes.$6,height:e.sizes.$6}:{padding:e.space.$0x5,boxSizing:"content-box",opacity:e.opacity.$inactive,":hover,:focus-visible":{opacity:1}},variant:l?"bordered":"ghost",colorScheme:l?"secondary":"neutral",elementDescriptor:[i.$z.menuButton,l?i.$z.menuButtonEllipsisBordered:i.$z.menuButtonEllipsis],children:(0,o.Y)(a.In,{icon:c,sx:e=>l?{width:e.sizes.$4,height:e.sizes.$4,opacity:e.opacity.$inactive}:{width:"auto",height:e.sizes.$5}})})}),(0,o.Y)(d.cO,{children:t.map((e,t)=>(0,o.Y)(d.Dr,{destructive:e.isDestructive,onClick:e.onClick,isDisabled:e.isDisabled,localizationKey:e.label},t))})]})}},1829:function(e,t,r){r.d(t,{M:()=>s});var n=r(4518),o=r(1210),a=r(5074),i=r(78),l=r(8272);let s=e=>{let{t}=(0,i._)(),{onClick:r,throttleTimeInSec:s=30,startDisabled:c,children:d,localizationKey:u,showCounter:p=!0,...m}=e,[h,f]=a.useState(0),g=a.useRef(void 0);(0,o.UQ)(()=>{c&&b()},[]),(0,a.useEffect)(()=>()=>clearInterval(g.current),[]);let b=()=>{f(s),g.current=window.setInterval(()=>{f(e=>(1===e&&clearInterval(g.current),e-1))},1e3)};return(0,n.FD)(l.$n,{variant:"link",...m,textVariant:"buttonSmall",isDisabled:h>0||e.isDisabled,onClick:e=>{h||(r?.(e),b())},children:[t(u)||d,h&&p?` (${h})`:""]})}},6455:function(e,t,r){r.d(t,{m_:()=>h});var n=r(4518),o=r(2119),a=r(6836),i=r(4166),l=r(5074),s=r(6580),c=r(8272),d=r(8920),u=r(359);let p=l.createContext(null),m=()=>{let e=l.useContext(p);if(null==e)throw Error("Tooltip components must be wrapped in <Tooltip />");return e},h={Root:function({children:e,...t}){let r=function({initialOpen:e=!1,placement:t="top",open:r,onOpenChange:n}={}){let[c,d]=l.useState(e),p=r??c,m=n??d,h=(0,u.j)(),{animations:f}=(0,s.K)().parsedOptions,g=(0,o.we)({placement:t,open:p,onOpenChange:m,whileElementsMounted:a.ll,middleware:[(0,i.cY)(6),(0,i.UU)({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:6}),(0,i.BN)({padding:6})]}),b=g.context,v=(0,o.Mk)(b,{move:!1,enabled:null==r}),y=(0,o.iQ)(b,{enabled:null==r}),w=(0,o.s9)(b),$=(0,o.It)(b,{role:"tooltip"}),{isMounted:x,styles:_}=(0,o.DL)(b,{duration:200*!!(!h&&!0===f),initial:({side:e})=>({opacity:0,transform:"top"===e?"translateY(4px)":"translateY(-4px)"}),open:{opacity:1,transform:"translate(0)"},close:({side:e})=>({opacity:0,transform:"top"===e?"translateY(4px)":"translateY(-4px)"})}),S=(0,o.bv)([v,y,w,$]);return l.useMemo(()=>({open:p,setOpen:m,isMounted:x,...S,...g,transitionStyles:_}),[p,m,S,g,x,_])}(t);return(0,n.Y)(p.Provider,{value:r,children:e})},Trigger:l.forwardRef(function({children:e,sx:t,...r},a){let i=m(),s=e.ref,d=(0,o.SV)([i.refs.setReference,a,s]);return l.isValidElement(e)?e.props.isDisabled||e.props.disabled?(0,n.Y)(c.L9,{ref:d,...i.getReferenceProps({...r}),"data-state":i.open?"open":"closed",sx:[{width:"fit-content",display:"inline-block",cursor:"not-allowed",outline:"none"},t],tabIndex:0,children:e}):l.cloneElement(e,i.getReferenceProps({ref:d,...r,...e.props,"data-state":i.open?"open":"closed"})):null}),Content:l.forwardRef(function({style:e,text:t,sx:r,...a},i){let l=m(),s=(0,o.SV)([l.refs.setFloating,i]);return l.isMounted?(0,n.Y)(o.XF,{children:(0,n.Y)(c.az,{ref:s,elementDescriptor:d.$z.tooltip,style:{...l.floatingStyles,...e},...l.getFloatingProps(a),children:(0,n.Y)(c.az,{elementDescriptor:d.$z.tooltipContent,style:l.transitionStyles,sx:[e=>({paddingBlock:e.space.$1,paddingInline:e.space.$1x5,borderRadius:e.radii.$md,backgroundColor:e.colors.$black,color:e.colors.$white,maxWidth:e.sizes.$60}),r],children:(0,n.Y)(c.EY,{elementDescriptor:d.$z.tooltipText,localizationKey:t,variant:"body",colorScheme:"inherit"})})})}):null})}},9538:function(e,t,r){r.d(t,{H:()=>i});var n=r(4518),o=r(8095),a=r(6195);let i=e=>{let{name:t,firstName:r,lastName:i,avatarUrl:l,imageUrl:s,...c}=e,d=(0,o.dS)({name:t,firstName:r,lastName:i}),u=(0,o.IM)({name:t,firstName:r,lastName:i});return(0,n.Y)(a.e,{title:d,initials:u,imageUrl:l||s,...c})}},9345:function(e,t,r){r.d(t,{c:()=>c});var n=r(4518),o=r(8095);r(5074);var a=r(78),i=r(8272),l=r(8920),s=r(9538);let c=e=>{let{user:t,externalAccount:r,enterpriseAccount:c,size:d="md",showAvatar:u=!0,icon:p,iconSx:m,rounded:h=!0,imageUrl:f,badge:g,elementId:b,sx:v,title:y,subtitle:w,avatarSx:$,mainIdentifierSx:x,mainIdentifierVariant:_,subtitleProps:S,...k}=e,{t:C}=(0,a._)(),P=(0,o.dS)({...t})||(0,o.dS)({...r})||(0,o.dS)({...c}),A=(0,o.Cm)({...t})||r?.accountIdentifier?.()||c?.emailAddress,z=C(y),I=f||t?.imageUrl||r?.imageUrl,D=e=>({xs:e.sizes.$5,sm:e.sizes.$8,md:e.sizes.$9,lg:e.sizes.$12})[d],R=z||P||A;return(0,n.FD)(i.so,{elementDescriptor:l.$z.userPreview,elementId:l.$z.userPreview.setId(b),align:"center",as:"span",sx:[e=>({minWidth:"0px",width:"fit-content",gap:e.space.$4,minHeight:I&&!u?D(e):void 0}),v],...k,children:[I&&u?(0,n.FD)(i.so,{elementDescriptor:l.$z.userPreviewAvatarContainer,elementId:l.$z.userPreviewAvatarContainer.setId(b),justify:"center",as:"span",sx:{position:"relative"},children:[(0,n.Y)(s.H,{boxElementDescriptor:l.$z.userPreviewAvatarBox,imageElementDescriptor:l.$z.userPreviewAvatarImage,...t,...r,...c,name:P,avatarUrl:I,size:D,sx:$,rounded:h}),p&&(0,n.Y)(i.so,{elementDescriptor:l.$z.userPreviewAvatarIcon,sx:[{position:"absolute",left:0,bottom:0},m],as:"span",children:p})]}):null,(0,n.FD)(i.so,{elementDescriptor:l.$z.userPreviewTextContainer,elementId:l.$z.userPreviewTextContainer.setId(b),direction:"col",justify:"center",as:"span",sx:{minWidth:"0px",textAlign:"left"},children:[(0,n.FD)(i.EY,{elementDescriptor:l.$z.userPreviewMainIdentifier,elementId:l.$z.userPreviewMainIdentifier.setId(b),variant:_||({xs:"subtitle",sm:"caption",md:"subtitle",lg:"h1"})[d],as:"span",sx:[e=>({display:"flex",gap:e.sizes.$1,alignItems:"center"}),x],children:[R&&(0,n.Y)(i.EY,{elementDescriptor:l.$z.userPreviewMainIdentifierText,elementId:l.$z.userPreviewMainIdentifierText.setId(b),as:"span",truncate:!0,sx:{fontWeight:"inherit"},children:R}),g]}),(w||P&&A)&&(0,n.Y)(i.EY,{elementDescriptor:l.$z.userPreviewSecondaryIdentifier,elementId:l.$z.userPreviewSecondaryIdentifier.setId(b),truncate:!0,as:"span",localizationKey:w||A,colorScheme:"secondary",...S})]})]})}},7912:function(e,t,r){r.d(t,{j:()=>m});var n=r(4518);r(5074);var o=r(8272),a=r(8920),i=r(2861),l=r(6088),s=r(3356),c=r(3269),d=r(2454),u=r(6153),p=r(196);let m=e=>{let{showAlternativeMethods:t=!0,cardNotice:r,children:m}=e,h=(0,c.f0)(),f=(0,s.xM)({onCodeEntryFinished:(t,r,n)=>{e.onCodeEntryFinishedAction(t,r,n)},onResendCodeClicked:e.onResendCodeClicked});return(0,n.FD)(l.Z.Root,{children:[(0,n.FD)(l.Z.Content,{children:[(0,n.FD)(u.Y.Root,{children:[(0,n.Y)(u.Y.Title,{localizationKey:e.cardTitle}),(0,n.Y)(u.Y.Subtitle,{localizationKey:e.cardSubtitle}),(0,n.Y)(p.$,{identifier:e.safeIdentifier,avatarUrl:e.profileImageUrl,onClick:e.onBackLinkClicked?void 0:e.onIdentityPreviewEditClicked})]}),(0,n.Y)(l.Z.Alert,{children:h.error}),m,(0,n.FD)(o.fv,{elementDescriptor:a.$z.main,gap:8,children:[(0,n.Y)(d.l.OTPInput,{...f,label:e.inputLabel,resendButton:e.resendButton}),r&&(0,n.Y)(o.Fc,{colorScheme:"warning",children:(0,n.Y)(o.EY,{colorScheme:"warning",localizationKey:r,variant:"caption"})}),(0,n.FD)(o.fv,{gap:3,children:[(0,n.Y)(o.$n,{elementDescriptor:a.$z.formButtonPrimary,block:!0,hasArrow:!0,isLoading:f.isLoading,localizationKey:(0,i.G)("formButtonPrimary"),onClick:f.onFakeContinue}),t&&e.onShowAlternativeMethodsClicked&&(0,n.Y)(l.Z.Action,{elementId:"alternativeMethods",children:(0,n.Y)(l.Z.ActionLink,{localizationKey:e.alternativeMethodsLabel??(0,i.G)("footerActionLink__useAnotherMethod"),onClick:e.onShowAlternativeMethodsClicked})})]})]})]}),(0,n.Y)(l.Z.Footer,{})]})}},2027:function(e,t,r){r.d(t,{_:()=>h,i:()=>f});var n=r(4518);r(5074);var o=r(4607),a=r(8272),i=r(2861),l=r(8920),s=r(4964),c=r(6088),d=r(3269),u=r(6153),p=r(196),m=r(1829);let h=e=>{let{navigate:t}=(0,s.r)(),r=(0,d.f0)();return(0,n.Y)(o.n.Part,{part:"emailLinkVerify",children:(0,n.FD)(c.Z.Root,{children:[(0,n.FD)(c.Z.Content,{children:[(0,n.FD)(u.Y.Root,{showLogo:!0,children:[(0,n.Y)(u.Y.Title,{localizationKey:e.cardTitle}),(0,n.FD)(f,{formSubtitle:e.formSubtitle,resendButton:e.resendButton,onResendCodeClicked:e.onResendCodeClicked,children:[" ",(0,n.Y)(p.$,{identifier:e.safeIdentifier,avatarUrl:e.profileImageUrl,onClick:()=>t("../")})]})]}),(0,n.Y)(c.Z.Alert,{children:r.error}),e.cardNotice&&(0,n.Y)(a.Fc,{colorScheme:"warning",children:(0,n.Y)(a.EY,{colorScheme:"warning",localizationKey:e.cardNotice,variant:"caption"})}),(0,n.Y)(c.Z.Action,{elementId:"alternativeMethods",children:e.onShowAlternativeMethodsClicked&&(0,n.Y)(c.Z.ActionLink,{localizationKey:(0,i.G)("footerActionLink__useAnotherMethod"),onClick:e.onShowAlternativeMethodsClicked})})]}),(0,n.Y)(c.Z.Footer,{})]})})},f=e=>{let t=(0,d.f0)();return(0,n.FD)(a.fv,{elementDescriptor:l.$z.form,gap:1,children:[(0,n.FD)(a.fv,{elementDescriptor:l.$z.formHeader,gap:1,children:[!!e.formSubtitle&&(0,n.Y)(a.EY,{localizationKey:e.formSubtitle,elementDescriptor:l.$z.formHeaderSubtitle,colorScheme:"secondary"}),e.children]}),(0,n.Y)(m.M,{localizationKey:e.resendButton,elementDescriptor:l.$z.formResendCodeLink,onClick:e.onResendCodeClicked,startDisabled:!0,isDisabled:t.isLoading,throttleTimeInSec:60,sx:e=>({marginTop:e.space.$4,width:"100%"})})]})}},6464:function(e,t,r){r.d(t,{Web3SolanaWalletButtons:()=>k});var n=r(4518),o=r(6198),a=r(3515),i=r(3480),l=r(5681),s=r(6137),c=r(5074),d=r(8272),u=r(8920),p=r(1464);let m=e=>{let{value:t,id:r,...o}=e;return(0,n.Y)(d.az,{as:"span",elementDescriptor:[u.$z.walletIcon,u.$z.web3SolanaWalletButtonsWalletInitialIcon],elementId:u.$z.web3SolanaWalletButtonsWalletInitialIcon.setId(r),sx:e=>({...p.s.centeredFlex("inline-flex"),width:e.space.$4,height:e.space.$4,borderRadius:e.radii.$sm,color:e.colors.$colorPrimaryForeground,backgroundColor:e.colors.$primary500}),...o,children:(0,n.Y)(d.EY,{as:"span",variant:"buttonSmall",sx:{...p.s.centeredFlex("inline-flex"),width:"100%"},children:t[0].toUpperCase()??""})})};var h=r(78),f=r(2861),g=r(6088),b=r(3269),v=r(6997),y=r(2523),w=r(7591),$=r(6735);let x=({web3AuthCallback:e})=>{let t=(0,b.f0)(),{wallets:r}=(0,a.v)(),{t:i}=(0,h._)(),l=c.useMemo(()=>r.filter(e=>e.readyState===o.Ok.Installed).map(e=>({name:e.adapter.name,icon:e.adapter.icon})),[r]),{strategyRows:s}=(0,y.a)(l,5,void 0),p=s.at(0)?.length??0,x=2===l.length,k=l.length<=2?S:_;return 0===l.length?(0,n.Y)(g.Z.Alert,{children:(0,n.Y)(v._,{text:i((0,f.G)("web3SolanaWalletButtons.noneAvailable",{solanaWalletsLink:"https://solana.com/solana-wallets"})),isExternal:!0,sx:e=>({textDecoration:"underline",textUnderlineOffset:e.space.$1,color:"inherit"})})}):(0,n.Y)(d.so,{direction:"col",gap:2,elementDescriptor:u.$z.web3SolanaWalletButtonsRoot,children:s.map((o,a)=>(0,n.Y)(d.xA,{elementDescriptor:u.$z.web3SolanaWalletButtons,gap:2,sx:e=>({justifyContent:"center",[w.g.sm]:{gridTemplateColumns:x?"repeat(1, minmax(0, 1fr))":void 0},gridTemplateColumns:r.length<1?"repeat(1, minmax(0, 1fr))":`repeat(${o.length}, ${0===a?"minmax(0, 1fr)":`minmax(0, calc((100% - (${p} - 1) * ${e.sizes.$2}) / ${p}))`})`}),children:o.map(r=>{let o,a=1===l.length?(0,f.G)("web3SolanaWalletButtons.continue",{walletName:r.name}):r.name,s=r.icon?(0,n.Y)(d._V,{elementDescriptor:[u.$z.walletIcon,u.$z.web3SolanaWalletButtonsWalletInitialIcon],isDisabled:t.isLoading,isLoading:t.loadingMetadata===r.name,src:r.icon,alt:i((0,f.G)("web3SolanaWalletButtons.connect",{walletName:r.name})),sx:e=>({width:e.sizes.$4,height:"auto",maxWidth:"100%"})}):(0,n.Y)(m,{value:r.name,isDisabled:t.isLoading,id:r.name});return(0,n.Y)(k,{id:r.name,onClick:(o=r.name,async()=>{t.setLoading(o);try{await e({walletName:o})}catch{await (0,$.y)(1e3)}finally{t.setIdle()}}),isLoading:t.loadingMetadata===r.name,isDisabled:t.isLoading,label:i(a),icon:s},r.name)})},o.map(e=>e.name).join("-")))})},_=(0,c.forwardRef)((e,t)=>{let{icon:r,label:o,id:a,...i}=e;return(0,n.Y)(d.$n,{ref:t,"aria-label":o,textVariant:"buttonLarge",variant:"outline",colorScheme:"neutral",hoverAsFocus:!0,sx:e=>({minHeight:e.sizes.$8,width:"100%"}),...i,children:r})}),S=(0,c.forwardRef)((e,t)=>{let{id:r,icon:o,isLoading:a,label:i,...l}=e,s=(0,c.isValidElement)(o);return(0,n.Y)(d.dF,{variant:"outline",block:!0,isLoading:a,hoverAsFocus:!0,ref:t,...l,sx:t=>[{gap:t.space.$4,position:"relative",justifyContent:"flex-start"},e.sx],children:(0,n.FD)(d.so,{justify:"center",align:"center",as:"span",gap:3,sx:{width:"100%",overflow:"hidden"},children:[(a||o)&&(0,n.Y)(d.so,{as:"span",center:!0,sx:e=>({flex:`0 0 ${e.space.$4}`}),children:a?(0,n.Y)(d.y$,{size:"sm",elementDescriptor:u.$z.spinner}):!s&&o?(0,n.Y)(d.In,{icon:o,sx:[e=>({color:e.colors.$neutralAlpha600,width:e.sizes.$4,position:"absolute"})]}):o}),(0,n.Y)(d.EY,{as:"span",truncate:!0,variant:"buttonLarge",children:i})]})})}),k=e=>{let t=s.RU,r=(0,c.useMemo)(()=>[],[t]);return(0,n.Y)(i.S,{endpoint:t,children:(0,n.Y)(l.r,{wallets:r,onError:e=>{console.error(e)},children:(0,n.Y)(x,{web3AuthCallback:e.web3AuthCallback})})})}},3269:function(e,t,r){r.d(t,{FlowMetadataProvider:()=>g,P4:()=>b,PB:()=>f,dm:()=>m,f0:()=>p});var n=r(4518),o=r(1210),a=r(2119),i=r(5074),l=r(4964),s=r(78);let[c,d]=(0,o.e3)("CardState"),u=e=>{let{translateError:t}=(0,s._)(),r=(0,l.r)(),[o,a]=i.useState(()=>({status:"idle",metadata:void 0,error:t(window?.Clerk?.__internal_last_error||void 0)}));i.useEffect(()=>{let e=window?.Clerk?.__internal_last_error;e&&a(r=>({...r,error:t(e)}))},[t,a,r.currentPath]);let d=i.useMemo(()=>({value:{state:o,setState:a}}),[o,a]);return(0,n.Y)(c.Provider,{value:d,children:e.children})},p=()=>{let{state:e,setState:t}=d(),{translateError:r}=(0,s._)(),n=e=>t(t=>({...t,status:"idle",metadata:e})),o=e=>t(t=>({...t,status:"loading",metadata:e})),a=async(e,t)=>(o(t),("function"==typeof e?e():e).then(e=>e).finally(()=>n(t)));return{setIdle:n,setError:e=>t(t=>({...t,error:r(e)})),setLoading:o,runAsync:a,loadingMetadata:"loading"===e.status?e.metadata:void 0,error:e.error?e.error:void 0,isLoading:"loading"===e.status,isIdle:"idle"===e.status,state:e}},m=e=>t=>(0,n.Y)(u,{children:(0,n.Y)(e,{...t})}),[h,f]=(0,o.e3)("FlowMetadata"),g=e=>{let{flow:t,part:r}=e,o=i.useMemo(()=>({value:e}),[t,r]);return(0,n.Y)(h.Provider,{value:o,children:e.children})},b=e=>t=>null==(0,a.R1)()?(0,n.Y)(a.P6,{children:(0,n.Y)(e,{...t})}):(0,n.Y)(e,{...t})},2523:function(e,t,r){r.d(t,{a:()=>function e(t,r,n){if(n&&t.includes(n)){let o=t.filter(e=>e!==n);return 0===o.length?{strategyRows:[[n]],lastAuthenticationStrategyPresent:!0}:{strategyRows:[[n],...e(o,r,null).strategyRows],lastAuthenticationStrategyPresent:!0}}if(t.length<=r)return{strategyRows:[t],lastAuthenticationStrategyPresent:!1};let o=Math.ceil(t.length/r),a=Math.ceil(t.length/o),i=Array.from({length:o},()=>[]),l=0;for(let e of t)i[l].push(e),i[l].length===a&&l++;return{strategyRows:i,lastAuthenticationStrategyPresent:!1}}})},1778:function(e,t,r){r.d(t,{H:()=>i});var n=r(4518),o=r(5074),a=r(6580);let i=e=>(0,o.forwardRef)((t,r)=>{let{parsedOptions:o}=(0,a.K)();return(0,n.Y)(e,{...t,ref:r,sx:[o.shimmer?{":hover":{"--cl-shimmer-hover-transform":"skew(-45deg) translateX(600%)","--cl-shimmer-hover-after-transform":"skewX(45deg) translateX(-150%)"}}:{},t.sx]})})},4091:function(e,t,r){r.d(t,{KP:()=>o,Rx:()=>a,_8:()=>i,wz:()=>n});let n=Object.freeze({slowest:600,slower:280,slow:200,fast:120,focusRing:200,controls:100,textField:450,drawer:500}),o=Object.freeze(Object.fromEntries(Object.entries(n).map(([e,t])=>[e,`${t}ms`]))),a=Object.freeze({common:"background-color,background,border-color,color,fill,stroke,opacity,box-shadow,transform"}),i=Object.freeze({common:"ease",easeOut:"ease-out",bezier:"cubic-bezier(0.32, 0.72, 0, 1)",slowBezier:"cubic-bezier(0.16, 1, 0.3, 1)"})},3474:function(e,t,r){r.d(t,{y:()=>l});var n=r(2620),o=r(5763),a=r(8289),i=r(2216);function l({filterOutFactor:e,supportedFirstFactors:t}){let{strategies:r}=(0,i.k)(),l=t||[],s=l.filter(t=>t.strategy!==e?.strategy&&!(0,o.Kw)(t.strategy)).length+r.length>0,c=l.filter(t=>!t.strategy.startsWith("oauth_")&&t.strategy!==e?.strategy).filter(e=>(0,o.Cm)(e)).filter(e=>"passkey"!==e.strategy||(0,n.Bz)()).sort(a.aR);return{hasAnyStrategy:s,hasFirstParty:!!c,firstPartyFactors:c}}},7782:function(e,t,r){r.d(t,{i:()=>i});var n=r(5606),o=r.n(n),a=r(5074);function i(e,t={}){let[r,n]=(0,a.useState)(!1),{timeout:l=1500,...s}="number"==typeof t?{timeout:t}:t,c=(0,a.useCallback)(()=>{n(o()(e,s))},[e,s]);return(0,a.useEffect)(()=>{let e=null;return r&&(e=window.setTimeout(()=>{n(!1)},l)),()=>{e&&window.clearTimeout(e)}},[l,r]),{value:e,onCopy:c,hasCopied:r}}},4317:function(e,t,r){r.d(t,{d:()=>o});var n=r(5074);function o(e,t){let[r,o]=(0,n.useState)(e),[a,i]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>(a&&(clearTimeout(a),i(void 0)),i(setTimeout(()=>{o(e),i(void 0)},t||500)),()=>{a&&(clearTimeout(a),i(void 0))}),[JSON.stringify(e),t]),r}},180:function(e,t,r){r.d(t,{Q:()=>i});var n=r(5074),o=r(7697),a=r(6580);function i(){let{displayConfig:e,isDevelopmentOrStaging:t}=(0,o.O)(),r=t(),{unsafe_disableDevelopmentModeWarnings:i=!1}=(0,a.K)().parsedOptions,l=r&&i;return{showDevModeNotice:(0,n.useMemo)(()=>!l&&e.showDevModeWarning,[l,e])}}},2992:function(e,t,r){r.d(t,{u:()=>o});var n=r(5074);function o(e){let{startEmailLinkFlow:t,cancelEmailLinkFlow:r}=n.useMemo(()=>e.createEmailLinkFlow(),[e]);return n.useEffect(()=>r,[]),{startEmailLinkFlow:t,cancelEmailLinkFlow:r}}},2216:function(e,t,r){r.d(t,{k:()=>h});var n=r(1652),o=r(6435);let a=[{provider:"google",strategy:"oauth_google",name:"Google",docsUrl:"https://clerk.com/docs/authentication/social-connections/google"},{provider:"discord",strategy:"oauth_discord",name:"Discord",docsUrl:"https://clerk.com/docs/authentication/social-connections/discord"},{provider:"facebook",strategy:"oauth_facebook",name:"Facebook",docsUrl:"https://clerk.com/docs/authentication/social-connections/facebook"},{provider:"twitch",strategy:"oauth_twitch",name:"Twitch",docsUrl:"https://clerk.com/docs/authentication/social-connections/twitch"},{provider:"twitter",strategy:"oauth_twitter",name:"Twitter",docsUrl:"https://clerk.com/docs/authentication/social-connections/twitter"},{provider:"microsoft",strategy:"oauth_microsoft",name:"Microsoft",docsUrl:"https://clerk.com/docs/authentication/social-connections/microsoft"},{provider:"tiktok",strategy:"oauth_tiktok",name:"TikTok",docsUrl:"https://clerk.com/docs/authentication/social-connections/tiktok"},{provider:"linkedin",strategy:"oauth_linkedin",name:"LinkedIn",docsUrl:"https://clerk.com/docs/authentication/social-connections/linkedin"},{provider:"linkedin_oidc",strategy:"oauth_linkedin_oidc",name:"LinkedIn",docsUrl:"https://clerk.com/docs/authentication/social-connections/linkedin-oidc"},{provider:"github",strategy:"oauth_github",name:"GitHub",docsUrl:"https://clerk.com/docs/authentication/social-connections/github"},{provider:"gitlab",strategy:"oauth_gitlab",name:"GitLab",docsUrl:"https://clerk.com/docs/authentication/social-connections/gitlab"},{provider:"dropbox",strategy:"oauth_dropbox",name:"Dropbox",docsUrl:"https://clerk.com/docs/authentication/social-connections/dropbox"},{provider:"atlassian",strategy:"oauth_atlassian",name:"Atlassian",docsUrl:"https://clerk.com/docs/authentication/social-connections/atlassian"},{provider:"bitbucket",strategy:"oauth_bitbucket",name:"Bitbucket",docsUrl:"https://clerk.com/docs/authentication/social-connections/bitbucket"},{provider:"hubspot",strategy:"oauth_hubspot",name:"HubSpot",docsUrl:"https://clerk.com/docs/authentication/social-connections/hubspot"},{provider:"notion",strategy:"oauth_notion",name:"Notion",docsUrl:"https://clerk.com/docs/authentication/social-connections/notion"},{provider:"apple",strategy:"oauth_apple",name:"Apple",docsUrl:"https://clerk.com/docs/authentication/social-connections/apple"},{provider:"line",strategy:"oauth_line",name:"LINE",docsUrl:"https://clerk.com/docs/authentication/social-connections/line"},{provider:"instagram",strategy:"oauth_instagram",name:"Instagram",docsUrl:"https://clerk.com/docs/authentication/social-connections/instagram"},{provider:"coinbase",strategy:"oauth_coinbase",name:"Coinbase",docsUrl:"https://clerk.com/docs/authentication/social-connections/coinbase"},{provider:"spotify",strategy:"oauth_spotify",name:"Spotify",docsUrl:"https://clerk.com/docs/authentication/social-connections/spotify"},{provider:"xero",strategy:"oauth_xero",name:"Xero",docsUrl:"https://clerk.com/docs/authentication/social-connections/xero"},{provider:"box",strategy:"oauth_box",name:"Box",docsUrl:"https://clerk.com/docs/authentication/social-connections/box"},{provider:"slack",strategy:"oauth_slack",name:"Slack",docsUrl:"https://clerk.com/docs/authentication/social-connections/slack"},{provider:"linear",strategy:"oauth_linear",name:"Linear",docsUrl:"https://clerk.com/docs/authentication/social-connections/linear"},{provider:"x",strategy:"oauth_x",name:"X / Twitter",docsUrl:"https://clerk.com/docs/authentication/social-connections/x-twitter-v2"},{provider:"enstall",strategy:"oauth_enstall",name:"Enstall",docsUrl:"https://clerk.com/docs/authentication/social-connections/enstall"},{provider:"huggingface",strategy:"oauth_huggingface",name:"Hugging Face",docsUrl:"https://clerk.com/docs/authentication/social-connections/huggingface"},{provider:"vercel",strategy:"oauth_vercel",name:"Vercel",docsUrl:"https://clerk.com/docs/authentication/social-connections/vercel"}],i=[{provider:"metamask",strategy:"web3_metamask_signature",name:"MetaMask"},{provider:"base",strategy:"web3_base_signature",name:"Base"},{provider:"coinbase_wallet",strategy:"web3_coinbase_wallet_signature",name:"Coinbase Wallet"},{provider:"okx_wallet",strategy:"web3_okx_wallet_signature",name:"OKX Wallet"},{provider:"solana",strategy:"web3_solana_signature",name:"Solana"}];var l=r(7697),s=r(1020);let c=a.map(e=>e.strategy),d=i.map(e=>e.strategy),u=n.c.map(e=>e.channel),p=(0,s.P)([...[...a,...i].map(e=>[e.provider,{strategy:e.strategy,name:e.name,iconUrl:(0,o.l)(e.provider)}]),...[...n.c].map(e=>[e.channel,{strategy:e.channel,name:e.name,iconUrl:(0,o.l)(e.channel)}])]),m=(0,s.P)([...[...a,...i].map(e=>[e.strategy,{id:e.provider,name:e.name,iconUrl:(0,o.l)(e.provider)}]),...[...n.c].map(e=>[e.channel,{id:e.channel,name:e.name,iconUrl:(0,o.l)(e.channel)}])]),h=()=>{let{socialProviderStrategies:e,web3FirstFactors:t,authenticatableSocialStrategies:r,social:n,alternativePhoneCodeChannels:o}=(0,l.O)().userSettings,a=e.filter(e=>c.includes(e)),i=e.filter(e=>!c.includes(e)&&e.startsWith("oauth_custom_")),s=r.filter(e=>c.includes(e)),h=r.filter(e=>!c.includes(e)&&e.startsWith("oauth_custom_")),f=Object.keys(n).filter(e=>e.startsWith("oauth_custom_")),g=e.filter(e=>!c.includes(e)||e.startsWith("oauth_custom_"));f.forEach(e=>{p[e.replace("oauth_","")]={strategy:e,name:n[e].name,iconUrl:n[e].logo_url||""}}),g.forEach(e=>{let t=e.replace("oauth_","");m[e]={id:t,iconUrl:n[e].logo_url||"",name:n[e].name}});let b=[...s,...h];b.sort((e,t)=>{let r=e.replace(/^oauth_custom_|^oauth_/,""),n=t.replace(/^oauth_custom_|^oauth_/,"");return r.localeCompare(n)});let v=t.filter(e=>d.includes(e)),y=o.filter(e=>u.includes(e));return{strategies:[...a,...v,...i,...y],web3Strategies:v,alternativePhoneCodeChannels:y,authenticatableOauthStrategies:b,strategyToDisplayData:m,providerToDisplayData:p}}},8586:function(e,t,r){r.d(t,{q:()=>o});var n=r(5074);function o(e){let{startEnterpriseSSOLinkFlow:t,cancelEnterpriseSSOLinkFlow:r}=n.useMemo(()=>e.createEnterpriseSSOLinkFlow(),[e]);return n.useEffect(()=>r,[]),{startEnterpriseSSOLinkFlow:t,cancelEnterpriseSSOLinkFlow:r}}},7896:function(e,t,r){r.d(t,{s:()=>s});var n=r(5074);let o=new Map,a=new Set,i=e=>"string"==typeof e?e:JSON.stringify(e),l=(e,t=i)=>{let r=t(e),l=(0,n.useCallback)(()=>o.get(r),[r]),s=(0,n.useCallback)(e=>{o.set(r,"function"==typeof e?e(l()):e),a.forEach(e=>e())},[r]),c=(0,n.useCallback)(()=>{s({isLoading:!1,isValidating:!1,data:null,error:null,cachedAt:void 0})},[s]);return{getCache:l,setCache:s,subscribeCache:(0,n.useCallback)(e=>(a.add(e),()=>a.delete(e)),[]),clearCache:c}},s=(e,t,r,o)=>{let a={resourceId:o,params:t},{subscribeCache:s,getCache:c,setCache:d,clearCache:u}=l(a),{subscribeCache:p,getCache:m,setCache:h}=l({...a,rv:!0}),f=r?.staleTime??12e4,g=r?.throttleTime||0,b=(0,n.useRef)(e);if(g<0)throw Error("ClerkJS: A negative value for `throttleTime` is not allowed ");let v=(0,n.useSyncExternalStore)(s,c),y=(0,n.useSyncExternalStore)(p,m),w=(0,n.useCallback)(()=>{d(e=>({...e,cachedAt:0})),h(e=>({isLoading:!1,isValidating:!1,error:null,data:(e?.data||0)+1}))},[d,h]);return(0,n.useEffect)(()=>{b.current=e;let n=!b.current,o=void 0===c()?.cachedAt||Date.now()-(c()?.cachedAt||0)>=f,a=c()?.isValidating??!1;if(n||!o||a)return;let i=performance.now();d({data:c()?.data??null,isLoading:!c()?.data,isValidating:!0,error:null}),b.current(t).then(e=>{if(void 0!==e){let t=Array.isArray(e)?e:"object"==typeof e?{...e}:e;setTimeout(()=>{d({data:t,isLoading:!1,isValidating:!1,error:null,cachedAt:Date.now()}),r?.onSuccess?.(t)},g-(performance.now()-i))}}).catch(e=>{d({data:c()?.data??null,isLoading:!1,isValidating:!1,error:e,cachedAt:Date.now()}),e&&r?.onError?.(e)})},[i(t),d,c,y]),{...v,setCache:d,invalidate:u,revalidate:w}}},3486:function(e,t,r){r.d(t,{l:()=>u,x:()=>d});var n=r(1210),o=r(7477),a=r(78),i=r(2861);let l={basic_member:(0,i.G)("membershipRole__basicMember"),guest_member:(0,i.G)("membershipRole__guestMember"),admin:(0,i.G)("membershipRole__admin")};var s=r(7896);let c={pageSize:20},d=(e=!0)=>{let{organization:t}=(0,n.Z5)(),r=(0,o.Fd)({permission:"org:sys_memberships:manage"}),a=(0,o.Fd)({permission:"org:sys_memberships:read"}),i=e&&!!t?.id&&(r||a),{data:l,isLoading:d}=(0,s.s)(i?({pageSize:e,initialPage:r})=>t.getRoles({pageSize:e,initialPage:r}):void 0,{...c,orgId:t?.id});return{isLoading:d,options:l?.data?.map(e=>({value:e.key,label:e.name}))}},u=()=>{let{t:e}=(0,a._)();return{localizeCustomRole:t=>e((e=>{if(e)return(0,i.G)(`roles.${e}`)})(t))||e((e=>{if(e)return l[e]})(t))}}},2364:function(e,t,r){r.d(t,{W:()=>o});var n=r(5074);let o=e=>{let[t,r]=(0,n.useState)(!1),o=(0,n.useRef)(null),a=Array.isArray(e.threshold)?e.threshold:[e.threshold||0],i=(0,n.useRef)();return i.current=e.onChange,{inView:t,ref:(0,n.useCallback)(t=>{if(!t){o.current&&o.current.disconnect();return}o.current=new IntersectionObserver(e=>{e.forEach(e=>{let t=e.isIntersecting&&a.some(t=>e.intersectionRatio>=t);r(t),i.current&&i.current(t,e)})},{root:e.root,rootMargin:e.rootMargin,threshold:a}),o.current.observe(t)},[])}}},4901:function(e,t,r){r.d(t,{m:()=>o});var n=r(5074);let o=e=>{let[t,r]=function(e){let[t,r]=n.useState(e),o=n.useRef(!0);return n.useEffect(()=>()=>{o.current=!1},[]),[t,n.useCallback(e=>{o.current&&r(e)},[])]}({status:"idle",metadata:void 0,...e});return{status:t.status,setIdle:e=>r({status:"idle",metadata:e}),setError:e=>r({status:"error",metadata:e}),setLoading:e=>r({status:"loading",metadata:e}),loadingMetadata:"loading"===t.status?t.metadata:void 0,isLoading:"loading"===t.status,isIdle:"idle"===t.status}}},8691:function(e,t,r){r.d(t,{z:()=>o});var n=r(1210);let o=e=>{let t=(0,n.ho)().client.signedInSessions;return{signedInSessions:t,otherSessions:t.filter(t=>t.user?.id!==e.user?.id)}}},1550:function(e,t,r){r.d(t,{C:()=>o});var n=r(4964);let o=()=>{let e=(0,n.r)();return{navigateToFlowStart:async()=>{let t=e.indexPath;return t!==e.currentPath?e.navigate(t):e.urlStateParam?.path?e.navigate("/"+e.basePath+e.urlStateParam?.startPath):void 0}}}},2227:function(e,t,r){r.d(t,{f:()=>i});var n=r(1210),o=r(3689),a=r(2364);let i=()=>{let{userMemberships:e,userInvitations:t,userSuggestions:r}=(0,n.D_)(o.mu),{ref:i}=(0,a.W)({threshold:0,onChange:n=>{n&&(e.hasNextPage?e.fetchNext?.():t.hasNextPage?t.fetchNext?.():r.fetchNext?.())}});return{userMemberships:e,userInvitations:t,userSuggestions:r,ref:i}}},620:function(e,t,r){r.d(t,{T:()=>d,Z:()=>u});var n=r(8693),o=r(5074),a=r(5243),i=r(78),l=r(2861),s=r(3990);let c={max_length:["unstable__errors.passwordComplexity.maximumLength","length"],min_length:["unstable__errors.passwordComplexity.minimumLength","length"],require_numbers:"unstable__errors.passwordComplexity.requireNumbers",require_lowercase:"unstable__errors.passwordComplexity.requireLowercase",require_uppercase:"unstable__errors.passwordComplexity.requireUppercase",require_special_char:"unstable__errors.passwordComplexity.requireSpecialCharacter"},d=(e,t)=>{let{t:r,locale:d}=(0,i._)(),u=(0,a.R)(),{onValidationError:p=n.t,onValidationSuccess:m=n.t,onValidationWarning:h=n.t,onValidationInfo:f=n.t,onValidationComplexity:g}=t||{},b=(0,o.useCallback)(t=>{if(Object.values(t?.complexity||{}).length>0){let n=(({config:e,failedValidations:t,locale:r,t:n})=>{if(!t||0===Object.keys(t).length)return"";let o=t?.min_length||!1,a=Object.entries(t).filter(e=>!o||"min_length"===e[0]).filter(([,e])=>!!e).map(([t])=>{let r=c[t];if(Array.isArray(r)){let[o,a]=r;return n((0,l.G)(o,{[a]:e[t]}))}return n((0,l.G)(r))}),i=(0,s.kS)(a,r);return(0,s.zJ)(`${n((0,l.G)("unstable__errors.passwordComplexity.sentencePrefix"))} ${i}`)})({config:e,t:r,failedValidations:t.complexity,locale:d});return t.complexity?.min_length?f(n):p(n)}return t?.strength?.state==="fail"?p(t.strength.keys.map(e=>r((0,l.G)(e))).join(" ")):t?.strength?.state==="pass"?h(t.strength.keys.map(e=>r((0,l.G)(e))).join(" ")):m()},[t,r,d]);return{validatePassword:(0,o.useMemo)(()=>{let{loadZxcvbn:t}={loadZxcvbn:()=>Promise.all([u.import("@zxcvbn-ts/core"),u.import("@zxcvbn-ts/language-common")]).then(([e,t])=>{if(!e||!t)throw Error("Failed to load zxcvbn modules");let{zxcvbnOptions:r,zxcvbn:n}=e,{dictionary:o,adjacencyGraphs:a}=t;return r.setOptions({dictionary:{...o},graphs:a}),n})};return((e,t,r)=>{let{onValidation:o=n.t,onValidationComplexity:a=n.t}=r||{},{show_zxcvbn:i,validatePassword:l}=t,s=e=>((e,t)=>{let{max_length:r,min_length:n,require_special_char:o,require_lowercase:a,require_numbers:i,require_uppercase:l}=t,s=(e=>{let t;if(e.allowed_special_characters){let r=e.allowed_special_characters.replace("[","\\[");r=r.replace("]","\\]"),t=RegExp(`[${r}]`)}else t=/[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/;return(e,{minLength:r,maxLength:n})=>({max_length:e.length<n,min_length:e.length>=r,require_numbers:/\d/.test(e),require_lowercase:/[a-z]/.test(e),require_uppercase:/[A-Z]/.test(e),require_special_char:t.test(e)})})(t)(e,{maxLength:t.max_length,minLength:t.min_length}),c={max_length:r,min_length:n,require_special_char:o,require_lowercase:a,require_numbers:i,require_uppercase:l},d=new Map;for(let e in c)c[e]&&!s[e]&&d.set(e,!0);return Object.freeze(Object.fromEntries(d))})(e,t),c=(({min_zxcvbn_strength:e,onResult:t})=>r=>n=>{let o=r(n);return(t?.(o),o.score>=e&&o.score<3)?{state:"pass",keys:["unstable__errors.zxcvbn.couldBeStronger"],result:o}:o.score>=e?{state:"excellent",result:o}:{state:"fail",keys:["unstable__errors.zxcvbn.notEnough",...o.feedback.suggestions.map(e=>`unstable__errors.zxcvbn.suggestions.${e}`)],result:o}})(t),d={};return(t,r)=>{let{onValidation:n=o,onValidationComplexity:u=a}=r||{};if(!l)return;let p=s(t);u(0===Object.keys(p).length),d={...d,complexity:p},i&&e().then(e=>{let r=c(e)(t);n({...d={...d,strength:r},strength:r})}),d.complexity&&0===Object.keys(d.complexity).length&&i||n(d)}})(t,e,{onValidation:b,onValidationComplexity:g})},[b,e,u])}},u=({passwordField:e,confirmPasswordField:t})=>{let{t:r}=(0,i._)(),n=(0,o.useCallback)(t=>e.value===t,[e.value]),a=(0,o.useMemo)(()=>n(t.value),[n,t.value]);return{setConfirmPasswordFeedback:(0,o.useCallback)(e=>{n(e)?t.setSuccess(r((0,l.G)("formFieldError__matchingPasswords"))):t.setError(r((0,l.G)("formFieldError__notMatchingPasswords")))},[t.setError,t.setSuccess,r,n]),isPasswordMatch:a}}},1577:function(e,t,r){r.d(t,{f:()=>l});var n=r(2119),o=r(6836),a=r(4166),i=r(5074);let l=(e={})=>{let{bubbles:t=!1,shoudFlip:r=!0,outsidePress:l,adjustToReferenceWidth:s=!1,referenceElement:c,canCloseModal:d}=e,[u,p]=i.useState(e.defaultOpen||!1),m=(0,n.fI)(),{update:h,refs:f,strategy:g,x:b,y:v,context:y}=(0,n.we)({open:u,onOpenChange:p,elements:{reference:c?.current},nodeId:m,whileElementsMounted:!1===e.autoUpdate?void 0:o.ll,placement:e.placement||"bottom-start",middleware:[(0,a.cY)(e.offset||6),r&&(0,a.UU)(),(0,a.BN)(),(0,a.Ej)({apply({elements:e}){if(s){let t=e.reference;e.floating.style.width=t?`${t?.offsetWidth}px`:""}}})]});(0,n.s9)(y,{enabled:!1!==d,bubbles:t,outsidePress:l}),(0,i.useEffect)(()=>{e.defaultOpen&&h()},[]);let w=i.useCallback(()=>p(e=>!e),[p]),$=i.useCallback(()=>p(!0),[p]),x=i.useCallback(()=>p(!1),[p]);return{reference:f.setReference,floating:f.setFloating,toggle:w,open:$,nodeId:m,close:x,isOpen:u,styles:{position:g,top:v??0,left:b??0},context:y}}},359:function(e,t,r){r.d(t,{j:()=>i});var n=r(5074);let o="(prefers-reduced-motion: no-preference)",a=()=>"undefined"==typeof window||!window.matchMedia(o).matches;function i(){let[e,t]=(0,n.useState)(a);return(0,n.useEffect)(()=>{let e=window.matchMedia(o);t(!window.matchMedia(o).matches);let r=e=>{t(!e.matches)};return"addEventListener"in e?e.addEventListener("change",r):e.addListener(r),()=>"addEventListener"in e?e.removeEventListener("change",r):e.removeListener(r)},[]),e}},7607:function(e,t,r){r.d(t,{Z:()=>a});var n=r(7697),o=r(7896);function a(){let{organizationSettings:e}=(0,n.O)(),t=e.forceOrganizationSelection;(0,o.s)(t?()=>Promise.all([r.e("26"),r.e("545"),r.e("666"),r.e("472"),r.e("723"),r.e("390")]).then(r.bind(r,1662)):void 0,"preloadComponent",{staleTime:1/0})}},8792:function(e,t,r){r.d(t,{K:()=>a});let n=0,o=()=>{};function a(){return{enableScrollLock:()=>{1==++n&&(o=function(){let e,t=/iP(hone|ad|od)|iOS/.test((e=navigator.userAgentData,e?.platform?e.platform:navigator.platform)),r=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,a=r.left?parseFloat(r.left):window.scrollX,i=r.top?parseFloat(r.top):window.scrollY;if(r.overflow="hidden",o&&(r[n]=`${o}px`),t){let e=window.visualViewport?.offsetLeft||0,t=window.visualViewport?.offsetTop||0;Object.assign(r,{position:"fixed",top:`${-(i-Math.floor(t))}px`,left:`${-(a-Math.floor(e))}px`,right:"0"})}return()=>{Object.assign(r,{overflow:"",[n]:""}),t&&(Object.assign(r,{position:"",top:"",left:"",right:""}),window.scrollTo(a,i))}}())},disableScrollLock:()=>{0==--n&&o()}}}},9107:function(e,t,r){r.d(t,{h:()=>l});var n=r(1210),o=r(5074),a=r(4),i=r(4964);let l=(e=2e3)=>{let{queryString:t}=(0,i.r)(),{setActive:r}=(0,n.ho)(),{afterSignInUrl:l}=(0,a.r)();(0,o.useEffect)(()=>{let n,o=new URLSearchParams(t).get("createdSessionId");return o&&(n=setTimeout(()=>{r({session:o,redirectUrl:l})},e)),()=>{n&&clearTimeout(n)}},[r,l,t])}},9426:function(e,t,r){r.d(t,{p:()=>l});var n=r(1210),o=r(5074),a=r(2366),i=r(7697);function l(){let e=(0,n.ho)(),{supportEmail:t}=(0,a.II)(),{displayConfig:r}=(0,i.O)(),{supportEmail:l}=r;return o.useMemo(()=>t||l||function({localPart:e,frontendApi:t}){return`${e}@${t?t.replace("clerk.",""):"clerk.com"}`}({localPart:"support",frontendApi:e.frontendApi}),[e.frontendApi,t,l])}},5914:function(e,t,r){r.d(t,{i:()=>a});var n=r(5074),o=r(4964);let a=(e,t=0)=>{let r=(0,o.r)(),a=()=>{let n=r.queryParams.tab,o=Object.entries(e).find(([e,t])=>t===n)?.[0];return o?parseInt(o,10):t},[i,l]=(0,n.useState)(a());return(0,n.useEffect)(()=>{let e=a();e!==i&&l(e)},[r.queryParams.tab]),{selectedTab:i,handleTabChange:t=>{l(t);let n=r.currentPath;r.navigate(n,{searchParams:new URLSearchParams({tab:e[t]||""})})}}}},2229:function(e,t,r){r.d(t,{F:()=>a});var n=r(7697),o=r(2216);let a=()=>{let{userSettings:e}=(0,n.O)(),{authenticatableOauthStrategies:t,web3Strategies:r,alternativePhoneCodeChannels:a}=(0,o.k)();return e.enabledFirstFactorIdentifiers.filter(e=>"passkey"!==e).length+t.length+r.length+a.length}},8501:function(e,t,r){r.d(t,{MountedCheckoutDrawer:()=>l});var n=r(4518),o=r(1210),a=r(4096),i=r(4642);function l({appearance:e,checkoutDrawer:t,onOpenChange:r}){let{user:l}=(0,o.Jd)();return t.props?(0,n.Y)(i.$h,{globalAppearance:e,appearanceKey:"checkout",componentAppearance:t.props.appearance||{},flowName:"checkout",open:t.open,onOpenChange:r,componentName:"Checkout",portalId:t.props?.portalId,portalRoot:t.props?.portalRoot,children:t.props&&(0,n.Y)(a.RW,{planId:t.props.planId,planPeriod:t.props.planPeriod,for:t.props.for,onSubscriptionComplete:t.props.onSubscriptionComplete,portalRoot:t.props.portalRoot,appearance:t.props.appearance,newSubscriptionRedirectUrl:t.props.newSubscriptionRedirectUrl})},l?.id):null}},4027:function(e,t,r){r.d(t,{MountedPlanDetailDrawer:()=>l});var n=r(4518),o=r(1210),a=r(4096),i=r(4642);function l({appearance:e,planDetailsDrawer:t,onOpenChange:r}){let{user:l}=(0,o.Jd)();return t.props?(0,n.Y)(i.$h,{globalAppearance:e,appearanceKey:"planDetails",componentAppearance:t.props.appearance||{},flowName:"planDetails",open:t.open,onOpenChange:r,componentName:"PlanDetails",portalId:t.props.portalId,portalRoot:t.props.portalRoot,children:(0,n.Y)(a.ym,{...t.props})},l?.id):null}},9949:function(e,t,r){r.d(t,{MountedSubscriptionDetailDrawer:()=>l});var n=r(4518),o=r(1210),a=r(1461),i=r(4642);function l({appearance:e,subscriptionDetailsDrawer:t,onOpenChange:r}){let{user:l}=(0,o.Jd)();return t.props?(0,n.Y)(i.$h,{globalAppearance:e,appearanceKey:"subscriptionDetails",componentAppearance:t.props.appearance||{},flowName:"subscriptionDetails",open:t.open,onOpenChange:r,componentName:"SubscriptionDetails",portalId:t.props.portalId,portalRoot:t.props.portalRoot,children:(0,n.Y)(a.SubscriptionDetails,{...t.props})},l?.id):null}},6053:function(e,t,r){r.d(t,{createRoot:()=>n.createRoot});var n=r(4292)},2861:function(e,t,r){r.d(t,{G:()=>n});let n=(e,...t)=>({key:e,params:t[0]})},78:function(e,t,r){let n,o;r.d(t,{d:()=>$,_:()=>x});var a=r(4518),i=r(3610),l=r(5074),s=r(2366),c=r(1210),d=r(7697),u=r(6988);let p={titleize:r(1044).Ns,timeString:(e,t)=>{try{return new Intl.DateTimeFormat(t||"en-US",{timeStyle:"short"}).format((0,u.OG)(e))}catch(e){return console.warn(e),""}},weekday:(e,t,r)=>{try{return new Intl.DateTimeFormat(t||"en-US",{weekday:r||"long"}).format((0,u.OG)(e))}catch(e){return console.warn(e),""}},numeric:(e,t)=>{try{return new Intl.DateTimeFormat(t||"en-US").format((0,u.OG)(e))}catch(e){return console.warn(e),""}},link:(e,t)=>`[${t}](${e})`,shortDate:(e,t)=>{let r=(0,u.OG)(e);try{return new Intl.DateTimeFormat(t||"en-US",{month:"short",day:"numeric",...r.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{}}).format((0,u.OG)(e))}catch(e){return console.warn(e),""}},longDate:(e,t)=>{try{return new Intl.DateTimeFormat(t||"en-US",{month:"long",day:"numeric",year:"numeric"}).format((0,u.OG)(e))}catch(e){return console.warn(e),""}}},m=()=>{let{applicationName:e}=(0,d.O)().displayConfig,{client:t,user:r}=(0,c.ho)(),{signIn:n}=t||{};return{applicationName:e,"signIn.identifier":n?.identifier||"","user.username":r?.username||"","user.firstName":r?.firstName||"","user.lastName":r?.lastName||"","user.primaryEmailAddress":r?.primaryEmailAddress?.emailAddress||"","user.primaryPhoneNumber":r?.primaryPhoneNumber?.phoneNumber||""}},h=e=>Object.prototype.hasOwnProperty.call(p,e),f=e=>{let t=e.split(/[(,)]/g).map(e=>e.trim()).filter(e=>!!e);if(1===t.length){let[e]=t;return{modifierName:e,params:[]}}{let[e,...r]=t;return{modifierName:e,params:r.map(e=>e.replace(/['"]+/g,""))}}},g={locale:"en-US",apiKeys:{action__add:"Add new key",action__search:"Search keys",copySecret:{formButtonPrimary__copyAndClose:"Copy & Close",formHint:"For security reasons, we won't allow you to view it again later.",formTitle:'Copy your "{{name}}" API Key now'},createdAndExpirationStatus__expiresOn:"Created {{ createdDate | shortDate('en-US') }} • Expires {{ expiresDate | longDate('en-US') }}",createdAndExpirationStatus__never:"Created {{ createdDate | shortDate('en-US') }} • Never expires",detailsTitle__emptyRow:"No API keys found",formButtonPrimary__add:"Create key",formFieldCaption__expiration__expiresOn:"Expiring {{ date }}",formFieldCaption__expiration__never:"This key will never expire",formFieldOption__expiration__180d:"180 Days",formFieldOption__expiration__1d:"1 Day",formFieldOption__expiration__1y:"1 Year",formFieldOption__expiration__30d:"30 Days",formFieldOption__expiration__60d:"60 Days",formFieldOption__expiration__7d:"7 Days",formFieldOption__expiration__90d:"90 Days",formFieldOption__expiration__never:"Never",formHint:"Provide a name to generate a new key. You’ll be able to revoke it anytime.",formTitle:"Add new API key",lastUsed__days:"{{days}}d ago",lastUsed__hours:"{{hours}}h ago",lastUsed__minutes:"{{minutes}}m ago",lastUsed__months:"{{months}}mo ago",lastUsed__seconds:"{{seconds}}s ago",lastUsed__years:"{{years}}y ago",menuAction__revoke:"Revoke key",revokeConfirmation:{confirmationText:"Revoke",formButtonPrimary__revoke:"Revoke key",formHint:"Are you sure you want to delete this Secret key?",formTitle:'Revoke "{{apiKeyName}}" secret key?'}},backButton:"Back",badge__activePlan:"Active",badge__canceledEndsAt:"Canceled • Ends {{ date | shortDate('en-US') }}",badge__currentPlan:"Current plan",badge__default:"Default",badge__endsAt:"Ends {{ date | shortDate('en-US') }}",badge__expired:"Expired",badge__freeTrial:"Free trial",badge__otherImpersonatorDevice:"Other impersonator device",badge__pastDueAt:"Past due {{ date | shortDate('en-US') }}",badge__pastDuePlan:"Past due",badge__primary:"Primary",badge__renewsAt:"Renews {{ date | shortDate('en-US') }}",badge__requiresAction:"Requires action",badge__startsAt:"Starts {{ date | shortDate('en-US') }}",badge__thisDevice:"This device",badge__trialEndsAt:"Trial ends {{ date | shortDate('en-US') }}",badge__unverified:"Unverified",badge__upcomingPlan:"Upcoming",badge__userDevice:"User device",badge__you:"You",billing:{addPaymentMethod__label:"Add payment method",alwaysFree:"Always free",annually:"Annually",availableFeatures:"Available features",billedAnnually:"Billed annually",billedMonthlyOnly:"Only billed monthly",cancelFreeTrial:"Cancel free trial",cancelFreeTrialAccessUntil:"Your trial will stay active until {{ date | longDate('en-US') }}. After that, you'll lose access to trial features. You won't be charged.",cancelFreeTrialTitle:"Cancel free trial for {{plan}} plan?",cancelSubscription:"Cancel subscription",cancelSubscriptionAccessUntil:"You can keep using '{{plan}}' features until {{ date | longDate('en-US') }}, after which you will no longer have access.",cancelSubscriptionNoCharge:"You will not be charged for this subscription.",cancelSubscriptionPastDue:"Your subscription will end immediately and you will lose access to all plan features. You will be asked to pay the past due amount on your next subscription.",cancelSubscriptionTitle:"Cancel {{plan}} Subscription?",cannotSubscribeMonthly:"You cannot subscribe to this plan by paying monthly. To subscribe to this plan, you need to choose to pay annually.",cannotSubscribeUnrecoverable:"You cannot subscribe to this plan. Your existing subscription is more expensive than this plan.",checkout:{description__paymentSuccessful:"Your payment was successful.",description__subscriptionSuccessful:"Your new subscription is all set.",downgradeNotice:"You will keep your current subscription and its features until the end of the billing cycle, then you will be switched to this subscription.",emailForm:{subtitle:"Before you can complete your purchase you must add an email address where receipts will be sent.",title:"Add an email address"},lineItems:{title__freeTrialEndsAt:"Trial ends on",title__paymentMethod:"Payment method",title__statementId:"Statement ID",title__subscriptionBegins:"Subscription begins",title__totalPaid:"Total paid"},pastDueNotice:"Your previous subscription was past due, with no payment.",perMonth:"per month",title:"Checkout",title__paymentSuccessful:"Payment was successful!",title__subscriptionSuccessful:"Success!",title__trialSuccess:"Trial successfully started!",totalDueAfterTrial:"Total Due after trial ends in {{days}} days"},credit:"Credit",creditRemainder:"Credit for the remainder of your current subscription.",defaultFreePlanActive:"You're currently on the Free plan",free:"Free",getStarted:"Get started",keepFreeTrial:"Keep free trial",keepSubscription:"Keep subscription",manage:"Manage",manageSubscription:"Manage subscription",month:"Month",monthly:"Monthly",pastDue:"Past due",pay:"Pay {{amount}}",paymentMethod:{applePayDescription:{annual:"Annual payment",monthly:"Monthly payment"},dev:{anyNumbers:"Any numbers",cardNumber:"Card number",cvcZip:"CVC, ZIP",developmentMode:"Development mode",expirationDate:"Expiration date",testCardInfo:"Test card information"}},paymentMethods__label:"Payment Methods",popular:"Popular",pricingTable:{billingCycle:"Billing cycle",included:"Included"},reSubscribe:"Resubscribe",seeAllFeatures:"See all features",startFreeTrial:"Start free trial",startFreeTrial__days:"Start {{days}}-day free trial",subscribe:"Subscribe",subscriptionDetails:{beginsOn:"Begins on",currentBillingCycle:"Current billing cycle",endsOn:"Ends on",firstPaymentAmount:"First payment amount",firstPaymentOn:"First payment on",nextPaymentAmount:"Next payment amount",nextPaymentOn:"Next payment on",pastDueAt:"Past due on",renewsAt:"Renews at",subscribedOn:"Subscribed on",title:"Subscription",trialEndsOn:"Trial ends on",trialStartedOn:"Trial started on"},subtotal:"Subtotal",switchPlan:"Switch to this plan",switchToAnnual:"Switch to annual",switchToAnnualWithAnnualPrice:"Switch to annual {{currency}}{{price}} / year",switchToMonthly:"Switch to monthly",switchToMonthlyWithPrice:"Switch to monthly {{currency}}{{price}} / month",totalDue:"Total due",totalDueToday:"Total Due Today",viewFeatures:"View features",viewPayment:"View payment",year:"Year"},createOrganization:{formButtonSubmit:"Create organization",invitePage:{formButtonReset:"Skip"},title:"Create organization"},dates:{lastDay:"Yesterday at {{ date | timeString('en-US') }}",next6Days:"{{ date | weekday('en-US','long') }} at {{ date | timeString('en-US') }}",nextDay:"Tomorrow at {{ date | timeString('en-US') }}",numeric:"{{ date | numeric('en-US') }}",previous6Days:"Last {{ date | weekday('en-US','long') }} at {{ date | timeString('en-US') }}",sameDay:"Today at {{ date | timeString('en-US') }}"},dividerText:"or",footerActionLink__alternativePhoneCodeProvider:"Send code via SMS instead",footerActionLink__useAnotherMethod:"Use another method",footerPageLink__help:"Help",footerPageLink__privacy:"Privacy",footerPageLink__terms:"Terms",formButtonPrimary:"Continue",formButtonPrimary__verify:"Verify",formFieldAction__forgotPassword:"Forgot password?",formFieldError__matchingPasswords:"Passwords match.",formFieldError__notMatchingPasswords:"Passwords don't match.",formFieldError__verificationLinkExpired:"The verification link expired. Please request a new link.",formFieldHintText__optional:"Optional",formFieldHintText__slug:"A slug is a human-readable ID that must be unique. It’s often used in URLs.",formFieldInputPlaceholder__apiKeyDescription:"Explain why you’re generating this key",formFieldInputPlaceholder__apiKeyExpirationDate:"Select date",formFieldInputPlaceholder__apiKeyName:"Enter your secret key name",formFieldInputPlaceholder__backupCode:"Enter backup code",formFieldInputPlaceholder__confirmDeletionUserAccount:"Delete account",formFieldInputPlaceholder__emailAddress:"Enter your email address",formFieldInputPlaceholder__emailAddress_username:"Enter email or username",formFieldInputPlaceholder__emailAddresses:"example@email.com, example2@email.com",formFieldInputPlaceholder__firstName:"First name",formFieldInputPlaceholder__lastName:"Last name",formFieldInputPlaceholder__organizationDomain:"example.com",formFieldInputPlaceholder__organizationDomainEmailAddress:"you@example.com",formFieldInputPlaceholder__organizationName:"Organization name",formFieldInputPlaceholder__organizationSlug:"my-org",formFieldInputPlaceholder__password:"Enter your password",formFieldInputPlaceholder__phoneNumber:"Enter your phone number",formFieldInputPlaceholder__username:void 0,formFieldInput__emailAddress_format:"Example format: name@example.com",formFieldLabel__apiKey:"API key",formFieldLabel__apiKeyDescription:"Description",formFieldLabel__apiKeyExpiration:"Expiration",formFieldLabel__apiKeyName:"Secret key name",formFieldLabel__automaticInvitations:"Enable automatic invitations for this domain",formFieldLabel__backupCode:"Backup code",formFieldLabel__confirmDeletion:"Confirmation",formFieldLabel__confirmPassword:"Confirm password",formFieldLabel__currentPassword:"Current password",formFieldLabel__emailAddress:"Email address",formFieldLabel__emailAddress_username:"Email address or username",formFieldLabel__emailAddresses:"Email addresses",formFieldLabel__firstName:"First name",formFieldLabel__lastName:"Last name",formFieldLabel__newPassword:"New password",formFieldLabel__organizationDomain:"Domain",formFieldLabel__organizationDomainDeletePending:"Delete pending invitations and suggestions",formFieldLabel__organizationDomainEmailAddress:"Verification email address",formFieldLabel__organizationDomainEmailAddressDescription:"Enter an email address under this domain to receive a code and verify this domain.",formFieldLabel__organizationName:"Name",formFieldLabel__organizationSlug:"Slug",formFieldLabel__passkeyName:"Name of passkey",formFieldLabel__password:"Password",formFieldLabel__phoneNumber:"Phone number",formFieldLabel__role:"Role",formFieldLabel__signOutOfOtherSessions:"Sign out of all other devices",formFieldLabel__username:"Username",impersonationFab:{action__signOut:"Sign out",title:"Signed in as {{identifier}}"},lastAuthenticationStrategy:"Last used",maintenanceMode:"We are currently undergoing maintenance, but don't worry, it shouldn't take more than a few minutes.",membershipRole__admin:"Admin",membershipRole__basicMember:"Member",membershipRole__guestMember:"Guest",organizationList:{action__createOrganization:"Create organization",action__invitationAccept:"Join",action__suggestionsAccept:"Request to join",createOrganization:"Create Organization",invitationAcceptedLabel:"Joined",subtitle:"to continue to {{applicationName}}",suggestionsAcceptedLabel:"Pending approval",title:"Choose an account",titleWithoutPersonal:"Choose an organization"},organizationProfile:{apiKeysPage:{title:"API keys"},badge__automaticInvitation:"Automatic invitations",badge__automaticSuggestion:"Automatic suggestions",badge__manualInvitation:"No automatic enrollment",badge__unverified:"Unverified",billingPage:{paymentHistorySection:{empty:"No payment history",notFound:"Payment attempt not found",tableHeader__amount:"Amount",tableHeader__date:"Date",tableHeader__status:"Status"},paymentMethodsSection:{actionLabel__default:"Make default",actionLabel__remove:"Remove",add:"Add new payment method",addSubtitle:"Add a new payment method to your account.",cancelButton:"Cancel",formButtonPrimary__add:"Add Payment Method",formButtonPrimary__pay:"Pay {{amount}}",payWithTestCardButton:"Pay with test card",removeMethod:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this payment method and any recurring subscriptions dependent on it will no longer work.",successMessage:"{{paymentMethod}} has been removed from your account.",title:"Remove payment method"},title:"Payment methods"},start:{headerTitle__payments:"Payments",headerTitle__plans:"Plans",headerTitle__statements:"Statements",headerTitle__subscriptions:"Subscription"},statementsSection:{empty:"No statements to display",itemCaption__paidForPlan:"Paid for {{plan}} {{period}} plan",itemCaption__proratedCredit:"Prorated credit for partial usage of previous subscription",itemCaption__subscribedAndPaidForPlan:"Subscribed and paid for {{plan}} {{period}} plan",notFound:"Statement not found",tableHeader__amount:"Amount",tableHeader__date:"Date",title:"Statements",totalPaid:"Total paid"},subscriptionsListSection:{actionLabel__manageSubscription:"Manage",actionLabel__newSubscription:"Subscribe to a plan",actionLabel__switchPlan:"Switch plans",tableHeader__edit:"Edit",tableHeader__plan:"Plan",tableHeader__startDate:"Start date",title:"Subscription"},subscriptionsSection:{actionLabel__default:"Manage"},switchPlansSection:{title:"Switch plans"},title:"Billing"},createDomainPage:{subtitle:"Add the domain to verify. Users with email addresses at this domain can join the organization automatically or request to join.",title:"Add domain"},invitePage:{detailsTitle__inviteFailed:"The invitations could not be sent. There are already pending invitations for the following email addresses: {{email_addresses}}.",formButtonPrimary__continue:"Send invitations",selectDropdown__role:"Select role",subtitle:"Enter or paste one or more email addresses, separated by spaces or commas.",successMessage:"Invitations successfully sent",title:"Invite new members"},membersPage:{action__invite:"Invite",action__search:"Search",activeMembersTab:{menuAction__remove:"Remove member",tableHeader__actions:"Actions",tableHeader__joined:"Joined",tableHeader__role:"Role",tableHeader__user:"User"},detailsTitle__emptyRow:"No members to display",invitationsTab:{autoInvitations:{headerSubtitle:"Invite users by connecting an email domain with your organization. Anyone who signs up with a matching email domain will be able to join the organization anytime.",headerTitle:"Automatic invitations",primaryButton:"Manage verified domains"},table__emptyRow:"No invitations to display"},invitedMembersTab:{menuAction__revoke:"Revoke invitation",tableHeader__invited:"Invited"},requestsTab:{autoSuggestions:{headerSubtitle:"Users who sign up with a matching email domain, will be able to see a suggestion to request to join your organization.",headerTitle:"Automatic suggestions",primaryButton:"Manage verified domains"},menuAction__approve:"Approve",menuAction__reject:"Reject",tableHeader__requested:"Requested access",table__emptyRow:"No requests to display"},start:{headerTitle__invitations:"Invitations",headerTitle__members:"Members",headerTitle__requests:"Requests"}},navbar:{apiKeys:"API keys",billing:"Billing",description:"Manage your organization.",general:"General",members:"Members",title:"Organization"},plansPage:{alerts:{noPermissionsToManageBilling:"You do not have permissions to manage billing for this organization."},title:"Plans"},profilePage:{dangerSection:{deleteOrganization:{actionDescription:'Type "{{organizationName}}" below to continue.',messageLine1:"Are you sure you want to delete this organization?",messageLine2:"This action is permanent and irreversible.",successMessage:"You have deleted the organization.",title:"Delete organization"},leaveOrganization:{actionDescription:'Type "{{organizationName}}" below to continue.',messageLine1:"Are you sure you want to leave this organization? You will lose access to this organization and its applications.",messageLine2:"This action is permanent and irreversible.",successMessage:"You have left the organization.",title:"Leave organization"},title:"Danger"},domainSection:{menuAction__manage:"Manage",menuAction__remove:"Delete",menuAction__verify:"Verify",primaryButton:"Add domain",subtitle:"Allow users to join the organization automatically or request to join based on a verified email domain.",title:"Verified domains"},successMessage:"The organization has been updated.",title:"Update profile"},removeDomainPage:{messageLine1:"The email domain {{domain}} will be removed.",messageLine2:"Users won’t be able to join the organization automatically after this.",successMessage:"{{domain}} has been removed.",title:"Remove domain"},start:{headerTitle__general:"General",headerTitle__members:"Members",profileSection:{primaryButton:"Update profile",title:"Organization Profile",uploadAction__title:"Logo"}},verifiedDomainPage:{dangerTab:{calloutInfoLabel:"Removing this domain will affect invited users.",removeDomainActionLabel__remove:"Remove domain",removeDomainSubtitle:"Remove this domain from your verified domains",removeDomainTitle:"Remove domain"},enrollmentTab:{automaticInvitationOption__description:"Users are automatically invited to join the organization when they sign-up and can join anytime.",automaticInvitationOption__label:"Automatic invitations",automaticSuggestionOption__description:"Users receive a suggestion to request to join, but must be approved by an admin before they are able to join the organization.",automaticSuggestionOption__label:"Automatic suggestions",calloutInfoLabel:"Changing the enrollment mode will only affect new users.",calloutInvitationCountLabel:"Pending invitations sent to users: {{count}}",calloutSuggestionCountLabel:"Pending suggestions sent to users: {{count}}",manualInvitationOption__description:"Users can only be invited manually to the organization.",manualInvitationOption__label:"No automatic enrollment",subtitle:"Choose how users from this domain can join the organization."},start:{headerTitle__danger:"Danger",headerTitle__enrollment:"Enrollment options"},subtitle:"The domain {{domain}} is now verified. Continue by selecting enrollment mode.",title:"Update {{domain}}"},verifyDomainPage:{formSubtitle:"Enter the verification code sent to your email address",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"The domain {{domainName}} needs to be verified via email.",subtitleVerificationCodeScreen:"A verification code was sent to {{emailAddress}}. Enter the code to continue.",title:"Verify domain"}},organizationSwitcher:{action__closeOrganizationSwitcher:"Close organization switcher",action__createOrganization:"Create organization",action__invitationAccept:"Join",action__manageOrganization:"Manage",action__openOrganizationSwitcher:"Open organization switcher",action__suggestionsAccept:"Request to join",notSelected:"No organization selected",personalWorkspace:"Personal account",suggestionsAcceptedLabel:"Pending approval"},paginationButton__next:"Next",paginationButton__previous:"Previous",paginationRowText__displaying:"Displaying",paginationRowText__of:"of",reverification:{alternativeMethods:{actionLink:"Get help",actionText:"Don’t have any of these?",blockButton__backupCode:"Use a backup code",blockButton__emailCode:"Email code to {{identifier}}",blockButton__passkey:"Use your passkey",blockButton__password:"Continue with your password",blockButton__phoneCode:"Send SMS code to {{identifier}}",blockButton__totp:"Use your authenticator app",getHelp:{blockButton__emailSupport:"Email support",content:"If you have trouble verifying your account, email us and we will work with you to restore access as soon as possible.",title:"Get help"},subtitle:"Facing issues? You can use any of these methods for verification.",title:"Use another method"},backupCodeMfa:{subtitle:"Enter the backup code you received when setting up two-step authentication",title:"Enter a backup code"},emailCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your email to continue",title:"Verification required"},noAvailableMethods:{message:"Cannot proceed with verification. No suitable authentication factor is configured",subtitle:"An error occurred",title:"Cannot verify your account"},passkey:{blockButton__passkey:"Use your passkey",subtitle:"Using your passkey confirms your identity. Your device may ask for your fingerprint, face, or screen lock.",title:"Use your passkey"},password:{actionLink:"Use another method",subtitle:"Enter your current password to continue",title:"Verification required"},phoneCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your phone to continue",title:"Verification required"},phoneCodeMfa:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your phone to continue",title:"Verification required"},totpMfa:{formTitle:"Verification code",subtitle:"Enter the code generated by your authenticator app to continue",title:"Verification required"}},signIn:{accountSwitcher:{action__addAccount:"Add account",action__signOutAll:"Sign out of all accounts",subtitle:"Select the account with which you wish to continue.",title:"Choose an account"},alternativeMethods:{actionLink:"Get help",actionText:"Don’t have any of these?",blockButton__backupCode:"Use a backup code",blockButton__emailCode:"Email code to {{identifier}}",blockButton__emailLink:"Email link to {{identifier}}",blockButton__passkey:"Sign in with your passkey",blockButton__password:"Sign in with your password",blockButton__phoneCode:"Send SMS code to {{identifier}}",blockButton__totp:"Use your authenticator app",getHelp:{blockButton__emailSupport:"Email support",content:"If you have trouble signing into your account, email us and we will work with you to restore access as soon as possible.",title:"Get help"},subtitle:"Facing issues? You can use any of these methods to sign in.",title:"Use another method"},alternativePhoneCodeProvider:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your {{provider}}"},backupCodeMfa:{subtitle:"Your backup code is the one you got when setting up two-step authentication.",title:"Enter a backup code"},emailCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},emailCodeMfa:{formTitle:"Check your email",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},emailLink:{clientMismatch:{subtitle:"To continue, open the verification link on the device and browser from which you initiated the sign-in",title:"Verification link is invalid for this device"},expired:{subtitle:"Return to the original tab to continue.",title:"This verification link has expired"},failed:{subtitle:"Return to the original tab to continue.",title:"This verification link is invalid"},formSubtitle:"Use the verification link sent to your email",formTitle:"Verification link",loading:{subtitle:"You will be redirected soon",title:"Signing in..."},resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email",unusedTab:{title:"You may close this tab"},verified:{subtitle:"You will be redirected soon",title:"Successfully signed in"},verifiedSwitchTab:{subtitle:"Return to original tab to continue",subtitleNewTab:"Return to the newly opened tab to continue",titleNewTab:"Signed in on other tab"}},emailLinkMfa:{formSubtitle:"Use the verification link sent to your email",resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},enterpriseConnections:{subtitle:"Select the enterprise account with which you wish to continue.",title:"Choose your enterprise account"},forgotPassword:{formTitle:"Reset password code",resendButton:"Didn't receive a code? Resend",subtitle:"to reset your password",subtitle_email:"First, enter the code sent to your email address",subtitle_phone:"First, enter the code sent to your phone",title:"Reset password"},forgotPasswordAlternativeMethods:{blockButton__resetPassword:"Reset your password",label__alternativeMethods:"Or, sign in with another method",title:"Forgot Password?"},newDeviceVerificationNotice:"You're signing in from a new device. We're asking for verification to keep your account secure.",noAvailableMethods:{message:"Cannot proceed with sign in. There's no available authentication factor.",subtitle:"An error occurred",title:"Cannot sign in"},passkey:{subtitle:"Using your passkey confirms it's you. Your device may ask for your fingerprint, face or screen lock.",title:"Use your passkey"},password:{actionLink:"Use another method",subtitle:"Enter the password associated with your account",title:"Enter your password"},passwordCompromised:{title:"Password compromised"},passwordPwned:{title:"Password compromised"},passwordUntrusted:{title:"Password untrusted"},phoneCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your phone"},phoneCodeMfa:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"To continue, please enter the verification code sent to your phone",title:"Check your phone"},resetPassword:{formButtonPrimary:"Reset Password",requiredMessage:"For security reasons, it is required to reset your password.",successMessage:"Your password was successfully changed. Signing you in, please wait a moment.",title:"Set new password"},resetPasswordMfa:{detailsLabel:"We need to verify your identity before resetting your password."},start:{actionLink:"Sign up",actionLink__join_waitlist:"Join waitlist",actionLink__use_email:"Use email",actionLink__use_email_username:"Use email or username",actionLink__use_passkey:"Use passkey instead",actionLink__use_phone:"Use phone",actionLink__use_username:"Use username",actionText:"Don’t have an account?",actionText__join_waitlist:"Want early access?",alternativePhoneCodeProvider:{actionLink:"Use another method",label:"{{provider}} phone number",subtitle:"Enter your phone number to get a verification code on {{provider}}.",title:"Sign in to {{applicationName}} with {{provider}}"},subtitle:"Welcome back! Please sign in to continue",subtitleCombined:void 0,title:"Sign in to {{applicationName}}",titleCombined:"Continue to {{applicationName}}"},totpMfa:{formTitle:"Verification code",subtitle:"To continue, please enter the verification code generated by your authenticator app",title:"Two-step verification"},web3Solana:{subtitle:"Select a wallet below to sign in",title:"Sign in with Solana"}},signInEnterPasswordTitle:"Enter your password",signUp:{alternativePhoneCodeProvider:{resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your {{provider}}",title:"Verify your {{provider}}"},continue:{actionLink:"Sign in",actionText:"Already have an account?",subtitle:"Please fill in the remaining details to continue.",title:"Fill in missing fields"},emailCode:{formSubtitle:"Enter the verification code sent to your email address",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your email",title:"Verify your email"},emailLink:{clientMismatch:{subtitle:"To continue, open the verification link on the device and browser from which you initiated the sign-up",title:"Verification link is invalid for this device"},formSubtitle:"Use the verification link sent to your email address",formTitle:"Verification link",loading:{title:"Signing up..."},resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Verify your email",verified:{title:"Successfully signed up"},verifiedSwitchTab:{subtitle:"Return to the newly opened tab to continue",subtitleNewTab:"Return to previous tab to continue",title:"Successfully verified email"}},enterpriseConnections:{subtitle:"Select the enterprise account with which you wish to continue.",title:"Choose your enterprise account"},legalConsent:{checkbox:{label__onlyPrivacyPolicy:'I agree to the {{ privacyPolicyLink || link("Privacy Policy") }}',label__onlyTermsOfService:'I agree to the {{ termsOfServiceLink || link("Terms of Service") }}',label__termsOfServiceAndPrivacyPolicy:'I agree to the {{ termsOfServiceLink || link("Terms of Service") }} and {{ privacyPolicyLink || link("Privacy Policy") }}'},continue:{subtitle:"Please read and accept the terms to continue",title:"Legal consent"}},phoneCode:{formSubtitle:"Enter the verification code sent to your phone number",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your phone",title:"Verify your phone"},restrictedAccess:{actionLink:"Sign in",actionText:"Already have an account?",blockButton__emailSupport:"Email support",blockButton__joinWaitlist:"Join waitlist",subtitle:"Sign ups are currently disabled. If you believe you should have access, please contact support.",subtitleWaitlist:"Sign ups are currently disabled. To be the first to know when we launch, join the waitlist.",title:"Access restricted"},start:{actionLink:"Sign in",actionLink__use_email:"Use email instead",actionLink__use_phone:"Use phone instead",actionText:"Already have an account?",alternativePhoneCodeProvider:{actionLink:"Use another method",label:"{{provider}} phone number",subtitle:"Enter your phone number to get a verification code on {{provider}}.",title:"Sign up to {{applicationName}} with {{provider}}"},subtitle:"Welcome! Please fill in the details to get started.",subtitleCombined:"Welcome! Please fill in the details to get started.",title:"Create your account",titleCombined:"Create your account"},web3Solana:{subtitle:"Select a wallet below to sign up",title:"Sign up with Solana"}},socialButtonsBlockButton:"Continue with {{provider|titleize}}",socialButtonsBlockButtonManyInView:"{{provider|titleize}}",taskChooseOrganization:{chooseOrganization:{action__createOrganization:"Create new organization",action__invitationAccept:"Join",action__suggestionsAccept:"Request to join",subtitle:"Join an existing organization or create a new one",suggestionsAcceptedLabel:"Pending approval",title:"Choose an organization"},createOrganization:{formButtonReset:"Cancel",formButtonSubmit:"Continue",formFieldInputPlaceholder__name:"My Organization",formFieldInputPlaceholder__slug:"my-organization",formFieldLabel__name:"Name",formFieldLabel__slug:"Slug",subtitle:"Enter your organization details to continue",title:"Setup your organization"},organizationCreationDisabled:{title:"You must belong to an organization",subtitle:"Contact your organization admin for an invitation."},signOut:{actionLink:"Sign out",actionText:"Signed in as {{identifier}}"}},taskResetPassword:{formButtonPrimary:"Reset Password",signOut:{actionLink:"Sign out",actionText:"Signed in as {{identifier}}"},subtitle:"Your account requires a new password before you can continue",title:"Reset your password"},unstable__errors:{already_a_member_in_organization:"{{email}} is already a member of the organization.",avatar_file_size_exceeded:"File size exceeds the maximum limit of 10MB. Please choose a smaller file.",avatar_file_type_invalid:"File type not supported. Please upload a JPG, PNG, GIF, or WEBP image.",captcha_invalid:void 0,captcha_unavailable:"Sign up unsuccessful due to failed bot validation. Please refresh the page to try again or reach out to support for more assistance.",form_code_incorrect:void 0,form_email_address_blocked:void 0,form_identifier_exists__email_address:void 0,form_identifier_exists__phone_number:void 0,form_identifier_exists__username:void 0,form_identifier_not_found:void 0,form_new_password_matches_current:"New password cannot be the same as the current password.",form_param_format_invalid:void 0,form_param_format_invalid__email_address:void 0,form_param_format_invalid__phone_number:void 0,form_param_max_length_exceeded__first_name:void 0,form_param_max_length_exceeded__last_name:void 0,form_param_max_length_exceeded__name:void 0,form_param_nil:void 0,form_param_type_invalid:void 0,form_param_type_invalid__email_address:void 0,form_param_type_invalid__phone_number:void 0,form_param_value_invalid:void 0,form_password_incorrect:void 0,form_password_or_identifier_incorrect:void 0,form_password_length_too_short:"Your password is too short. It must be at least 8 characters long.",form_password_not_strong_enough:"Your password is not strong enough.",form_password_pwned:"This password has been found as part of a breach and can not be used, please try another password instead.",form_password_pwned__sign_in:"This password has been found as part of a breach and can not be used, please reset your password.",form_password_size_in_bytes_exceeded:void 0,form_password_compromised__sign_in:void 0,form_password_untrusted__sign_in:"Your password may be compromised. To protect your account, please continue with an alternative sign-in method. You will be required to reset your password after signing in.",form_password_validation_failed:void 0,form_username_invalid_character:void 0,form_username_invalid_length:"Your username must be between {{min_length}} and {{max_length}} characters long.",form_username_needs_non_number_char:"Your username must contain at least one non-numeric character.",identification_deletion_failed:void 0,not_allowed_access:void 0,organization_domain_blocked:void 0,organization_domain_common:void 0,organization_domain_exists_for_enterprise_connection:void 0,organization_membership_quota_exceeded:void 0,organization_minimum_permissions_needed:void 0,organization_not_found_or_unauthorized:"You are no longer a member of this organization. Please choose or create another one.",organization_not_found_or_unauthorized_with_create_organization_disabled:"You are no longer a member of this organization. Please choose another one.",passkey_already_exists:"A passkey is already registered with this device.",passkey_not_supported:"Passkeys are not supported on this device.",passkey_pa_not_supported:"Registration requires a platform authenticator but the device does not support it.",passkey_registration_cancelled:"Passkey registration was cancelled or timed out.",passkey_retrieval_cancelled:"Passkey verification was cancelled or timed out.",passwordComplexity:{maximumLength:"less than {{length}} characters",minimumLength:"{{length}} or more characters",requireLowercase:"a lowercase letter",requireNumbers:"a number",requireSpecialCharacter:"a special character",requireUppercase:"an uppercase letter",sentencePrefix:"Your password must contain"},phone_number_exists:void 0,session_exists:void 0,web3_missing_identifier:"A Web3 Wallet extension cannot be found. Please install one to continue.",web3_signature_request_rejected:"You have rejected the signature request. Please try again to continue.",web3_solana_signature_generation_failed:"An error occurred while generating the signature. Please try again to continue.",zxcvbn:{couldBeStronger:"Your password works, but could be stronger. Try adding more characters.",goodPassword:"Your password meets all the necessary requirements.",notEnough:"Your password is not strong enough.",suggestions:{allUppercase:"Capitalize some, but not all letters.",anotherWord:"Add more words that are less common.",associatedYears:"Avoid years that are associated with you.",capitalization:"Capitalize more than the first letter.",dates:"Avoid dates and years that are associated with you.",l33t:"Avoid predictable letter substitutions like '@' for 'a'.",longerKeyboardPattern:"Use longer keyboard patterns and change typing direction multiple times.",noNeed:"You can create strong passwords without using symbols, numbers, or uppercase letters.",pwned:"If you use this password elsewhere, you should change it.",recentYears:"Avoid recent years.",repeated:"Avoid repeated words and characters.",reverseWords:"Avoid reversed spellings of common words.",sequences:"Avoid common character sequences.",useWords:"Use multiple words, but avoid common phrases."},warnings:{common:"This is a commonly used password.",commonNames:"Common names and surnames are easy to guess.",dates:"Dates are easy to guess.",extendedRepeat:'Repeated character patterns like "abcabcabc" are easy to guess.',keyPattern:"Short keyboard patterns are easy to guess.",namesByThemselves:"Single names or surnames are easy to guess.",pwned:"Your password was exposed by a data breach on the Internet.",recentYears:"Recent years are easy to guess.",sequences:'Common character sequences like "abc" are easy to guess.',similarToCommon:"This is similar to a commonly used password.",simpleRepeat:'Repeated characters like "aaa" are easy to guess.',straightRow:"Straight rows of keys on your keyboard are easy to guess.",topHundred:"This is a frequently used password.",topTen:"This is a heavily used password.",userInputs:"There should not be any personal or page related data.",wordByItself:"Single words are easy to guess."}}},userButton:{action__addAccount:"Add account",action__closeUserMenu:"Close user menu",action__manageAccount:"Manage account",action__openUserMenu:"Open user menu",action__signOut:"Sign out",action__signOutAll:"Sign out of all accounts"},userProfile:{apiKeysPage:{title:"API keys"},backupCodePage:{actionLabel__copied:"Copied!",actionLabel__copy:"Copy all",actionLabel__download:"Download .txt",actionLabel__print:"Print",infoText1:"Backup codes will be enabled for this account.",infoText2:"Keep the backup codes secret and store them securely. You may regenerate backup codes if you suspect they have been compromised.",subtitle__codelist:"Store them securely and keep them secret.",successMessage:"Backup codes are now enabled. You can use one of these to sign in to your account, if you lose access to your authentication device. Each code can only be used once.",successSubtitle:"You can use one of these to sign in to your account, if you lose access to your authentication device.",title:"Add backup code verification",title__codelist:"Backup codes"},billingPage:{paymentHistorySection:{empty:"No payment history",notFound:"Payment attempt not found",tableHeader__amount:"Amount",tableHeader__date:"Date",tableHeader__status:"Status"},paymentMethodsSection:{actionLabel__default:"Make default",actionLabel__remove:"Remove",add:"Add new payment method",addSubtitle:"Add a new payment method to your account.",cancelButton:"Cancel",formButtonPrimary__add:"Add Payment Method",formButtonPrimary__pay:"Pay {{amount}}",payWithTestCardButton:"Pay with test card",removeMethod:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this payment source and any recurring subscriptions dependent on it will no longer work.",successMessage:"{{paymentMethod}} has been removed from your account.",title:"Remove payment method"},title:"Payment methods"},start:{headerTitle__payments:"Payments",headerTitle__plans:"Plans",headerTitle__statements:"Statements",headerTitle__subscriptions:"Subscription"},statementsSection:{empty:"No statements to display",itemCaption__paidForPlan:"Paid for {{plan}} {{period}} plan",itemCaption__proratedCredit:"Prorated credit for partial usage of previous subscription",itemCaption__subscribedAndPaidForPlan:"Subscribed and paid for {{plan}} {{period}} plan",notFound:"Statement not found",tableHeader__amount:"Amount",tableHeader__date:"Date",title:"Statements",totalPaid:"Total paid"},subscriptionsListSection:{actionLabel__manageSubscription:"Manage",actionLabel__newSubscription:"Subscribe to a plan",actionLabel__switchPlan:"Switch plans",tableHeader__edit:"Edit",tableHeader__plan:"Plan",tableHeader__startDate:"Start date",title:"Subscription"},subscriptionsSection:{actionLabel__default:"Manage"},switchPlansSection:{title:"Switch plans"},title:"Billing"},connectedAccountPage:{formHint:"Select a provider to connect your account.",formHint__noAccounts:"There are no available external account providers.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this connected account and any dependent features will no longer work.",successMessage:"{{connectedAccount}} has been removed from your account.",title:"Remove connected account"},socialButtonsBlockButton:"{{provider|titleize}}",successMessage:"The provider has been added to your account",title:"Add connected account"},deletePage:{actionDescription:'Type "Delete account" below to continue.',confirm:"Delete account",messageLine1:"Are you sure you want to delete your account? Some associated data may be retained. To request full data deletion, please contact support.",messageLine2:"This action is permanent and irreversible.",title:"Delete account"},emailAddressPage:{emailCode:{formHint:"An email containing a verification code will be sent to this email address.",formSubtitle:"Enter the verification code sent to {{identifier}}",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",successMessage:"The email {{identifier}} has been added to your account."},emailLink:{formHint:"An email containing a verification link will be sent to this email address.",formSubtitle:"Click on the verification link in the email sent to {{identifier}}",formTitle:"Verification link",resendButton:"Didn't receive a link? Resend",successMessage:"The email {{identifier}} has been added to your account."},enterpriseSSOLink:{formButton:"Click to sign-in",formSubtitle:"Complete the sign-in with {{identifier}}"},formHint:"You'll need to verify this email address before it can be added to your account.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this email address.",successMessage:"{{emailAddress}} has been removed from your account.",title:"Remove email address"},title:"Add email address",verifyTitle:"Verify email address"},formButtonPrimary__add:"Add",formButtonPrimary__continue:"Continue",formButtonPrimary__finish:"Finish",formButtonPrimary__remove:"Remove",formButtonPrimary__save:"Save",formButtonReset:"Cancel",mfaPage:{formHint:"Select a method to add.",title:"Add two-step verification"},mfaPhoneCodePage:{backButton:"Use existing number",primaryButton__addPhoneNumber:"Add phone number",removeResource:{messageLine1:"{{identifier}} will be no longer receiving verification codes when signing in.",messageLine2:"Your account may not be as secure. Are you sure you want to continue?",successMessage:"SMS code two-step verification has been removed for {{mfaPhoneCode}}",title:"Remove two-step verification"},subtitle__availablePhoneNumbers:"Select an existing phone number to register for SMS code two-step verification or add a new one.",subtitle__unavailablePhoneNumbers:"There are no available phone numbers to register for SMS code two-step verification, please add a new one.",successMessage1:"When signing in, you will need to enter a verification code sent to this phone number as an additional step.",successMessage2:"Save these backup codes and store them somewhere safe. If you lose access to your authentication device, you can use backup codes to sign in.",successTitle:"SMS code verification enabled",title:"Add SMS code verification"},mfaTOTPPage:{authenticatorApp:{buttonAbleToScan__nonPrimary:"Scan QR code instead",buttonUnableToScan__nonPrimary:"Can’t scan QR code?",infoText__ableToScan:"Set up a new sign-in method in your authenticator app and scan the following QR code to link it to your account.",infoText__unableToScan:"Set up a new sign-in method in your authenticator and enter the Key provided below.",inputLabel__unableToScan1:"Make sure Time-based or One-time passwords is enabled, then finish linking your account.",inputLabel__unableToScan2:"Alternatively, if your authenticator supports TOTP URIs, you can also copy the full URI."},removeResource:{messageLine1:"Verification codes from this authenticator will no longer be required when signing in.",messageLine2:"Your account may not be as secure. Are you sure you want to continue?",successMessage:"Two-step verification via authenticator application has been removed.",title:"Remove two-step verification"},successMessage:"Two-step verification is now enabled. When signing in, you will need to enter a verification code from this authenticator as an additional step.",title:"Add authenticator application",verifySubtitle:"Enter verification code generated by your authenticator",verifyTitle:"Verification code"},mobileButton__menu:"Menu",navbar:{account:"Profile",apiKeys:"API keys",billing:"Billing",description:"Manage your account info.",security:"Security",title:"Account"},passkeyScreen:{removeResource:{messageLine1:"{{name}} will be removed from this account.",title:"Remove passkey"},subtitle__rename:"You can change the passkey name to make it easier to find.",title__rename:"Rename Passkey"},passwordPage:{checkboxInfoText__signOutOfOtherSessions:"It is recommended to sign out of all other devices which may have used your old password.",readonly:"Your password can currently not be edited because you can sign in only via the enterprise connection.",successMessage__set:"Your password has been set.",successMessage__signOutOfOtherSessions:"All other devices have been signed out.",successMessage__update:"Your password has been updated.",title__set:"Set password",title__update:"Update password"},phoneNumberPage:{infoText:"A text message containing a verification code will be sent to this phone number. Message and data rates may apply.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this phone number.",successMessage:"{{phoneNumber}} has been removed from your account.",title:"Remove phone number"},successMessage:"{{identifier}} has been added to your account.",title:"Add phone number",verifySubtitle:"Enter the verification code sent to {{identifier}}",verifyTitle:"Verify phone number"},plansPage:{title:"Plans"},profilePage:{fileDropAreaHint:"Recommended size 1:1, up to 10MB.",imageFormDestructiveActionSubtitle:"Remove",imageFormSubtitle:"Upload",imageFormTitle:"Profile image",readonly:"Your profile information has been provided by the enterprise connection and cannot be edited.",successMessage:"Your profile has been updated.",title:"Update profile"},start:{activeDevicesSection:{destructiveAction:"Sign out of device",title:"Active devices"},connectedAccountsSection:{actionLabel__connectionFailed:"Reconnect",actionLabel__reauthorize:"Authorize now",destructiveActionTitle:"Remove",primaryButton:"Connect account",subtitle__disconnected:"This account has been disconnected.",subtitle__reauthorize:"The required scopes have been updated, and you may be experiencing limited functionality. Please re-authorize this application to avoid any issues",title:"Connected accounts"},dangerSection:{deleteAccountButton:"Delete account",title:"Delete account"},emailAddressesSection:{destructiveAction:"Remove email",detailsAction__nonPrimary:"Set as primary",detailsAction__primary:"Complete verification",detailsAction__unverified:"Verify",primaryButton:"Add email address",title:"Email addresses"},enterpriseAccountsSection:{title:"Enterprise accounts"},headerTitle__account:"Profile details",headerTitle__security:"Security",mfaSection:{backupCodes:{actionLabel__regenerate:"Regenerate",headerTitle:"Backup codes",subtitle__regenerate:"Get a fresh set of secure backup codes. Prior backup codes will be deleted and cannot be used.",title__regenerate:"Regenerate backup codes"},phoneCode:{actionLabel__setDefault:"Set as default",destructiveActionLabel:"Remove"},primaryButton:"Add two-step verification",title:"Two-step verification",totp:{destructiveActionTitle:"Remove",headerTitle:"Authenticator application"}},passkeysSection:{menuAction__destructive:"Remove",menuAction__rename:"Rename",primaryButton:"Add a passkey",title:"Passkeys"},passwordSection:{primaryButton__setPassword:"Set password",primaryButton__updatePassword:"Update password",title:"Password"},phoneNumbersSection:{destructiveAction:"Remove phone number",detailsAction__nonPrimary:"Set as primary",detailsAction__primary:"Complete verification",detailsAction__unverified:"Verify phone number",primaryButton:"Add phone number",title:"Phone numbers"},profileSection:{primaryButton:"Update profile",title:"Profile"},usernameSection:{primaryButton__setUsername:"Set username",primaryButton__updateUsername:"Update username",title:"Username"},web3WalletsSection:{destructiveAction:"Remove wallet",detailsAction__nonPrimary:"Set as primary",primaryButton:"Connect wallet",title:"Web3 wallets",web3SelectSolanaWalletScreen:{subtitle:"Select a Solana wallet to connect to your account.",title:"Add a Solana wallet"}}},usernamePage:{successMessage:"Your username has been updated.",title__set:"Set username",title__update:"Update username"},web3WalletPage:{removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this web3 wallet.",successMessage:"{{web3Wallet}} has been removed from your account.",title:"Remove web3 wallet"},subtitle__availableWallets:"Select a web3 wallet to connect to your account.",subtitle__unavailableWallets:"There are no available web3 wallets.",successMessage:"The wallet has been added to your account.",title:"Add web3 wallet",web3WalletButtonsBlockButton:"{{provider|titleize}}"}},waitlist:{start:{actionLink:"Sign in",actionText:"Already have access?",formButton:"Join the waitlist",subtitle:"Enter your email address and we’ll let you know when your spot is ready",title:"Join the waitlist"},success:{message:"You will be redirected soon...",subtitle:"We’ll be in touch when your spot is ready",title:"Thanks for joining the waitlist!"}},web3SolanaWalletButtons:{connect:"Connect with {{walletName}}",continue:"Continue with {{walletName}}",noneAvailable:'No Solana Web3 wallets detected. Please install a Web3 supported {{ solanaWalletsLink || link("wallet extension") }}.'}};var b=r(2861),v=r(9869),y=r(7447);let w=()=>{let{localization:e}=(0,s.II)();var t=e||{};if(!n||o&&o!==t&&!(0,y.j)(t,o)){o=t;let e={};(0,v.n)(g,e),(0,v.n)(t,e),n=e}return n},$=e=>{let t=l.forwardRef((t,r)=>{let n=w(),{localizationKey:o,...i}=t,l=m();return o?"string"==typeof o?(0,a.Y)(e,{...i,ref:r,children:o}):(0,a.Y)(e,{...i,ref:r,"data-localization-key":_(o),children:S(o,n,l)||i.children}):(0,a.Y)(e,{...i,ref:r})}),r=e.displayName||e.name||"Component";return t.displayName=`Localizable${r}`.replace("_",""),t},x=()=>{let{localization:e}=(0,s.II)(),t=w(),r=m(),n=e=>e&&"string"!=typeof e?S(e,t,r):e||"";return{t:n,translateError:e=>{if(!e||"string"==typeof e)return n(e);if((0,i.Cm)(e))return n((0,b.G)(`unstable__errors.${e.code}`))||e.message;let{code:t,message:r,longMessage:o,meta:a}=e||{},{paramName:l=""}=a||{};return t?n((0,b.G)(`unstable__errors.${t}__${l}`))||n((0,b.G)(`unstable__errors.${t}`))||o||r:""},locale:e?.locale||g.locale}},_=e=>e.key,S=(e,t,r)=>{let n=((e,t)=>{let r=(t||"").split("."),n=e;for(let e=0;e<r.length;e++)if(void 0===(n=n[r[e]]))return;return n})(t,e.key),o=e.params;return((e,t)=>{var r,n;let o,a,i,l,s;if(!e)return"";let{normalisedString:c,expressions:d}=(r=e,n=t,o=(r.match(/{{.+?}}/g)||[]).map(e=>e.replace(/[{}]/g,"")).map(e=>e.split("|").map(e=>e.trim())).filter(e=>e[0]in n).map(([e,...t])=>({token:e,modifiers:t.map(e=>f(e)).filter(e=>h(e.modifierName))})),a=r,o.forEach(({token:e})=>{a=a.replace(/{{.+?}}/,`_++${e}++_`)}),{expressions:o,normalisedString:a});return i=c,l=d,s=t,l.forEach(({token:e,modifiers:t})=>{let r=t.reduce((e,t)=>{try{return p[t.modifierName](e,...t.params)}catch(e){return console.warn(e),""}},s[e]);i=i.replace(`_++${e}++_`,r)}),i})(n||"",{...r,...o})}},9661:function(e,t,r){r.d(t,{VirtualBodyRootPortal:()=>T,Portal:()=>E});var n=r(4518),o=r(2166),a=r(2950),i=r(5074),l=r(5323),s=r(4),c=r(5350),d=r(5240),u=r(9078),p=r(3620),m=r(9233),h=r(2826),f=r(9953),g=r(5892),b=r(1),v=r(7032),y=r(451),w=r(6256),$=r(164),x=r(8188),_=r(2121),S=r(1616);function k({componentName:e,props:t,children:r}){switch(e){case"SignIn":return(0,n.Y)(s.Q.Provider,{value:{componentName:e,...t},children:r});case"SignUp":return(0,n.Y)(c.g.Provider,{value:{componentName:e,...t},children:r});case"UserProfile":return(0,n.Y)(d.M.Provider,{value:{componentName:e,...t},children:r});case"UserVerification":return(0,n.Y)(u._.Provider,{value:{componentName:e,...t},children:r});case"UserAvatar":return(0,n.Y)(p.E.Provider,{value:{componentName:e,...t},children:r});case"UserButton":return(0,n.Y)(m.P.Provider,{value:{componentName:e,...t},children:r});case"OrganizationSwitcher":return(0,n.Y)(h.U.Provider,{value:{componentName:e,...t},children:r});case"OrganizationList":return(0,n.Y)(f.f.Provider,{value:{componentName:e,...t},children:r});case"OrganizationProfile":return(0,n.Y)(g.o.Provider,{value:{componentName:e,...t},children:r});case"CreateOrganization":return(0,n.Y)(b.$.Provider,{value:{componentName:e,...t},children:r});case"GoogleOneTap":return(0,n.Y)(v.Q.Provider,{value:{componentName:e,...t},children:r});case"Waitlist":return(0,n.Y)(y.r.Provider,{value:{componentName:e,...t},children:r});case"PricingTable":return(0,n.Y)(w.m$.Provider,{value:t.for||"user",children:(0,n.Y)($.a.Provider,{value:{componentName:e,...t},children:r})});case"APIKeys":return(0,n.Y)(x.w.Provider,{value:{componentName:e,...t},children:r});case"OAuthConsent":return(0,n.Y)(_.n.Provider,{value:{componentName:e,...t},children:r});case"TaskChooseOrganization":return(0,n.Y)(S.lY.Provider,{value:{componentName:"TaskChooseOrganization",...t},children:(0,n.Y)(S.qx.Provider,{value:{...t},children:r})});case"TaskResetPassword":return(0,n.Y)(S.pq.Provider,{value:{componentName:"TaskResetPassword",...t},children:(0,n.Y)(S.qx.Provider,{value:{...t},children:r})});default:throw Error(`Unknown component context: ${e}`)}}var C=r(4173),P=r(1210),A=r(4777);let z=({basePath:e,preservedParams:t,children:r})=>{let{navigate:o}=(0,P.ho)(),[a,l]=i.useState(!1);if(!o)throw Error("Clerk: Missing navigate option.");let s=(e,t)=>{if(e)return o((0,C.FV)(e),t)};return(i.useEffect(()=>{(async()=>{if((0,C.tL)(window.location.hash)){let e=(0,C.yR)(new URL(window.location.href));await s(e.href,{replace:!0}),l(!0)}})()},[l,o,window.location.hash]),(0,C.tL)(window.location.hash)&&!a)?null:(0,n.Y)(A.F,{basePath:e.substring(1),startPath:"",getPath:()=>window.location.pathname,getQueryString:()=>window.location.search,internalNavigate:s,refreshEvents:["popstate"],preservedParams:t,children:r})},I="CLERK-ROUTER/HASH",D=({preservedParams:e,children:t})=>{let r=async e=>{if(e)return window.location.hash=(0,C.FV)(e).substring(1+I.length),Promise.resolve()},o=()=>new URL((0,C.tL)(window.location.hash)?window.location.origin+window.location.hash.substring(1):window.location.origin);return(0,n.Y)(A.F,{getPath:()=>"/"===o().pathname?"/"+I:"/"+I+o().pathname,basePath:I,startPath:"",getQueryString:()=>o().search,internalNavigate:r,refreshEvents:["popstate","hashchange"],preservedParams:e,children:t})};var R=r(4132),Y=r(4692);function E({props:e,component:t,componentName:r,node:s}){let c={...e,...(0,Y.C)({routing:e?.routing,path:e?.path})},d=(0,n.Y)(k,{componentName:r,props:c,children:(0,n.Y)(i.Suspense,{fallback:"",children:i.createElement(t,c)})});return c?.routing==="path"?(c?.path||(0,a.a)(r),l.createPortal((0,n.Y)(z,{preservedParams:o.l,basePath:c.path,children:d}),s)):l.createPortal((0,n.Y)(D,{preservedParams:o.l,children:d}),s)}class T extends i.PureComponent{elRef=document.createElement("div");componentDidMount(){document.body.appendChild(this.elRef)}componentWillUnmount(){document.body.removeChild(this.elRef)}render(){let{props:e,startPath:t,component:r,componentName:o}=this.props;return l.createPortal((0,n.Y)(R.x,{startPath:t,children:(0,n.Y)(k,{componentName:o,props:e??{},children:(0,n.Y)(i.Suspense,{fallback:"",children:i.createElement(r,e)})})}),this.elRef)}}},2349:function(e,t,r){r.d(t,{F:()=>c});var n=r(4518),o=r(1914),a=r(1464),i=r(6488);let{applyVariants:l,filterProps:s}=(0,o.v)(e=>({base:{padding:`${e.space.$3} ${e.space.$4}`,backgroundColor:e.colors.$neutralAlpha50,...a.s.borderVariants(e,{hoverStyles:!1}).normal},variants:{colorScheme:{danger:{color:e.colors.$danger500,backgroundColor:e.colors.$dangerAlpha50,...a.s.borderVariants(e,{hasError:!0}).normal},info:{color:e.colors.$neutralAlpha150,background:e.colors.$neutralAlpha50},warning:{backgroundColor:e.colors.$warningAlpha100,...a.s.borderVariants(e,{hasWarning:!0,hoverStyles:!1}).normal}}},defaultVariants:{colorScheme:"warning"}})),c=e=>(0,n.Y)(i.s,{align:"center",justify:"start",...s(e),css:l(e),children:e.children})},7736:function(e,t,r){r.d(t,{a:()=>s});var n=r(4518),o=r(5074),a=r(1914),i=r(1908);let{applyVariants:l}=(0,a.v)(()=>({base:{boxSizing:"border-box"},variants:{}})),s=o.forwardRef((e,t)=>{let{as:r="div",...o}=e;return(0,n.Y)(r,{...(0,i.k)(o),css:l(e),ref:t})})},6488:function(e,t,r){r.d(t,{f:()=>u,s:()=>d});var n=r(4518),o=r(5074),a=r(1914),i=r(7736);let l=(e,t)=>navigator?.userAgent?.match(/(iphone|ipad).+(os).*(\s13_).+safari/i)?{'& > *:not([hidden]):not([style*="visibility: hidden"]) + *:not([hidden]):not([style*="visibility: hidden"])':{marginLeft:"row"===t?e:void 0,marginTop:"col"===t?e:void 0}}:{gap:e},{applyVariants:s,filterProps:c}=(0,a.v)((e,t)=>{let r="col"===t.flexDirection||"colReverse"===t.flexDirection||"col"===t.direction||"colReverse"===t.direction?"col":"row";return{base:{display:"flex"},variants:{direction:{row:{flexDirection:"row"},col:{flexDirection:"column"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}},align:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"flex-end"},stretch:{alignItems:"stretch"},baseline:{alignItems:"baseline"}},justify:{start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"},between:{justifyContent:"space-between"}},wrap:{noWrap:{flexWrap:"nowrap"},wrap:{flexWrap:"wrap"},wrapReverse:{flexWrap:"wrap-reverse"}},gap:{1:l(e.space.$1,r),2:l(e.space.$2,r),3:l(e.space.$3,r),4:l(e.space.$4,r),5:l(e.space.$5,r),6:l(e.space.$6,r),7:l(e.space.$7,r),8:l(e.space.$8,r),9:l(e.space.$9,r)},center:{true:{justifyContent:"center",alignItems:"center"}}},defaultVariants:{direction:"row",align:"stretch",justify:"start",wrap:"noWrap"}}}),d=o.forwardRef((e,t)=>(0,n.Y)(i.a,{...c(e),css:s(e),ref:t})),u=o.forwardRef((e,t)=>(0,n.Y)(d,{...e,direction:"col",ref:t}))},2204:function(e,t,r){r.d(t,{AT:()=>g,Oc:()=>f,pd:()=>m,TM:()=>b,EP:()=>h});var n=r(4518),o=r(5074),a=r(78),i=r(2861),l=r(1914),s=r(1464),c=r(7591),d=r(593);let{applyVariants:u,filterProps:p}=(0,l.v)((e,t)=>({base:{boxSizing:"border-box",margin:0,padding:`${e.space.$1x5} ${e.space.$3}`,backgroundColor:e.colors.$colorInput,color:e.colors.$colorInputForeground,outline:"transparent solid 2px",outlineOffset:"2px",maxHeight:e.sizes.$9,width:"checkbox"===t.type?e.sizes.$4:"100%",aspectRatio:"checkbox"===t.type?"1/1":"unset",accentColor:e.colors.$primary500,...s.s.textVariants(e).body,...s.s.disabled(e),[c.g.ios]:{fontSize:e.fontSizes.$lg,'&:not([type="checkbox"]):not([type="radio"])':{WebkitAppearance:"none"}},":autofill":{animationName:"onAutoFillStart"},"::placeholder":{color:e.colors.$colorMutedForeground}},variants:{variant:{default:{...s.s.borderVariants(e,t).normal},unstyled:{borderWidth:0,boxShadow:"unset",backgroundColor:"transparent"}}},defaultVariants:{variant:"default"}})),m=o.forwardRef((e,t)=>{var r;let l=(0,d.Wd)()||{},{t:s}=(0,a._)(),{feedbackMessageId:c,ignorePasswordManager:m,feedbackType:h,...f}=(0,d.Uj)(l,["feedbackMessageId","ignorePasswordManager","feedbackType"]),g=p({...e,hasError:e.hasError||f.hasError}),{onChange:b}=(r=g.onChange,{onChange:function(e){e.persist(),"function"==typeof r&&r(e)},ref:o.useRef(null)}),{isDisabled:v,hasError:y,focusRing:w,isRequired:$,type:x,..._}=g,S=v||f.isDisabled,k=$||f.isRequired,C=y||f.hasError,P="email"===x?{type:"text",pattern:"^.*@[a-zA-Z0-9\\-]+\\.[a-zA-Z0-9\\-\\.]+$",inputMode:"email",title:s((0,i.G)("formFieldInput__emailAddress_format"))}:{type:x||"text"};return(0,n.Y)("input",{..._,...P,...m?{"data-1p-ignore":!0}:void 0,ref:t,onChange:b,disabled:v,required:k,id:e.id||f.id,"aria-invalid":C,"aria-describedby":c||void 0,"aria-required":k,"aria-disabled":S,"data-feedback":h,"data-variant":e.variant||"default",css:u(e)})}),h=o.forwardRef((e,t)=>{let r=(0,d.Wd)()||{},{feedbackType:o}=(0,d.Uj)(r,["feedbackType","data-active"]),{isDisabled:a,hasError:i,focusRing:l,isRequired:s,...c}=p({...e,hasError:e.hasError});return(0,n.Y)("div",{...c,ref:t,id:e.id,"aria-invalid":i,"data-feedback":o,"data-variant":e.variant||"default","data-focus-within":l,css:u(e)})}),f=o.forwardRef((e,t)=>(0,n.Y)(m,{...e,type:"checkbox",ref:t})),g=o.forwardRef((e,t)=>(0,n.Y)(m,{...e,type:"radio",ref:t})),b=o.forwardRef((e,t)=>{let{isDisabled:r,hasError:o,focusRing:a,isRequired:i,...l}=e,s=r||e.isDisabled,c=i||e.isRequired,d=o||e.hasError;return(0,n.Y)("textarea",{...l,ref:t,disabled:s,required:c,"aria-invalid":d,"aria-required":c,css:u(e)})})},3707:function(e,t,r){r.d(t,{N:()=>d});var n=r(4518),o=r(4173);r(5074);var a=r(1914),i=r(1464),l=r(1908);let{applyVariants:s,filterProps:c}=(0,a.v)(e=>({base:{boxSizing:"border-box",display:"inline-flex",alignItems:"center",margin:0,cursor:"pointer",...i.s.disabled(e),textDecoration:"none","&:hover":{textDecoration:"underline"}},variants:{variant:i.s.textVariants(e),colorScheme:{primary:{color:e.colors.$primary500,"&:hover":{color:e.colors.$primary400},"&:active":{color:e.colors.$primary600}},danger:{color:e.colors.$danger500,"&:hover":{color:e.colors.$danger400},"&:active":{color:e.colors.$danger600}},neutral:{color:e.colors.$colorMutedForeground},inherit:{color:"inherit"}},focusRing:{true:{"&:focus":{outline:"none",...i.s.focusRing(e)}}}},defaultVariants:{colorScheme:"primary",variant:"body",focusRing:!1}})),d=e=>{let{isExternal:t,children:r,href:a,onClick:i,...d}=e,u=(0,o.d3)(a),p=i?e=>{u||e.preventDefault(),i(e)}:void 0;return(0,n.Y)("a",{...(0,l.k)(c(d)),onClick:p,href:u||"",target:u&&t?"_blank":void 0,rel:u&&t?"noopener noreferrer":void 0,css:s(e),children:r})}},7852:function(e,t,r){r.d(t,{y:()=>p});var n=r(4518),o=r(2637),a=r(1914),i=r(4374);let{size:l,thickness:s,speed:c}=(0,o.T)("speed","size","thickness"),{applyVariants:d,filterProps:u}=(0,a.v)(e=>({base:{display:"inline-block",borderRadius:"99999px",borderTop:`${s} solid currentColor`,borderRight:`${s} solid currentColor`,borderBottomWidth:s,borderLeftWidth:s,borderBottomStyle:"solid",borderLeftStyle:"solid",borderBottomColor:e.colors.$transparent,borderLeftColor:e.colors.$transparent,opacity:1,animation:`${i.W.spinning} ${c} linear 0s infinite normal none running`,width:[l],height:[l],minWidth:[l],minHeight:[l]},variants:{colorScheme:{primary:{borderTopColor:e.colors.$primary500,borderRightColor:e.colors.$primary500,opacity:1},neutral:{borderTopColor:e.colors.$borderAlpha700,borderRightColor:e.colors.$borderAlpha700,opacity:1}},thickness:{sm:{[s]:e.sizes.$0x5},md:{[s]:e.sizes.$1}},size:{xs:{[l]:e.sizes.$3},sm:{[l]:e.sizes.$4},md:{[l]:e.sizes.$5},lg:{[l]:e.sizes.$6},xl:{[l]:e.sizes.$8}},speed:{slow:{[c]:"600ms"},normal:{[c]:"400ms"}}},defaultVariants:{speed:"normal",thickness:"sm",size:"sm"}})),p=e=>(0,n.Y)("span",{...u(e),css:d(e),"aria-busy":!0,"aria-live":"polite"})},1908:function(e,t,r){r.d(t,{k:()=>n});let n=e=>{let{hasError:t,isDisabled:r,isLoading:n,isOpen:o,isActive:a,...i}=e;return{"data-error":t||void 0,"data-disabled":r||void 0,"data-loading":n||void 0,"data-open":o||void 0,"data-active":a||void 0,...i}}},593:function(e,t,r){r.d(t,{BQ:()=>c,Uj:()=>d,Wd:()=>s});var n=r(4518),o=r(1210),a=r(5074),i=r(8640);let[l,,s]=(0,o.e3)("FormFieldContext"),c=e=>{let{id:t,isRequired:r=!1,isDisabled:o=!1,setError:s,setSuccess:c,setWarning:d,setHasPassedComplexity:u,setInfo:p,clearFeedback:m,children:h,feedbackType:f,feedback:g,isFocused:b,...v}=e,y=`${t}-field`,{debounced:w}=(0,i.eW)({feedback:g,feedbackType:f,isFocused:b}),$="error"===w.feedbackType,x=w.feedback?"error"===w.feedbackType?`error-${t}`:`${t}-${w.feedbackType}-feedback`:"",_=a.useMemo(()=>({isRequired:r,isDisabled:o,hasError:$,id:y,fieldId:t,feedbackMessageId:x,setError:s,setSuccess:c,setWarning:d,setInfo:p,clearFeedback:m,setHasPassedComplexity:u,feedbackType:f,feedback:g,isFocused:b}),[r,$,y,t,x,o,s,c,d,p,m,u,f,g,b]);return(0,n.Y)(l.Provider,{value:{value:{..._,...v,debouncedFeedback:w}},children:e.children})},d=(e,t)=>{let{radioOptions:r,validatePassword:n,hasPassedComplexity:o,isFocused:a,feedback:i,feedbackType:l,setHasPassedComplexity:s,setWarning:c,setSuccess:d,setError:u,setInfo:p,feedbackMessageId:m,fieldId:h,label:f,clearFeedback:g,infoText:b,debouncedFeedback:v,ignorePasswordManager:y,transformer:w,...$}=e;return t?.forEach(t=>{$[t]=e[t]}),$}},4777:function(e,t,r){r.d(t,{F:()=>p});var n=r(4518),o=r(8902),a=r(4173),i=r(1210),l=r(5074),s=r(734),c=r(8595),d=r(2265),u=r(4964);let p=({basePath:e,startPath:t,getPath:r,getQueryString:p,internalNavigate:m,refreshEvents:h,preservedParams:f,urlStateParam:g,children:b})=>{let{navigate:v}=(0,i.ho)(),[y,w]=l.useState({path:r(),queryString:p()}),$=y.path,x=y.queryString,_=(0,o.t)(y.queryString),S=(e,t)=>{let[r,n]=(0,s.N)("","",e,t),o=(0,a.Kj)($),i=e&&(0,c.YW)(n+"/:foo*")(o)||t&&(0,c.YW)(r)(o)||t&&(0,c.YW)(n)(o)||!1;return!1!==i&&i.params},k=l.useCallback(()=>{let e=r(),t=p();(e!==$||t!==x)&&w({path:e,queryString:t})},[$,x,r,p]);l.useEffect(()=>{let e=[h].flat().filter(e=>!!e);if(e.length)return e.forEach(e=>window.addEventListener(e,k)),()=>{e.forEach(e=>window.removeEventListener(e,k))}},[h,k]);let C=async t=>{if(!t)return;let r=t.origin!==window.location.origin;if(!t.pathname.startsWith("/"+e)||r){let e=await v(t.href);return k(),e}if(f){let e=(0,o.t)(t.search);f.forEach(t=>{!e[t]&&_[t]&&(e[t]=_[t])}),t.search=(0,o.n)(e)}let n=await m(t,{metadata:{navigationType:"internal"}});return w({path:t.pathname,queryString:t.search}),n};return(0,n.Y)(u.P.Provider,{value:{basePath:e,startPath:t,flowStartPath:t,fullPath:"",indexPath:"",currentPath:$,queryString:x,queryParams:_,getMatchData:S.bind(void 0),matches:((e,t)=>!!S(e,t)).bind(void 0),baseNavigate:C.bind(void 0),navigate:async()=>{},resolve:(e=>new URL(e,window.location.origin)).bind(void 0),refresh:k.bind(void 0),params:{},urlStateParam:g},children:(0,n.Y)(d.q,{path:e,children:b})})}},2265:function(e,t,r){r.d(t,{q:()=>p});var n=r(4518),o=r(4173),a=r(1210),i=r(5074),l=r(1550),s=r(734),c=r(8595),d=r(4964);let u=({canActivate:e,children:t})=>{let{navigateToFlowStart:r}=(0,l.C)(),o=(0,a.ho)();return(i.useEffect(()=>{e(o)||r()}),e(o))?(0,n.Y)(n.FK,{children:t}):null};function p(e){let t=(0,d.r)();if(!e.children)return null;if(!e.index&&!e.path)return(0,n.Y)(n.FK,{children:e.children});if(!t.matches(e.path,e.index))return null;let[r,a]=(0,s.N)(t.indexPath,t.fullPath,e.path,e.index),i=(e,{searchParams:t}={})=>{let r=new URL(e,window.location.origin+a+"/");return t&&(r.search=t.toString()),r.pathname=(0,o.Kj)(r.pathname),r},l=(e,n)=>{let[i,l]=(0,s.N)(r,a,e,n),d=(0,o.Kj)(t.currentPath),u=e&&(0,c.YW)(l+"/:foo*")(d)||n&&(0,c.YW)(i)(d)||n&&(0,c.YW)(l)(d)||!1;return!1!==u&&u.params},p=t.getMatchData(e.path,e.index)||{},m={};for(let[e,t]of Object.entries(p))m[e]=t;let h=(e.flowStart?(0,o.yY)(t.fullPath).replace("/"+t.basePath,""):t.flowStartPath)||t.startPath;return(0,n.Y)(d.P.Provider,{value:{basePath:t.basePath,startPath:t.startPath,flowStartPath:h,indexPath:r,fullPath:a,currentPath:t.currentPath,queryParams:t.queryParams,queryString:t.queryString,baseNavigate:t.baseNavigate,getMatchData:l,matches:(e,t)=>!!l(e,t),resolve:i,navigate:(e,{searchParams:r}={})=>{let n=i(e,{searchParams:r});return t.baseNavigate(n)},refresh:t.refresh,params:m,urlStateParam:t.urlStateParam},children:e.canActivate?(0,n.Y)(u,{canActivate:e.canActivate,children:e.children}):e.children})}},4964:function(e,t,r){r.d(t,{P:()=>o,r:()=>a});var n=r(5074);let o=n.createContext(null);o.displayName="RouteContext";let a=()=>{let e=n.useContext(o);if(!e)throw Error("useRouter called while Router is null");return e}},7831:function(e,t,r){r.d(t,{d:()=>l});var n=r(4518),o=r(5074),a=r(2265),i=r(4964);function l({children:e}){let t=(0,i.r)(),r=null;return o.Children.forEach(e,e=>{if(r||!(e&&o.isValidElement(e)&&"object"==typeof e&&e.type===a.q))return;let{index:n,path:i}=e.props;(!n&&!i||t.matches(i,n))&&(r=e)}),(0,n.Y)(n.FK,{children:r})}},4132:function(e,t,r){r.d(t,{I:()=>s,x:()=>c});var n=r(4518),o=r(1210),a=r(5074),i=r(3727),l=r(4777);let s="CLERK-ROUTER/VIRTUAL",c=({startPath:e,preservedParams:t,onExternalNavigate:r,children:c})=>{let{__internal_addNavigationListener:d}=(0,o.ho)(),[u,p]=a.useState(new URL("/"+s+e,window.location.origin)),{urlStateParam:m,removeQueryParam:h}=(0,i.x)();return(0,a.useEffect)(()=>{let e=()=>{};return r&&(e=d(r)),()=>{e()}},[]),m.componentName&&h(),(0,n.Y)(l.F,{getPath:()=>u.pathname,basePath:s,startPath:e,getQueryString:()=>u.search,internalNavigate:e=>{e&&p(e)},preservedParams:t,urlStateParam:m,children:c})}},3394:function(e,t,r){r.d(t,{VirtualRouter:()=>n.x});var n=r(4132)},734:function(e,t,r){r.d(t,{N:()=>n});let n=(e,t,r,n)=>{let o=e;r&&(o=t,n||(o+="/"+r)),o.startsWith("//")&&(o=o.substr(1));let a=t+(r?"/"+r:"");return a.startsWith("//")&&(a=a.substr(1)),[o,a]}},8595:function(e,t,r){function n(e,t){let r=[];return function(e,t,r={}){let{decode:n=e=>e}=r;return function(r){let o=e.exec(r);if(!o)return!1;let{0:a,index:i}=o,l=Object.create(null);for(let e=1;e<o.length;e++){if(void 0===o[e])continue;let r=t[e-1];"*"===r.modifier||"+"===r.modifier?l[r.name]=o[e].split(r.prefix+r.suffix).map(e=>n(e,r)):l[r.name]=n(o[e],r)}return{path:a,index:i,params:l}}}(function e(t,r,n){if(t instanceof RegExp){if(!r)return t;let e=t.source.match(/\((?!\?)/g);if(e)for(let t=0;t<e.length;t++)r.push({name:t,prefix:"",suffix:"",modifier:"",pattern:""});return t}if(Array.isArray(t)){let o;return o=t.map(t=>e(t,r,n).source),RegExp(`(?:${o.join("|")})`,a(n))}return function(e,t,r={}){let{strict:n=!1,start:i=!0,end:l=!0,encode:s=e=>e}=r,c=`[${o(r.endsWith||"")}]|$`,d=`[${o(r.delimiter||"/#?")}]`,u=i?"^":"";for(let r of e)if("string"==typeof r)u+=o(s(r));else{let e=o(s(r.prefix)),n=o(s(r.suffix));if(r.pattern)if(t&&t.push(r),e||n)if("+"===r.modifier||"*"===r.modifier){let t="*"===r.modifier?"?":"";u+=`(?:${e}((?:${r.pattern})(?:${n}${e}(?:${r.pattern}))*)${n})${t}`}else u+=`(?:${e}(${r.pattern})${n})${r.modifier}`;else u+=`(${r.pattern})${r.modifier}`;else u+=`(?:${e}${n})${r.modifier}`}if(l)n||(u+=`${d}?`),u+=r.endsWith?`(?=${c})`:"$";else{let t=e[e.length-1],r="string"==typeof t?d.indexOf(t[t.length-1])>-1:void 0===t;n||(u+=`(?:${d}(?=${c}))?`),r||(u+=`(?=${d}|${c})`)}return new RegExp(u,a(r))}(function(e,t={}){let r=function(e){let t=[],r=0;for(;r<e.length;){let n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){let n="",o=r+1;for(;o<e.length;){let t=e.charCodeAt(o);if(t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t){n+=e[o++];continue}break}if(!n)throw TypeError(`Missing parameter name at ${r}`);t.push({type:"NAME",index:r,value:n}),r=o;continue}if("("===n){let n=1,o="",a=r+1;if("?"===e[a])throw TypeError(`Pattern cannot start with "?" at ${a}`);for(;a<e.length;){if("\\"===e[a]){o+=e[a++]+e[a++];continue}if(")"===e[a]){if(0==--n){a++;break}}else if("("===e[a]&&(n++,"?"!==e[a+1]))throw TypeError(`Capturing groups are not allowed at ${a}`);o+=e[a++]}if(n)throw TypeError(`Unbalanced pattern at ${r}`);if(!o)throw TypeError(`Missing pattern at ${r}`);t.push({type:"PATTERN",index:r,value:o}),r=a;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),{prefixes:n="./"}=t,a=`[^${o(t.delimiter||"/#?")}]+?`,i=[],l=0,s=0,c="",d=e=>{if(s<r.length&&r[s].type===e)return r[s++].value},u=e=>{let t=d(e);if(void 0!==t)return t;let{type:n,index:o}=r[s];throw TypeError(`Unexpected ${n} at ${o}, expected ${e}`)},p=()=>{let e,t="";for(;e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};for(;s<r.length;){let e=d("CHAR"),t=d("NAME"),r=d("PATTERN");if(t||r){let o=e||"";-1===n.indexOf(o)&&(c+=o,o=""),c&&(i.push(c),c=""),i.push({name:t||l++,prefix:o,suffix:"",pattern:r||a,modifier:d("MODIFIER")||""});continue}let o=e||d("ESCAPED_CHAR");if(o){c+=o;continue}if(c&&(i.push(c),c=""),d("OPEN")){let e=p(),t=d("NAME")||"",r=d("PATTERN")||"",n=p();u("CLOSE"),i.push({name:t||(r?l++:""),pattern:t&&!r?a:r,prefix:e,suffix:n,modifier:d("MODIFIER")||""});continue}u("END")}return i}(t,n),r,n)}(e,r,t),r,t)}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}r.d(t,{YW:()=>n})},9406:function(e,t,r){r.d(t,{S:()=>i});var n=r(4518),o=r(6668);r(5074);var a=r(6580);let i=e=>{let{parsedInternalTheme:t}=(0,a.K)();return(0,n.Y)(o.a,{theme:t,children:e.children})}},5287:function(e,t,r){r.d(t,{StyleCacheProvider:()=>s});var n=r(4518),o=r(1785),a=r(6668),i=r(5074);let l=document.querySelector("style#cl-style-insertion-point"),s=e=>{let t=(0,i.useMemo)(()=>{let t=(0,o.A)({key:"cl-internal",prepend:!e.cssLayerName&&!l,insertionPoint:l||void 0,nonce:e.nonce});if(e.cssLayerName){let r=t.insert.bind(t);t.insert=(t,n,o,a)=>{if(n&&"string"==typeof n.styles&&!n.styles.startsWith("@layer")){let i={...n};return i.styles=`@layer ${e.cssLayerName} {${n.styles}}`,r(t,i,o,a)}return r(t,n,o,a)}}return t},[e.nonce,e.cssLayerName]);return(0,n.Y)(a.C,{value:t,children:e.children})}},4374:function(e,t,r){r.d(t,{W:()=>f});var n=r(8802);let o=(0,n.i7)`
15
15
  0% { transform: rotate(0deg); }
16
16
  100% { transform: rotate(360deg); }`,a=(0,n.i7)`
17
17
  0% {
@@ -115,25 +115,25 @@ print-color-adjust: exact !important;
115
115
  - any valid hex color
116
116
  - any valid hwb color
117
117
  - ${Object.keys(d).join(", ")}
118
- `);return t})(e);switch(t){case"hsl":return{h:r[0],s:r[1],l:r[2],a:r[3]??1};case"hwb":return h((e=>{let t,r,n,o,a=e[0]/360,i=e[1]/100,l=e[2]/100,s=e[3]??1,c=i+l;c>1&&(i/=c,l/=c);let d=Math.floor(6*a),u=1-l;t=6*a-d,(1&d)!=0&&(t=1-t);let p=i+t*(u-i);switch(d){default:case 6:case 0:r=u,n=p,o=i;break;case 1:r=p,n=u,o=i;break;case 2:r=i,n=u,o=p;break;case 3:r=i,n=p,o=u;break;case 4:r=p,n=i,o=u;break;case 5:r=u,n=i,o=p}return[255*r,255*n,255*o,s]})(r));case"rgb":return h(r)}},b=e=>"string"==typeof e?f(g(e)):f(e),v=(e,t)=>({...e,l:e.l+t}),y=(e,t)=>({...e,a:t}),w={toHslaColor:g,toHslaString:b,adjustForLightness:(e,t=5)=>{if(!e)return;let r=w.toHslaColor(e);return r?(100===r.l?r.l=95:r.l=Math.min(r.l+2*t,100),w.toHslaString(r)):e},changeHslaLightness:v,setHslaAlpha:y,lighten:(e,t=0)=>{if(!e)return;let r=g(e);return b(v(r,r.l*t))},makeTransparent:(e,t=0)=>{let r;if(!e||""===e.toString())return;let n=g(e);return b((r=(n.a??1)*t,{...n,a:n.a?n.a-r:void 0}))},makeSolid:e=>{if(e)return b({...g(e),a:1})},setAlpha:(e,t)=>e.toString()?b(y(g(e),t)):e}},5576:function(e,t,r){r.d(t,{D3:()=>c,H5:()=>i,LL:()=>s,Nw:()=>d,lD:()=>u,nm:()=>l});var n=r(4803),o=r(2464);let a=Object.freeze(o.X2.reduce((e,t)=>(e[t]=void 0,e),{})),i=()=>({...a});function l(e,t,r){return`color-mix(in srgb, ${e}, ${t} ${r}%)`}function s(e,t,r,n,o){return`hsl(from ${e} ${t} ${r} ${n}${o?` / ${o}`:""})`}function c(e,t){return`color-mix(in srgb, transparent, ${e} ${t}%)`}function d(e,t){return c(e,o.NO[t])}function u(e,t){if(500===t)return e;if(n.a.relativeColorSyntax())return function(e,t){if(500===t)return e;let r=o.XW[t];if(!r)return e;let{TARGET_LIGHT:n,TARGET_DARK:a,LIGHT_STEPS:i,DARK_STEPS:l}=o.Pg;return t<500?s(e,"h","s",`calc(l + (${r} * ((${n} - l) / ${i})))`):s(e,"h","s",`calc(l - (${r} * ((l - ${a}) / ${l})))`)}(e,t);if(n.a.colorMix()){if(500===t)return e;let r=o.q5[t];return r.mixColor?l(e,r.mixColor,r.percentage):e}return e}},856:function(e,t,r){r.d(t,{K:()=>u});var n=r(4518),o=r(1227),a=r(8813),i=r(7240),l=r(2861),s=r(2293),c=r(3907),d=r(5845);let u=(e,t)=>p({customMenuItems:e,getDefaultMenuItems:h},t),p=({customMenuItems:e,getDefaultMenuItems:t},r)=>{let{INITIAL_MENU_ITEMS:n,validReorderItemLabels:o}=t(),a=e.filter(e=>!!f(e,o)||((0,c.w)(r)&&console.error("Clerk: Invalid custom menu item:",e),!1));(0,c.w)(r)&&(w(e,o),$(a));let{menuItems:i}=m({customMenuItems:a,defaultMenuItems:n});return i},m=({customMenuItems:e,defaultMenuItems:t})=>{let r=t.map(e=>e),a=[...e.map((e,o)=>{if(v(e))return{name:e.label,id:`custom-menutItem-${o}`,icon:t=>(0,n.Y)(s.c,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),path:(0,d.K)(e.href)};if(g(e))return{name:e.label,id:`custom-menutItem-${o}`,icon:t=>(0,n.Y)(s.c,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),onClick:e?.onClick};if(b(e))return{name:e.label,id:`custom-menutItem-${o}`,icon:t=>(0,n.Y)(s.c,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),open:e.open};let a=t.find(t=>t.id===e.label);return r=r.filter(t=>t.id!==e.label),{...a}}),...r];return e.some(e=>e.label===o.dY.MANAGE_ACCOUNT)||a.sort(e=>e.id===o.dY.MANAGE_ACCOUNT?-1:0),{menuItems:a}},h=()=>{let e=[{name:(0,l.G)("userButton.action__manageAccount"),id:o.dY.MANAGE_ACCOUNT,icon:a.A},{name:(0,l.G)("userButton.action__signOut"),id:o.dY.SIGN_OUT,icon:i.A}],t=e.map(e=>e.id);return{INITIAL_MENU_ITEMS:e,validReorderItemLabels:t}},f=(e,t)=>(v(e)||g(e)||b(e)||y(e,t))&&"string"==typeof e.label,g=e=>!!e.label&&!!e.onClick&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,b=e=>!!e.label&&!!e.open&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,v=e=>!!e.href&&!!e.label&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,y=(e,t)=>!e.mount&&!e.unmount&&!e.mountIcon&&!e.unmountIcon&&t.some(t=>t===e.label),w=(e,t)=>{e.filter(e=>y(e,t)).reduce((e,t)=>(e.includes(t.label)&&console.error(`Clerk: The "${t.label}" item is used more than once when reordering pages. This may cause unexpected behavior.`),[...e,t.label]),[])},$=e=>{let t=e.map(e=>e.label),r=t.filter((e,r)=>t.indexOf(e)!==r);r.length>0&&console.warn(`Clerk: Duplicate custom menu item labels found: ${r.join(", ")}`)}},3121:function(e,t,r){r.d(t,{q:()=>C,M:()=>k});var n,o,a,i,l=r(4518),s=r(1841),c=r(4173),d=r(1227),u=r(5074);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let m=function(e){return u.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16"},e),n||(n=u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-2.585 2.894c.154.25.107.568-.083.792A5.675 5.675 0 0 1 8 13.688a5.675 5.675 0 0 1-4.332-2.002c-.19-.224-.237-.543-.083-.792.087-.14.189-.271.306-.392.46-.469 1.087-.986 1.703-1.102.514-.097.899.056 1.298.214.331.132.673.267 1.108.267.435 0 .777-.135 1.108-.267.4-.158.784-.31 1.298-.214.616.116 1.243.633 1.703 1.102.117.12.22.252.306.392ZM8 8.919c1.329 0 2.406-1.559 2.406-2.888a2.406 2.406 0 1 0-4.812 0C5.594 7.361 6.67 8.92 8 8.92Z"})))};var h=r(7358),f=r(4967);function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let b=function(e){return u.createElement("svg",g({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 8"},e),o||(o=u.createElement("path",{d:"M7.22 6.47a.75.75 0 0 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 1.06L9.69 4 7.22 6.47ZM4.78 6.47a.75.75 0 0 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 1.06L2.31 4l2.47 2.47Z",fill:"currentColor"})))};var v=r(9830);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let w=function(e){return u.createElement("svg",y({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),a||(a=u.createElement("path",{d:"M9.167 5.035c0 1.503-1.22 3.266-2.723 3.266S3.722 6.538 3.722 5.035a2.722 2.722 0 0 1 5.445 0ZM1 12.736c0-.797.12-1.804.796-2.643.562-.698 1.23-1.116 1.926-1.247 1.066-.2 1.638.544 2.722.544 1.085 0 1.657-.745 2.723-.544.697.13 1.364.55 1.926 1.247.676.84.796 1.846.796 2.643a.95.95 0 0 1-.95.951H1.95A.95.95 0 0 1 1 12.736Z"})),i||(i=u.createElement("path",{d:"M8.982 7.712c-.088.111-.182.22-.282.324a2.698 2.698 0 0 1 1.21.232c1.336-.247 2.368-1.85 2.368-3.233a2.722 2.722 0 0 0-3.5-2.61 3.491 3.491 0 0 1 1.166 2.61c0 .945-.375 1.927-.962 2.677ZM12.382 13.688c.18-.274.285-.6.285-.952 0-.942-.152-2.21-1.019-3.187-.21-.239-.377-.371-.598-.555.37-.138.75-.238 1.228-.148.697.13 1.364.55 1.926 1.247.676.84.796 1.846.796 2.643a.95.95 0 0 1-.95.951h-1.668Z"})))};var $=r(2861),x=r(2293),_=r(3907),S=r(5845);let k=(e,t,r,n)=>P({customPages:e,getDefaultRoutes:B,setFirstPathToRoot:z,excludedPathsFromDuplicateWarning:[]},t,r,n),C=(e,t,r,n)=>P({customPages:e,getDefaultRoutes:O,setFirstPathToRoot:I,excludedPathsFromDuplicateWarning:[]},t,r,n,!0),P=({customPages:e,getDefaultRoutes:t,setFirstPathToRoot:r,excludedPathsFromDuplicateWarning:n},o,a,i,l)=>{let{INITIAL_ROUTES:c,pageToRootNavbarRouteMap:d,validReorderItemLabels:u}=t({commerce:l?!(0,s.NW)(o,i)&&a:!(0,s.B_)(o,i)&&a,apiKeys:l?!(0,s.s$)(o,i):!(0,s.ui)(o,i)});(0,_.w)(o)&&D(e,u);let{allRoutes:p,contents:m}=A({customPages:e.filter(e=>!!Y(e,u)||((0,_.w)(o)&&console.error("Clerk: Invalid custom page data: ",e),!1)),defaultRoutes:c});M(p);let h=r(p);return(0,_.w)(o)&&R(h,n),{routes:h,contents:m,pageToRootNavbarRouteMap:d}},A=({customPages:e,defaultRoutes:t})=>{let r=t.map(e=>e),n=[],o=e.map((e,o)=>{if(T(e))return{name:e.label,id:`custom-page-${o}`,icon:t=>(0,l.Y)(x.c,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),path:(0,S.K)(e.url),external:!0};if(E(e)){let t=L(e.url);return n.push({url:t,mount:e.mount,unmount:e.unmount}),{name:e.label,id:`custom-page-${o}`,icon:t=>(0,l.Y)(x.c,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),path:t}}let a=t.find(t=>t.id===e.label);return r=r.filter(({id:t})=>t!==e.label),{...a}});return{allRoutes:[...r,...o],contents:n}},z=e=>e.map((e,t)=>0===t?{...e,path:"/"}:e),I=e=>e.map((e,t)=>0===t?{...e,path:"/"}:e),D=(e,t)=>{e.filter(e=>F(e,t)).reduce((e,t)=>(e.includes(t.label)&&console.error(`Clerk: The "${t.label}" item is used more than once when reordering pages. This may cause unexpected behavior.`),[...e,t.label]),[])},R=(e,t)=>{let r=e.filter(({external:e,path:r})=>!e&&t.every(e=>e!==r)).map(({path:e})=>e);r.filter((e,t)=>r.indexOf(e)!==t).forEach(e=>{console.error(`Clerk: Duplicate path "${e}" found in custom pages. This may cause unexpected behavior.`)})},Y=(e,t)=>E(e)||T(e)||F(e,t),E=e=>!!e.url&&!!e.label&&!!e.mount&&!!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,T=e=>!!e.url&&!!e.label&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,F=(e,t)=>!e.url&&!e.mount&&!e.unmount&&!e.mountIcon&&!e.unmountIcon&&t.some(t=>t===e.label),L=e=>{if(!e)throw Error("Clerk: URL is required for custom pages");if((0,c.AY)(e))throw Error("Clerk: Absolute URLs are not supported for custom pages");return"/"===e.charAt(0)&&e.length>1?e.substring(1):e},M=e=>{if(e[0].external)throw Error("Clerk: The first route cannot be a custom external link component")},B=({commerce:e,apiKeys:t})=>{let r=[{name:(0,$.G)("userProfile.navbar.account"),id:d.j2.ACCOUNT,icon:m,path:"account"},{name:(0,$.G)("userProfile.navbar.security"),id:d.j2.SECURITY,icon:h.A,path:"security"}];e&&r.push({name:(0,$.G)("userProfile.navbar.billing"),id:d.j2.BILLING,icon:f.A,path:"billing"}),t&&r.push({name:(0,$.G)("userProfile.navbar.apiKeys"),id:d.j2.API_KEYS,icon:b,path:"api-keys"});let n={profile:r.find(e=>e.id===d.j2.ACCOUNT),"email-address":r.find(e=>e.id===d.j2.ACCOUNT),"phone-number":r.find(e=>e.id===d.j2.ACCOUNT),"connected-account":r.find(e=>e.id===d.j2.ACCOUNT),"web3-wallet":r.find(e=>e.id===d.j2.ACCOUNT),username:r.find(e=>e.id===d.j2.ACCOUNT),"multi-factor":r.find(e=>e.id===d.j2.SECURITY),password:r.find(e=>e.id===d.j2.SECURITY)},o=r.map(e=>e.id);return{INITIAL_ROUTES:r,pageToRootNavbarRouteMap:n,validReorderItemLabels:o}},O=({commerce:e,apiKeys:t})=>{let r=[{name:(0,$.G)("organizationProfile.navbar.general"),id:d.jc.GENERAL,icon:v.A,path:"organization-general"},{name:(0,$.G)("organizationProfile.navbar.members"),id:d.jc.MEMBERS,icon:w,path:"organization-members"}];e&&r.push({name:(0,$.G)("organizationProfile.navbar.billing"),id:d.j2.BILLING,icon:f.A,path:"organization-billing"}),t&&r.push({name:(0,$.G)("organizationProfile.navbar.apiKeys"),id:d.jc.API_KEYS,icon:b,path:"organization-api-keys"});let n={"invite-members":r.find(e=>e.id===d.jc.MEMBERS),domain:r.find(e=>e.id===d.jc.GENERAL),profile:r.find(e=>e.id===d.jc.GENERAL),leave:r.find(e=>e.id===d.jc.GENERAL),delete:r.find(e=>e.id===d.jc.GENERAL)},o=r.map(e=>e.id);return{INITIAL_ROUTES:r,pageToRootNavbarRouteMap:n,validReorderItemLabels:o}}},5485:function(e,t,r){r.d(t,{e:()=>n});let n=e=>e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-")},4803:function(e,t,r){let n,o,a;r.d(t,{a:()=>i});let i={relativeColorSyntax:()=>{if(void 0!==n)return n;try{n=CSS.supports("color: hsl(from white h s l)")}catch{n=!1}return n},colorMix:()=>{if(void 0!==o)return o;try{o=CSS.supports("color: color-mix(in srgb, white, black)")}catch{o=!1}return o},modernColor(){if(void 0!==a)return a;try{a=this.relativeColorSyntax()||this.colorMix()}catch{a=!1}return a}}},8930:function(e,t,r){function n(e){if(!e||"string"!=typeof e)return!1;let t=e.trim();if(!t.startsWith("var(")||!t.endsWith(")"))return!1;let r=t.slice(4,-1).trim();if(!r.startsWith("--"))return!1;let n=r.indexOf(","),o=-1===n?r:r.slice(0,n).trim();return/^--[a-zA-Z0-9-_]+$/.test(o)}function o(e,t,r){let n=document.createElement("div");n.style.setProperty(t,r),e.appendChild(n);let o=window.getComputedStyle(n).getPropertyValue(t);return e.removeChild(n),o.trim()}function a(e,t,r="white"){let n=o(e,"color",t),i=o(e,"color",r),l=document.createElement("canvas");l.width=1,l.height=1;let s=l.getContext("2d");if(!s)return n;s.fillStyle=i,s.fillRect(0,0,1,1),s.fillStyle=n,s.fillRect(0,0,1,1);let{data:c}=s.getImageData(0,0,1,1);return`#${c[0].toString(16).padStart(2,"0")}${c[1].toString(16).padStart(2,"0")}${c[2].toString(16).padStart(2,"0")}`}r.d(t,{AY:()=>i,G3:()=>a,cQ:()=>function e(t,r){let o;if(!n(t))return null;let a=t.trim().slice(4,-1).trim(),i=a.indexOf(","),l=null;-1===i?o=a:(o=a.slice(0,i).trim(),l=a.slice(i+1).trim());let s=function(e,t){let r,n;if("undefined"==typeof window||"undefined"==typeof getComputedStyle)return null;r=e.startsWith("var(")&&e.endsWith(")")?e.slice(4,-1).trim():e.startsWith("--")?e:`--${e}`;try{if(t)n=t;else{if("undefined"==typeof document||!document.documentElement)return null;n=document.documentElement}}catch{return null}try{return getComputedStyle(n).getPropertyValue(r).trim()||null}catch{return null}}(o,r);return s?s:l?n(l)?e(l,r):l:null},yJ:()=>o});let i=(e,t)=>`var(--clerk-${e}, ${t})`},4468:function(e,t,r){r.d(t,{H4:()=>l,hG:()=>s});var n=r(3610),o=r(1044);let a=e=>e[0];function i(e){return(e||[]).reduce((e,t)=>(t.meta?.paramName?e.fieldErrors.push(t):e.globalErrors.push(t),e),{fieldErrors:[],globalErrors:[]})}let l=(e,t,r)=>{if(!(0,n.ux)(e))throw e;return(0,n.si)(e)?c(e,t,r):(0,n.$R)(e)?d(e,t,r):(!(0,n.Cm)(e)||"reverification_cancelled"!==e.code)&&(0,n.Cm)(e)?u(e,t,r):void 0};function s(e){if(!(0,n.$R)(e))return;let{fieldErrors:t}=i(e.errors);if(t.length)return t[0]}let c=(e,t,r)=>r?.(e.message),d=(e,t,r)=>{if(!(0,n.$R)(e))return;let{fieldErrors:l,globalErrors:s}=i(e.errors);if(l&&!(l.length<1)&&t.forEach(e=>{let t=e?.buildErrorMessage;t||(t=a);let r=l.filter(t=>t.meta?.paramName===e.id||(0,o.sF)(t.meta?.paramName)===e.id),n=t(r);r.length&&n?e.setError(n):e.clearFeedback()}),r){r(void 0);let e=s[0];e&&r(e)}},u=(e,t,r)=>{(0,n.Cm)(e)&&r&&(r(void 0),e&&r(e))}},8289:function(e,t,r){r.d(t,{Ih:()=>d,Kn:()=>c,Wy:()=>u,aR:()=>p});let n=e=>e.reduce((e,t,r)=>(e[t]=r,e),{}),o=n(["passkey","password","email_link","email_code","phone_code"]),a=n(["email_link","email_code","phone_code","passkey","password"]),i=n(["email_link","email_code","phone_code","passkey","password"]),l=n(["totp","phone_code","backup_code"]),s=e=>(t,r)=>{let n=e[t.strategy],o=e[r.strategy];return void 0===n||void 0===o?0:n-o},c=s(o),d=s(a),u=s(l),p=s(i)},137:function(e,t,r){r.d(t,{Y:()=>n});function n(e,t="long",r="en-US"){let o={month:"short"===t?"short":"long",..."monthyear"!==t&&{day:"numeric"},..."short"!==t&&{year:"numeric"}};return new Intl.DateTimeFormat(r,o).format(e)}},9835:function(e,t,r){r.d(t,{R:()=>o,u:()=>a});var n=r(7651);let o=e=>e&&e.includes("**"),a=e=>!e||e.includes("@")||o(e)||e.match(/[a-zA-Z]/)?e:(0,n.Om)(e)},1020:function(e,t,r){r.d(t,{P:()=>n});let n=e=>[...e].reduce((e,[t,r])=>(e[t]=r,e),{})},5424:function(e,t,r){r.d(t,{J:()=>n});function n(e,t){if(t&&"mounted"!==e)return t?.target?.closest("[data-clerk-profile-scroll-box-root]")}},7806:function(e,t,r){r.d(t,{T:()=>a});var n=r(6988),o=r(2861);let a=e=>{let t=(0,n.om)({date:e||new Date,relativeTo:new Date});if(!t)return"";switch(t.relativeDateCase){case"previous6Days":return(0,o.G)("dates.previous6Days",{date:t.date});case"lastDay":return(0,o.G)("dates.lastDay",{date:t.date});case"sameDay":return(0,o.G)("dates.sameDay",{date:t.date});case"nextDay":return(0,o.G)("dates.nextDay",{date:t.date});case"next6Days":return(0,o.G)("dates.next6Days",{date:t.date});default:return(0,o.G)("dates.numeric",{date:t.date})}}},8225:function(e,t,r){r.d(t,{p:()=>n});let n=e=>{if((e||"").includes("gravatar")||(e||"").includes("avatar_placeholder"))return!0;try{var t;let r=(t=new URL(e).pathname.replace("/",""),"undefined"!=typeof atob&&"function"==typeof atob?atob(t):"undefined"!=typeof global&&global.Buffer?new global.Buffer(t,"base64").toString():t),n=JSON.parse(r);return"default"===n.type}catch{return!1}}},1089:function(e,t,r){function n(e){return"ListFormat"in Intl&&function(e){if(!e)return!1;let t=Array.isArray(e)?e:[e];return Intl.ListFormat.supportedLocalesOf(t).length===t.length}(e)}function o(e,t){return"NumberFormat"in Intl&&function(e){if(!e)return!1;try{return Intl.NumberFormat.supportedLocalesOf(e).length>0}catch{return!1}}(t)?new Intl.NumberFormat(t,{notation:"compact"}).format(e):e.toString()}r.d(t,{L1:()=>o,bI:()=>n})},958:function(e,t,r){r.d(t,{X:()=>o});let n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,o=()=>"undefined"!=typeof window&&void 0!==window.document&&!!(window.matchMedia("only screen and (max-width: 760px)").matches||n.test(navigator.userAgent)||"ontouchstart"in document.documentElement&&navigator.userAgent.match(/Mobi/))},4692:function(e,t,r){r.d(t,{C:()=>o});var n=r(2950);let o=({routing:e,path:t})=>t&&!e?{routing:"path",path:t}:"path"!==e&&t?(0,n.c)(e):{routing:e,path:t}},3202:function(e,t,r){r.d(t,{u:()=>c});var n=r(2950);let o={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},a=async e=>new Promise(t=>setTimeout(t,e)),i=(e,t)=>t?e*(1+Math.random()):e,l=async(e,t={})=>{var r;let n,l=0,{shouldRetry:s,initialDelay:c,maxDelayBetweenRetries:d,factor:u,retryImmediately:p,jitter:m,onBeforeRetry:h}={...o,...t},f=(r={initialDelay:c,maxDelayBetweenRetries:d,factor:u,jitter:m},n=0,async()=>{let e;await a((e=i(e=r.initialDelay*Math.pow(r.factor,n),r.jitter),Math.min(r.maxDelayBetweenRetries||e,e))),n++});for(;;)try{return await e()}catch(e){if(!s(e,++l))throw e;h&&await h(l),p&&1===l?await a(i(100,m)):await f()}};async function s(e="",t){let{async:r,defer:n,beforeLoad:o,crossOrigin:a,nonce:i}=t||{};return l(()=>new Promise((t,l)=>{e||l(Error("loadScript cannot be called without a src")),document&&document.body||l(Error("loadScript cannot be called when document does not exist"));let s=document.createElement("script");a&&s.setAttribute("crossorigin",a),s.async=r||!1,s.defer=n||!1,s.addEventListener("load",()=>{s.remove(),t(s)}),s.addEventListener("error",t=>{s.remove(),l(t.error??Error(`failed to load script: ${e}`))}),s.src=e,s.nonce=i,o?.(s),document.body.appendChild(s)}),{shouldRetry:(e,t)=>t<=5})}async function c(){if(!window.google)try{await s("https://accounts.google.com/gsi/client",{defer:!0})}catch{(0,n.o)("Google Identity Services")}return window.google}},44:function(e,t,r){r.d(t,{C:()=>o});let n=[".lovable.app",".lovableproject.com",".webcontainer-api.io",".vusercontent.net",".v0.dev",".v0.app",".lp.dev"];function o(){return function(){if(void 0===globalThis.document)return!1;try{return window.self!==window.top}catch{return!0}}()||n.some(e=>window.location.origin.endsWith(e))}},3990:function(e,t,r){r.d(t,{C5:()=>a,kS:()=>l,zJ:()=>i});var n=r(2861),o=r(1089);let a=(e,t)=>{if(!t)return e[0].longMessage;let{t:r,locale:o,passwordSettings:a}=t;if(e?.[0]?.code==="form_password_size_in_bytes_exceeded"||e?.[0]?.code==="form_password_pwned"||e?.[0]?.code==="form_new_password_matches_current")return`${r((0,n.G)(`unstable__errors.${e?.[0]?.code}`))||e?.[0]?.message}`;if(e?.[0]?.code==="form_password_not_strong_enough"){let t=e[0].meta?.zxcvbn?.suggestions?.map(e=>r((0,n.G)(`unstable__errors.zxcvbn.suggestions.${e.code}`))).join(" ");return`${r((0,n.G)("unstable__errors.zxcvbn.notEnough"))} ${t}`}let s=e.filter(e=>"form_password_length_too_short"===e.code),c=l((s.length?s:e).map(e=>{let t={form_password_length_too_long:["unstable__errors.passwordComplexity.maximumLength","length",a.max_length],form_password_length_too_short:["unstable__errors.passwordComplexity.minimumLength","length",a.min_length],form_password_no_uppercase:"unstable__errors.passwordComplexity.requireUppercase",form_password_no_lowercase:"unstable__errors.passwordComplexity.requireLowercase",form_password_no_number:"unstable__errors.passwordComplexity.requireNumbers",form_password_no_special_char:"unstable__errors.passwordComplexity.requireSpecialCharacter"}[e.code];if(Array.isArray(t)){let[e,o,a]=t;return r((0,n.G)(e,{[o]:a}))}return r((0,n.G)(t))}),o);return i(`${r((0,n.G)("unstable__errors.passwordComplexity.sentencePrefix"))} ${c}`)},i=e=>e?e.endsWith(".")?e:`${e}.`:"",l=(e,t)=>(0,o.bI)(t)?new Intl.ListFormat(t,{style:"long",type:"conjunction"}).format(e):e.join(", ")},7651:function(e,t,r){r.d(t,{Mz:()=>p,Om:()=>d,TV:()=>m,Xd:()=>c,eL:()=>a,n4:()=>i,sH:()=>l});var n=r(1820);let o={};function a(e,t="us"){if(o[e=e||t])return o[e];let r=String.fromCodePoint(...[...e.toUpperCase()].map(e=>e.codePointAt(0)+127397));return o[e]=r,r}function i(e,t,r){var n;if(!e||!t)return e;let o=[...l(e)].slice(0,15-((n=(n=r)||"1").includes("+")?n:"+"+n).length);if(o.length<=3)return o.join("");let a="";for(let e=0;o.length>0;e++)e>t.length-1?a+=o.shift():a+="."===t[e]?o.shift():t[e];return a}function l(e){return(e||"").replace(/[^\d]/g,"")}function s(e,t){if(!e||!n.nU.get(e)||!t)return!1;let r=t[0],o=t.substring(1,4);return r===n.nU.get(e)?.code&&t.length-1===((n.nU.get(e)?.pattern||"").match(/\./g)||[]).length&&n.mK[e].has(o)}function c(e){let t=l(e),r=function(e,t="us"){let r=l(e);return!r||r.length<4?t:r.startsWith("1")&&s("us",r)?"us":r.startsWith("1")&&s("ca",r)?"ca":p(r).country.iso}(t),o=n.nU.get(r)?.pattern||"",a=n.nU.get(r)?.code||"",c=t.slice(a.length),d=`+${a} ${i(c,o,a)}`;return{iso:r,pattern:o,code:a,number:c,formattedNumberWithCode:d}}function d(e){let t=c(e);return`+${t.code} ${i(t.number,t.pattern,t.code)}`}let u=(e,t)=>t.priority-e.priority;function p(e){let t=l(e),r=[];for(let e of[4,3,2,1]){let o=t.substring(0,e),a=n.zh.get(o)||[];a.length&&r.push(...a)}let o=n.nU.get("us"),a=r.sort(u)[0]||o;return{number:t.slice(a?.code.length||0),country:a}}function m(e,t){if(!t)return null;let{country:r}=p(e);return t[r.iso.toUpperCase()]||null}},3907:function(e,t,r){r.d(t,{w:()=>o});var n=r(4653);let o=e=>(0,n.t)()||e.sdkMetadata?.environment==="development"},5845:function(e,t,r){r.d(t,{K:()=>o});var n=r(4173);let o=e=>{if(!e)throw Error("Clerk: URL is required for custom links");return(0,n.AY)(e)||"/"===e.charAt(0)?e:`/${e}`}},6735:function(e,t,r){r.d(t,{y:()=>n});let n=e=>new Promise(t=>setTimeout(t,e))},7198:function(e,t,r){r.d(t,{f:()=>o});var n=r(2861);function o(e){let t=new Date,r=new Date(e);if(isNaN(r.getTime()))return"";let o=Math.floor((t.getTime()-r.getTime())/1e3);if(o<60)return(0,n.G)("apiKeys.lastUsed__seconds",{seconds:o});let a=Math.floor(o/60);if(a<60)return(0,n.G)("apiKeys.lastUsed__minutes",{minutes:a});let i=Math.floor(a/60);if(i<24)return(0,n.G)("apiKeys.lastUsed__hours",{hours:i});let l=Math.floor(i/24);if(l<30)return(0,n.G)("apiKeys.lastUsed__days",{days:l});let s=Math.floor(l/30);if(s<12)return(0,n.G)("apiKeys.lastUsed__months",{months:s});let c=Math.floor(s/12);return(0,n.G)("apiKeys.lastUsed__years",{years:c})}},9606:function(e,t,r){r.d(t,{W:()=>n});function n(e,t=20,r=5){if(!e||e.length<=t)return e;if(t<=r+3)return"..."+e.slice(-r);let o=Array.from(e);return o.length<=t?e:o.slice(0,t-r-3).join("")+"..."+o.slice(-r).join("")}},8640:function(e,t,r){r.d(t,{eW:()=>d,mK:()=>c,tJ:()=>s});var n=r(5074),o=r(4317),a=r(78);let i=e=>e.trim(),l=(e,t)=>{let r=e;for(let e=0;e<t.length;e++)r=t[e](r);return r},s=(e,t,r)=>{let o=r||{type:"text",label:"",isRequired:!1,placeholder:"",options:[],defaultChecked:!1},s=[];o.transformer&&s.push(o.transformer),"email"===o.type&&s.push(i);let{translateError:c,t:d}=(0,a._)(),[u,p]=(0,n.useState)(l(t,s)),[m,h]=(0,n.useState)(!1),[f,g]=(0,n.useState)(o?.defaultChecked||!1),[b,v]=(0,n.useState)(!1),[y,w]=(0,n.useState)({message:"",type:"info"}),$=e=>{w({message:c(e),type:"error"})},{defaultChecked:x,validatePassword:_,buildErrorMessage:S,...k}=o,C={id:e,name:e,value:u,checked:f,setSuccess:e=>{w({message:e,type:"success"})},setError:$,onChange:e=>o?.type==="checkbox"?g(e.target.checked):p(l(e.target.value||"",s)),onBlur:()=>{h(!1)},onFocus:()=>{h(!0)},setWarning:e=>{w({message:c(e),type:"warning"})},feedback:y.message||d(o.infoText),feedbackType:y.type,setInfo:e=>{w({message:e,type:"info"})},clearFeedback:()=>{w({message:"",type:"info"})},hasPassedComplexity:b,setHasPassedComplexity:v,validatePassword:"password"===o.type?o.validatePassword:void 0,isFocused:m,...k};return{props:C,...C,buildErrorMessage:S,setError:$,setValue:e=>p(e||""),setChecked:e=>g(e)}},c=e=>{let t={};return e.forEach(e=>{t[e.id]="checkbox"!==e.type?e.value:e.checked}),t},d=e=>{let{feedback:t="",delayInMs:r=100,feedbackType:n="info",isFocused:a=!1}=e||{},i=!a&&["info","warning"].includes(n);return{debounced:(0,o.d)({feedback:i?"":t,feedbackType:i?"info":n},r)}}},4557:function(e,t,r){r.d(t,{Z:()=>i});var n=r(2861);let o="form_username_invalid_length",a="form_username_needs_non_number_char",i=(e,t)=>{let{t:r,usernameSettings:i}=t,l=e[0];return t?l?.code===o?r((0,n.G)(`unstable__errors.${o}`,{min_length:i.min_length,max_length:i.max_length})):l?.code===a?r((0,n.G)(`unstable__errors.${a}`)):l:l}},9236:function(e,t,r){r.d(t,{f:()=>a});var n=r(3610),o=r(4468);let a=(e,t)=>{if((0,n.$R)(e)&&e.errors?.[0]?.meta?.paramName==="identifier"&&e.errors?.[0]?.code==="form_param_nil"){let e=new n.cR("A Web3 Wallet extension cannot be found. Please install one to continue.",{code:"web3_missing_identifier"});return(0,o.H4)(e,[],t)}return(0,o.H4)(e,[],t)}},1652:function(e,t,r){r.d(t,{c:()=>n,y:()=>o});let n=[{channel:"whatsapp",name:"WhatsApp"}],o=e=>e&&n.find(t=>t.channel===e)||null},6435:function(e,t,r){r.d(t,{l:()=>o,n:()=>n});let n=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"];function o(e,t="svg"){return`https://img.clerk.com/static/${e}.${t}`}},6988:function(e,t,r){function n(e){try{return new Date(e||new Date)}catch{return new Date}}function o(e){let{date:t,relativeTo:r}=e;if(!t||!r)return null;let o=n(t),a=function(e,t,{absolute:r=!0}={}){if(!e||!t)return 0;let n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),o=Math.floor((Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-n)/864e5);return r?Math.abs(o):o}(n(r),o,{absolute:!1});return a<-6?{relativeDateCase:"other",date:o}:a<-1?{relativeDateCase:"previous6Days",date:o}:-1===a?{relativeDateCase:"lastDay",date:o}:0===a?{relativeDateCase:"sameDay",date:o}:1===a?{relativeDateCase:"nextDay",date:o}:a<7?{relativeDateCase:"next6Days",date:o}:{relativeDateCase:"other",date:o}}r.d(t,{OG:()=>n,om:()=>o})},5273:function(e,t,r){function n(e){return function(t){let r=t??this;if(!r)throw TypeError(`${e.kind||e.name} type guard requires an error object`);return r instanceof e}}r.d(t,{a:()=>p,b:()=>l,c:()=>h,d:()=>g,f:()=>m,g:()=>c,i:()=>u,m:()=>f,o:()=>v,s:()=>d,u:()=>b,y:()=>s});var o=class{static kind="ClerkApiError";code;message;longMessage;meta;constructor(e){const t={code:e.code,message:e.message,longMessage:e.long_message,meta:{paramName:e.meta?.param_name,sessionId:e.meta?.session_id,emailAddresses:e.meta?.email_addresses,identifiers:e.meta?.identifiers,zxcvbn:e.meta?.zxcvbn,plan:e.meta?.plan,isPlanUpgradePossible:e.meta?.is_plan_upgrade_possible}};this.code=t.code,this.message=t.message,this.longMessage=t.longMessage,this.meta=t.meta}};n(o);var a=class e extends Error{static kind="ClerkError";clerkError=!0;code;longMessage;docsUrl;cause;get name(){return this.constructor.name}constructor(t){super(new.target.formatMessage(new.target.kind,t.message,t.code,t.docsUrl),{cause:t.cause}),Object.setPrototypeOf(this,e.prototype),this.code=t.code,this.docsUrl=t.docsUrl,this.longMessage=t.longMessage,this.cause=t.cause}toString(){return`[${this.name}]
118
+ `);return t})(e);switch(t){case"hsl":return{h:r[0],s:r[1],l:r[2],a:r[3]??1};case"hwb":return h((e=>{let t,r,n,o,a=e[0]/360,i=e[1]/100,l=e[2]/100,s=e[3]??1,c=i+l;c>1&&(i/=c,l/=c);let d=Math.floor(6*a),u=1-l;t=6*a-d,(1&d)!=0&&(t=1-t);let p=i+t*(u-i);switch(d){default:case 6:case 0:r=u,n=p,o=i;break;case 1:r=p,n=u,o=i;break;case 2:r=i,n=u,o=p;break;case 3:r=i,n=p,o=u;break;case 4:r=p,n=i,o=u;break;case 5:r=u,n=i,o=p}return[255*r,255*n,255*o,s]})(r));case"rgb":return h(r)}},b=e=>"string"==typeof e?f(g(e)):f(e),v=(e,t)=>({...e,l:e.l+t}),y=(e,t)=>({...e,a:t}),w={toHslaColor:g,toHslaString:b,adjustForLightness:(e,t=5)=>{if(!e)return;let r=w.toHslaColor(e);return r?(100===r.l?r.l=95:r.l=Math.min(r.l+2*t,100),w.toHslaString(r)):e},changeHslaLightness:v,setHslaAlpha:y,lighten:(e,t=0)=>{if(!e)return;let r=g(e);return b(v(r,r.l*t))},makeTransparent:(e,t=0)=>{let r;if(!e||""===e.toString())return;let n=g(e);return b((r=(n.a??1)*t,{...n,a:n.a?n.a-r:void 0}))},makeSolid:e=>{if(e)return b({...g(e),a:1})},setAlpha:(e,t)=>e.toString()?b(y(g(e),t)):e}},5576:function(e,t,r){r.d(t,{D3:()=>c,H5:()=>i,LL:()=>s,Nw:()=>d,lD:()=>u,nm:()=>l});var n=r(4803),o=r(2464);let a=Object.freeze(o.X2.reduce((e,t)=>(e[t]=void 0,e),{})),i=()=>({...a});function l(e,t,r){return`color-mix(in srgb, ${e}, ${t} ${r}%)`}function s(e,t,r,n,o){return`hsl(from ${e} ${t} ${r} ${n}${o?` / ${o}`:""})`}function c(e,t){return`color-mix(in srgb, transparent, ${e} ${t}%)`}function d(e,t){return c(e,o.NO[t])}function u(e,t){if(500===t)return e;if(n.a.relativeColorSyntax())return function(e,t){if(500===t)return e;let r=o.XW[t];if(!r)return e;let{TARGET_LIGHT:n,TARGET_DARK:a,LIGHT_STEPS:i,DARK_STEPS:l}=o.Pg;return t<500?s(e,"h","s",`calc(l + (${r} * ((${n} - l) / ${i})))`):s(e,"h","s",`calc(l - (${r} * ((l - ${a}) / ${l})))`)}(e,t);if(n.a.colorMix()){if(500===t)return e;let r=o.q5[t];return r.mixColor?l(e,r.mixColor,r.percentage):e}return e}},856:function(e,t,r){r.d(t,{K:()=>u});var n=r(4518),o=r(1227),a=r(8813),i=r(7240),l=r(2861),s=r(2293),c=r(3907),d=r(5845);let u=(e,t)=>p({customMenuItems:e,getDefaultMenuItems:h},t),p=({customMenuItems:e,getDefaultMenuItems:t},r)=>{let{INITIAL_MENU_ITEMS:n,validReorderItemLabels:o}=t(),a=e.filter(e=>!!f(e,o)||((0,c.w)(r)&&console.error("Clerk: Invalid custom menu item:",e),!1));(0,c.w)(r)&&(w(e,o),$(a));let{menuItems:i}=m({customMenuItems:a,defaultMenuItems:n});return i},m=({customMenuItems:e,defaultMenuItems:t})=>{let r=t.map(e=>e),a=[...e.map((e,o)=>{if(v(e))return{name:e.label,id:`custom-menutItem-${o}`,icon:t=>(0,n.Y)(s.c,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),path:(0,d.K)(e.href)};if(g(e))return{name:e.label,id:`custom-menutItem-${o}`,icon:t=>(0,n.Y)(s.c,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),onClick:e?.onClick};if(b(e))return{name:e.label,id:`custom-menutItem-${o}`,icon:t=>(0,n.Y)(s.c,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),open:e.open};let a=t.find(t=>t.id===e.label);return r=r.filter(t=>t.id!==e.label),{...a}}),...r];return e.some(e=>e.label===o.dY.MANAGE_ACCOUNT)||a.sort(e=>e.id===o.dY.MANAGE_ACCOUNT?-1:0),{menuItems:a}},h=()=>{let e=[{name:(0,l.G)("userButton.action__manageAccount"),id:o.dY.MANAGE_ACCOUNT,icon:a.A},{name:(0,l.G)("userButton.action__signOut"),id:o.dY.SIGN_OUT,icon:i.A}],t=e.map(e=>e.id);return{INITIAL_MENU_ITEMS:e,validReorderItemLabels:t}},f=(e,t)=>(v(e)||g(e)||b(e)||y(e,t))&&"string"==typeof e.label,g=e=>!!e.label&&!!e.onClick&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,b=e=>!!e.label&&!!e.open&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,v=e=>!!e.href&&!!e.label&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,y=(e,t)=>!e.mount&&!e.unmount&&!e.mountIcon&&!e.unmountIcon&&t.some(t=>t===e.label),w=(e,t)=>{e.filter(e=>y(e,t)).reduce((e,t)=>(e.includes(t.label)&&console.error(`Clerk: The "${t.label}" item is used more than once when reordering pages. This may cause unexpected behavior.`),[...e,t.label]),[])},$=e=>{let t=e.map(e=>e.label),r=t.filter((e,r)=>t.indexOf(e)!==r);r.length>0&&console.warn(`Clerk: Duplicate custom menu item labels found: ${r.join(", ")}`)}},3121:function(e,t,r){r.d(t,{q:()=>C,M:()=>k});var n,o,a,i,l=r(4518),s=r(1841),c=r(4173),d=r(1227),u=r(5074);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let m=function(e){return u.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16"},e),n||(n=u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-2.585 2.894c.154.25.107.568-.083.792A5.675 5.675 0 0 1 8 13.688a5.675 5.675 0 0 1-4.332-2.002c-.19-.224-.237-.543-.083-.792.087-.14.189-.271.306-.392.46-.469 1.087-.986 1.703-1.102.514-.097.899.056 1.298.214.331.132.673.267 1.108.267.435 0 .777-.135 1.108-.267.4-.158.784-.31 1.298-.214.616.116 1.243.633 1.703 1.102.117.12.22.252.306.392ZM8 8.919c1.329 0 2.406-1.559 2.406-2.888a2.406 2.406 0 1 0-4.812 0C5.594 7.361 6.67 8.92 8 8.92Z"})))};var h=r(7358),f=r(4967);function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let b=function(e){return u.createElement("svg",g({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 8"},e),o||(o=u.createElement("path",{d:"M7.22 6.47a.75.75 0 0 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 1.06L9.69 4 7.22 6.47ZM4.78 6.47a.75.75 0 0 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 1.06L2.31 4l2.47 2.47Z",fill:"currentColor"})))};var v=r(9830);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let w=function(e){return u.createElement("svg",y({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),a||(a=u.createElement("path",{d:"M9.167 5.035c0 1.503-1.22 3.266-2.723 3.266S3.722 6.538 3.722 5.035a2.722 2.722 0 0 1 5.445 0ZM1 12.736c0-.797.12-1.804.796-2.643.562-.698 1.23-1.116 1.926-1.247 1.066-.2 1.638.544 2.722.544 1.085 0 1.657-.745 2.723-.544.697.13 1.364.55 1.926 1.247.676.84.796 1.846.796 2.643a.95.95 0 0 1-.95.951H1.95A.95.95 0 0 1 1 12.736Z"})),i||(i=u.createElement("path",{d:"M8.982 7.712c-.088.111-.182.22-.282.324a2.698 2.698 0 0 1 1.21.232c1.336-.247 2.368-1.85 2.368-3.233a2.722 2.722 0 0 0-3.5-2.61 3.491 3.491 0 0 1 1.166 2.61c0 .945-.375 1.927-.962 2.677ZM12.382 13.688c.18-.274.285-.6.285-.952 0-.942-.152-2.21-1.019-3.187-.21-.239-.377-.371-.598-.555.37-.138.75-.238 1.228-.148.697.13 1.364.55 1.926 1.247.676.84.796 1.846.796 2.643a.95.95 0 0 1-.95.951h-1.668Z"})))};var $=r(2861),x=r(2293),_=r(3907),S=r(5845);let k=(e,t,r,n)=>P({customPages:e,getDefaultRoutes:B,setFirstPathToRoot:z,excludedPathsFromDuplicateWarning:[]},t,r,n),C=(e,t,r,n)=>P({customPages:e,getDefaultRoutes:O,setFirstPathToRoot:I,excludedPathsFromDuplicateWarning:[]},t,r,n,!0),P=({customPages:e,getDefaultRoutes:t,setFirstPathToRoot:r,excludedPathsFromDuplicateWarning:n},o,a,i,l)=>{let{INITIAL_ROUTES:c,pageToRootNavbarRouteMap:d,validReorderItemLabels:u}=t({commerce:l?!(0,s.NW)(o,i)&&a:!(0,s.B_)(o,i)&&a,apiKeys:l?!(0,s.s$)(o,i):!(0,s.ui)(o,i)});(0,_.w)(o)&&D(e,u);let{allRoutes:p,contents:m}=A({customPages:e.filter(e=>!!Y(e,u)||((0,_.w)(o)&&console.error("Clerk: Invalid custom page data: ",e),!1)),defaultRoutes:c});M(p);let h=r(p);return(0,_.w)(o)&&R(h,n),{routes:h,contents:m,pageToRootNavbarRouteMap:d}},A=({customPages:e,defaultRoutes:t})=>{let r=t.map(e=>e),n=[],o=e.map((e,o)=>{if(T(e))return{name:e.label,id:`custom-page-${o}`,icon:t=>(0,l.Y)(x.c,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),path:(0,S.K)(e.url),external:!0};if(E(e)){let t=L(e.url);return n.push({url:t,mount:e.mount,unmount:e.unmount}),{name:e.label,id:`custom-page-${o}`,icon:t=>(0,l.Y)(x.c,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),path:t}}let a=t.find(t=>t.id===e.label);return r=r.filter(({id:t})=>t!==e.label),{...a}});return{allRoutes:[...r,...o],contents:n}},z=e=>e.map((e,t)=>0===t?{...e,path:"/"}:e),I=e=>e.map((e,t)=>0===t?{...e,path:"/"}:e),D=(e,t)=>{e.filter(e=>F(e,t)).reduce((e,t)=>(e.includes(t.label)&&console.error(`Clerk: The "${t.label}" item is used more than once when reordering pages. This may cause unexpected behavior.`),[...e,t.label]),[])},R=(e,t)=>{let r=e.filter(({external:e,path:r})=>!e&&t.every(e=>e!==r)).map(({path:e})=>e);r.filter((e,t)=>r.indexOf(e)!==t).forEach(e=>{console.error(`Clerk: Duplicate path "${e}" found in custom pages. This may cause unexpected behavior.`)})},Y=(e,t)=>E(e)||T(e)||F(e,t),E=e=>!!e.url&&!!e.label&&!!e.mount&&!!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,T=e=>!!e.url&&!!e.label&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,F=(e,t)=>!e.url&&!e.mount&&!e.unmount&&!e.mountIcon&&!e.unmountIcon&&t.some(t=>t===e.label),L=e=>{if(!e)throw Error("Clerk: URL is required for custom pages");if((0,c.AY)(e))throw Error("Clerk: Absolute URLs are not supported for custom pages");return"/"===e.charAt(0)&&e.length>1?e.substring(1):e},M=e=>{if(e[0].external)throw Error("Clerk: The first route cannot be a custom external link component")},B=({commerce:e,apiKeys:t})=>{let r=[{name:(0,$.G)("userProfile.navbar.account"),id:d.j2.ACCOUNT,icon:m,path:"account"},{name:(0,$.G)("userProfile.navbar.security"),id:d.j2.SECURITY,icon:h.A,path:"security"}];e&&r.push({name:(0,$.G)("userProfile.navbar.billing"),id:d.j2.BILLING,icon:f.A,path:"billing"}),t&&r.push({name:(0,$.G)("userProfile.navbar.apiKeys"),id:d.j2.API_KEYS,icon:b,path:"api-keys"});let n={profile:r.find(e=>e.id===d.j2.ACCOUNT),"email-address":r.find(e=>e.id===d.j2.ACCOUNT),"phone-number":r.find(e=>e.id===d.j2.ACCOUNT),"connected-account":r.find(e=>e.id===d.j2.ACCOUNT),"web3-wallet":r.find(e=>e.id===d.j2.ACCOUNT),username:r.find(e=>e.id===d.j2.ACCOUNT),"multi-factor":r.find(e=>e.id===d.j2.SECURITY),password:r.find(e=>e.id===d.j2.SECURITY)},o=r.map(e=>e.id);return{INITIAL_ROUTES:r,pageToRootNavbarRouteMap:n,validReorderItemLabels:o}},O=({commerce:e,apiKeys:t})=>{let r=[{name:(0,$.G)("organizationProfile.navbar.general"),id:d.jc.GENERAL,icon:v.A,path:"organization-general"},{name:(0,$.G)("organizationProfile.navbar.members"),id:d.jc.MEMBERS,icon:w,path:"organization-members"}];e&&r.push({name:(0,$.G)("organizationProfile.navbar.billing"),id:d.j2.BILLING,icon:f.A,path:"organization-billing"}),t&&r.push({name:(0,$.G)("organizationProfile.navbar.apiKeys"),id:d.jc.API_KEYS,icon:b,path:"organization-api-keys"});let n={"invite-members":r.find(e=>e.id===d.jc.MEMBERS),domain:r.find(e=>e.id===d.jc.GENERAL),profile:r.find(e=>e.id===d.jc.GENERAL),leave:r.find(e=>e.id===d.jc.GENERAL),delete:r.find(e=>e.id===d.jc.GENERAL)},o=r.map(e=>e.id);return{INITIAL_ROUTES:r,pageToRootNavbarRouteMap:n,validReorderItemLabels:o}}},5485:function(e,t,r){r.d(t,{e:()=>n});let n=e=>e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-")},4803:function(e,t,r){let n,o,a;r.d(t,{a:()=>i});let i={relativeColorSyntax:()=>{if(void 0!==n)return n;try{n=CSS.supports("color: hsl(from white h s l)")}catch{n=!1}return n},colorMix:()=>{if(void 0!==o)return o;try{o=CSS.supports("color: color-mix(in srgb, white, black)")}catch{o=!1}return o},modernColor(){if(void 0!==a)return a;try{a=this.relativeColorSyntax()||this.colorMix()}catch{a=!1}return a}}},8930:function(e,t,r){function n(e){if(!e||"string"!=typeof e)return!1;let t=e.trim();if(!t.startsWith("var(")||!t.endsWith(")"))return!1;let r=t.slice(4,-1).trim();if(!r.startsWith("--"))return!1;let n=r.indexOf(","),o=-1===n?r:r.slice(0,n).trim();return/^--[a-zA-Z0-9-_]+$/.test(o)}function o(e,t,r){let n=document.createElement("div");n.style.setProperty(t,r),e.appendChild(n);let o=window.getComputedStyle(n).getPropertyValue(t);return e.removeChild(n),o.trim()}function a(e,t,r="white"){let n=o(e,"color",t),i=o(e,"color",r),l=document.createElement("canvas");l.width=1,l.height=1;let s=l.getContext("2d");if(!s)return n;s.fillStyle=i,s.fillRect(0,0,1,1),s.fillStyle=n,s.fillRect(0,0,1,1);let{data:c}=s.getImageData(0,0,1,1);return`#${c[0].toString(16).padStart(2,"0")}${c[1].toString(16).padStart(2,"0")}${c[2].toString(16).padStart(2,"0")}`}r.d(t,{AY:()=>i,G3:()=>a,cQ:()=>function e(t,r){let o;if(!n(t))return null;let a=t.trim().slice(4,-1).trim(),i=a.indexOf(","),l=null;-1===i?o=a:(o=a.slice(0,i).trim(),l=a.slice(i+1).trim());let s=function(e,t){let r,n;if("undefined"==typeof window||"undefined"==typeof getComputedStyle)return null;r=e.startsWith("var(")&&e.endsWith(")")?e.slice(4,-1).trim():e.startsWith("--")?e:`--${e}`;try{if(t)n=t;else{if("undefined"==typeof document||!document.documentElement)return null;n=document.documentElement}}catch{return null}try{return getComputedStyle(n).getPropertyValue(r).trim()||null}catch{return null}}(o,r);return s?s:l?n(l)?e(l,r):l:null},yJ:()=>o});let i=(e,t)=>`var(--clerk-${e}, ${t})`},4468:function(e,t,r){r.d(t,{H4:()=>i});var n=r(3610),o=r(1044);let a=e=>e[0],i=(e,t,r)=>{if(!(0,n.ux)(e))throw e;return(0,n.si)(e)?l(e,t,r):(0,n.$R)(e)?s(e,t,r):(!(0,n.Cm)(e)||"reverification_cancelled"!==e.code)&&(0,n.Cm)(e)?c(e,t,r):void 0},l=(e,t,r)=>r?.(e.message),s=(e,t,r)=>{if(!(0,n.$R)(e))return;let{fieldErrors:i,globalErrors:l}=(e.errors||[]).reduce((e,t)=>(t.meta?.paramName?e.fieldErrors.push(t):e.globalErrors.push(t),e),{fieldErrors:[],globalErrors:[]});if(i&&!(i.length<1)&&t.forEach(e=>{let t=e?.buildErrorMessage;t||(t=a);let r=i.filter(t=>t.meta?.paramName===e.id||(0,o.sF)(t.meta?.paramName)===e.id),n=t(r);r.length&&n?e.setError(n):e.clearFeedback()}),r){r(void 0);let e=l[0];e&&r(e)}},c=(e,t,r)=>{(0,n.Cm)(e)&&r&&(r(void 0),e&&r(e))}},8289:function(e,t,r){r.d(t,{Ih:()=>d,Kn:()=>c,Wy:()=>u,aR:()=>p});let n=e=>e.reduce((e,t,r)=>(e[t]=r,e),{}),o=n(["passkey","password","email_link","email_code","phone_code"]),a=n(["email_link","email_code","phone_code","passkey","password"]),i=n(["email_link","email_code","phone_code","passkey","password"]),l=n(["totp","phone_code","backup_code"]),s=e=>(t,r)=>{let n=e[t.strategy],o=e[r.strategy];return void 0===n||void 0===o?0:n-o},c=s(o),d=s(a),u=s(l),p=s(i)},137:function(e,t,r){r.d(t,{Y:()=>n});function n(e,t="long",r="en-US"){let o={month:"short"===t?"short":"long",..."monthyear"!==t&&{day:"numeric"},..."short"!==t&&{year:"numeric"}};return new Intl.DateTimeFormat(r,o).format(e)}},9835:function(e,t,r){r.d(t,{R:()=>o,u:()=>a});var n=r(7651);let o=e=>e&&e.includes("**"),a=e=>!e||e.includes("@")||o(e)||e.match(/[a-zA-Z]/)?e:(0,n.Om)(e)},1020:function(e,t,r){r.d(t,{P:()=>n});let n=e=>[...e].reduce((e,[t,r])=>(e[t]=r,e),{})},5424:function(e,t,r){r.d(t,{J:()=>n});function n(e,t){if(t&&"mounted"!==e)return t?.target?.closest("[data-clerk-profile-scroll-box-root]")}},7806:function(e,t,r){r.d(t,{T:()=>a});var n=r(6988),o=r(2861);let a=e=>{let t=(0,n.om)({date:e||new Date,relativeTo:new Date});if(!t)return"";switch(t.relativeDateCase){case"previous6Days":return(0,o.G)("dates.previous6Days",{date:t.date});case"lastDay":return(0,o.G)("dates.lastDay",{date:t.date});case"sameDay":return(0,o.G)("dates.sameDay",{date:t.date});case"nextDay":return(0,o.G)("dates.nextDay",{date:t.date});case"next6Days":return(0,o.G)("dates.next6Days",{date:t.date});default:return(0,o.G)("dates.numeric",{date:t.date})}}},8225:function(e,t,r){r.d(t,{p:()=>n});let n=e=>{if((e||"").includes("gravatar")||(e||"").includes("avatar_placeholder"))return!0;try{var t;let r=(t=new URL(e).pathname.replace("/",""),"undefined"!=typeof atob&&"function"==typeof atob?atob(t):"undefined"!=typeof global&&global.Buffer?new global.Buffer(t,"base64").toString():t),n=JSON.parse(r);return"default"===n.type}catch{return!1}}},1089:function(e,t,r){function n(e){return"ListFormat"in Intl&&function(e){if(!e)return!1;let t=Array.isArray(e)?e:[e];return Intl.ListFormat.supportedLocalesOf(t).length===t.length}(e)}function o(e,t){return"NumberFormat"in Intl&&function(e){if(!e)return!1;try{return Intl.NumberFormat.supportedLocalesOf(e).length>0}catch{return!1}}(t)?new Intl.NumberFormat(t,{notation:"compact"}).format(e):e.toString()}r.d(t,{L1:()=>o,bI:()=>n})},958:function(e,t,r){r.d(t,{X:()=>o});let n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,o=()=>"undefined"!=typeof window&&void 0!==window.document&&!!(window.matchMedia("only screen and (max-width: 760px)").matches||n.test(navigator.userAgent)||"ontouchstart"in document.documentElement&&navigator.userAgent.match(/Mobi/))},4692:function(e,t,r){r.d(t,{C:()=>o});var n=r(2950);let o=({routing:e,path:t})=>t&&!e?{routing:"path",path:t}:"path"!==e&&t?(0,n.c)(e):{routing:e,path:t}},3202:function(e,t,r){r.d(t,{u:()=>c});var n=r(2950);let o={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},a=async e=>new Promise(t=>setTimeout(t,e)),i=(e,t)=>t?e*(1+Math.random()):e,l=async(e,t={})=>{var r;let n,l=0,{shouldRetry:s,initialDelay:c,maxDelayBetweenRetries:d,factor:u,retryImmediately:p,jitter:m,onBeforeRetry:h}={...o,...t},f=(r={initialDelay:c,maxDelayBetweenRetries:d,factor:u,jitter:m},n=0,async()=>{let e;await a((e=i(e=r.initialDelay*Math.pow(r.factor,n),r.jitter),Math.min(r.maxDelayBetweenRetries||e,e))),n++});for(;;)try{return await e()}catch(e){if(!s(e,++l))throw e;h&&await h(l),p&&1===l?await a(i(100,m)):await f()}};async function s(e="",t){let{async:r,defer:n,beforeLoad:o,crossOrigin:a,nonce:i}=t||{};return l(()=>new Promise((t,l)=>{e||l(Error("loadScript cannot be called without a src")),document&&document.body||l(Error("loadScript cannot be called when document does not exist"));let s=document.createElement("script");a&&s.setAttribute("crossorigin",a),s.async=r||!1,s.defer=n||!1,s.addEventListener("load",()=>{s.remove(),t(s)}),s.addEventListener("error",t=>{s.remove(),l(t.error??Error(`failed to load script: ${e}`))}),s.src=e,s.nonce=i,o?.(s),document.body.appendChild(s)}),{shouldRetry:(e,t)=>t<=5})}async function c(){if(!window.google)try{await s("https://accounts.google.com/gsi/client",{defer:!0})}catch{(0,n.o)("Google Identity Services")}return window.google}},44:function(e,t,r){r.d(t,{C:()=>o});let n=[".lovable.app",".lovableproject.com",".webcontainer-api.io",".vusercontent.net",".v0.dev",".v0.app",".lp.dev"];function o(){return function(){if(void 0===globalThis.document)return!1;try{return window.self!==window.top}catch{return!0}}()||n.some(e=>window.location.origin.endsWith(e))}},3990:function(e,t,r){r.d(t,{C5:()=>a,kS:()=>l,zJ:()=>i});var n=r(2861),o=r(1089);let a=(e,t)=>{if(!t)return e[0].longMessage;let{t:r,locale:o,passwordSettings:a}=t;if(e?.[0]?.code==="form_password_size_in_bytes_exceeded"||e?.[0]?.code==="form_password_pwned"||e?.[0]?.code==="form_new_password_matches_current")return`${r((0,n.G)(`unstable__errors.${e?.[0]?.code}`))||e?.[0]?.message}`;if(e?.[0]?.code==="form_password_not_strong_enough"){let t=e[0].meta?.zxcvbn?.suggestions?.map(e=>r((0,n.G)(`unstable__errors.zxcvbn.suggestions.${e.code}`))).join(" ");return`${r((0,n.G)("unstable__errors.zxcvbn.notEnough"))} ${t}`}let s=e.filter(e=>"form_password_length_too_short"===e.code),c=l((s.length?s:e).map(e=>{let t={form_password_length_too_long:["unstable__errors.passwordComplexity.maximumLength","length",a.max_length],form_password_length_too_short:["unstable__errors.passwordComplexity.minimumLength","length",a.min_length],form_password_no_uppercase:"unstable__errors.passwordComplexity.requireUppercase",form_password_no_lowercase:"unstable__errors.passwordComplexity.requireLowercase",form_password_no_number:"unstable__errors.passwordComplexity.requireNumbers",form_password_no_special_char:"unstable__errors.passwordComplexity.requireSpecialCharacter"}[e.code];if(Array.isArray(t)){let[e,o,a]=t;return r((0,n.G)(e,{[o]:a}))}return r((0,n.G)(t))}),o);return i(`${r((0,n.G)("unstable__errors.passwordComplexity.sentencePrefix"))} ${c}`)},i=e=>e?e.endsWith(".")?e:`${e}.`:"",l=(e,t)=>(0,o.bI)(t)?new Intl.ListFormat(t,{style:"long",type:"conjunction"}).format(e):e.join(", ")},7651:function(e,t,r){r.d(t,{Mz:()=>p,Om:()=>d,TV:()=>m,Xd:()=>c,eL:()=>a,n4:()=>i,sH:()=>l});var n=r(1820);let o={};function a(e,t="us"){if(o[e=e||t])return o[e];let r=String.fromCodePoint(...[...e.toUpperCase()].map(e=>e.codePointAt(0)+127397));return o[e]=r,r}function i(e,t,r){var n;if(!e||!t)return e;let o=[...l(e)].slice(0,15-((n=(n=r)||"1").includes("+")?n:"+"+n).length);if(o.length<=3)return o.join("");let a="";for(let e=0;o.length>0;e++)e>t.length-1?a+=o.shift():a+="."===t[e]?o.shift():t[e];return a}function l(e){return(e||"").replace(/[^\d]/g,"")}function s(e,t){if(!e||!n.nU.get(e)||!t)return!1;let r=t[0],o=t.substring(1,4);return r===n.nU.get(e)?.code&&t.length-1===((n.nU.get(e)?.pattern||"").match(/\./g)||[]).length&&n.mK[e].has(o)}function c(e){let t=l(e),r=function(e,t="us"){let r=l(e);return!r||r.length<4?t:r.startsWith("1")&&s("us",r)?"us":r.startsWith("1")&&s("ca",r)?"ca":p(r).country.iso}(t),o=n.nU.get(r)?.pattern||"",a=n.nU.get(r)?.code||"",c=t.slice(a.length),d=`+${a} ${i(c,o,a)}`;return{iso:r,pattern:o,code:a,number:c,formattedNumberWithCode:d}}function d(e){let t=c(e);return`+${t.code} ${i(t.number,t.pattern,t.code)}`}let u=(e,t)=>t.priority-e.priority;function p(e){let t=l(e),r=[];for(let e of[4,3,2,1]){let o=t.substring(0,e),a=n.zh.get(o)||[];a.length&&r.push(...a)}let o=n.nU.get("us"),a=r.sort(u)[0]||o;return{number:t.slice(a?.code.length||0),country:a}}function m(e,t){if(!t)return null;let{country:r}=p(e);return t[r.iso.toUpperCase()]||null}},3907:function(e,t,r){r.d(t,{w:()=>o});var n=r(4653);let o=e=>(0,n.t)()||e.sdkMetadata?.environment==="development"},5845:function(e,t,r){r.d(t,{K:()=>o});var n=r(4173);let o=e=>{if(!e)throw Error("Clerk: URL is required for custom links");return(0,n.AY)(e)||"/"===e.charAt(0)?e:`/${e}`}},6735:function(e,t,r){r.d(t,{y:()=>n});let n=e=>new Promise(t=>setTimeout(t,e))},7198:function(e,t,r){r.d(t,{f:()=>o});var n=r(2861);function o(e){let t=new Date,r=new Date(e);if(isNaN(r.getTime()))return"";let o=Math.floor((t.getTime()-r.getTime())/1e3);if(o<60)return(0,n.G)("apiKeys.lastUsed__seconds",{seconds:o});let a=Math.floor(o/60);if(a<60)return(0,n.G)("apiKeys.lastUsed__minutes",{minutes:a});let i=Math.floor(a/60);if(i<24)return(0,n.G)("apiKeys.lastUsed__hours",{hours:i});let l=Math.floor(i/24);if(l<30)return(0,n.G)("apiKeys.lastUsed__days",{days:l});let s=Math.floor(l/30);if(s<12)return(0,n.G)("apiKeys.lastUsed__months",{months:s});let c=Math.floor(s/12);return(0,n.G)("apiKeys.lastUsed__years",{years:c})}},9606:function(e,t,r){r.d(t,{W:()=>n});function n(e,t=20,r=5){if(!e||e.length<=t)return e;if(t<=r+3)return"..."+e.slice(-r);let o=Array.from(e);return o.length<=t?e:o.slice(0,t-r-3).join("")+"..."+o.slice(-r).join("")}},8640:function(e,t,r){r.d(t,{eW:()=>d,mK:()=>c,tJ:()=>s});var n=r(5074),o=r(4317),a=r(78);let i=e=>e.trim(),l=(e,t)=>{let r=e;for(let e=0;e<t.length;e++)r=t[e](r);return r},s=(e,t,r)=>{let o=r||{type:"text",label:"",isRequired:!1,placeholder:"",options:[],defaultChecked:!1},s=[];o.transformer&&s.push(o.transformer),"email"===o.type&&s.push(i);let{translateError:c,t:d}=(0,a._)(),[u,p]=(0,n.useState)(l(t,s)),[m,h]=(0,n.useState)(!1),[f,g]=(0,n.useState)(o?.defaultChecked||!1),[b,v]=(0,n.useState)(!1),[y,w]=(0,n.useState)({message:"",type:"info"}),$=e=>{w({message:c(e),type:"error"})},{defaultChecked:x,validatePassword:_,buildErrorMessage:S,...k}=o,C={id:e,name:e,value:u,checked:f,setSuccess:e=>{w({message:e,type:"success"})},setError:$,onChange:e=>o?.type==="checkbox"?g(e.target.checked):p(l(e.target.value||"",s)),onBlur:()=>{h(!1)},onFocus:()=>{h(!0)},setWarning:e=>{w({message:c(e),type:"warning"})},feedback:y.message||d(o.infoText),feedbackType:y.type,setInfo:e=>{w({message:e,type:"info"})},clearFeedback:()=>{w({message:"",type:"info"})},hasPassedComplexity:b,setHasPassedComplexity:v,validatePassword:"password"===o.type?o.validatePassword:void 0,isFocused:m,...k};return{props:C,...C,buildErrorMessage:S,setError:$,setValue:e=>p(e||""),setChecked:e=>g(e)}},c=e=>{let t={};return e.forEach(e=>{t[e.id]="checkbox"!==e.type?e.value:e.checked}),t},d=e=>{let{feedback:t="",delayInMs:r=100,feedbackType:n="info",isFocused:a=!1}=e||{},i=!a&&["info","warning"].includes(n);return{debounced:(0,o.d)({feedback:i?"":t,feedbackType:i?"info":n},r)}}},4557:function(e,t,r){r.d(t,{Z:()=>i});var n=r(2861);let o="form_username_invalid_length",a="form_username_needs_non_number_char",i=(e,t)=>{let{t:r,usernameSettings:i}=t,l=e[0];return t?l?.code===o?r((0,n.G)(`unstable__errors.${o}`,{min_length:i.min_length,max_length:i.max_length})):l?.code===a?r((0,n.G)(`unstable__errors.${a}`)):l:l}},9236:function(e,t,r){r.d(t,{f:()=>a});var n=r(3610),o=r(4468);let a=(e,t)=>{if((0,n.$R)(e)&&e.errors?.[0]?.meta?.paramName==="identifier"&&e.errors?.[0]?.code==="form_param_nil"){let e=new n.cR("A Web3 Wallet extension cannot be found. Please install one to continue.",{code:"web3_missing_identifier"});return(0,o.H4)(e,[],t)}return(0,o.H4)(e,[],t)}},1652:function(e,t,r){r.d(t,{c:()=>n,y:()=>o});let n=[{channel:"whatsapp",name:"WhatsApp"}],o=e=>e&&n.find(t=>t.channel===e)||null},6435:function(e,t,r){r.d(t,{l:()=>o,n:()=>n});let n=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"];function o(e,t="svg"){return`https://img.clerk.com/static/${e}.${t}`}},6988:function(e,t,r){function n(e){try{return new Date(e||new Date)}catch{return new Date}}function o(e){let{date:t,relativeTo:r}=e;if(!t||!r)return null;let o=n(t),a=function(e,t,{absolute:r=!0}={}){if(!e||!t)return 0;let n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),o=Math.floor((Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-n)/864e5);return r?Math.abs(o):o}(n(r),o,{absolute:!1});return a<-6?{relativeDateCase:"other",date:o}:a<-1?{relativeDateCase:"previous6Days",date:o}:-1===a?{relativeDateCase:"lastDay",date:o}:0===a?{relativeDateCase:"sameDay",date:o}:1===a?{relativeDateCase:"nextDay",date:o}:a<7?{relativeDateCase:"next6Days",date:o}:{relativeDateCase:"other",date:o}}r.d(t,{OG:()=>n,om:()=>o})},2522:function(e,t,r){function n(e){return function(t){let r=t??this;if(!r)throw TypeError(`${e.kind||e.name} type guard requires an error object`);return!!e.kind&&"object"==typeof r&&null!==r&&"constructor"in r&&r.constructor?.kind===e.kind||r instanceof e}}r.d(t,{S:()=>i,a:()=>p,c:()=>b,f:()=>f,h:()=>u,i:()=>v,l:()=>g,m:()=>d,o:()=>h,u:()=>m,v:()=>c,y:()=>s});var o=class{static kind="ClerkAPIError";code;message;longMessage;meta;constructor(e){const t={code:e.code,message:e.message,longMessage:e.long_message,meta:{paramName:e.meta?.param_name,sessionId:e.meta?.session_id,emailAddresses:e.meta?.email_addresses,identifiers:e.meta?.identifiers,zxcvbn:e.meta?.zxcvbn,plan:e.meta?.plan,isPlanUpgradePossible:e.meta?.is_plan_upgrade_possible}};this.code=t.code,this.message=t.message,this.longMessage=t.longMessage,this.meta=t.meta}};n(o);var a=class e extends Error{static kind="ClerkError";clerkError=!0;code;longMessage;docsUrl;cause;get name(){return this.constructor.name}constructor(t){super(new.target.formatMessage(new.target.kind,t.message,t.code,t.docsUrl),{cause:t.cause}),Object.setPrototypeOf(this,e.prototype),this.code=t.code,this.docsUrl=t.docsUrl,this.longMessage=t.longMessage,this.cause=t.cause}toString(){return`[${this.name}]
119
119
  Message:${this.message}`}static formatMessage(e,t,r,n){let o="Clerk:",a=RegExp(o.replace(" ","\\s*"),"i");return t=t.replace(a,""),t=`${o} ${t.trim()}
120
120
 
121
121
  (code="${r}")
122
122
 
123
123
  `,n&&(t+=`
124
124
 
125
- Docs: ${n}`),t}};n(class e extends a{static kind="ClerkAPIResponseError";status;clerkTraceId;retryAfter;errors;constructor(t,r){const{data:n,status:a,clerkTraceId:i,retryAfter:l}=r;super({...r,message:t,code:"api_response_error"}),Object.setPrototypeOf(this,e.prototype),this.status=a,this.clerkTraceId=i,this.retryAfter=l,this.errors=(n||[]).map(e=>new o(e))}toString(){let e=`[${this.name}]
125
+ Docs: ${n}`),t}};let i=n(class e extends a{static kind="ClerkAPIResponseError";status;clerkTraceId;retryAfter;errors;constructor(t,r){const{data:n,status:a,clerkTraceId:i,retryAfter:l}=r;super({...r,message:t,code:"api_response_error"}),Object.setPrototypeOf(this,e.prototype),this.status=a,this.clerkTraceId=i,this.retryAfter=l,this.errors=(n||[]).map(e=>new o(e))}toString(){let e=`[${this.name}]
126
126
  Message:${this.message}
127
127
  Status:${this.status}
128
128
  Serialized errors: ${this.errors.map(e=>JSON.stringify(e))}`;return this.clerkTraceId&&(e+=`
129
- Clerk Trace ID: ${this.clerkTraceId}`),e}static formatMessage(e,t,r,n){return t}});let i=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 l({packageName:e,customMessages:t}){let r=e;function n(e,t){if(!t)return`${r}: ${e}`;let n=e;for(let r of e.matchAll(/{{([a-zA-Z0-9-_]+)}}/g)){let e=(t[r[1]]||"").toString();n=n.replace(`{{${r[1]}}}`,e)}return`${r}: ${n}`}let o={...i,...t};return{setPackageName({packageName:e}){return"string"==typeof e&&(r=e),this},setMessages({customMessages:e}){return Object.assign(o,e||{}),this},throwInvalidPublishableKeyError(e){throw Error(n(o.InvalidPublishableKeyErrorMessage,e))},throwInvalidProxyUrl(e){throw Error(n(o.InvalidProxyUrlErrorMessage,e))},throwMissingPublishableKeyError(){throw Error(n(o.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw Error(n(o.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(e){throw Error(n(o.MissingClerkProvider,e))},throw(e){throw Error(n(e))}}}let s={Expired:"expired",Failed:"failed",ClientMismatch:"client_mismatch"};var c=class e extends a{static kind="ClerkRuntimeError";clerkRuntimeError=!0;constructor(t,r){super({...r,message:t}),Object.setPrototypeOf(this,e.prototype)}};function d(e){return u(e)||h(e)||p(e)}function u(e){return e&&"clerkError"in e}function p(e){return"clerkRuntimeError"in e}function m(e){return p(e)&&"reverification_cancelled"===e.code}function h(e){return"code"in e&&[4001,32602,32603].includes(e.code)&&"message"in e}function f(e){return u(e)&&e.errors?.[0]?.code==="user_locked"}function g(e){return u(e)&&e.errors?.[0]?.code==="form_password_pwned"}function b(e){return u(e)&&e.errors?.[0]?.code==="form_password_compromised"}function v(e){return"EmailLinkError"===e.name}n(c)},3610:function(e,t,r){r.d(t,{$R:()=>n.i,Au:()=>n.d,Cm:()=>n.a,I3:()=>n.f,_d:()=>n.m,cR:()=>n.g,hl:()=>n.o,kl:()=>n.y,qY:()=>n.u,si:()=>n.c,ux:()=>n.s});var n=r(5273)},4076:function(e,t,r){let n,o;r.d(t,{getWallets:()=>d});var a,i=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},l=function(e,t,r,n,o){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r};let s=new Set,c={};function d(){if(o||(o=Object.freeze({register:u,get:p,on:m}),"undefined"==typeof window))return o;let e=Object.freeze({register:u});try{window.addEventListener("wallet-standard:register-wallet",({detail:t})=>t(e))}catch(e){console.error("wallet-standard:register-wallet event listener could not be added\n",e)}try{window.dispatchEvent(new f(e))}catch(e){console.error("wallet-standard:app-ready event could not be dispatched\n",e)}return o}function u(...e){return(e=e.filter(e=>!s.has(e))).length?(e.forEach(e=>{n=void 0,s.add(e)}),c.register?.forEach(t=>h(()=>t(...e))),function(){e.forEach(e=>{n=void 0,s.delete(e)}),c.unregister?.forEach(t=>h(()=>t(...e)))}):()=>{}}function p(){return n||(n=[...s]),n}function m(e,t){return c[e]?.push(t)||(c[e]=[t]),function(){c[e]=c[e]?.filter(e=>t!==e)}}function h(e){try{e()}catch(e){console.error(e)}}var f=class extends Event{get detail(){return i(this,a,"f")}get type(){return"wallet-standard:app-ready"}constructor(e){super("wallet-standard:app-ready",{bubbles:!1,cancelable:!1,composed:!1}),a.set(this,void 0),l(this,a,e,"f")}preventDefault(){throw Error("preventDefault cannot be called")}stopImmediatePropagation(){throw Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw Error("stopPropagation cannot be called")}};a=new WeakMap},212:function(e,t,r){r.d(t,{t:()=>o});var n=r(1006);let o={toRegexp:e=>{try{return n(e)}catch(t){throw Error(`Invalid pattern: ${e}.
129
+ Clerk Trace ID: ${this.clerkTraceId}`),e}static formatMessage(e,t,r,n){return t}}),l=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 s({packageName:e,customMessages:t}){let r=e;function n(e,t){if(!t)return`${r}: ${e}`;let n=e;for(let r of e.matchAll(/{{([a-zA-Z0-9-_]+)}}/g)){let e=(t[r[1]]||"").toString();n=n.replace(`{{${r[1]}}}`,e)}return`${r}: ${n}`}let o={...l,...t};return{setPackageName({packageName:e}){return"string"==typeof e&&(r=e),this},setMessages({customMessages:e}){return Object.assign(o,e||{}),this},throwInvalidPublishableKeyError(e){throw Error(n(o.InvalidPublishableKeyErrorMessage,e))},throwInvalidProxyUrl(e){throw Error(n(o.InvalidProxyUrlErrorMessage,e))},throwMissingPublishableKeyError(){throw Error(n(o.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw Error(n(o.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(e){throw Error(n(o.MissingClerkProvider,e))},throw(e){throw Error(n(e))}}}let c={Expired:"expired",Failed:"failed",ClientMismatch:"client_mismatch"};var d=class e extends a{static kind="ClerkRuntimeError";clerkRuntimeError=!0;constructor(t,r){super({...r,message:t}),Object.setPrototypeOf(this,e.prototype)}};let u=n(d);function p(e){return i(e)||h(e)||u(e)}function m(e){return u(e)&&"reverification_cancelled"===e.code}function h(e){return"code"in e&&[4001,32602,32603].includes(e.code)&&"message"in e}function f(e){return i(e)&&e.errors?.[0]?.code==="user_locked"}function g(e){return i(e)&&e.errors?.[0]?.code==="form_password_pwned"}function b(e){return i(e)&&e.errors?.[0]?.code==="form_password_compromised"}function v(e){return"EmailLinkError"===e.name}},3610:function(e,t,r){r.d(t,{$R:()=>n.S,Au:()=>n.l,Cm:()=>n.h,I3:()=>n.u,_d:()=>n.f,cR:()=>n.m,hl:()=>n.i,kl:()=>n.v,qY:()=>n.c,si:()=>n.o,ux:()=>n.a});var n=r(2522)},4076:function(e,t,r){let n,o;r.d(t,{getWallets:()=>d});var a,i=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},l=function(e,t,r,n,o){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r};let s=new Set,c={};function d(){if(o||(o=Object.freeze({register:u,get:p,on:m}),"undefined"==typeof window))return o;let e=Object.freeze({register:u});try{window.addEventListener("wallet-standard:register-wallet",({detail:t})=>t(e))}catch(e){console.error("wallet-standard:register-wallet event listener could not be added\n",e)}try{window.dispatchEvent(new f(e))}catch(e){console.error("wallet-standard:app-ready event could not be dispatched\n",e)}return o}function u(...e){return(e=e.filter(e=>!s.has(e))).length?(e.forEach(e=>{n=void 0,s.add(e)}),c.register?.forEach(t=>h(()=>t(...e))),function(){e.forEach(e=>{n=void 0,s.delete(e)}),c.unregister?.forEach(t=>h(()=>t(...e)))}):()=>{}}function p(){return n||(n=[...s]),n}function m(e,t){return c[e]?.push(t)||(c[e]=[t]),function(){c[e]=c[e]?.filter(e=>t!==e)}}function h(e){try{e()}catch(e){console.error(e)}}var f=class extends Event{get detail(){return i(this,a,"f")}get type(){return"wallet-standard:app-ready"}constructor(e){super("wallet-standard:app-ready",{bubbles:!1,cancelable:!1,composed:!1}),a.set(this,void 0),l(this,a,e,"f")}preventDefault(){throw Error("preventDefault cannot be called")}stopImmediatePropagation(){throw Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw Error("stopPropagation cannot be called")}};a=new WeakMap},212:function(e,t,r){r.d(t,{t:()=>o});var n=r(1006);let o={toRegexp:e=>{try{return n(e)}catch(t){throw Error(`Invalid pattern: ${e}.
130
130
  Consult the documentation of glob-to-regexp here: https://www.npmjs.com/package/glob-to-regexp.
131
- ${t.message}`)}}}},1687:function(e,t,r){r.d(t,{A:()=>o});var n=r(4670);let o=({signUp:e,verifyEmailPath:t,verifyPhonePath:r,continuePath:o,navigate:a,handleComplete:i,redirectUrl:l="",redirectUrlComplete:s="",oidcPrompt:c})=>{if("complete"===e.status)return i&&i();if("missing_requirements"===e.status){if(e.missingFields.some(e=>"enterprise_sso"===e))return e.authenticateWithRedirect({strategy:"enterprise_sso",redirectUrl:l,redirectUrlComplete:s,continueSignUp:!0,oidcPrompt:c});let i=(0,n.t)();if(e.unverifiedFields?.includes("email_address")&&t)return a(t,{searchParams:i});if(e.unverifiedFields?.includes("phone_number")&&r)return a(r,{searchParams:i});if(o)return a(o,{searchParams:i})}}},1841:function(e,t,r){r.d(t,{B_:()=>o,NW:()=>a,Xu:()=>n,s$:()=>l,ui:()=>i});let n=(e,t)=>!!(e.isSignedIn&&t?.authConfig.singleSessionMode),o=(e,t)=>!t?.commerceSettings.billing.user.enabled,a=(e,t)=>!t?.commerceSettings.billing.organization.enabled,i=(e,t)=>!t?.apiKeysSettings?.user_api_keys_enabled,l=(e,t)=>!t?.apiKeysSettings?.orgs_api_keys_enabled},6739:function(e,t,r){r.d(t,{n:()=>n});function n(e){return"string"==typeof e&&e.startsWith("org_")}},5653:function(e,t,r){r.d(t,{sv:()=>o}),r(5273);var n=class{static encode(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}static decode(e){let t=atob(e.replace(/-/g,"+").replace(/_/g,"/")),r=t.length,n=new Uint8Array(r);for(let e=0;e<r;e++)n[e]=t.charCodeAt(e);return n.buffer}};let o=new class{controller;__abort(){if(!this.controller)return;let e=Error();e.name="AbortError",this.controller.abort(e)}createAbortSignal(){this.__abort();let e=new AbortController;return this.controller=e,e.signal}abort(){this.__abort(),this.controller=void 0}};n.encode.bind(n),n.decode.bind(n)},8380:function(e,t,r){r.d(t,{n:()=>l}),r(212),r(4210);let n=(e,t)=>{let r={};for(let n in e)r[n]=t(e[n],n);return r},o=(e,t)=>{let r={};for(let n in e)e[n]&&t(e[n])&&(r[n]=e[n]);return r};var a=r(1302);r(2779);var i=r(6308),l=class e{static keys=["signInForceRedirectUrl","signInFallbackRedirectUrl","signUpForceRedirectUrl","signUpFallbackRedirectUrl","redirectUrl"];static preserved=["redirectUrl"];options;fromOptions;fromProps;fromSearchParams;mode;constructor(e,t={},r={},n){this.options=e,this.fromOptions=this.#e(e||{}),this.fromProps=this.#e(t||{}),this.fromSearchParams=this.#t(r||{}),this.mode=n}getAfterSignInUrl(){return this.#r("signIn")}getAfterSignUpUrl(){return this.#r("signUp")}getPreservedSearchParams(){return this.#n(this.#o())}toSearchParams(){return this.#n(this.#a())}#n(e){return new URLSearchParams(Object.entries(Object.fromEntries(Object.entries(e).map(([e,t])=>[(0,a.t)(e),t]))).reduce((e,[t,r])=>(null!=r&&(e[t]=r),e),{}))}#o(){return Object.fromEntries(Object.entries({...this.fromSearchParams}).filter(([t])=>e.preserved.includes(t)))}#a(){let e=this.fromSearchParams.signUpForceRedirectUrl||this.fromProps.signUpForceRedirectUrl||this.fromOptions.signUpForceRedirectUrl,t=this.fromSearchParams.signUpFallbackRedirectUrl||this.fromProps.signUpFallbackRedirectUrl||this.fromOptions.signUpFallbackRedirectUrl,r=this.fromSearchParams.signInForceRedirectUrl||this.fromProps.signInForceRedirectUrl||this.fromOptions.signInForceRedirectUrl,n={signUpForceRedirectUrl:e,signUpFallbackRedirectUrl:t,signInFallbackRedirectUrl:this.fromSearchParams.signInFallbackRedirectUrl||this.fromProps.signInFallbackRedirectUrl||this.fromOptions.signInFallbackRedirectUrl,signInForceRedirectUrl:r,redirectUrl:this.fromSearchParams.redirectUrl};return e&&delete n.signUpFallbackRedirectUrl,r&&delete n.signInFallbackRedirectUrl,n}#r(e){let t,r=`${e}ForceRedirectUrl`,n=`${e}FallbackRedirectUrl`;return(t=this.fromSearchParams[r]||this.fromProps[r]||this.fromOptions[r],t||=this.fromSearchParams.redirectUrl,(t||=this.fromSearchParams[n]||this.fromProps[n]||this.fromOptions[n])||"modal"!==this.mode)?t||"/":window.location.href}#e(t){let r={};return e.keys.forEach(e=>{r[e]=t[e]}),n(this.#i(this.#l(o(r,Boolean))),e=>e.toString())}#t(t){let r={};return e.keys.forEach(e=>{t instanceof URLSearchParams?r[e]=t.get((0,a.t)(e)):r[e]=t[(0,a.t)(e)]}),n(this.#i(this.#l(o(r,Boolean))),e=>e.toString())}#l(e){return n(e,e=>(0,i.v)(e,window.location.origin))}#i=e=>o(e,(0,i.l)(this.options?.allowedRedirectOrigins,window.location.origin))}},5580:function(e,t,r){r.d(t,{KA:()=>l,ru:()=>i,tk:()=>a}),r(212),r(4210),r(1302);var n=r(4670);r(2779);var o=r(6308);let a={"choose-organization":"choose-organization","reset-password":"reset-password"},i=e=>`/tasks/${a[e.key]}`;function l(e,{navigate:t,baseUrl:r}){let a=e.currentTask;if(a){var l;let e;return t((l={base:r},e=(0,n.t)(),(0,o.t)({base:l.base,hashPath:i(a),searchParams:e},{stringify:!0})))}}},4173:function(e,t,r){r.d(t,{AY:()=>n.h,FV:()=>n.x,Kj:()=>n.w,V0:()=>n.u,d3:()=>n.b,kZ:()=>n.t,tL:()=>n.c,vU:()=>n.l,yR:()=>n.g,yY:()=>n._}),r(212),r(4210),r(1302),r(2779);var n=r(6308)},8095:function(e,t,r){r.d(t,{Cm:()=>a,IM:()=>o,dS:()=>n});let n=({firstName:e,lastName:t,name:r})=>r||[e,t].join(" ").trim()||"",o=({firstName:e,lastName:t,name:r})=>[(e||"")[0],(t||"")[0]].join("").trim()||(r||"")[0],a=e=>e.username?e.username:e.primaryEmailAddress?e.primaryEmailAddress.emailAddress:e.primaryPhoneNumber?e.primaryPhoneNumber.phoneNumber:e.primaryWeb3Wallet?e.primaryWeb3Wallet.web3Wallet:""},2049:function(e,t,r){r.d(t,{A:()=>o});let n=e=>`🔒 Clerk:
131
+ ${t.message}`)}}}},1687:function(e,t,r){r.d(t,{A:()=>o});var n=r(4670);let o=({signUp:e,verifyEmailPath:t,verifyPhonePath:r,continuePath:o,navigate:a,handleComplete:i,redirectUrl:l="",redirectUrlComplete:s="",oidcPrompt:c})=>{if("complete"===e.status)return i&&i();if("missing_requirements"===e.status){if(e.missingFields.some(e=>"enterprise_sso"===e))return e.authenticateWithRedirect({strategy:"enterprise_sso",redirectUrl:l,redirectUrlComplete:s,continueSignUp:!0,oidcPrompt:c});let i=(0,n.t)();if(e.unverifiedFields?.includes("email_address")&&t)return a(t,{searchParams:i});if(e.unverifiedFields?.includes("phone_number")&&r)return a(r,{searchParams:i});if(o)return a(o,{searchParams:i})}}},1841:function(e,t,r){r.d(t,{B_:()=>o,NW:()=>a,Xu:()=>n,s$:()=>l,ui:()=>i});let n=(e,t)=>!!(e.isSignedIn&&t?.authConfig.singleSessionMode),o=(e,t)=>!t?.commerceSettings.billing.user.enabled,a=(e,t)=>!t?.commerceSettings.billing.organization.enabled,i=(e,t)=>!t?.apiKeysSettings?.user_api_keys_enabled,l=(e,t)=>!t?.apiKeysSettings?.orgs_api_keys_enabled},6739:function(e,t,r){r.d(t,{n:()=>n});function n(e){return"string"==typeof e&&e.startsWith("org_")}},5653:function(e,t,r){r.d(t,{sv:()=>o}),r(2522);var n=class{static encode(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}static decode(e){let t=atob(e.replace(/-/g,"+").replace(/_/g,"/")),r=t.length,n=new Uint8Array(r);for(let e=0;e<r;e++)n[e]=t.charCodeAt(e);return n.buffer}};let o=new class{controller;__abort(){if(!this.controller)return;let e=Error();e.name="AbortError",this.controller.abort(e)}createAbortSignal(){this.__abort();let e=new AbortController;return this.controller=e,e.signal}abort(){this.__abort(),this.controller=void 0}};n.encode.bind(n),n.decode.bind(n)},8380:function(e,t,r){r.d(t,{n:()=>l}),r(212),r(4210);let n=(e,t)=>{let r={};for(let n in e)r[n]=t(e[n],n);return r},o=(e,t)=>{let r={};for(let n in e)e[n]&&t(e[n])&&(r[n]=e[n]);return r};var a=r(1302);r(2779);var i=r(6308),l=class e{static keys=["signInForceRedirectUrl","signInFallbackRedirectUrl","signUpForceRedirectUrl","signUpFallbackRedirectUrl","redirectUrl"];static preserved=["redirectUrl"];options;fromOptions;fromProps;fromSearchParams;mode;constructor(e,t={},r={},n){this.options=e,this.fromOptions=this.#e(e||{}),this.fromProps=this.#e(t||{}),this.fromSearchParams=this.#t(r||{}),this.mode=n}getAfterSignInUrl(){return this.#r("signIn")}getAfterSignUpUrl(){return this.#r("signUp")}getPreservedSearchParams(){return this.#n(this.#o())}toSearchParams(){return this.#n(this.#a())}#n(e){return new URLSearchParams(Object.entries(Object.fromEntries(Object.entries(e).map(([e,t])=>[(0,a.t)(e),t]))).reduce((e,[t,r])=>(null!=r&&(e[t]=r),e),{}))}#o(){return Object.fromEntries(Object.entries({...this.fromSearchParams}).filter(([t])=>e.preserved.includes(t)))}#a(){let e=this.fromSearchParams.signUpForceRedirectUrl||this.fromProps.signUpForceRedirectUrl||this.fromOptions.signUpForceRedirectUrl,t=this.fromSearchParams.signUpFallbackRedirectUrl||this.fromProps.signUpFallbackRedirectUrl||this.fromOptions.signUpFallbackRedirectUrl,r=this.fromSearchParams.signInForceRedirectUrl||this.fromProps.signInForceRedirectUrl||this.fromOptions.signInForceRedirectUrl,n={signUpForceRedirectUrl:e,signUpFallbackRedirectUrl:t,signInFallbackRedirectUrl:this.fromSearchParams.signInFallbackRedirectUrl||this.fromProps.signInFallbackRedirectUrl||this.fromOptions.signInFallbackRedirectUrl,signInForceRedirectUrl:r,redirectUrl:this.fromSearchParams.redirectUrl};return e&&delete n.signUpFallbackRedirectUrl,r&&delete n.signInFallbackRedirectUrl,n}#r(e){let t,r=`${e}ForceRedirectUrl`,n=`${e}FallbackRedirectUrl`;return(t=this.fromSearchParams[r]||this.fromProps[r]||this.fromOptions[r],t||=this.fromSearchParams.redirectUrl,(t||=this.fromSearchParams[n]||this.fromProps[n]||this.fromOptions[n])||"modal"!==this.mode)?t||"/":window.location.href}#e(t){let r={};return e.keys.forEach(e=>{r[e]=t[e]}),n(this.#i(this.#l(o(r,Boolean))),e=>e.toString())}#t(t){let r={};return e.keys.forEach(e=>{t instanceof URLSearchParams?r[e]=t.get((0,a.t)(e)):r[e]=t[(0,a.t)(e)]}),n(this.#i(this.#l(o(r,Boolean))),e=>e.toString())}#l(e){return n(e,e=>(0,i.v)(e,window.location.origin))}#i=e=>o(e,(0,i.l)(this.options?.allowedRedirectOrigins,window.location.origin))}},5580:function(e,t,r){r.d(t,{KA:()=>l,ru:()=>i,tk:()=>a}),r(212),r(4210),r(1302);var n=r(4670);r(2779);var o=r(6308);let a={"choose-organization":"choose-organization","reset-password":"reset-password"},i=e=>`/tasks/${a[e.key]}`;function l(e,{navigate:t,baseUrl:r}){let a=e.currentTask;if(a){var l;let e;return t((l={base:r},e=(0,n.t)(),(0,o.t)({base:l.base,hashPath:i(a),searchParams:e},{stringify:!0})))}}},4173:function(e,t,r){r.d(t,{AY:()=>n.h,FV:()=>n.x,Kj:()=>n.w,V0:()=>n.u,d3:()=>n.b,kZ:()=>n.t,tL:()=>n.c,vU:()=>n.l,yR:()=>n.g,yY:()=>n._}),r(212),r(4210),r(1302),r(2779);var n=r(6308)},8095:function(e,t,r){r.d(t,{Cm:()=>a,IM:()=>o,dS:()=>n});let n=({firstName:e,lastName:t,name:r})=>r||[e,t].join(" ").trim()||"",o=({firstName:e,lastName:t,name:r})=>[(e||"")[0],(t||"")[0]].join("").trim()||(r||"")[0],a=e=>e.username?e.username:e.primaryEmailAddress?e.primaryEmailAddress.emailAddress:e.primaryPhoneNumber?e.primaryPhoneNumber.phoneNumber:e.primaryWeb3Wallet?e.primaryWeb3Wallet.web3Wallet:""},2049:function(e,t,r){r.d(t,{A:()=>o});let n=e=>`🔒 Clerk:
132
132
  ${e.trim()}
133
- (This notice only appears in development)`,o={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:e=>n(`The <${e}/> 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:e=>n(`The <${e}/> 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 is disabled. Since API keys is disabled, this is no-op.",cannotRenderAPIKeysComponentForOrgWhenUnauthorized:"The <APIKeys/> component cannot be rendered for an organization unless a user has the required permissions. Since the user does not have the necessary permissions, 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 e of Object.keys(o)){let t=o[e];"function"!=typeof t&&(o[e]=n(t))}},6463:function(e,t,r){r.d(t,{U:()=>i});var n=r(5273),o=class e{#s=[];#c={metamask:"MetaMask",okx_wallet:"OKX Wallet"};static #d=null;constructor(){if("undefined"==typeof window)return;window.addEventListener("eip6963:announceProvider",this.#u),window.dispatchEvent(new Event("eip6963:requestProvider"))}static getInstance(){return e.#d||(e.#d=new e),e.#d}get=e=>{let t=this.#s.find(t=>t.info.name===this.#c[e])?.provider;return void 0!==t?t:window.ethereum};#u=e=>{this.#s.some(t=>t.info.uuid===e.detail.info.uuid)||this.#s.push(e.detail)}},a=class e{#p=void 0;#m=!1;static #d=null;constructor(){}async #h(){if(this.#m)return;this.#m=!0;let e=await r.e("666").then(r.bind(r,4076)).then(e=>e.getWallets());this.#p=e.get(),e.on("register",()=>{this.#p=e.get()}),e.on("unregister",()=>{this.#p=e.get()})}#f(e){return e.chains?.some(e=>e.startsWith("solana:"))??!1}#g(e){return"solana:signMessage"in e.features}static getInstance(){return e.#d||(e.#d=new e),e.#d}get=async e=>{await this.#h();let t=(this.#p||[]).find(t=>t.name===e&&this.#f(t)&&this.#g(t));if(t&&this.#f(t))return t;if("undefined"==typeof window)return;let r=window.solana;if(r&&"function"==typeof r.connect&&"function"==typeof r.signMessage)return r}};function i(e){let t=(0,n.b)({packageName:"@clerk/shared"});async function r(e){let{provider:t,walletName:r}=e,n=await b(t,r);if(!n)return"";if("solana"===t){let e=await n.features["standard:connect"].connect();return e&&e.accounts[0].address||""}let o=await n.request({method:"eth_requestAccounts"});return o&&o[0]||""}let i=async e=>{let{identifier:t,nonce:r,provider:o,walletName:a=""}=e,i=await b(o,a);if(!i)return"";if("solana"===o)try{let e=i.accounts.find(e=>e.address===t);if(!e)return console.warn(`Wallet account with address ${t} not found`),"";let n=await i.features["solana:signMessage"]?.signMessage({account:e,message:new TextEncoder().encode(r)});return n?.[0]?.signature?btoa(String.fromCharCode(...n[0].signature)):""}catch(e){if(e instanceof Error&&e.message.includes("User rejected the request."))throw new n.g("Web3 signature request was rejected by the user.",{code:"web3_signature_request_rejected"});throw new n.g("An error occurred while generating the Solana signature.",{code:"web3_solana_signature_generation_failed",cause:e instanceof Error?e:void 0})}return await i.request({method:"personal_sign",params:[`0x${r.split("").map(e=>e.charCodeAt(0).toString(16).padStart(2,"0")).join("")}`,t]})};async function l(){return await r({provider:"metamask"})}async function s(){return await r({provider:"coinbase_wallet"})}async function c(){return await r({provider:"okx_wallet"})}async function d(){return await r({provider:"base"})}async function u(e){return await r({provider:"solana",walletName:e})}async function p(e){return await i({...e,provider:"metamask"})}async function m(e){return await i({...e,provider:"coinbase_wallet"})}async function h(e){return await i({...e,provider:"okx_wallet"})}async function f(e){return await i({...e,provider:"base"})}async function g(e){return await i({...e,provider:"solana"})}async function b(r,n){if("coinbase_wallet"===r){let t=await e.import("@coinbase/wallet-sdk");return t?t.createCoinbaseWalletSDK({preference:{options:"all"}}).getProvider():null}if("base"===r)try{let t=await e.import("@base-org/account");if(!t)return null;return t.createBaseAccountSDK({appName:"undefined"!=typeof window&&window.Clerk?.__internal_environment?.displayConfig?.applicationName||"undefined"!=typeof document&&document.title||"Web3 Application"}).getProvider()}catch{return null}return"solana"===r?n&&0!==n.length?await a.getInstance().get(n):void t.throw("Wallet name must be provided to get Solana wallet provider"):o.getInstance().get(r)}return{getWeb3Identifier:r,generateWeb3Signature:i,getMetamaskIdentifier:l,getCoinbaseWalletIdentifier:s,getOKXWalletIdentifier:c,getBaseIdentifier:d,getSolanaIdentifier:u,generateSignatureWithMetamask:p,generateSignatureWithCoinbaseWallet:m,generateSignatureWithOKXWallet:h,generateSignatureWithBase:f,generateSignatureWithSolana:g}}},5483:function(e,t,r){r.d(t,{y7:()=>n});function n(e){let t=new URL(e,window.location.href);window.dispatchEvent(new CustomEvent("clerk:beforeunload")),window.location.href=t.href}},2311:function(e,t,r){r.d(t,{a:()=>a,n:()=>o});var n=r(6435);function o(){let e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;let r="string"==typeof t?t:t.hostname,o=e.get(r);return void 0===o&&(o=n.n.some(e=>r.endsWith(e)),e.set(r,o)),o}}}function a(e){return e.startsWith("test_")||e.startsWith("pk_test_")}},4210:function(e,t,r){r.d(t,{t:()=>o});let n=new Set,o={warnOnce:e=>{n.has(e)||(n.add(e),console.warn(e))},logOnce:e=>{n.has(e)||(console.log(e),n.add(e))}}},2779:function(e,t,r){r.d(t,{t:()=>o});let n=RegExp("/{1,}","g");function o(e,t){return[e,t].filter(e=>e).join("/").replace(n,"/")}},8902:function(e,t,r){r.d(t,{n:()=>o,t:()=>n});let n=e=>{let t={};return new URLSearchParams(e).forEach((e,r)=>{if(r in t){let n=t[r];Array.isArray(n)?n.push(e):t[r]=[n,e]}else t[r]=e}),t},o=(e,t={})=>{if(null==e||!e||"object"!=typeof e)return"";let r=new URLSearchParams;return Object.keys(e).forEach(n=>{let o=t.keyEncoder?t.keyEncoder(n):n,a=e[n];if(Array.isArray(a))a.forEach(e=>void 0!==e&&r.append(o,e||""));else{if(void 0===a)return;"object"==typeof a&&null!==a?r.append(o,JSON.stringify(a)):r.append(o,String(a??""))}}),r.toString()}},1210:function(e,t,r){let n,o;r.d(t,{WD:()=>A,Fm:()=>eh,Rs:()=>k,IC:()=>z,D_:()=>X,kH:()=>ep,Z5:()=>Z,UQ:()=>J,ur:()=>C,Lg:()=>I,ho:()=>K,Jd:()=>er,ED:()=>_,Wp:()=>ea,TS:()=>F,cl:()=>eU,Rx:()=>Y,hZ:()=>N,e3:()=>$,rg:()=>ed,Wf:()=>T,Jl:()=>eH,wV:()=>ee,t7:()=>es,pc:()=>P,hl:()=>eg,tr:()=>el,Dc:()=>ef,_x:()=>w,Tn:()=>eO,X$:()=>ec,Oc:()=>en,v$:()=>em});let a="reverification-error",i={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"}},l=new Set(["first_factor","second_factor","multi_factor"]),s=new Set(["strict_mfa","strict","moderate","lax"]);var c,d,u=r(5273);r(1302);var p=r(1483),m=r(526),h=r(5074),f=r(6651),g=r(1839),b=r(2951),v=r(7447),y=r(5530);function w(e,t){if(!e)throw"string"==typeof t?Error(t):Error(`${t.displayName} not found`)}let $=(e,t)=>{let{assertCtxFn:r=w}=t||{},n=h.createContext(void 0);return n.displayName=e,[n,()=>{let t=h.useContext(n);return r(t,`${e} not found`),t.value},()=>{let e=h.useContext(n);return e?e.value:{}}]};function x({swrConfig:e,children:t}){return h.createElement(f.BE,{value:e},t)}let[_,S]=$("ClerkInstanceContext"),[k,C]=$("UserContext"),[P,A]=$("ClientContext"),[z,I]=$("SessionContext");h.createContext({});let[D,R]=$("CheckoutContext"),Y=({children:e,...t})=>h.createElement(D.Provider,{value:{value:t}},e),[E,T]=$("OrganizationContext"),F=({children:e,organization:t,swrConfig:r})=>h.createElement(x,{swrConfig:r},h.createElement(E.Provider,{value:{value:{organization:t}}},e));function L(e){if(!h.useContext(_)){if("function"==typeof e)return void e();throw Error(`${e} can only be used within the <ClerkProvider /> component.
133
+ (This notice only appears in development)`,o={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:e=>n(`The <${e}/> 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:e=>n(`The <${e}/> 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 is disabled. Since API keys is disabled, this is no-op.",cannotRenderAPIKeysComponentForOrgWhenUnauthorized:"The <APIKeys/> component cannot be rendered for an organization unless a user has the required permissions. Since the user does not have the necessary permissions, 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 e of Object.keys(o)){let t=o[e];"function"!=typeof t&&(o[e]=n(t))}},6463:function(e,t,r){r.d(t,{U:()=>i});var n=r(2522),o=class e{#s=[];#c={metamask:"MetaMask",okx_wallet:"OKX Wallet"};static #d=null;constructor(){if("undefined"==typeof window)return;window.addEventListener("eip6963:announceProvider",this.#u),window.dispatchEvent(new Event("eip6963:requestProvider"))}static getInstance(){return e.#d||(e.#d=new e),e.#d}get=e=>{let t=this.#s.find(t=>t.info.name===this.#c[e])?.provider;return void 0!==t?t:window.ethereum};#u=e=>{this.#s.some(t=>t.info.uuid===e.detail.info.uuid)||this.#s.push(e.detail)}},a=class e{#p=void 0;#m=!1;static #d=null;constructor(){}async #h(){if(this.#m)return;this.#m=!0;let e=await r.e("666").then(r.bind(r,4076)).then(e=>e.getWallets());this.#p=e.get(),e.on("register",()=>{this.#p=e.get()}),e.on("unregister",()=>{this.#p=e.get()})}#f(e){return e.chains?.some(e=>e.startsWith("solana:"))??!1}#g(e){return"solana:signMessage"in e.features}static getInstance(){return e.#d||(e.#d=new e),e.#d}get=async e=>{await this.#h();let t=(this.#p||[]).find(t=>t.name===e&&this.#f(t)&&this.#g(t));if(t&&this.#f(t))return t;if("undefined"==typeof window)return;let r=window.solana;if(r&&"function"==typeof r.connect&&"function"==typeof r.signMessage)return r}};function i(e){let t=(0,n.y)({packageName:"@clerk/shared"});async function r(e){let{provider:t,walletName:r}=e,n=await b(t,r);if(!n)return"";if("solana"===t){let e=await n.features["standard:connect"].connect();return e&&e.accounts[0].address||""}let o=await n.request({method:"eth_requestAccounts"});return o&&o[0]||""}let i=async e=>{let{identifier:t,nonce:r,provider:o,walletName:a=""}=e,i=await b(o,a);if(!i)return"";if("solana"===o)try{let e=i.accounts.find(e=>e.address===t);if(!e)return console.warn(`Wallet account with address ${t} not found`),"";let n=await i.features["solana:signMessage"]?.signMessage({account:e,message:new TextEncoder().encode(r)});return n?.[0]?.signature?btoa(String.fromCharCode(...n[0].signature)):""}catch(e){if(e instanceof Error&&e.message.includes("User rejected the request."))throw new n.m("Web3 signature request was rejected by the user.",{code:"web3_signature_request_rejected"});throw new n.m("An error occurred while generating the Solana signature.",{code:"web3_solana_signature_generation_failed",cause:e instanceof Error?e:void 0})}return await i.request({method:"personal_sign",params:[`0x${r.split("").map(e=>e.charCodeAt(0).toString(16).padStart(2,"0")).join("")}`,t]})};async function l(){return await r({provider:"metamask"})}async function s(){return await r({provider:"coinbase_wallet"})}async function c(){return await r({provider:"okx_wallet"})}async function d(){return await r({provider:"base"})}async function u(e){return await r({provider:"solana",walletName:e})}async function p(e){return await i({...e,provider:"metamask"})}async function m(e){return await i({...e,provider:"coinbase_wallet"})}async function h(e){return await i({...e,provider:"okx_wallet"})}async function f(e){return await i({...e,provider:"base"})}async function g(e){return await i({...e,provider:"solana"})}async function b(r,n){if("coinbase_wallet"===r){let t=await e.import("@coinbase/wallet-sdk");return t?t.createCoinbaseWalletSDK({preference:{options:"all"}}).getProvider():null}if("base"===r)try{let t=await e.import("@base-org/account");if(!t)return null;return t.createBaseAccountSDK({appName:"undefined"!=typeof window&&window.Clerk?.__internal_environment?.displayConfig?.applicationName||"undefined"!=typeof document&&document.title||"Web3 Application"}).getProvider()}catch{return null}return"solana"===r?n&&0!==n.length?await a.getInstance().get(n):void t.throw("Wallet name must be provided to get Solana wallet provider"):o.getInstance().get(r)}return{getWeb3Identifier:r,generateWeb3Signature:i,getMetamaskIdentifier:l,getCoinbaseWalletIdentifier:s,getOKXWalletIdentifier:c,getBaseIdentifier:d,getSolanaIdentifier:u,generateSignatureWithMetamask:p,generateSignatureWithCoinbaseWallet:m,generateSignatureWithOKXWallet:h,generateSignatureWithBase:f,generateSignatureWithSolana:g}}},5483:function(e,t,r){r.d(t,{y7:()=>n});function n(e){let t=new URL(e,window.location.href);window.dispatchEvent(new CustomEvent("clerk:beforeunload")),window.location.href=t.href}},2311:function(e,t,r){r.d(t,{a:()=>a,n:()=>o});var n=r(6435);function o(){let e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;let r="string"==typeof t?t:t.hostname,o=e.get(r);return void 0===o&&(o=n.n.some(e=>r.endsWith(e)),e.set(r,o)),o}}}function a(e){return e.startsWith("test_")||e.startsWith("pk_test_")}},4210:function(e,t,r){r.d(t,{t:()=>o});let n=new Set,o={warnOnce:e=>{n.has(e)||(n.add(e),console.warn(e))},logOnce:e=>{n.has(e)||(console.log(e),n.add(e))}}},2779:function(e,t,r){r.d(t,{t:()=>o});let n=RegExp("/{1,}","g");function o(e,t){return[e,t].filter(e=>e).join("/").replace(n,"/")}},8902:function(e,t,r){r.d(t,{n:()=>o,t:()=>n});let n=e=>{let t={};return new URLSearchParams(e).forEach((e,r)=>{if(r in t){let n=t[r];Array.isArray(n)?n.push(e):t[r]=[n,e]}else t[r]=e}),t},o=(e,t={})=>{if(null==e||!e||"object"!=typeof e)return"";let r=new URLSearchParams;return Object.keys(e).forEach(n=>{let o=t.keyEncoder?t.keyEncoder(n):n,a=e[n];if(Array.isArray(a))a.forEach(e=>void 0!==e&&r.append(o,e||""));else{if(void 0===a)return;"object"==typeof a&&null!==a?r.append(o,JSON.stringify(a)):r.append(o,String(a??""))}}),r.toString()}},1210:function(e,t,r){let n,o;r.d(t,{WD:()=>A,Fm:()=>eh,Rs:()=>k,IC:()=>z,D_:()=>X,kH:()=>ep,Z5:()=>Z,UQ:()=>J,ur:()=>C,Lg:()=>I,ho:()=>K,Jd:()=>er,ED:()=>_,Wp:()=>ea,TS:()=>F,cl:()=>eU,Rx:()=>Y,hZ:()=>N,e3:()=>$,rg:()=>ed,Wf:()=>T,Jl:()=>eH,wV:()=>ee,t7:()=>es,pc:()=>P,hl:()=>eg,tr:()=>el,Dc:()=>ef,_x:()=>w,Tn:()=>eO,X$:()=>ec,Oc:()=>en,v$:()=>em});let a="reverification-error",i={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"}},l=new Set(["first_factor","second_factor","multi_factor"]),s=new Set(["strict_mfa","strict","moderate","lax"]);var c,d,u=r(2522);r(1302);var p=r(1483),m=r(526),h=r(5074),f=r(6651),g=r(1839),b=r(2951),v=r(7447),y=r(5530);function w(e,t){if(!e)throw"string"==typeof t?Error(t):Error(`${t.displayName} not found`)}let $=(e,t)=>{let{assertCtxFn:r=w}=t||{},n=h.createContext(void 0);return n.displayName=e,[n,()=>{let t=h.useContext(n);return r(t,`${e} not found`),t.value},()=>{let e=h.useContext(n);return e?e.value:{}}]};function x({swrConfig:e,children:t}){return h.createElement(f.BE,{value:e},t)}let[_,S]=$("ClerkInstanceContext"),[k,C]=$("UserContext"),[P,A]=$("ClientContext"),[z,I]=$("SessionContext");h.createContext({});let[D,R]=$("CheckoutContext"),Y=({children:e,...t})=>h.createElement(D.Provider,{value:{value:t}},e),[E,T]=$("OrganizationContext"),F=({children:e,organization:t,swrConfig:r})=>h.createElement(x,{swrConfig:r},h.createElement(E.Provider,{value:{value:{organization:t}}},e));function L(e){if(!h.useContext(_)){if("function"==typeof e)return void e();throw Error(`${e} can only be used within the <ClerkProvider /> component.
134
134
 
135
135
  Possible fixes:
136
136
  1. Ensure that the <ClerkProvider /> is correctly wrapping your application where this component is used.
137
137
  2. Check for multiple versions of the \`@clerk/shared\` package in your project. Use a tool like \`npm ls @clerk/shared\` to identify multiple versions, and update your dependencies to only rely on one.
138
138
 
139
- Learn more: https://clerk.com/docs/components/clerk-provider`.trim())}}function M(e){return{queryKey:[e.stablePrefix,e.authenticated,e.tracked,e.untracked],invalidationKey:[e.stablePrefix,e.authenticated,e.tracked],stableKey:e.stablePrefix,authenticated:e.authenticated}}function B(e){let{queryKey:t}=e;return{type:t[0],...t[2],...t[3].args}}let O=(e,t)=>{let r="boolean"==typeof e&&e,n=(0,h.useRef)(r?t.initialPage:e?.initialPage??t.initialPage),o=(0,h.useRef)(r?t.pageSize:e?.pageSize??t.pageSize),a={};for(let n of Object.keys(t))a[n]=r?t[n]:e?.[n]??t[n];return{...a,initialPage:n.current,pageSize:o.current}};function j(e,t){let r=new Set(Object.keys(t)),n={};for(let t of Object.keys(e))r.has(t)||(n[t]=e[t]);return n}let U={dedupingInterval:6e4,focusThrottleInterval:12e4},W={...U,revalidateFirstPage:!1},H=e=>{let t,r,{fetcher:n,config:o,keys:a}=e,[i,l]=(0,h.useState)(o.initialPage??1),s=(0,h.useRef)(o.initialPage??1),c=(0,h.useRef)(o.pageSize??10),d=o.enabled??!0,u="cache"===o.__experimental_mode,p=o.infinite??!1,m=o.keepPreviousData??!1,g=o.isSignedIn,v={...B(a),initialPage:i,pageSize:c.current},y=(t=(0,h.useRef)(g),r=(0,h.useRef)(null),t.current!==g&&(r.current=t.current,t.current=g),r.current),w=!p&&d&&(!!u||!!n),{data:$,isValidating:x,isLoading:_,error:S,mutate:k}=(0,f.Ay)("boolean"==typeof g?!0===y&&!1===g||g&&w?v:null:w?v:null,!u&&n?e=>!1===g||!1===w?null:n(j(e,{type:a.queryKey[0],...a.queryKey[2]})):null,{keepPreviousData:m,...U}),{data:C,isLoading:P,isValidating:A,error:z,size:I,setSize:D,mutate:R}=(0,b.Ay)(e=>p&&d&&!1!==g?{...B(a),initialPage:s.current+e,pageSize:c.current}:null,e=>{let t=j(e,{type:a.queryKey[0],...a.queryKey[2]});return n?.(t)},W),Y=(0,h.useMemo)(()=>p?I:i,[p,I,i]),E=(0,h.useCallback)(e=>p?void D(e):l(e),[D,p]),T=(0,h.useMemo)(()=>p?C?.map(e=>e?.data).flat()??[]:$?.data??[],[p,$,C]),F=(0,h.useMemo)(()=>p?C?.[C?.length-1]?.total_count||0:$?.total_count??0,[p,$,C]),L=p?P:_,M=p?A:x,O=(p?z:S)??null,H=(0,h.useCallback)(()=>{E(e=>Math.max(0,e+1))},[E]),N=(0,h.useCallback)(()=>{E(e=>Math.max(0,e-1))},[E]),K=(s.current-1)*c.current;return{data:T,count:F,error:O,isLoading:L,isFetching:M,isError:!!O,page:Y,pageCount:Math.ceil((F-K)/c.current),fetchPage:E,fetchNext:H,fetchPrevious:N,hasNextPage:F-K*c.current>Y*c.current,hasPreviousPage:(Y-1)*c.current>K*c.current,revalidate:p?()=>R():()=>k(),setData:p?e=>R(e,{revalidate:!1}):e=>k(e,{revalidate:!1})}};function N(e){L("useAPIKeys");let t=O(e,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,subject:"",query:"",enabled:!0}),r=S();r.telemetry?.record((0,p.a)("useAPIKeys"));let n={initialPage:t.initialPage,pageSize:t.pageSize,...t.subject?{subject:t.subject}:{},...t.query?{query:t.query}:{}},o=(t.enabled??!0)&&r.loaded,a=H({fetcher:r.apiKeys?.getAll?e=>r.apiKeys.getAll({...e,subject:t.subject}):void 0,config:{keepPreviousData:t.keepPreviousData,infinite:t.infinite,enabled:o,isSignedIn:!!r.user,initialPage:t.initialPage,pageSize:t.pageSize},keys:M({stablePrefix:"apiKeys",authenticated:!!r.user,tracked:{subject:t.subject},untracked:{args:n}})}),{mutate:i}=(0,g.iX)(),l=(0,h.useCallback)(()=>i(e=>!!e&&"object"==typeof e&&"type"in e&&"apiKeys"===e.type&&"subject"in e&&e.subject===t.subject),[i,t.subject]);return{...a,revalidate:l}}let K=()=>(L("useClerk"),S());function V(e){let t=K(),r=(0,h.useRef)(!1);(0,h.useEffect)(()=>{r.current||(r.current=!0,t.__internal_attemptToEnableEnvironmentSetting?.({for:"organizations",caller:e}))},[t,e])}let G={data:void 0,count:void 0,error:void 0,isLoading:!1,isFetching:!1,isError:!1,page:void 0,pageCount:void 0,fetchPage:void 0,fetchNext:void 0,fetchPrevious:void 0,hasNextPage:!1,hasPreviousPage:!1,revalidate:void 0,setData:void 0};function Z(e){var t,r;let{domains:n,membershipRequests:o,memberships:a,invitations:i}=e||{};L("useOrganization"),V("useOrganization");let{organization:l}=T(),s=I(),c=O(n,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,enrollmentMode:void 0}),d=O(o,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),u=O(a,{initialPage:1,pageSize:10,role:void 0,keepPreviousData:!1,infinite:!1,query:void 0}),m=O(i,{initialPage:1,pageSize:10,status:["pending"],keepPreviousData:!1,infinite:!1}),h=S();h.telemetry?.record((0,p.a)("useOrganization"));let f=void 0===n?void 0:{initialPage:c.initialPage,pageSize:c.pageSize,enrollmentMode:c.enrollmentMode},g=void 0===o?void 0:{initialPage:d.initialPage,pageSize:d.pageSize,status:d.status},b=void 0===a?void 0:{initialPage:u.initialPage,pageSize:u.pageSize,role:u.role,query:u.query},v=void 0===i?void 0:{initialPage:m.initialPage,pageSize:m.pageSize,status:m.status},y=H({fetcher:l?.getDomains,config:{keepPreviousData:c.keepPreviousData,infinite:c.infinite,enabled:!!f,isSignedIn:!!l,initialPage:c.initialPage,pageSize:c.pageSize},keys:M({stablePrefix:"domains",authenticated:!!l,tracked:{organizationId:l?.id},untracked:{args:f}})}),w=H({fetcher:l?.getMembershipRequests,config:{keepPreviousData:d.keepPreviousData,infinite:d.infinite,enabled:!!g,isSignedIn:!!l,initialPage:d.initialPage,pageSize:d.pageSize},keys:M({stablePrefix:"membershipRequests",authenticated:!!l,tracked:{organizationId:l?.id},untracked:{args:g}})}),$=H({fetcher:l?.getMemberships,config:{keepPreviousData:u.keepPreviousData,infinite:u.infinite,enabled:!!b,isSignedIn:!!l,initialPage:u.initialPage,pageSize:u.pageSize},keys:M({stablePrefix:"memberships",authenticated:!!l,tracked:{organizationId:l?.id},untracked:{args:b}})}),x=H({fetcher:l?.getInvitations,config:{keepPreviousData:m.keepPreviousData,infinite:m.infinite,enabled:!!v,isSignedIn:!!l,initialPage:m.initialPage,pageSize:m.pageSize},keys:M({stablePrefix:"invitations",authenticated:!!l,tracked:{organizationId:l?.id},untracked:{args:v}})});return void 0===l?{isLoaded:!1,organization:void 0,membership:void 0,domains:G,membershipRequests:G,memberships:G,invitations:G}:null===l?{isLoaded:!0,organization:null,membership:null,domains:null,membershipRequests:null,memberships:null,invitations:null}:!h.loaded&&l?{isLoaded:!0,organization:l,membership:void 0,domains:G,membershipRequests:G,memberships:G,invitations:G}:{isLoaded:h.loaded,organization:l,membership:(t=s.user.organizationMemberships,r=l.id,t.find(e=>e.organization.id===r)),domains:y,membershipRequests:w,memberships:$,invitations:x}}let q={data:void 0,count:void 0,error:void 0,isLoading:!1,isFetching:!1,isError:!1,page:void 0,pageCount:void 0,fetchPage:void 0,fetchNext:void 0,fetchPrevious:void 0,hasNextPage:!1,hasPreviousPage:!1,revalidate:void 0,setData:void 0};function X(e){let{userMemberships:t,userInvitations:r,userSuggestions:n}=e||{};L("useOrganizationList"),V("useOrganizationList");let o=O(t,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1}),a=O(r,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),i=O(n,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),l=S(),s=C();l.telemetry?.record((0,p.a)("useOrganizationList"));let c=void 0===t?void 0:{initialPage:o.initialPage,pageSize:o.pageSize},d=void 0===r?void 0:{initialPage:a.initialPage,pageSize:a.pageSize,status:a.status},u=void 0===n?void 0:{initialPage:i.initialPage,pageSize:i.pageSize,status:i.status},m=!!(l.loaded&&s),h=H({fetcher:s?.getOrganizationMemberships,config:{keepPreviousData:o.keepPreviousData,infinite:o.infinite,enabled:!!c,isSignedIn:!!s,initialPage:o.initialPage,pageSize:o.pageSize},keys:M({stablePrefix:"userMemberships",authenticated:!!s,tracked:{userId:s?.id},untracked:{args:c}})}),f=H({fetcher:s?.getOrganizationInvitations,config:{keepPreviousData:a.keepPreviousData,infinite:a.infinite,enabled:!!d,isSignedIn:!!s,initialPage:a.initialPage,pageSize:a.pageSize},keys:M({stablePrefix:"userInvitations",authenticated:!!s,tracked:{userId:s?.id},untracked:{args:d}})}),g=H({fetcher:s?.getOrganizationSuggestions,config:{keepPreviousData:i.keepPreviousData,infinite:i.infinite,enabled:!!u,isSignedIn:!!s,initialPage:i.initialPage,pageSize:i.pageSize},keys:M({stablePrefix:"userSuggestions",authenticated:!!s,tracked:{userId:s?.id},untracked:{args:u}})});return m?{isLoaded:m,setActive:l.setActive,createOrganization:l.createOrganization,userMemberships:h,userInvitations:f,userSuggestions:g}:{isLoaded:!1,createOrganization:void 0,setActive:void 0,userMemberships:q,userInvitations:q,userSuggestions:q}}let J="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,Q="useSession",ee=()=>{L(Q);let e=I(),t=S();return(t.telemetry?.record((0,p.a)(Q)),void 0===e)?{isLoaded:!1,isSignedIn:void 0,session:void 0}:null===e?{isLoaded:!0,isSignedIn:!1,session:null}:{isLoaded:!0,isSignedIn:t.isSignedIn,session:e}},et="useUser";function er(){L(et);let e=C();return(S().telemetry?.record((0,p.a)(et)),void 0===e)?{isLoaded:!1,isSignedIn:void 0,user:void 0}:null===e?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:e}}let en=(e,t)=>{let r;return h.useMemo(e,(r=h.useRef(t),(0,v.j)(t,r.current)||(r.current=t),h.useMemo(()=>r.current,[r.current])))};async function eo(e){try{let t=await e;if(t instanceof Response)return t.json();return t}catch(e){if((0,u.i)(e)&&e.errors.find(({code:e})=>"session_reverification_required"===e))return{clerk_error:{type:"forbidden",reason:a,metadata:{reverification:void 0}}};throw e}}let ea=(e,t)=>{let{__internal_openReverification:r,telemetry:n}=K(),o=(0,h.useRef)(e),c=(0,h.useRef)(t);return n?.record((0,p.a)("useReverification",{onNeedsReverification:!!t?.onNeedsReverification})),J(()=>{o.current=e,c.current=t}),(0,h.useCallback)((...e)=>{var t;return(t={openUIComponent:r,telemetry:n,...c.current},function(e){return async(...r)=>{let n,o=await eo(e(...r));if((n=o)&&"object"==typeof n&&"clerk_error"in n&&n.clerk_error?.type==="forbidden"&&n.clerk_error?.reason===a){let n=(0,m.t)(),a=(e=>{let t,r;if(!e)return!1;let n="string"==typeof e&&s.has(e),o="object"==typeof e&&(t=e.level,l.has(t))&&"number"==typeof(r=e.afterMinutes)&&r>0;return(!!n||!!o)&&(e=>"string"==typeof e?i[e]:e).bind(null,e)})(o.clerk_error.metadata?.reverification),c=a?a().level:void 0,d=()=>{n.reject(new u.g("User cancelled attempted verification",{code:"reverification_cancelled"}))},p=()=>{n.resolve(!0)};void 0===t.onNeedsReverification?t.openUIComponent?.({level:c,afterVerification:p,afterVerificationCancelled:d}):t.onNeedsReverification({cancel:d,complete:p,level:c}),await n.promise,o=await eo(e(...r))}return o}})(o.current)(...e)},[r,n])};function ei({hookName:e,resourceType:t,useFetcher:r,options:n}){return function(o){let{for:a,enabled:i,...l}=o||{},s=a||"user";L(e);let c=r(s),d=O(l,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,__experimental_mode:void 0}),u=S(),m=C(),{organization:h}=T();u.telemetry?.record((0,p.a)(e));let f="organization"===s,g=function(e){let t=S(),r=e?.enabled??!0,n=t.__internal_environment,o=C(),{organization:a}=T(),i=e?.for==="organization",l=i?n?.commerceSettings.billing.organization.enabled:n?.commerceSettings.billing.user.enabled,s=!(e?.authenticated??!0)||(!i||!!a?.id)&&!!o?.id;return l&&r&&t.loaded&&s}({for:s,enabled:i,authenticated:!n?.unauthenticated}),b=void 0===l?void 0:{initialPage:d.initialPage,pageSize:d.pageSize,...n?.unauthenticated?{}:f?{orgId:h?.id}:{}},v=!!b&&u.loaded&&!!g;return H({fetcher:c,config:{keepPreviousData:d.keepPreviousData,infinite:d.infinite,enabled:v,...n?.unauthenticated?{}:{isSignedIn:null!==m},__experimental_mode:d.__experimental_mode,initialPage:d.initialPage,pageSize:d.pageSize},keys:M({stablePrefix:t,authenticated:!n?.unauthenticated,tracked:n?.unauthenticated?{for:s}:{userId:m?.id,...f?{_orgId:h?.id}:{}},untracked:{args:b}})})}}let el=ei({hookName:"useStatements",resourceType:"billing-statements",useFetcher:()=>{let e=S();if(e.loaded)return e.billing.getStatements}}),es=ei({hookName:"usePaymentAttempts",resourceType:"billing-payment-attempts",useFetcher:()=>{let e=S();if(e.loaded)return e.billing.getPaymentAttempts}}),ec=ei({hookName:"usePaymentMethods",resourceType:"billing-payment-methods",useFetcher:e=>{let{organization:t}=T(),r=C();return"organization"===e?t?.getPaymentMethods:r?.getPaymentMethods}}),ed=ei({hookName:"usePlans",resourceType:"billing-plans",useFetcher:e=>{let t=S();if(t.loaded)return r=>t.billing.getPlans({...r,for:e})},options:{unauthenticated:!0}}),eu="useSubscription";function ep(e){L(eu);let t=S(),r=C(),{organization:n}=T(),o=t.__internal_environment;t.telemetry?.record((0,p.a)(eu));let a=e?.for==="organization"?o?.commerceSettings.billing.organization.enabled:o?.commerceSettings.billing.user.enabled,i=(e?.enabled??!0)&&a,{queryKey:l}=function(e){let{userId:t,orgId:r,for:n}=e;return(0,h.useMemo)(()=>{let e="organization"===n?r:void 0;return M({stablePrefix:"billing-subscription",authenticated:!0,tracked:{userId:t,orgId:e},untracked:{args:{orgId:e}}})},[t,r,n])}({userId:r?.id,orgId:n?.id,for:e?.for}),s=(0,f.Ay)(i?{queryKey:l}:null,({queryKey:e})=>{let r=e[3].args;return e[2].userId?t.billing.getSubscription(r):null},{dedupingInterval:6e4,keepPreviousData:e?.keepPreviousData}),c=(0,h.useCallback)(()=>{s.mutate()},[s]);return{data:s.data,error:s.error,isLoading:s.isLoading,isFetching:s.isValidating,revalidate:c}}let em=e=>{let t=R(),{for:r,planId:n,planPeriod:o}=e||t,{organization:a}=T(),{isLoaded:i,user:l}=er(),s=S();if(null===l&&i)throw Error("Clerk: Ensure that `useCheckout` is inside a component wrapped with `<SignedIn />`.");if(i&&"organization"===r&&null===a)throw Error("Clerk: Ensure your flow checks for an active organization. Retrieve `orgId` from `useAuth()` and confirm it is defined. For SSR, see: https://clerk.com/docs/reference/backend/types/auth-object#how-to-access-the-auth-object");let c=(0,h.useCallback)(()=>s.__experimental_checkout({planId:n,planPeriod:o,for:r}),[l?.id,a?.id,n,o,r]),d=(0,h.useCallback)(e=>s.loaded?s.__internal_state.__internal_effect(()=>{c(),e()}):()=>{},[c,s.loaded,s.__internal_state]),u=(0,h.useCallback)(()=>c(),[c]);return(0,h.useSyncExternalStore)(d,u,u)};function eh(e={}){let{statementId:t=null,enabled:r=!0,keepPreviousData:n=!1,for:o="user"}=e,a=S(),i=C(),{organization:l}=T(),s="organization"===o?l?.id??null:null,{queryKey:c}=function(e){let{statementId:t,userId:r,orgId:n,for:o}=e;return(0,h.useMemo)(()=>M({stablePrefix:"billing-statement",authenticated:!0,tracked:{statementId:t,forType:o,userId:r,orgId:n},untracked:{args:{id:t??void 0,orgId:n??void 0}}}),[t,o,r,n])}({statementId:t,userId:i?.id??null,orgId:s,for:o}),d=(0,f.Ay)(t&&r&&("organization"!==o||s)?c:null,()=>{if(!t)throw Error("statementId is required to fetch a statement");return a.billing.getStatement({id:t,orgId:s??void 0})},{dedupingInterval:6e4,keepPreviousData:n});return{data:d.data,error:d.error??null,isLoading:d.isLoading,isFetching:d.isValidating}}function ef(e={}){let{planId:t,initialPlan:r=null,enabled:n=!0,keepPreviousData:o=!0}=e,a=S(),i=t??r?.id??null,{queryKey:l}=function(e){let{planId:t}=e;return(0,h.useMemo)(()=>M({stablePrefix:"billing-plan",authenticated:!1,tracked:{planId:t??null},untracked:{args:{id:t??void 0}}}),[t])}({planId:i}),s=(0,f.Ay)(i&&n?l:null,()=>{if(!i)throw Error("planId is required to fetch plan details");return a.billing.getPlan({id:i})},{dedupingInterval:6e4,keepPreviousData:o,fallbackData:r??void 0});return{data:s.data,error:s.error??null,isLoading:s.isLoading,isFetching:s.isValidating}}function eg(e){let{paymentAttemptId:t,enabled:r=!0,keepPreviousData:n=!1,for:o="user"}=e,a=S(),i=C(),{organization:l}=T(),s="organization"===o?l?.id??null:null,{queryKey:c}=function(e){let{paymentAttemptId:t,userId:r,orgId:n,for:o}=e;return(0,h.useMemo)(()=>M({stablePrefix:"billing-payment-attempt",authenticated:!0,tracked:{paymentAttemptId:t,forType:o,userId:r,orgId:n},untracked:{args:{id:t??void 0,orgId:n??void 0}}}),[t,o,r,n])}({paymentAttemptId:t,userId:i?.id??null,orgId:s,for:o}),d=(0,f.Ay)(t&&r&&("organization"!==o||s)?{queryKey:c}:null,({queryKey:e})=>{let t=e[3].args;return a.billing.getPaymentAttempt(t)},{dedupingInterval:6e4,keepPreviousData:n});return{data:d.data,error:d.error??null,isLoading:d.isLoading,isFetching:d.isValidating}}let eb=e=>{let t=(0,h.useRef)(e);return(0,h.useEffect)(()=>{t.current=e},[e]),t.current},ev=(e,t,r)=>{let n=!!r,o=(0,h.useRef)(r);(0,h.useEffect)(()=>{o.current=r},[r]),(0,h.useEffect)(()=>{if(!n||!e)return()=>{};let r=(...e)=>{o.current&&o.current(...e)};return e.on(t,r),()=>{e.off(t,r)}},[n,t,e,o])},ey=h.createContext(null);ey.displayName="ElementsContext";let ew=(e,t)=>{if(!e)throw Error(`Could not find Elements context; You need to wrap the part of your app that ${t} in an <Elements> provider.`);return e},e$=({stripe:e,options:t,children:r})=>{let n=h.useMemo(()=>eS(e),[e]),[o,a]=h.useState(()=>({stripe:"sync"===n.tag?n.stripe:null,elements:"sync"===n.tag?n.stripe.elements(t):null}));h.useEffect(()=>{let e=!0,r=e=>{a(r=>r.stripe?r:{stripe:e,elements:e.elements(t)})};return"async"!==n.tag||o.stripe?"sync"!==n.tag||o.stripe||r(n.stripe):n.stripePromise.then(t=>{t&&e&&r(t)}),()=>{e=!1}},[n,o,t]);let i=eb(e);h.useEffect(()=>{null!==i&&i!==e&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[i,e]);let l=eb(t);return h.useEffect(()=>{if(!o.elements)return;let e=eA(t,l,["clientSecret","fonts"]);e&&o.elements.update(e)},[t,l,o.elements]),h.createElement(ey.Provider,{value:o},r)},ex="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",e_=(e,t=ex)=>{if(null===e||eP(e))return e;throw Error(t)},eS=(e,t=ex)=>{if(eC(e))return{tag:"async",stripePromise:Promise.resolve(e).then(e=>e_(e,t))};let r=e_(e,t);return null===r?{tag:"empty"}:{tag:"sync",stripe:r}},ek=e=>null!==e&&"object"==typeof e,eC=e=>ek(e)&&"function"==typeof e.then,eP=e=>ek(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment,eA=(e,t,r)=>ek(e)?Object.keys(e).reduce((n,o)=>{let a=!ek(t)||!eI(e[o],t[o]);return r.includes(o)?(a&&console.warn(`Unsupported prop change: options.${o} is not a mutable property.`),n):a?{...n||{},[o]:e[o]}:n},null):null,ez="[object Object]",eI=(e,t)=>{if(!ek(e)||!ek(t))return e===t;let r=Array.isArray(e);if(r!==Array.isArray(t))return!1;let n=Object.prototype.toString.call(e)===ez;if(n!==(Object.prototype.toString.call(t)===ez))return!1;if(!n&&!r)return e===t;let o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;let i={};for(let e=0;e<o.length;e+=1)i[o[e]]=!0;for(let e=0;e<a.length;e+=1)i[a[e]]=!0;let l=Object.keys(i);return l.length===o.length&&l.every(r=>eI(e[r],t[r]))},eD=e=>ew(h.useContext(ey),e),eR=(c="payment",d="undefined"==typeof window,n=`${c.charAt(0).toUpperCase()+c.slice(1)}Element`,(o=d?e=>{eD(`mounts <${n}>`);let{id:t,className:r}=e;return h.createElement("div",{id:t,className:r})}:({id:e,className:t,fallback:r,options:o={},onBlur:a,onFocus:i,onReady:l,onChange:s,onEscape:d,onClick:u,onLoadError:p,onLoaderStart:m,onNetworksChange:f,onConfirm:g,onCancel:b,onShippingAddressChange:v,onShippingRateChange:y})=>{let w,$=eD(`mounts <${n}>`),x="elements"in $?$.elements:null,[_,S]=h.useState(null),k=h.useRef(null),C=h.useRef(null),[P,A]=(0,h.useState)(!1);ev(_,"blur",a),ev(_,"focus",i),ev(_,"escape",d),ev(_,"click",u),ev(_,"loaderror",p),ev(_,"loaderstart",m),ev(_,"networkschange",f),ev(_,"confirm",g),ev(_,"cancel",b),ev(_,"shippingaddresschange",v),ev(_,"shippingratechange",y),ev(_,"change",s),l&&(w=()=>{A(!0),l(_)}),ev(_,"ready",w),h.useLayoutEffect(()=>{if(null===k.current&&null!==C.current&&x){let e=null;x&&(e=x.create(c,o)),k.current=e,S(e),e&&e.mount(C.current)}},[x,o]);let z=eb(o);return h.useEffect(()=>{if(!k.current)return;let e=eA(o,z,["paymentRequest"]);e&&"update"in k.current&&k.current.update(e)},[o,z]),h.useLayoutEffect(()=>()=>{if(k.current&&"function"==typeof k.current.destroy)try{k.current.destroy(),k.current=null}catch{}},[]),h.createElement(h.Fragment,null,!P&&r,h.createElement("div",{id:e,style:{height:P?"unset":"0px",visibility:P?"visible":"hidden"},className:t,ref:C}))}).displayName=n,o.__elementType=c,o),[eY,eE]=$("PaymentElementContext"),[eT,eF]=$("StripeUtilsContext"),eL=({children:e})=>{let t=(()=>{let{stripe:e}=eD("calls useStripe()");return e})(),r=(()=>{let{elements:e}=ew(h.useContext(ey),"calls useElements()");return e})();return h.createElement(eT.Provider,{value:{value:{stripe:t,elements:r}}},e)},eM=({children:e})=>h.createElement(eT.Provider,{value:{value:{}}},e),eB=({children:e,...t})=>{let r=((e="user")=>{let t,r=(t=K(),(0,f.Ay)("clerk-stripe-sdk",async()=>({loadStripe:await t.__internal_loadStripeJs()}),{keepPreviousData:!0,revalidateOnFocus:!1,dedupingInterval:1/0}).data??null),n=K().__internal_environment,{initializedPaymentMethod:o,initializePaymentMethod:a}=function(e){let{for:t="user"}=e??{},{organization:r}=T(),n=C(),o="organization"===t?r:n,{data:a,trigger:i}=(0,y.A)(o?.id?{key:"billing-payment-method-initialize",resourceId:o.id,for:t}:null,()=>o?.initializePaymentMethod({gateway:"stripe"}));return(0,h.useEffect)(()=>{o?.id&&i().catch(()=>{})},[o?.id,i]),{initializedPaymentMethod:a,initializePaymentMethod:i}}({for:e}),i=n?.commerceSettings.billing.stripePublishableKey??void 0;return{stripe:function(e){let{stripeClerkLibs:t,externalGatewayId:r,stripePublishableKey:n}=e;return(0,f.Ay)(t&&r&&n?{key:"stripe-sdk",externalGatewayId:r,stripePublishableKey:n}:null,({stripePublishableKey:e,externalGatewayId:r})=>t?.loadStripe(e,{stripeAccount:r}),{keepPreviousData:!0,revalidateOnFocus:!1,dedupingInterval:6e4}).data}({stripeClerkLibs:r,externalGatewayId:o?.externalGatewayId,stripePublishableKey:i}),initializePaymentMethod:a,externalClientSecret:o?.externalClientSecret,paymentMethodOrder:o?.paymentMethodOrder}})(t.for),[n,o]=(0,h.useState)(!1);return h.createElement(eY.Provider,{value:{value:{...t,...r,setIsPaymentElementReady:o,isPaymentElementReady:n}}},e)},eO=({children:e,...t})=>h.createElement(eB,t,h.createElement(ej,null,e)),ej=e=>{let{stripe:t,externalClientSecret:r,stripeAppearance:n}=eE(),o=(()=>{let e=K(),t="en";try{t=e.__internal_getOption("localization")?.locale||"en"}catch{}return t.split("-")[0]})();return t&&r?h.createElement(e$,{key:r,stripe:t,options:{loader:"never",clientSecret:r,appearance:{variables:n},locale:o}},h.createElement(eL,null,e.children)):h.createElement(eM,null,e.children)},eU=({fallback:e})=>{let{setIsPaymentElementReady:t,paymentMethodOrder:r,checkout:n,stripe:o,externalClientSecret:a,paymentDescription:i,for:l}=eE(),s=K().__internal_environment,c=(0,h.useMemo)(()=>{if(n&&n.totals&&n.plan)return{recurringPaymentRequest:{paymentDescription:i||"",managementURL:"organization"===l?s?.displayConfig.organizationProfileUrl||"":s?.displayConfig.userProfileUrl||"",regularBilling:{amount:n.totals.totalDueNow?.amount||n.totals.grandTotal.amount,label:n.plan.name,recurringPaymentIntervalUnit:"annual"===n.planPeriod?"year":"month"}}}},[n,i,l,s]),d=(0,h.useMemo)(()=>({layout:{type:"tabs",defaultCollapsed:!1},paymentMethodOrder:r,applePay:c}),[c,r]),u=(0,h.useCallback)(()=>{t(!0)},[t]);return o&&a?h.createElement(eR,{fallback:e,onReady:u,options:d}):h.createElement(h.Fragment,null,e)},eW=()=>{throw Error("Clerk: Unable to submit, Stripe libraries are not yet loaded. Be sure to check `isFormReady` before calling `submit`.")},eH=()=>{let{isPaymentElementReady:e,initializePaymentMethod:t}=eE(),{stripe:r,elements:n}=eF(),{externalClientSecret:o}=eE(),a=(0,h.useCallback)(async()=>{if(!r||!n)return eW();let{setupIntent:e,error:t}=await r.confirmSetup({elements:n,confirmParams:{return_url:window.location.href},redirect:"if_required"});return t?{data:null,error:{gateway:"stripe",error:{code:t.code,message:t.message,type:t.type}}}:{data:{gateway:"stripe",paymentToken:e.payment_method},error:null}},[r,n]),i=(0,h.useCallback)(async()=>{if(!r||!n)return eW();await t()},[r,n,t]),l=!!(r&&o);return l?{submit:a,reset:i,isFormReady:e,provider:{name:"stripe"},isProviderReady:l}:{submit:eW,reset:eW,isFormReady:!1,provider:void 0,isProviderReady:!1}}},1483:function(e,t,r){r.d(t,{a:()=>a,o:()=>o}),r(1302);let n=new Set(["SignIn","SignUp"]);function o(e,t={}){return{event:"COMPONENT_MOUNTED",eventSamplingRate:n.has(e)?1:.1,payload:{component:e,...t}}}function a(e,t){return{event:"METHOD_CALLED",eventSamplingRate:.1,payload:{method:e,...t}}}},4525:function(e,t,r){r.d(t,{we:()=>n.o}),r(1302);var n=r(1483)},1302:function(e,t,r){function n(e){let t=e||"";return t.charAt(0).toUpperCase()+t.slice(1)}function o(e){return e?e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace(/-|_/,"")):""}function a(e){return e?e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`):""}r.d(t,{c:()=>n,s:()=>o,t:()=>a});let i=e=>{let t=r=>{if(!r)return r;if(Array.isArray(r))return r.map(e=>"object"==typeof e||Array.isArray(e)?t(e):e);let n={...r};for(let r of Object.keys(n)){let o=e(r.toString());o!==r&&(n[o]=n[r],delete n[r]),"object"==typeof n[o]&&(n[o]=t(n[o]))}return n};return t};i(a),i(o)},1044:function(e,t,r){r.d(t,{C8:()=>n.t,Ns:()=>n.c,sF:()=>n.s});var n=r(1302)},6308:function(e,t,r){r.d(t,{_:()=>_,b:()=>w,c:()=>$,g:()=>x,h:()=>g,l:()=>S,t:()=>m,u:()=>y,v:()=>b,w:()=>f,x:()=>h});var n=r(2311),o=r(212),a=r(4210),i=r(1302),l=r(2779),s=r(8902);let c="http://clerk-dummy",d=["javascript:"],u=["javascript:","data:","vbscript:","blob:"],{isDevOrStagingUrl:p}=(0,n.n)();function m(e,t={}){let{base:r,hashPath:n,hashSearch:o,searchParams:a,hashSearchParams:d,...u}=e,p=new URL(r||"","undefined"!=typeof window&&window.location?window.location.href:"http://react-native-fake-base-url");if(a instanceof URLSearchParams&&a.forEach((e,t)=>{null!=e&&p.searchParams.set((0,i.t)(t),e)}),Object.assign(p,u),n||o||d){let e=new URL(c+p.hash.substring(1));for(let[t,r]of(e.pathname=(0,l.t)(e.pathname,n||""),Object.entries((0,s.t)(o||""))))e.searchParams.append(t,r);if(d)for(let t of Array.isArray(d)?d:[d])(t instanceof URLSearchParams||"object"==typeof t)&&new URLSearchParams(t).forEach((t,r)=>{null!=t&&e.searchParams.set((0,i.t)(r),t)});let t=e.href.replace(c,"");"/"!==t&&(p.hash=t)}let{stringify:h,skipOrigin:f}=t;return h?f?p.href.replace(p.origin,""):p.href:p}function h(e){return void 0===window.location&&"string"==typeof e?e:(e=new URL(e.toString(),window.location.origin)).href.replace(e.origin,"")}let f=e=>(e||"").replace(/\/+$/,"");function g(e){if(!e)return!1;try{return new URL(e),!0}catch{return!1}}function b(e,t){try{return new URL(e)}catch{return new URL(e,t)}}let v=[/\0/,/^\/\//,/[\x00-\x1F]/];function y(e){return!!e&&!!g(e)&&"data:"===new URL(e).protocol}function w(e){if(!e||""===e.trim())return null;if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?")||!e.includes(":"))return e;try{if(function(e){if(!g(e))return!1;let t=new URL(e).protocol;return u.some(e=>e===t)}(new URL(e)))return null;return e}catch{return e}}let $=e=>new URL(e,c).hash.startsWith("#/"),x=e=>{let t=new URL(e);if(!$(t))return t;let r=new URL(t.hash.replace("#/","/"),t.href),n=new URL([t.pathname,r.pathname].map(e=>e.split("/")).flat().filter(Boolean).join("/"),t.origin);return t.searchParams.forEach((e,t)=>{n.searchParams.set(t,e)}),r.searchParams.forEach((e,t)=>{n.searchParams.set(t,e)}),n},_=e=>e.replace(/CLERK-ROUTER\/(.*?)\//,""),S=(e,t)=>r=>{let n=r;if("string"==typeof n&&(n=b(n,t)),!e)return!0;let i=t===n.origin,l=!function(e){if(function(e){if(!g(e))return!1;let t=new URL(e).protocol;return d.some(e=>e===t)}(e))return!0;for(let t of v)if(t.test(e.pathname))return!0;return!1}(n)&&(i||e.map(e=>"string"==typeof e?o.t.toRegexp(f(e)):e).some(e=>e.test(f(n.origin))));return l||a.t.warnOnce(`Clerk: Redirect URL ${n} is not on one of the allowedRedirectOrigins, falling back to the default redirect URL.`),l}},5993:function(e,t,r){r.d(t,{s:()=>o});let n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>n.test(e)},9869:function(e,t,r){r.d(t,{n:()=>n});let n=(e,t)=>{if(e&&t)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&null!==e[r]&&"object"==typeof e[r]?(void 0===t[r]&&(t[r]=new(Object.getPrototypeOf(e[r])).constructor),n(e[r],t[r])):Object.prototype.hasOwnProperty.call(e,r)&&void 0!==e[r]&&(t[r]=e[r])}},2620:function(e,t,r){r.d(t,{Bz:()=>o,nn:()=>a});let n=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 o(){var e;let t;return!!(t="undefined"!=typeof window?window?.navigator:null)&&!((e=t?.userAgent)&&n.test(e))&&!t?.webdriver&&"function"==typeof window.PublicKeyCredential}async function a(){try{return o()&&await window.PublicKeyCredential.isConditionalMediationAvailable()}catch{return!1}}}}]);
139
+ Learn more: https://clerk.com/docs/components/clerk-provider`.trim())}}function M(e){return{queryKey:[e.stablePrefix,e.authenticated,e.tracked,e.untracked],invalidationKey:[e.stablePrefix,e.authenticated,e.tracked],stableKey:e.stablePrefix,authenticated:e.authenticated}}function B(e){let{queryKey:t}=e;return{type:t[0],...t[2],...t[3].args}}let O=(e,t)=>{let r="boolean"==typeof e&&e,n=(0,h.useRef)(r?t.initialPage:e?.initialPage??t.initialPage),o=(0,h.useRef)(r?t.pageSize:e?.pageSize??t.pageSize),a={};for(let n of Object.keys(t))a[n]=r?t[n]:e?.[n]??t[n];return{...a,initialPage:n.current,pageSize:o.current}};function j(e,t){let r=new Set(Object.keys(t)),n={};for(let t of Object.keys(e))r.has(t)||(n[t]=e[t]);return n}let U={dedupingInterval:6e4,focusThrottleInterval:12e4},W={...U,revalidateFirstPage:!1},H=e=>{let t,r,{fetcher:n,config:o,keys:a}=e,[i,l]=(0,h.useState)(o.initialPage??1),s=(0,h.useRef)(o.initialPage??1),c=(0,h.useRef)(o.pageSize??10),d=o.enabled??!0,u="cache"===o.__experimental_mode,p=o.infinite??!1,m=o.keepPreviousData??!1,g=o.isSignedIn,v={...B(a),initialPage:i,pageSize:c.current},y=(t=(0,h.useRef)(g),r=(0,h.useRef)(null),t.current!==g&&(r.current=t.current,t.current=g),r.current),w=!p&&d&&(!!u||!!n),{data:$,isValidating:x,isLoading:_,error:S,mutate:k}=(0,f.Ay)("boolean"==typeof g?!0===y&&!1===g||g&&w?v:null:w?v:null,!u&&n?e=>!1===g||!1===w?null:n(j(e,{type:a.queryKey[0],...a.queryKey[2]})):null,{keepPreviousData:m,...U}),{data:C,isLoading:P,isValidating:A,error:z,size:I,setSize:D,mutate:R}=(0,b.Ay)(e=>p&&d&&!1!==g?{...B(a),initialPage:s.current+e,pageSize:c.current}:null,e=>{let t=j(e,{type:a.queryKey[0],...a.queryKey[2]});return n?.(t)},W),Y=(0,h.useMemo)(()=>p?I:i,[p,I,i]),E=(0,h.useCallback)(e=>p?void D(e):l(e),[D,p]),T=(0,h.useMemo)(()=>p?C?.map(e=>e?.data).flat()??[]:$?.data??[],[p,$,C]),F=(0,h.useMemo)(()=>p?C?.[C?.length-1]?.total_count||0:$?.total_count??0,[p,$,C]),L=p?P:_,M=p?A:x,O=(p?z:S)??null,H=(0,h.useCallback)(()=>{E(e=>Math.max(0,e+1))},[E]),N=(0,h.useCallback)(()=>{E(e=>Math.max(0,e-1))},[E]),K=(s.current-1)*c.current;return{data:T,count:F,error:O,isLoading:L,isFetching:M,isError:!!O,page:Y,pageCount:Math.ceil((F-K)/c.current),fetchPage:E,fetchNext:H,fetchPrevious:N,hasNextPage:F-K*c.current>Y*c.current,hasPreviousPage:(Y-1)*c.current>K*c.current,revalidate:p?()=>R():()=>k(),setData:p?e=>R(e,{revalidate:!1}):e=>k(e,{revalidate:!1})}};function N(e){L("useAPIKeys");let t=O(e,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,subject:"",query:"",enabled:!0}),r=S();r.telemetry?.record((0,p.a)("useAPIKeys"));let n={initialPage:t.initialPage,pageSize:t.pageSize,...t.subject?{subject:t.subject}:{},...t.query?{query:t.query}:{}},o=(t.enabled??!0)&&r.loaded,a=H({fetcher:r.apiKeys?.getAll?e=>r.apiKeys.getAll({...e,subject:t.subject}):void 0,config:{keepPreviousData:t.keepPreviousData,infinite:t.infinite,enabled:o,isSignedIn:!!r.user,initialPage:t.initialPage,pageSize:t.pageSize},keys:M({stablePrefix:"apiKeys",authenticated:!!r.user,tracked:{subject:t.subject},untracked:{args:n}})}),{mutate:i}=(0,g.iX)(),l=(0,h.useCallback)(()=>i(e=>!!e&&"object"==typeof e&&"type"in e&&"apiKeys"===e.type&&"subject"in e&&e.subject===t.subject),[i,t.subject]);return{...a,revalidate:l}}let K=()=>(L("useClerk"),S());function V(e){let t=K(),r=(0,h.useRef)(!1);(0,h.useEffect)(()=>{r.current||(r.current=!0,t.__internal_attemptToEnableEnvironmentSetting?.({for:"organizations",caller:e}))},[t,e])}let G={data:void 0,count:void 0,error:void 0,isLoading:!1,isFetching:!1,isError:!1,page:void 0,pageCount:void 0,fetchPage:void 0,fetchNext:void 0,fetchPrevious:void 0,hasNextPage:!1,hasPreviousPage:!1,revalidate:void 0,setData:void 0};function Z(e){var t,r;let{domains:n,membershipRequests:o,memberships:a,invitations:i}=e||{};L("useOrganization"),V("useOrganization");let{organization:l}=T(),s=I(),c=O(n,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,enrollmentMode:void 0}),d=O(o,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),u=O(a,{initialPage:1,pageSize:10,role:void 0,keepPreviousData:!1,infinite:!1,query:void 0}),m=O(i,{initialPage:1,pageSize:10,status:["pending"],keepPreviousData:!1,infinite:!1}),h=S();h.telemetry?.record((0,p.a)("useOrganization"));let f=void 0===n?void 0:{initialPage:c.initialPage,pageSize:c.pageSize,enrollmentMode:c.enrollmentMode},g=void 0===o?void 0:{initialPage:d.initialPage,pageSize:d.pageSize,status:d.status},b=void 0===a?void 0:{initialPage:u.initialPage,pageSize:u.pageSize,role:u.role,query:u.query},v=void 0===i?void 0:{initialPage:m.initialPage,pageSize:m.pageSize,status:m.status},y=H({fetcher:l?.getDomains,config:{keepPreviousData:c.keepPreviousData,infinite:c.infinite,enabled:!!f,isSignedIn:!!l,initialPage:c.initialPage,pageSize:c.pageSize},keys:M({stablePrefix:"domains",authenticated:!!l,tracked:{organizationId:l?.id},untracked:{args:f}})}),w=H({fetcher:l?.getMembershipRequests,config:{keepPreviousData:d.keepPreviousData,infinite:d.infinite,enabled:!!g,isSignedIn:!!l,initialPage:d.initialPage,pageSize:d.pageSize},keys:M({stablePrefix:"membershipRequests",authenticated:!!l,tracked:{organizationId:l?.id},untracked:{args:g}})}),$=H({fetcher:l?.getMemberships,config:{keepPreviousData:u.keepPreviousData,infinite:u.infinite,enabled:!!b,isSignedIn:!!l,initialPage:u.initialPage,pageSize:u.pageSize},keys:M({stablePrefix:"memberships",authenticated:!!l,tracked:{organizationId:l?.id},untracked:{args:b}})}),x=H({fetcher:l?.getInvitations,config:{keepPreviousData:m.keepPreviousData,infinite:m.infinite,enabled:!!v,isSignedIn:!!l,initialPage:m.initialPage,pageSize:m.pageSize},keys:M({stablePrefix:"invitations",authenticated:!!l,tracked:{organizationId:l?.id},untracked:{args:v}})});return void 0===l?{isLoaded:!1,organization:void 0,membership:void 0,domains:G,membershipRequests:G,memberships:G,invitations:G}:null===l?{isLoaded:!0,organization:null,membership:null,domains:null,membershipRequests:null,memberships:null,invitations:null}:!h.loaded&&l?{isLoaded:!0,organization:l,membership:void 0,domains:G,membershipRequests:G,memberships:G,invitations:G}:{isLoaded:h.loaded,organization:l,membership:(t=s.user.organizationMemberships,r=l.id,t.find(e=>e.organization.id===r)),domains:y,membershipRequests:w,memberships:$,invitations:x}}let q={data:void 0,count:void 0,error:void 0,isLoading:!1,isFetching:!1,isError:!1,page:void 0,pageCount:void 0,fetchPage:void 0,fetchNext:void 0,fetchPrevious:void 0,hasNextPage:!1,hasPreviousPage:!1,revalidate:void 0,setData:void 0};function X(e){let{userMemberships:t,userInvitations:r,userSuggestions:n}=e||{};L("useOrganizationList"),V("useOrganizationList");let o=O(t,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1}),a=O(r,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),i=O(n,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),l=S(),s=C();l.telemetry?.record((0,p.a)("useOrganizationList"));let c=void 0===t?void 0:{initialPage:o.initialPage,pageSize:o.pageSize},d=void 0===r?void 0:{initialPage:a.initialPage,pageSize:a.pageSize,status:a.status},u=void 0===n?void 0:{initialPage:i.initialPage,pageSize:i.pageSize,status:i.status},m=!!(l.loaded&&s),h=H({fetcher:s?.getOrganizationMemberships,config:{keepPreviousData:o.keepPreviousData,infinite:o.infinite,enabled:!!c,isSignedIn:!!s,initialPage:o.initialPage,pageSize:o.pageSize},keys:M({stablePrefix:"userMemberships",authenticated:!!s,tracked:{userId:s?.id},untracked:{args:c}})}),f=H({fetcher:s?.getOrganizationInvitations,config:{keepPreviousData:a.keepPreviousData,infinite:a.infinite,enabled:!!d,isSignedIn:!!s,initialPage:a.initialPage,pageSize:a.pageSize},keys:M({stablePrefix:"userInvitations",authenticated:!!s,tracked:{userId:s?.id},untracked:{args:d}})}),g=H({fetcher:s?.getOrganizationSuggestions,config:{keepPreviousData:i.keepPreviousData,infinite:i.infinite,enabled:!!u,isSignedIn:!!s,initialPage:i.initialPage,pageSize:i.pageSize},keys:M({stablePrefix:"userSuggestions",authenticated:!!s,tracked:{userId:s?.id},untracked:{args:u}})});return m?{isLoaded:m,setActive:l.setActive,createOrganization:l.createOrganization,userMemberships:h,userInvitations:f,userSuggestions:g}:{isLoaded:!1,createOrganization:void 0,setActive:void 0,userMemberships:q,userInvitations:q,userSuggestions:q}}let J="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,Q="useSession",ee=()=>{L(Q);let e=I(),t=S();return(t.telemetry?.record((0,p.a)(Q)),void 0===e)?{isLoaded:!1,isSignedIn:void 0,session:void 0}:null===e?{isLoaded:!0,isSignedIn:!1,session:null}:{isLoaded:!0,isSignedIn:t.isSignedIn,session:e}},et="useUser";function er(){L(et);let e=C();return(S().telemetry?.record((0,p.a)(et)),void 0===e)?{isLoaded:!1,isSignedIn:void 0,user:void 0}:null===e?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:e}}let en=(e,t)=>{let r;return h.useMemo(e,(r=h.useRef(t),(0,v.j)(t,r.current)||(r.current=t),h.useMemo(()=>r.current,[r.current])))};async function eo(e){try{let t=await e;if(t instanceof Response)return t.json();return t}catch(e){if((0,u.S)(e)&&e.errors.find(({code:e})=>"session_reverification_required"===e))return{clerk_error:{type:"forbidden",reason:a,metadata:{reverification:void 0}}};throw e}}let ea=(e,t)=>{let{__internal_openReverification:r,telemetry:n}=K(),o=(0,h.useRef)(e),c=(0,h.useRef)(t);return n?.record((0,p.a)("useReverification",{onNeedsReverification:!!t?.onNeedsReverification})),J(()=>{o.current=e,c.current=t}),(0,h.useCallback)((...e)=>{var t;return(t={openUIComponent:r,telemetry:n,...c.current},function(e){return async(...r)=>{let n,o=await eo(e(...r));if((n=o)&&"object"==typeof n&&"clerk_error"in n&&n.clerk_error?.type==="forbidden"&&n.clerk_error?.reason===a){let n=(0,m.t)(),a=(e=>{let t,r;if(!e)return!1;let n="string"==typeof e&&s.has(e),o="object"==typeof e&&(t=e.level,l.has(t))&&"number"==typeof(r=e.afterMinutes)&&r>0;return(!!n||!!o)&&(e=>"string"==typeof e?i[e]:e).bind(null,e)})(o.clerk_error.metadata?.reverification),c=a?a().level:void 0,d=()=>{n.reject(new u.m("User cancelled attempted verification",{code:"reverification_cancelled"}))},p=()=>{n.resolve(!0)};void 0===t.onNeedsReverification?t.openUIComponent?.({level:c,afterVerification:p,afterVerificationCancelled:d}):t.onNeedsReverification({cancel:d,complete:p,level:c}),await n.promise,o=await eo(e(...r))}return o}})(o.current)(...e)},[r,n])};function ei({hookName:e,resourceType:t,useFetcher:r,options:n}){return function(o){let{for:a,enabled:i,...l}=o||{},s=a||"user";L(e);let c=r(s),d=O(l,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,__experimental_mode:void 0}),u=S(),m=C(),{organization:h}=T();u.telemetry?.record((0,p.a)(e));let f="organization"===s,g=function(e){let t=S(),r=e?.enabled??!0,n=t.__internal_environment,o=C(),{organization:a}=T(),i=e?.for==="organization",l=i?n?.commerceSettings.billing.organization.enabled:n?.commerceSettings.billing.user.enabled,s=!(e?.authenticated??!0)||(!i||!!a?.id)&&!!o?.id;return l&&r&&t.loaded&&s}({for:s,enabled:i,authenticated:!n?.unauthenticated}),b=void 0===l?void 0:{initialPage:d.initialPage,pageSize:d.pageSize,...n?.unauthenticated?{}:f?{orgId:h?.id}:{}},v=!!b&&u.loaded&&!!g;return H({fetcher:c,config:{keepPreviousData:d.keepPreviousData,infinite:d.infinite,enabled:v,...n?.unauthenticated?{}:{isSignedIn:null!==m},__experimental_mode:d.__experimental_mode,initialPage:d.initialPage,pageSize:d.pageSize},keys:M({stablePrefix:t,authenticated:!n?.unauthenticated,tracked:n?.unauthenticated?{for:s}:{userId:m?.id,...f?{_orgId:h?.id}:{}},untracked:{args:b}})})}}let el=ei({hookName:"useStatements",resourceType:"billing-statements",useFetcher:()=>{let e=S();if(e.loaded)return e.billing.getStatements}}),es=ei({hookName:"usePaymentAttempts",resourceType:"billing-payment-attempts",useFetcher:()=>{let e=S();if(e.loaded)return e.billing.getPaymentAttempts}}),ec=ei({hookName:"usePaymentMethods",resourceType:"billing-payment-methods",useFetcher:e=>{let{organization:t}=T(),r=C();return"organization"===e?t?.getPaymentMethods:r?.getPaymentMethods}}),ed=ei({hookName:"usePlans",resourceType:"billing-plans",useFetcher:e=>{let t=S();if(t.loaded)return r=>t.billing.getPlans({...r,for:e})},options:{unauthenticated:!0}}),eu="useSubscription";function ep(e){L(eu);let t=S(),r=C(),{organization:n}=T(),o=t.__internal_environment;t.telemetry?.record((0,p.a)(eu));let a=e?.for==="organization"?o?.commerceSettings.billing.organization.enabled:o?.commerceSettings.billing.user.enabled,i=(e?.enabled??!0)&&a,{queryKey:l}=function(e){let{userId:t,orgId:r,for:n}=e;return(0,h.useMemo)(()=>{let e="organization"===n?r:void 0;return M({stablePrefix:"billing-subscription",authenticated:!0,tracked:{userId:t,orgId:e},untracked:{args:{orgId:e}}})},[t,r,n])}({userId:r?.id,orgId:n?.id,for:e?.for}),s=(0,f.Ay)(i?{queryKey:l}:null,({queryKey:e})=>{let r=e[3].args;return e[2].userId?t.billing.getSubscription(r):null},{dedupingInterval:6e4,keepPreviousData:e?.keepPreviousData}),c=(0,h.useCallback)(()=>{s.mutate()},[s]);return{data:s.data,error:s.error,isLoading:s.isLoading,isFetching:s.isValidating,revalidate:c}}let em=e=>{let t=R(),{for:r,planId:n,planPeriod:o}=e||t,{organization:a}=T(),{isLoaded:i,user:l}=er(),s=S();if(null===l&&i)throw Error("Clerk: Ensure that `useCheckout` is inside a component wrapped with `<SignedIn />`.");if(i&&"organization"===r&&null===a)throw Error("Clerk: Ensure your flow checks for an active organization. Retrieve `orgId` from `useAuth()` and confirm it is defined. For SSR, see: https://clerk.com/docs/reference/backend/types/auth-object#how-to-access-the-auth-object");let c=(0,h.useCallback)(()=>s.__experimental_checkout({planId:n,planPeriod:o,for:r}),[l?.id,a?.id,n,o,r]),d=(0,h.useCallback)(e=>s.loaded?s.__internal_state.__internal_effect(()=>{c(),e()}):()=>{},[c,s.loaded,s.__internal_state]),u=(0,h.useCallback)(()=>c(),[c]);return(0,h.useSyncExternalStore)(d,u,u)};function eh(e={}){let{statementId:t=null,enabled:r=!0,keepPreviousData:n=!1,for:o="user"}=e,a=S(),i=C(),{organization:l}=T(),s="organization"===o?l?.id??null:null,{queryKey:c}=function(e){let{statementId:t,userId:r,orgId:n,for:o}=e;return(0,h.useMemo)(()=>M({stablePrefix:"billing-statement",authenticated:!0,tracked:{statementId:t,forType:o,userId:r,orgId:n},untracked:{args:{id:t??void 0,orgId:n??void 0}}}),[t,o,r,n])}({statementId:t,userId:i?.id??null,orgId:s,for:o}),d=(0,f.Ay)(t&&r&&("organization"!==o||s)?c:null,()=>{if(!t)throw Error("statementId is required to fetch a statement");return a.billing.getStatement({id:t,orgId:s??void 0})},{dedupingInterval:6e4,keepPreviousData:n});return{data:d.data,error:d.error??null,isLoading:d.isLoading,isFetching:d.isValidating}}function ef(e={}){let{planId:t,initialPlan:r=null,enabled:n=!0,keepPreviousData:o=!0}=e,a=S(),i=t??r?.id??null,{queryKey:l}=function(e){let{planId:t}=e;return(0,h.useMemo)(()=>M({stablePrefix:"billing-plan",authenticated:!1,tracked:{planId:t??null},untracked:{args:{id:t??void 0}}}),[t])}({planId:i}),s=(0,f.Ay)(i&&n?l:null,()=>{if(!i)throw Error("planId is required to fetch plan details");return a.billing.getPlan({id:i})},{dedupingInterval:6e4,keepPreviousData:o,fallbackData:r??void 0});return{data:s.data,error:s.error??null,isLoading:s.isLoading,isFetching:s.isValidating}}function eg(e){let{paymentAttemptId:t,enabled:r=!0,keepPreviousData:n=!1,for:o="user"}=e,a=S(),i=C(),{organization:l}=T(),s="organization"===o?l?.id??null:null,{queryKey:c}=function(e){let{paymentAttemptId:t,userId:r,orgId:n,for:o}=e;return(0,h.useMemo)(()=>M({stablePrefix:"billing-payment-attempt",authenticated:!0,tracked:{paymentAttemptId:t,forType:o,userId:r,orgId:n},untracked:{args:{id:t??void 0,orgId:n??void 0}}}),[t,o,r,n])}({paymentAttemptId:t,userId:i?.id??null,orgId:s,for:o}),d=(0,f.Ay)(t&&r&&("organization"!==o||s)?{queryKey:c}:null,({queryKey:e})=>{let t=e[3].args;return a.billing.getPaymentAttempt(t)},{dedupingInterval:6e4,keepPreviousData:n});return{data:d.data,error:d.error??null,isLoading:d.isLoading,isFetching:d.isValidating}}let eb=e=>{let t=(0,h.useRef)(e);return(0,h.useEffect)(()=>{t.current=e},[e]),t.current},ev=(e,t,r)=>{let n=!!r,o=(0,h.useRef)(r);(0,h.useEffect)(()=>{o.current=r},[r]),(0,h.useEffect)(()=>{if(!n||!e)return()=>{};let r=(...e)=>{o.current&&o.current(...e)};return e.on(t,r),()=>{e.off(t,r)}},[n,t,e,o])},ey=h.createContext(null);ey.displayName="ElementsContext";let ew=(e,t)=>{if(!e)throw Error(`Could not find Elements context; You need to wrap the part of your app that ${t} in an <Elements> provider.`);return e},e$=({stripe:e,options:t,children:r})=>{let n=h.useMemo(()=>eS(e),[e]),[o,a]=h.useState(()=>({stripe:"sync"===n.tag?n.stripe:null,elements:"sync"===n.tag?n.stripe.elements(t):null}));h.useEffect(()=>{let e=!0,r=e=>{a(r=>r.stripe?r:{stripe:e,elements:e.elements(t)})};return"async"!==n.tag||o.stripe?"sync"!==n.tag||o.stripe||r(n.stripe):n.stripePromise.then(t=>{t&&e&&r(t)}),()=>{e=!1}},[n,o,t]);let i=eb(e);h.useEffect(()=>{null!==i&&i!==e&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[i,e]);let l=eb(t);return h.useEffect(()=>{if(!o.elements)return;let e=eA(t,l,["clientSecret","fonts"]);e&&o.elements.update(e)},[t,l,o.elements]),h.createElement(ey.Provider,{value:o},r)},ex="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",e_=(e,t=ex)=>{if(null===e||eP(e))return e;throw Error(t)},eS=(e,t=ex)=>{if(eC(e))return{tag:"async",stripePromise:Promise.resolve(e).then(e=>e_(e,t))};let r=e_(e,t);return null===r?{tag:"empty"}:{tag:"sync",stripe:r}},ek=e=>null!==e&&"object"==typeof e,eC=e=>ek(e)&&"function"==typeof e.then,eP=e=>ek(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment,eA=(e,t,r)=>ek(e)?Object.keys(e).reduce((n,o)=>{let a=!ek(t)||!eI(e[o],t[o]);return r.includes(o)?(a&&console.warn(`Unsupported prop change: options.${o} is not a mutable property.`),n):a?{...n||{},[o]:e[o]}:n},null):null,ez="[object Object]",eI=(e,t)=>{if(!ek(e)||!ek(t))return e===t;let r=Array.isArray(e);if(r!==Array.isArray(t))return!1;let n=Object.prototype.toString.call(e)===ez;if(n!==(Object.prototype.toString.call(t)===ez))return!1;if(!n&&!r)return e===t;let o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;let i={};for(let e=0;e<o.length;e+=1)i[o[e]]=!0;for(let e=0;e<a.length;e+=1)i[a[e]]=!0;let l=Object.keys(i);return l.length===o.length&&l.every(r=>eI(e[r],t[r]))},eD=e=>ew(h.useContext(ey),e),eR=(c="payment",d="undefined"==typeof window,n=`${c.charAt(0).toUpperCase()+c.slice(1)}Element`,(o=d?e=>{eD(`mounts <${n}>`);let{id:t,className:r}=e;return h.createElement("div",{id:t,className:r})}:({id:e,className:t,fallback:r,options:o={},onBlur:a,onFocus:i,onReady:l,onChange:s,onEscape:d,onClick:u,onLoadError:p,onLoaderStart:m,onNetworksChange:f,onConfirm:g,onCancel:b,onShippingAddressChange:v,onShippingRateChange:y})=>{let w,$=eD(`mounts <${n}>`),x="elements"in $?$.elements:null,[_,S]=h.useState(null),k=h.useRef(null),C=h.useRef(null),[P,A]=(0,h.useState)(!1);ev(_,"blur",a),ev(_,"focus",i),ev(_,"escape",d),ev(_,"click",u),ev(_,"loaderror",p),ev(_,"loaderstart",m),ev(_,"networkschange",f),ev(_,"confirm",g),ev(_,"cancel",b),ev(_,"shippingaddresschange",v),ev(_,"shippingratechange",y),ev(_,"change",s),l&&(w=()=>{A(!0),l(_)}),ev(_,"ready",w),h.useLayoutEffect(()=>{if(null===k.current&&null!==C.current&&x){let e=null;x&&(e=x.create(c,o)),k.current=e,S(e),e&&e.mount(C.current)}},[x,o]);let z=eb(o);return h.useEffect(()=>{if(!k.current)return;let e=eA(o,z,["paymentRequest"]);e&&"update"in k.current&&k.current.update(e)},[o,z]),h.useLayoutEffect(()=>()=>{if(k.current&&"function"==typeof k.current.destroy)try{k.current.destroy(),k.current=null}catch{}},[]),h.createElement(h.Fragment,null,!P&&r,h.createElement("div",{id:e,style:{height:P?"unset":"0px",visibility:P?"visible":"hidden"},className:t,ref:C}))}).displayName=n,o.__elementType=c,o),[eY,eE]=$("PaymentElementContext"),[eT,eF]=$("StripeUtilsContext"),eL=({children:e})=>{let t=(()=>{let{stripe:e}=eD("calls useStripe()");return e})(),r=(()=>{let{elements:e}=ew(h.useContext(ey),"calls useElements()");return e})();return h.createElement(eT.Provider,{value:{value:{stripe:t,elements:r}}},e)},eM=({children:e})=>h.createElement(eT.Provider,{value:{value:{}}},e),eB=({children:e,...t})=>{let r=((e="user")=>{let t,r=(t=K(),(0,f.Ay)("clerk-stripe-sdk",async()=>({loadStripe:await t.__internal_loadStripeJs()}),{keepPreviousData:!0,revalidateOnFocus:!1,dedupingInterval:1/0}).data??null),n=K().__internal_environment,{initializedPaymentMethod:o,initializePaymentMethod:a}=function(e){let{for:t="user"}=e??{},{organization:r}=T(),n=C(),o="organization"===t?r:n,{data:a,trigger:i}=(0,y.A)(o?.id?{key:"billing-payment-method-initialize",resourceId:o.id,for:t}:null,()=>o?.initializePaymentMethod({gateway:"stripe"}));return(0,h.useEffect)(()=>{o?.id&&i().catch(()=>{})},[o?.id,i]),{initializedPaymentMethod:a,initializePaymentMethod:i}}({for:e}),i=n?.commerceSettings.billing.stripePublishableKey??void 0;return{stripe:function(e){let{stripeClerkLibs:t,externalGatewayId:r,stripePublishableKey:n}=e;return(0,f.Ay)(t&&r&&n?{key:"stripe-sdk",externalGatewayId:r,stripePublishableKey:n}:null,({stripePublishableKey:e,externalGatewayId:r})=>t?.loadStripe(e,{stripeAccount:r}),{keepPreviousData:!0,revalidateOnFocus:!1,dedupingInterval:6e4}).data}({stripeClerkLibs:r,externalGatewayId:o?.externalGatewayId,stripePublishableKey:i}),initializePaymentMethod:a,externalClientSecret:o?.externalClientSecret,paymentMethodOrder:o?.paymentMethodOrder}})(t.for),[n,o]=(0,h.useState)(!1);return h.createElement(eY.Provider,{value:{value:{...t,...r,setIsPaymentElementReady:o,isPaymentElementReady:n}}},e)},eO=({children:e,...t})=>h.createElement(eB,t,h.createElement(ej,null,e)),ej=e=>{let{stripe:t,externalClientSecret:r,stripeAppearance:n}=eE(),o=(()=>{let e=K(),t="en";try{t=e.__internal_getOption("localization")?.locale||"en"}catch{}return t.split("-")[0]})();return t&&r?h.createElement(e$,{key:r,stripe:t,options:{loader:"never",clientSecret:r,appearance:{variables:n},locale:o}},h.createElement(eL,null,e.children)):h.createElement(eM,null,e.children)},eU=({fallback:e})=>{let{setIsPaymentElementReady:t,paymentMethodOrder:r,checkout:n,stripe:o,externalClientSecret:a,paymentDescription:i,for:l}=eE(),s=K().__internal_environment,c=(0,h.useMemo)(()=>{if(n&&n.totals&&n.plan)return{recurringPaymentRequest:{paymentDescription:i||"",managementURL:"organization"===l?s?.displayConfig.organizationProfileUrl||"":s?.displayConfig.userProfileUrl||"",regularBilling:{amount:n.totals.totalDueNow?.amount||n.totals.grandTotal.amount,label:n.plan.name,recurringPaymentIntervalUnit:"annual"===n.planPeriod?"year":"month"}}}},[n,i,l,s]),d=(0,h.useMemo)(()=>({layout:{type:"tabs",defaultCollapsed:!1},paymentMethodOrder:r,applePay:c}),[c,r]),u=(0,h.useCallback)(()=>{t(!0)},[t]);return o&&a?h.createElement(eR,{fallback:e,onReady:u,options:d}):h.createElement(h.Fragment,null,e)},eW=()=>{throw Error("Clerk: Unable to submit, Stripe libraries are not yet loaded. Be sure to check `isFormReady` before calling `submit`.")},eH=()=>{let{isPaymentElementReady:e,initializePaymentMethod:t}=eE(),{stripe:r,elements:n}=eF(),{externalClientSecret:o}=eE(),a=(0,h.useCallback)(async()=>{if(!r||!n)return eW();let{setupIntent:e,error:t}=await r.confirmSetup({elements:n,confirmParams:{return_url:window.location.href},redirect:"if_required"});return t?{data:null,error:{gateway:"stripe",error:{code:t.code,message:t.message,type:t.type}}}:{data:{gateway:"stripe",paymentToken:e.payment_method},error:null}},[r,n]),i=(0,h.useCallback)(async()=>{if(!r||!n)return eW();await t()},[r,n,t]),l=!!(r&&o);return l?{submit:a,reset:i,isFormReady:e,provider:{name:"stripe"},isProviderReady:l}:{submit:eW,reset:eW,isFormReady:!1,provider:void 0,isProviderReady:!1}}},1483:function(e,t,r){r.d(t,{a:()=>a,o:()=>o}),r(1302);let n=new Set(["SignIn","SignUp"]);function o(e,t={}){return{event:"COMPONENT_MOUNTED",eventSamplingRate:n.has(e)?1:.1,payload:{component:e,...t}}}function a(e,t){return{event:"METHOD_CALLED",eventSamplingRate:.1,payload:{method:e,...t}}}},4525:function(e,t,r){r.d(t,{we:()=>n.o}),r(1302);var n=r(1483)},1302:function(e,t,r){function n(e){let t=e||"";return t.charAt(0).toUpperCase()+t.slice(1)}function o(e){return e?e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace(/-|_/,"")):""}function a(e){return e?e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`):""}r.d(t,{c:()=>n,s:()=>o,t:()=>a});let i=e=>{let t=r=>{if(!r)return r;if(Array.isArray(r))return r.map(e=>"object"==typeof e||Array.isArray(e)?t(e):e);let n={...r};for(let r of Object.keys(n)){let o=e(r.toString());o!==r&&(n[o]=n[r],delete n[r]),"object"==typeof n[o]&&(n[o]=t(n[o]))}return n};return t};i(a),i(o)},1044:function(e,t,r){r.d(t,{C8:()=>n.t,Ns:()=>n.c,sF:()=>n.s});var n=r(1302)},6308:function(e,t,r){r.d(t,{_:()=>_,b:()=>w,c:()=>$,g:()=>x,h:()=>g,l:()=>S,t:()=>m,u:()=>y,v:()=>b,w:()=>f,x:()=>h});var n=r(2311),o=r(212),a=r(4210),i=r(1302),l=r(2779),s=r(8902);let c="http://clerk-dummy",d=["javascript:"],u=["javascript:","data:","vbscript:","blob:"],{isDevOrStagingUrl:p}=(0,n.n)();function m(e,t={}){let{base:r,hashPath:n,hashSearch:o,searchParams:a,hashSearchParams:d,...u}=e,p=new URL(r||"","undefined"!=typeof window&&window.location?window.location.href:"http://react-native-fake-base-url");if(a instanceof URLSearchParams&&a.forEach((e,t)=>{null!=e&&p.searchParams.set((0,i.t)(t),e)}),Object.assign(p,u),n||o||d){let e=new URL(c+p.hash.substring(1));for(let[t,r]of(e.pathname=(0,l.t)(e.pathname,n||""),Object.entries((0,s.t)(o||""))))e.searchParams.append(t,r);if(d)for(let t of Array.isArray(d)?d:[d])(t instanceof URLSearchParams||"object"==typeof t)&&new URLSearchParams(t).forEach((t,r)=>{null!=t&&e.searchParams.set((0,i.t)(r),t)});let t=e.href.replace(c,"");"/"!==t&&(p.hash=t)}let{stringify:h,skipOrigin:f}=t;return h?f?p.href.replace(p.origin,""):p.href:p}function h(e){return void 0===window.location&&"string"==typeof e?e:(e=new URL(e.toString(),window.location.origin)).href.replace(e.origin,"")}let f=e=>(e||"").replace(/\/+$/,"");function g(e){if(!e)return!1;try{return new URL(e),!0}catch{return!1}}function b(e,t){try{return new URL(e)}catch{return new URL(e,t)}}let v=[/\0/,/^\/\//,/[\x00-\x1F]/];function y(e){return!!e&&!!g(e)&&"data:"===new URL(e).protocol}function w(e){if(!e||""===e.trim())return null;if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?")||!e.includes(":"))return e;try{if(function(e){if(!g(e))return!1;let t=new URL(e).protocol;return u.some(e=>e===t)}(new URL(e)))return null;return e}catch{return e}}let $=e=>new URL(e,c).hash.startsWith("#/"),x=e=>{let t=new URL(e);if(!$(t))return t;let r=new URL(t.hash.replace("#/","/"),t.href),n=new URL([t.pathname,r.pathname].map(e=>e.split("/")).flat().filter(Boolean).join("/"),t.origin);return t.searchParams.forEach((e,t)=>{n.searchParams.set(t,e)}),r.searchParams.forEach((e,t)=>{n.searchParams.set(t,e)}),n},_=e=>e.replace(/CLERK-ROUTER\/(.*?)\//,""),S=(e,t)=>r=>{let n=r;if("string"==typeof n&&(n=b(n,t)),!e)return!0;let i=t===n.origin,l=!function(e){if(function(e){if(!g(e))return!1;let t=new URL(e).protocol;return d.some(e=>e===t)}(e))return!0;for(let t of v)if(t.test(e.pathname))return!0;return!1}(n)&&(i||e.map(e=>"string"==typeof e?o.t.toRegexp(f(e)):e).some(e=>e.test(f(n.origin))));return l||a.t.warnOnce(`Clerk: Redirect URL ${n} is not on one of the allowedRedirectOrigins, falling back to the default redirect URL.`),l}},5993:function(e,t,r){r.d(t,{s:()=>o});let n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>n.test(e)},9869:function(e,t,r){r.d(t,{n:()=>n});let n=(e,t)=>{if(e&&t)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&null!==e[r]&&"object"==typeof e[r]?(void 0===t[r]&&(t[r]=new(Object.getPrototypeOf(e[r])).constructor),n(e[r],t[r])):Object.prototype.hasOwnProperty.call(e,r)&&void 0!==e[r]&&(t[r]=e[r])}},2620:function(e,t,r){r.d(t,{Bz:()=>o,nn:()=>a});let n=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 o(){var e;let t;return!!(t="undefined"!=typeof window?window?.navigator:null)&&!((e=t?.userAgent)&&n.test(e))&&!t?.webdriver&&"function"==typeof window.PublicKeyCredential}async function a(){try{return o()&&await window.PublicKeyCredential.isConditionalMediationAvailable()}catch{return!1}}}}]);