!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="22558ae9-2821-4c5a-938e-667425381623",e._sentryDebugIdIdentifier="sentry-dbid-22558ae9-2821-4c5a-938e-667425381623")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8094],{52476:function(e,t,n){Promise.resolve().then(n.bind(n,7025)),Promise.resolve().then(n.bind(n,29339)),Promise.resolve().then(n.bind(n,56176)),Promise.resolve().then(n.bind(n,87028)),Promise.resolve().then(n.bind(n,11061)),Promise.resolve().then(n.bind(n,25998))},29339:function(e,t,n){"use strict";n.r(t),n.d(t,{KeylessCookieSync:function(){return o}});var r=n(21295),i=n(91520);function o(e){return(0,r.useEffect)(()=>{i.a&&n.e(7821).then(n.bind(n,47821)).then(t=>t.syncKeylessConfigAction({...e,returnUrl:window.location.href}))},[]),e.children}},11061:function(e,t,n){"use strict";n.d(t,{PromisifiedAuthProvider:function(){return a},y:function(){return s}});var r=n(82251),i=n(51632),o=n(59298),u=n(21295);let c=u.createContext(null);function a(e){let{authPromise:t,children:n}=e;return u.createElement(c.Provider,{value:t},n)}function s(){let e=(0,o.useRouter)(),t=u.useContext(c),n=t;return(t&&"then"in t&&(n=u.use(t)),"undefined"!=typeof window)?(0,r.aC)(n):e?(0,r.aC)():(0,i.aw)(n)}},56176:function(e,t,n){"use strict";n.d(t,{AuthenticateWithRedirectCallback:function(){return r.vn},ClerkLoaded:function(){return r.a7},ClerkLoading:function(){return r.qI},RedirectToCreateOrganization:function(){return r.gM},RedirectToOrganizationProfile:function(){return r.yB},RedirectToSignIn:function(){return r.N1},RedirectToSignUp:function(){return r.C2},RedirectToUserProfile:function(){return r.sO}});var r=n(82251);n(51632)},87028:function(e,t,n){"use strict";n.d(t,{useAuth:function(){return i.y},useClerk:function(){return r.ll},useEmailLink:function(){return r.E2},useOrganization:function(){return r.o8},useOrganizationList:function(){return r.eW},useReverification:function(){return r.WZ},useSession:function(){return r.kP},useSessionList:function(){return r.xo},useSignIn:function(){return r.zq},useSignUp:function(){return r.QS},useUser:function(){return r.aF}});var r=n(82251);n(57667);var i=n(11061)},25998:function(e,t,n){"use strict";n.d(t,{CreateOrganization:function(){return r.Gp},GoogleOneTap:function(){return r.Kb},OrganizationList:function(){return r.Bg},OrganizationProfile:function(){return h},OrganizationSwitcher:function(){return r.Li},SignIn:function(){return g},SignInButton:function(){return r.$d},SignInWithMetamaskButton:function(){return r.qu},SignOutButton:function(){return r.AM},SignUp:function(){return p},SignUpButton:function(){return r.gX},UserButton:function(){return r.l8},UserProfile:function(){return d},Waitlist:function(){return r.yk}});var r=n(82251),i=n(21295),o=n(51632),u=n(32967),c=n(59298);let a=()=>({pagesRouter:(0,c.useRouter)()}),s=(e,t,n,o=!0)=>{let c=i.useRef(0),{pagesRouter:s}=a(),{session:l,isLoaded:f}=(0,r.kP)();(0,u.rx)()||i.useEffect(()=>{if(!f||n&&"path"!==n||o&&!l)return;let r=new AbortController,i=()=>{let n=s?`${t}/[[...index]].tsx`:`${t}/[[...rest]]/page.tsx`;throw Error(` Clerk: The <${e}/> component is not configured correctly. The most likely reasons for this error are: 1. The "${t}" route is not a catch-all route. It is recommended to convert this route to a catch-all route, eg: "${n}". Alternatively, you can update the <${e}/> component to use hash-based routing by setting the "routing" prop to "hash". 2. The <${e}/> component is mounted in a catch-all route, but all routes under "${t}" are protected by the middleware. To resolve this, ensure that the middleware does not protect the catch-all route or any of its children. If you are using the "createRouteMatcher" helper, consider adding "(.*)" to the end of the route pattern, eg: "${t}(.*)". For more information, see: https://clerk.com/docs/references/nextjs/clerk-middleware#create-route-matcher `)};return s?s.pathname.match(/\[\[\.\.\..+]]/)||i():(async()=>{let t;if(c.current++,!(c.current>1)){try{let n=`${window.location.origin}${window.location.pathname}/${e}_clerk_catchall_check_${Date.now()}`;t=await fetch(n,{signal:r.signal})}catch(e){}(null==t?void 0:t.status)===404&&i()}})(),()=>{c.current>1&&r.abort()}},[f])},l=()=>{let e=i.useRef(),{pagesRouter:t}=a();if(t)return e.current||(e.current=t.pathname.replace(/\/\[\[\.\.\..*/,"")),e.current;let r=n(9607).usePathname,o=n(9607).useParams,u=(r()||"").split("/").filter(Boolean),c=Object.values(o()||{}).filter(e=>Array.isArray(e)).flat(1/0);return e.current||(e.current=`/${u.slice(0,u.length-c.length).join("/")}`),e.current};function f(e,t,n=!0){let r=l(),i=(0,o.EJ)(e,t,{path:r});return s(e,r,i.routing,n),i}let d=Object.assign(e=>i.createElement(r.Iw,{...f("UserProfile",e)}),{...r.Iw}),h=Object.assign(e=>i.createElement(r.A,{...f("OrganizationProfile",e)}),{...r.A}),g=e=>i.createElement(r.cL,{...f("SignIn",e,!1)}),p=e=>i.createElement(r.Mo,{...f("SignUp",e,!1)})},63083:function(e,t,n){"use strict";var r=n(21295),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,u=r.useEffect,c=r.useLayoutEffect,a=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return c(function(){i.value=n,i.getSnapshot=t,s(i)&&l({inst:i})},[e,n,t]),u(function(){return s(i)&&l({inst:i}),e(function(){s(i)&&l({inst:i})})},[e]),a(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},40910:function(e,t,n){"use strict";e.exports=n(63083)}},function(e){e.O(0,[9918,7536,5749,3584,4591,1744],function(){return e(e.s=52476)}),_N_E=e.O()}]);