PageSourceSearch

https://alquraan.net/_next/static/chunks/73-62769e719abab2ff.js

js alquraan.net collected 2026-10-02 13:43:18 UTC 75,951 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73],{357:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(8081)},8081:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var a=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?a=n.concat(a):c=-1,a.length&&h())}function h(){if(!u){var e=l(d);u=!0;for(var t=a.length;t;){for(n=a,a=[];++c<t;)n&&n[c].run();c=-1,t=a.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];a.push(new p(e,t)),1!==a.length||u||l(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},s=!0;try{t[e](o,o.exports,n),s=!1}finally{s&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()},6246:function(e,t,r){"use strict";/**
2 * @license React
3 * use-sync-external-store-shim.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var n=r(2265),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,l=n.useLayoutEffect,a=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return l(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),a(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},554:function(e,t,r){"use strict";e.exports=r(6246)},6430:function(e,t,r){"use strict";r.d(t,{Vo:function(){return P},vn:function(){return ea},a7:function(){return et},qI:function(){return er},iz:function(){return O},gM:function(){return el},yB:function(){return es},N1:function(){return en},C2:function(){return ei},sO:function(){return eo},Gl:function(){return A},tL:function(){return N},oG:function(){return T},E7:function(){return x},RM:function(){return w},RE:function(){return W},tF:function(){return U},KQ:function(){return j},Gv:function(){return R},Rl:function(){return I},ej:function(){return L},JM:function(){return S},qq:function(){return E},aC:function(){return H},cL:function(){return b.cL},E2:function(){return Q},o8:function(){return b.o8},eW:function(){return b.eW},kP:function(){return b.kP},xo:function(){return b.xo},zq:function(){return X},QS:function(){return Z},aF:function(){return b.aF},Kr:function(){return D},B$:function(){return B},HZ:function(){return $},Lu:function(){return J},X:function(){return F},qH:function(){return V},Mp:function(){return z},ge:function(){return M},r0:function(){return ee}});var n,i,o,s,l=r(8351),a=(r(7837),{veryStrict:{afterMinutes:10,level:"multiFactor"},strict:{afterMinutes:10,level:"secondFactor"},moderate:{afterMinutes:60,level:"secondFactor"},lax:{afterMinutes:1440,level:"secondFactor"}}),u=new Set(["firstFactor","secondFactor","multiFactor"]),c=new Set(["veryStrict","strict","moderate","lax"]),d=e=>"number"==typeof e&&e>0,h=e=>u.has(e),p=e=>c.has(e),f=(e,t)=>{let{orgId:r,orgRole:n,orgPermissions:i}=t;return(e.role||e.permission)&&r&&n&&i?e.permission?i.includes(e.permission):e.role?n===e.role:null:null},g=e=>!!("string"==typeof e&&p(e)||"object"==typeof e&&h(e.level)&&d(e.afterMinutes))&&(e=>"string"==typeof e?a[e]:e).bind(null,e),m=(e,{__experimental_factorVerificationAge:t})=>{if(!e.__experimental_reverification||!t)return null;let r=g(e.__experimental_reverification);if(!r)return null;let{level:n,afterMinutes:i}=r(),[o,s]=t,l=-1!==o?i>o:null,a=-1!==s?i>s:null;switch(n){case"firstFactor":return l;case"secondFactor":return -1!==s?a:l;case"multiFactor":return -1===s?l:l&&a}},v=e=>t=>{if(!e.userId)return!1;let r=f(t,e),n=m(t,e);return[r,n].some(e=>null===e)?[r,n].some(e=>!0===e):[r,n].every(e=>!0===e)},k=r(2265),b=r(8578),y=r(6179);r(93),r(357),new WeakMap,new WeakMap,new WeakSet,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakSet;var w=(0,l.t5)({packageName:"@clerk/clerk-react"});function S(e){w.setMessages(e).setPackageName(e)}var[P,C]=(0,b.uH)("AuthContext"),O=b.b5,_=b.rI,j="You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.",U=e=>`You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`,E="Unsupported usage of isSatellite, domain or proxyUrl. The usage of isSatellite, domain or proxyUrl as function is not supported in non-browser environments.",M="<UserProfile.Page /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",z="<UserProfile.Link /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",L="<OrganizationProfile.Page /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",I="<OrganizationProfile.Link /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",x=e=>`<${e} /> can only accept <${e}.Page /> and <${e}.Link /> as its children. Any other provided component will be ignored.`,T=e=>`Missing props. <${e}.Page /> component requires the following props: url, label, labelIcon, alongside with children to be rendered inside the page.`,A=e=>`Missing props. <${e}.Link /> component requires the following props: url, label and labelIcon.`,R=e=>`The <${e}/> component uses path-based routing by default unless a different routing strategy is provided using the \`routing\` prop. When path-based routing is used, you need to provide the path where the component is mounted on by using the \`path\` prop. Example: <${e} path={'/my-path'} />`,W=e=>`The \`path\` prop will only be respected when the Clerk component uses path-based routing. To resolve this error, pass \`routing='path'\` to the <${e}/> component, or drop the \`path\` prop to switch to hash-based routing. For more details please refer to our docs: https://clerk.c
9om/docs`,D="<UserButton /> can only accept <UserButton.UserProfilePage />, <UserButton.UserProfileLink /> and <UserButton.MenuItems /> as its children. Any other provided component will be ignored.",N="<UserButton.MenuItems /> component can only accept <UserButton.Action /> and <UserButton.Link /> as its children. Any other provided component will be ignored.",F="<UserButton.MenuItems /> component needs to be a direct child of `<UserButton />`.",B="<UserButton.Action /> component needs to be a direct child of `<UserButton.MenuItems />`.",V="<UserButton.Link /> component needs to be a direct child of `<UserButton.MenuItems />`.",$="Missing props. <UserButton.Link /> component requires the following props: href, label and labelIcon.",J="Missing props. <UserButton.Action /> component requires the following props: label.",q=e=>{(0,b.Rm)(()=>{w.throwMissingClerkProviderError({source:e})})},G=e=>new Promise(t=>{e.loaded&&t(),e.addOnLoaded(t)}),K=e=>async t=>(await G(e),e.session)?e.session.getToken(t):null,Y=e=>async(...t)=>(await G(e),e.signOut(...t)),H=()=>{q("useAuth");let{sessionId:e,userId:t,actor:r,orgId:n,orgRole:i,orgSlug:o,orgPermissions:s,__experimental_factorVerificationAge:l}=C(),a=_(),u=(0,k.useCallback)(K(a),[a]),c=(0,k.useCallback)(Y(a),[a]),d=(0,k.useCallback)(e=>v({userId:t,orgId:n,orgRole:i,orgPermissions:s,__experimental_factorVerificationAge:l})(e),[t,l,n,i,s]);return void 0===e&&void 0===t?{isLoaded:!1,isSignedIn:void 0,sessionId:e,userId:t,actor:void 0,orgId:void 0,orgRole:void 0,orgSlug:void 0,has:void 0,signOut:c,getToken:u}:null===e&&null===t?{isLoaded:!0,isSignedIn:!1,sessionId:e,userId:t,actor:null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:c,getToken:u}:e&&t&&n&&i?{isLoaded:!0,isSignedIn:!0,sessionId:e,userId:t,actor:r||null,orgId:n,orgRole:i,orgSlug:o||null,has:d,signOut:c,getToken:u}:e&&t&&!n?{isLoaded:!0,isSignedIn:!0,sessionId:e,userId:t,actor:r||null,orgId:null,orgRole:null,orgSlug:null,has:d,signOut:c,getToken:u}:w.throw("Invalid state. Feel free to submit a bug or reach out to support here: https://clerk.com/support")};function Q(e){let{startEmailLinkFlow:t,cancelEmailLinkFlow:r}=k.useMemo(()=>e.createEmailLinkFlow(),[e]);return k.useEffect(()=>r,[]),{startEmailLinkFlow:t,cancelEmailLinkFlow:r}}var X=()=>{var e;q("useSignIn");let t=_(),r=(0,b.sX)();return(null==(e=t.telemetry)||e.record((0,y.J)("useSignIn")),r)?{isLoaded:!0,signIn:r.signIn,setActive:t.setActive}:{isLoaded:!1,signIn:void 0,setActive:void 0}},Z=()=>{var e;q("useSignUp");let t=_(),r=(0,b.sX)();return(null==(e=t.telemetry)||e.record((0,y.J)("useSignUp")),r)?{isLoaded:!0,signUp:r.signUp,setActive:t.setActive}:{isLoaded:!1,signUp:void 0,setActive:void 0}},ee=(e,t)=>{t=t||e.displayName||e.name||"Component",e.displayName=t;let r=r=>{q(t||"withClerk");let n=_();return n.loaded?k.createElement(e,{...r,clerk:n}):null};return r.displayName=`withClerk(${t})`,r},et=({children:e})=>(q("ClerkLoaded"),_().loaded)?k.createElement(k.Fragment,null,e):null,er=({children:e})=>(q("ClerkLoading"),_().loaded)?null:k.createElement(k.Fragment,null,e),en=ee(({clerk:e,...t})=>{let{client:r,session:n}=e,i=r.activeSessions&&r.activeSessions.length>0;return k.useEffect(()=>{null===n&&i?e.redirectToAfterSignOut():e.redirectToSignIn(t)},[]),null},"RedirectToSignIn"),ei=ee(({clerk:e,...t})=>(k.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp"),eo=ee(({clerk:e})=>(k.useEffect(()=>{e.redirectToUserProfile()},[]),null),"RedirectToUserProfile"),es=ee(({clerk:e})=>(k.useEffect(()=>{e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile"),el=ee(({clerk:e})=>(k.useEffect(()=>{e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization"),ea=ee(({clerk:e,...t})=>(k.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback")},3073:function(e,t,r){"use strict";r.d(t,{vn:function(){return c.vn},a7:function(){return c.a7},qI:function(){return c.qI},El:function(){return eS},Gp:function(){return es},Kb:function(){return ec},Bg:function(){return eu},A:function(){return eo},Li:function(){return ea},gM:function(){return c.gM},yB:function(){return c.yB},N1:function(){return c.N1},C2:function(){return c.C2},sO:function(){return c.sO},cL:function(){return G},$d:function(){return ed},qu:function(){return ef},AM:function(){return ep},Mo:function(){return K},gX:function(){return eh},l8:function(){return er},Iw:function(){return Q},aC:function(){return c.aC},ll:function(){return c.cL},E2:function(){return c.E2},o8:function(){return c.o8},eW:function(){return c.eW},kP:function(){return c.kP},xo:function(){return c.xo},zq:function(){return c.zq},QS:function(){return c.QS},aF:function(){return c.aF}});var n,i,o,s,l,a,u,c=r(6430),d=e=>{throw TypeError(e)},h=(e,t,r)=>t.has(e)||d("Cannot "+r),p=(e,t,r)=>(h(e,t,"read from private field"),r?r.call(e):t.get(e)),f=(e,t,r)=>t.has(e)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),g=(e,t,r,n)=>(h(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),m=(e,t,r)=>(h(e,t,"access private method"),r),v=r(7723),k=r(595),b=r(8578),y=r(2265),w=r(4887),S=r(8069);r(7837);var P=r(290);function C(e,t,r){return"function"==typeof e?e(t):void 0!==e?e:void 0!==r?r:void 0}"undefined"==typeof window||window.global||(window.global="undefined"==typeof global?window:global);var O=e=>t=>{try{return y.Children.only(e)}catch(e){return c.RM.throw((0,c.tF)(t))}},_=(e,t)=>
9(e||(e=t),"string"==typeof e&&(e=y.createElement("button",null,e)),e),j=e=>(...t)=>{if(e&&"function"==typeof e)return e(...t)},U=new Map,E=e=>{let t=Array(e.length).fill(null),[r,n]=(0,y.useState)(t);return e.map((e,t)=>({id:e.id,mount:e=>n(r=>r.map((r,n)=>n===t?e:r)),unmount:()=>n(e=>e.map((e,r)=>r===t?null:e)),portal:()=>y.createElement(y.Fragment,null,r[t]?(0,w.createPortal)(e.component,r[t]):null)}))},M=(e,t)=>!!e&&y.isValidElement(e)&&(null==e?void 0:e.type)===t,z=(e,t)=>x({children:e,reorderItemsLabels:["account","security"],LinkComponent:H,PageComponent:Y,MenuItemsComponent:Z,componentName:"UserProfile"},t),L=(e,t)=>x({children:e,reorderItemsLabels:["general","members"],LinkComponent:ei,PageComponent:en,componentName:"OrganizationProfile"},t),I=e=>{let t=[],r=[ei,en,Z,Y,H];return y.Children.forEach(e,e=>{r.some(t=>M(e,t))||t.push(e)}),t},x=(e,t)=>{let{children:r,LinkComponent:n,PageComponent:i,MenuItemsComponent:o,reorderItemsLabels:s,componentName:l}=e,{allowForAnyChildren:a=!1}=t||{},u=[];y.Children.forEach(r,e=>{if(!M(e,i)&&!M(e,n)&&!M(e,o)){e&&!a&&(0,k.yJ)((0,c.E7)(l));return}let{props:t}=e,{children:r,label:d,url:h,labelIcon:p}=t;if(M(e,i)){if(T(t,s))u.push({label:d});else if(A(t))u.push({label:d,labelIcon:p,children:r,url:h});else{(0,k.yJ)((0,c.oG)(l));return}}if(M(e,n)){if(R(t))u.push({label:d,labelIcon:p,url:h});else{(0,k.yJ)((0,c.Gl)(l));return}}});let d=[],h=[],p=[];u.forEach((e,t)=>{if(A(e)){d.push({component:e.children,id:t}),h.push({component:e.labelIcon,id:t});return}R(e)&&p.push({component:e.labelIcon,id:t})});let f=E(d),g=E(h),m=E(p),v=[],b=[];return u.forEach((e,t)=>{if(T(e,s)){v.push({label:e.label});return}if(A(e)){let{portal:r,mount:n,unmount:i}=f.find(e=>e.id===t),{portal:o,mount:s,unmount:l}=g.find(e=>e.id===t);v.push({label:e.label,url:e.url,mount:n,unmount:i,mountIcon:s,unmountIcon:l}),b.push(r),b.push(o);return}if(R(e)){let{portal:r,mount:n,unmount:i}=m.find(e=>e.id===t);v.push({label:e.label,url:e.url,mountIcon:n,unmountIcon:i}),b.push(r);return}}),{customPages:v,customPagesPortals:b}},T=(e,t)=>{let{children:r,label:n,url:i,labelIcon:o}=e;return!r&&!i&&!o&&t.some(e=>e===n)},A=e=>{let{children:t,label:r,url:n,labelIcon:i}=e;return!!t&&!!n&&!!i&&!!r},R=e=>{let{children:t,label:r,url:n,labelIcon:i}=e;return!t&&!!n&&!!i&&!!r},W=e=>D({children:e,reorderItemsLabels:["manageAccount","signOut"],MenuItemsComponent:Z,MenuActionComponent:ee,MenuLinkComponent:et,UserProfileLinkComponent:H,UserProfilePageComponent:Y}),D=({children:e,MenuItemsComponent:t,MenuActionComponent:r,MenuLinkComponent:n,UserProfileLinkComponent:i,UserProfilePageComponent:o,reorderItemsLabels:s})=>{let l=[],a=[],u=[];y.Children.forEach(e,e=>{if(!M(e,t)&&!M(e,i)&&!M(e,o)){e&&(0,k.yJ)(c.Kr);return}if(M(e,i)||M(e,o))return;let{props:a}=e;y.Children.forEach(a.children,e=>{if(!M(e,r)&&!M(e,n)){e&&(0,k.yJ)(c.tL);return}let{props:t}=e,{label:i,labelIcon:o,href:a,onClick:u,open:d}=t;if(M(e,r)){if(N(t,s))l.push({label:i});else if(F(t)){let e={label:i,labelIcon:o};if(void 0!==u)l.push({...e,onClick:u});else if(void 0!==d)l.push({...e,open:d.startsWith("/")?d:`/${d}`});else{(0,k.yJ)("Custom menu item must have either onClick or open property");return}}else{(0,k.yJ)(c.Lu);return}}if(M(e,n)){if(B(t))l.push({label:i,labelIcon:o,href:a});else{(0,k.yJ)(c.HZ);return}}})});let d=[],h=[];l.forEach((e,t)=>{F(e)&&d.push({component:e.labelIcon,id:t}),B(e)&&h.push({component:e.labelIcon,id:t})});let p=E(d),f=E(h);return l.forEach((e,t)=>{if(N(e,s)&&a.push({label:e.label}),F(e)){let{portal:r,mount:n,unmount:i}=p.find(e=>e.id===t),o={label:e.label,mountIcon:n,unmountIcon:i};"onClick"in e?o.onClick=e.onClick:"open"in e&&(o.open=e.open),a.push(o),u.push(r)}if(B(e)){let{portal:r,mount:n,unmount:i}=f.find(e=>e.id===t);a.push({label:e.label,href:e.href,mountIcon:n,unmountIcon:i}),u.push(r)}}),{customMenuItems:a,customMenuItemsPortals:u}},N=(e,t)=>{let{children:r,label:n,onClick:i,labelIcon:o}=e;return!r&&!i&&!o&&t.some(e=>e===n)},F=e=>{let{label:t,labelIcon:r,onClick:n,open:i}=e;return!!r&&!!t&&("function"==typeof n||"string"==typeof i)},B=e=>{let{label:t,href:r,labelIcon:n}=e;return!!r&&!!n&&!!t},V=e=>"mount"in e,$=e=>"open"in e,J=class extends y.PureComponent{constructor(){super(...arguments),this.portalRef=y.createRef()}componentDidUpdate(e){var t,r,n,i;if(!V(e)||!V(this.props))return;let o=(0,k.zu)(e.props,"customPages","customMenuItems","children"),s=(0,k.zu)(this.props.props,"customPages","customMenuItems","children"),l=(null==(t=o.customPages)?void 0:t.length)!==(null==(r=s.customPages)?void 0:r.length),a=(null==(n=o.customMenuItems)?void 0:n.length)!==(null==(i=s.customMenuItems)?void 0:i.length);(!(0,b.c1)(o,s)||l||a)&&this.portalRef.current&&this.props.updateProps({node:this.portalRef.current,props:this.props.props})}componentDidMount(){this.portalRef.current&&(V(this.props)&&this.props.mount(this.portalRef.current,this.props.props),$(this.props)&&this.props.open(this.props.props))}componentWillUnmount(){this.portalRef.current&&(V(this.props)&&this.props.unmount(this.portalRef.current),$(this.props)&&this.props.close())}render(){let{hideRootHtmlElement:e=!1}=this.props;return y.createElement(y.Fragment,null,!e&&y.createElement("div",{ref:this.portalRef}),this.props.children)}},q=e=>{var t,r;return y.createElement(y.Fragment,null,null==(t=null==e?void 0:e.customPagesPortals)?void 0:t.map((e,t)=>(0,y.createElement)(e,{key:t})),null==(r=null==e?void 0:e.customMenuItemsPortals)?void 0:r.map((e,t)=>(0,y.createElement)(e,{key:t}
9)))},G=(0,c.r0)(({clerk:e,...t})=>y.createElement(J,{mount:e.mountSignIn,unmount:e.unmountSignIn,updateProps:e.__unstable__updateProps,props:t}),"SignIn"),K=(0,c.r0)(({clerk:e,...t})=>y.createElement(J,{mount:e.mountSignUp,unmount:e.unmountSignUp,updateProps:e.__unstable__updateProps,props:t}),"SignUp");function Y({children:e}){return(0,k.yJ)(c.ge),y.createElement(y.Fragment,null,e)}function H({children:e}){return(0,k.yJ)(c.Mp),y.createElement(y.Fragment,null,e)}var Q=Object.assign((0,c.r0)(({clerk:e,...t})=>{let{customPages:r,customPagesPortals:n}=z(t.children);return y.createElement(J,{mount:e.mountUserProfile,unmount:e.unmountUserProfile,updateProps:e.__unstable__updateProps,props:{...t,customPages:r}},y.createElement(q,{customPagesPortals:n}))},"UserProfile"),{Page:Y,Link:H}),X=(0,y.createContext)({mount:()=>{},unmount:()=>{},updateProps:()=>{}});function Z({children:e}){return(0,k.yJ)(c.X),y.createElement(y.Fragment,null,e)}function ee({children:e}){return(0,k.yJ)(c.B$),y.createElement(y.Fragment,null,e)}function et({children:e}){return(0,k.yJ)(c.qH),y.createElement(y.Fragment,null,e)}var er=Object.assign((0,c.r0)(({clerk:e,...t})=>{let{customPages:r,customPagesPortals:n}=z(t.children,{allowForAnyChildren:!!t.__experimental_asProvider}),i=Object.assign(t.userProfileProps||{},{customPages:r}),{customMenuItems:o,customMenuItemsPortals:s}=W(t.children),l=I(t.children),a={mount:e.mountUserButton,unmount:e.unmountUserButton,updateProps:e.__unstable__updateProps,props:{...t,userProfileProps:i,customMenuItems:o}};return y.createElement(X.Provider,{value:a},y.createElement(J,{...a,hideRootHtmlElement:!!t.__experimental_asProvider},t.__experimental_asProvider?l:null,y.createElement(q,{customPagesPortals:n,customMenuItemsPortals:s})))},"UserButton"),{UserProfilePage:Y,UserProfileLink:H,MenuItems:Z,Action:ee,Link:et,__experimental_Outlet:function(e){let t=(0,y.useContext)(X),r={...t,props:{...t.props,...e}};return y.createElement(J,{...r})}});function en({children:e}){return(0,k.yJ)(c.ej),y.createElement(y.Fragment,null,e)}function ei({children:e}){return(0,k.yJ)(c.Rl),y.createElement(y.Fragment,null,e)}var eo=Object.assign((0,c.r0)(({clerk:e,...t})=>{let{customPages:r,customPagesPortals:n}=L(t.children);return y.createElement(J,{mount:e.mountOrganizationProfile,unmount:e.unmountOrganizationProfile,updateProps:e.__unstable__updateProps,props:{...t,customPages:r}},y.createElement(q,{customPagesPortals:n}))},"OrganizationProfile"),{Page:en,Link:ei}),es=(0,c.r0)(({clerk:e,...t})=>y.createElement(J,{mount:e.mountCreateOrganization,unmount:e.unmountCreateOrganization,updateProps:e.__unstable__updateProps,props:t}),"CreateOrganization"),el=(0,y.createContext)({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),ea=Object.assign((0,c.r0)(({clerk:e,...t})=>{let{customPages:r,customPagesPortals:n}=L(t.children,{allowForAnyChildren:!!t.__experimental_asProvider}),i=Object.assign(t.organizationProfileProps||{},{customPages:r}),o=I(t.children),s={mount:e.mountOrganizationSwitcher,unmount:e.unmountOrganizationSwitcher,updateProps:e.__unstable__updateProps,props:{...t,organizationProfileProps:i}};return e.__experimental_prefetchOrganizationSwitcher(),y.createElement(el.Provider,{value:s},y.createElement(J,{...s,hideRootHtmlElement:!!t.__experimental_asProvider},t.__experimental_asProvider?o:null,y.createElement(q,{customPagesPortals:n})))},"OrganizationSwitcher"),{OrganizationProfilePage:en,OrganizationProfileLink:ei,__experimental_Outlet:function(e){let t=(0,y.useContext)(el),r={...t,props:{...t.props,...e}};return y.createElement(J,{...r})}}),eu=(0,c.r0)(({clerk:e,...t})=>y.createElement(J,{mount:e.mountOrganizationList,unmount:e.unmountOrganizationList,updateProps:e.__unstable__updateProps,props:t}),"OrganizationList"),ec=(0,c.r0)(({clerk:e,...t})=>y.createElement(J,{open:e.openGoogleOneTap,close:e.closeGoogleOneTap,props:t}),"GoogleOneTap"),ed=(0,c.r0)(({clerk:e,children:t,...r})=>{let{signUpFallbackRedirectUrl:n,forceRedirectUrl:i,fallbackRedirectUrl:o,signUpForceRedirectUrl:s,mode:l,...a}=r,u=O(t=_(t,"Sign in"))("SignInButton"),c=()=>{let t={forceRedirectUrl:i,fallbackRedirectUrl:o,signUpFallbackRedirectUrl:n,signUpForceRedirectUrl:s};return"modal"===l?e.openSignIn(t):e.redirectToSignIn({...t,signInFallbackRedirectUrl:o,signInForceRedirectUrl:i})},d=async e=>(u&&"object"==typeof u&&"props"in u&&await j(u.props.onClick)(e),c()),h={...a,onClick:d};return y.cloneElement(u,h)},"SignInButton"),eh=(0,c.r0)(({clerk:e,children:t,...r})=>{let{fallbackRedirectUrl:n,forceRedirectUrl:i,signInFallbackRedirectUrl:o,signInForceRedirectUrl:s,mode:l,unsafeMetadata:a,...u}=r,c=O(t=_(t,"Sign up"))("SignUpButton"),d=()=>{let t={fallbackRedirectUrl:n,forceRedirectUrl:i,signInFallbackRedirectUrl:o,signInForceRedirectUrl:s,unsafeMetadata:a};return"modal"===l?e.openSignUp(t):e.redirectToSignUp({...t,signUpFallbackRedirectUrl:n,signUpForceRedirectUrl:i})},h=async e=>(c&&"object"==typeof c&&"props"in c&&await j(c.props.onClick)(e),d()),p={...u,onClick:h};return y.cloneElement(c,p)},"SignUpButton"),ep=(0,c.r0)(({clerk:e,children:t,...r})=>{let{redirectUrl:n="/",signOutOptions:i,...o}=r,s=O(t=_(t,"Sign out"))("SignOutButton"),l=()=>e.signOut({redirectUrl:n}),a=async e=>(await j(s.props.onClick)(e),l()),u={...o,onClick:a};return y.cloneElement(s,u)},"SignOutButton"),ef=(0,c.r0)(({clerk:e,children:t,...r})=>{let{redirectUrl:n,...i}=r,o=O(t=_(t,"Sign in with Metamask"))("SignInWithMetamaskButton"),s=async()=>{!async function(){await e.authenticateWithMetamask({redirectUrl:n||void 0})}()},l=async e=>(await j(o.props.onClick)(e),s()),a={...i,onClick:l};return y.cloneElement(o,a)},"SignInWithMetamask"),eg={name:"@clerk/clerk-react",version:"5.12.0",environment:"production"},em=class e{constructor(e){f(this,a),this.clerkjs=null,this.preopenOneTap=null,this.preopenUserVerification=null,this.preopenSignIn=null,this.preopenSignUp=null,this.preopenUserProfile=null,this.preopenOrganizationProfile=null,this.preopenCreateOrganization=null,this.premountSign
9InNodes=new Map,this.premountSignUpNodes=new Map,this.premountUserProfileNodes=new Map,this.premountUserButtonNodes=new Map,this.premountOrganizationProfileNodes=new Map,this.premountCreateOrganizationNodes=new Map,this.premountOrganizationSwitcherNodes=new Map,this.premountOrganizationListNodes=new Map,this.premountMethodCalls=new Map,this.premountAddListenerCalls=new Map,this.loadedListeners=[],f(this,n,!1),f(this,i),f(this,o),f(this,s),this.buildSignInUrl=e=>{let t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildSignInUrl(e))||""};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("buildSignInUrl",t)},this.buildSignUpUrl=e=>{let t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildSignUpUrl(e))||""};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("buildSignUpUrl",t)},this.buildAfterSignInUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildAfterSignInUrl())||""};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("buildAfterSignInUrl",e)},this.buildAfterSignUpUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildAfterSignUpUrl())||""};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("buildAfterSignUpUrl",e)},this.buildAfterSignOutUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildAfterSignOutUrl())||""};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("buildAfterSignOutUrl",e)},this.buildAfterMultiSessionSingleSignOutUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildAfterMultiSessionSingleSignOutUrl())||""};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("buildAfterMultiSessionSingleSignOutUrl",e)},this.buildUserProfileUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildUserProfileUrl())||""};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("buildUserProfileUrl",e)},this.buildCreateOrganizationUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildCreateOrganizationUrl())||""};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("buildCreateOrganizationUrl",e)},this.buildOrganizationProfileUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildOrganizationProfileUrl())||""};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("buildOrganizationProfileUrl",e)},this.buildUrlWithAuth=e=>{let t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildUrlWithAuth(e))||""};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("buildUrlWithAuth",t)},this.handleUnauthenticated=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.handleUnauthenticated()};this.clerkjs&&p(this,n)?e():this.premountMethodCalls.set("handleUnauthenticated",e)},this.addOnLoaded=e=>{this.loadedListeners.push(e),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>{this.loadedListeners.forEach(e=>e()),this.loadedListeners=[]},this.hydrateClerkJS=e=>{if(!e)throw Error("Failed to hydrate latest Clerk JS");return this.clerkjs=e,this.premountMethodCalls.forEach(e=>e()),this.premountAddListenerCalls.forEach((t,r)=>{t.nativeUnsubscribe=e.addListener(r)}),null!==this.preopenSignIn&&e.openSignIn(this.preopenSignIn),null!==this.preopenSignUp&&e.openSignUp(this.preopenSignUp),null!==this.preopenUserProfile&&e.openUserProfile(this.preopenUserProfile),null!==this.preopenUserVerification&&e.__experimental_openUserVerification(this.preopenUserVerification),null!==this.preopenOneTap&&e.openGoogleOneTap(this.preopenOneTap),null!==this.preopenOrganizationProfile&&e.openOrganizationProfile(this.preopenOrganizationProfile),null!==this.preopenCreateOrganization&&e.openCreateOrganization(this.preopenCreateOrganization),this.premountSignInNodes.forEach((t,r)=>{e.mountSignIn(r,t)}),this.premountSignUpNodes.forEach((t,r)=>{e.mountSignUp(r,t)}),this.premountUserProfileNodes.forEach((t,r)=>{e.mountUserProfile(r,t)}),this.premountUserButtonNodes.forEach((t,r)=>{e.mountUserButton(r,t)}),this.premountOrganizationListNodes.forEach((t,r)=>{e.mountOrganizationList(r,t)}),g(this,n,!0),this.emitLoaded(),this.clerkjs},this.__unstable__updateProps=async e=>{let t=await m(this,a,u).call(this);if(t&&"__unstable__updateProps"in t)return t.__unstable__updateProps(e)},this.setActive=({session:e,organization:t,beforeEmit:r})=>this.clerkjs?this.clerkjs.setActive({session:e,organization:t,beforeEmit:r}):Promise.reject(),this.openSignIn=e=>{this.clerkjs&&p(this,n)?this.clerkjs.openSignIn(e):this.preopenSignIn=e},this.closeSignIn=()=>{this.clerkjs&&p(this,n)?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.__experimental_openUserVerification=e=>{this.clerkjs&&p(this,n)?this.clerkjs.__experimental_openUserVerification(e):this.preopenUserVerification=e},this.__experimental_closeUserVerification=()=>{this.clerkjs&&p(this,n)?this.clerkjs.__experimental_closeUserVerification():this.preopenUserVerification=null},this.openGoogleOneTap=e=>{this.clerkjs&&p(this,n)?this.clerkjs.openGoogleOneTap(e):this.preopenOneTap=e},this.closeGoogleOneTap=()=>{this.clerkjs&&p(this,n)?this.clerkjs.closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=e=>{this.clerkjs&&p(this,n)?this.clerkjs.openUserProfile(e):this.preopenUserProfile=e},this.closeUserProfile=()=>{this.clerkjs&&p(this,n)?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=e=>{this.clerkjs&&p(this,n)?this.clerkjs.openOrganizationProfile(e):this.preopenOrganizationProfile=e},this.closeOrganizationProfile=()=>{this.clerkjs&&p(this,n)?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openCreateOrganization=e=>{this.clerkjs&&p(this,n)?this.clerkjs.openCreateOrganization(e):this.preopenCreateOrganization=e},this.closeCreateOrganization=()=>{this.clerkjs&&p(this,n)?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openSignUp=e=>{this.clerkjs&&p(this,n)?this.clerkjs.openSignUp(e):this.preopenSignUp=e},this.closeSignUp=()=>{this.clerkjs&&p(this,n)?this.clerkjs.closeSignUp():this.preopenSignUp=null}
9,this.mountSignIn=(e,t)=>{this.clerkjs&&p(this,n)?this.clerkjs.mountSignIn(e,t):this.premountSignInNodes.set(e,t)},this.unmountSignIn=e=>{this.clerkjs&&p(this,n)?this.clerkjs.unmountSignIn(e):this.premountSignInNodes.delete(e)},this.mountSignUp=(e,t)=>{this.clerkjs&&p(this,n)?this.clerkjs.mountSignUp(e,t):this.premountSignUpNodes.set(e,t)},this.unmountSignUp=e=>{this.clerkjs&&p(this,n)?this.clerkjs.unmountSignUp(e):this.premountSignUpNodes.delete(e)},this.mountUserProfile=(e,t)=>{this.clerkjs&&p(this,n)?this.clerkjs.mountUserProfile(e,t):this.premountUserProfileNodes.set(e,t)},this.unmountUserProfile=e=>{this.clerkjs&&p(this,n)?this.clerkjs.unmountUserProfile(e):this.premountUserProfileNodes.delete(e)},this.mountOrganizationProfile=(e,t)=>{this.clerkjs&&p(this,n)?this.clerkjs.mountOrganizationProfile(e,t):this.premountOrganizationProfileNodes.set(e,t)},this.unmountOrganizationProfile=e=>{this.clerkjs&&p(this,n)?this.clerkjs.unmountOrganizationProfile(e):this.premountOrganizationProfileNodes.delete(e)},this.mountCreateOrganization=(e,t)=>{this.clerkjs&&p(this,n)?this.clerkjs.mountCreateOrganization(e,t):this.premountCreateOrganizationNodes.set(e,t)},this.unmountCreateOrganization=e=>{this.clerkjs&&p(this,n)?this.clerkjs.unmountCreateOrganization(e):this.premountCreateOrganizationNodes.delete(e)},this.mountOrganizationSwitcher=(e,t)=>{this.clerkjs&&p(this,n)?this.clerkjs.mountOrganizationSwitcher(e,t):this.premountOrganizationSwitcherNodes.set(e,t)},this.unmountOrganizationSwitcher=e=>{this.clerkjs&&p(this,n)?this.clerkjs.unmountOrganizationSwitcher(e):this.premountOrganizationSwitcherNodes.delete(e)},this.__experimental_prefetchOrganizationSwitcher=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.__experimental_prefetchOrganizationSwitcher()};this.clerkjs&&p(this,n)?e():this.premountMethodCalls.set("__experimental_prefetchOrganizationSwitcher",e)},this.mountOrganizationList=(e,t)=>{this.clerkjs&&p(this,n)?this.clerkjs.mountOrganizationList(e,t):this.premountOrganizationListNodes.set(e,t)},this.unmountOrganizationList=e=>{this.clerkjs&&p(this,n)?this.clerkjs.unmountOrganizationList(e):this.premountOrganizationListNodes.delete(e)},this.mountUserButton=(e,t)=>{this.clerkjs&&p(this,n)?this.clerkjs.mountUserButton(e,t):this.premountUserButtonNodes.set(e,t)},this.unmountUserButton=e=>{this.clerkjs&&p(this,n)?this.clerkjs.unmountUserButton(e):this.premountUserButtonNodes.delete(e)},this.addListener=e=>{if(this.clerkjs)return this.clerkjs.addListener(e);{let t=()=>{var t;let r=this.premountAddListenerCalls.get(e);r&&(null==(t=r.nativeUnsubscribe)||t.call(r),this.premountAddListenerCalls.delete(e))};return this.premountAddListenerCalls.set(e,{unsubscribe:t,nativeUnsubscribe:void 0}),t}},this.navigate=e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.navigate(e)};this.clerkjs&&p(this,n)?t():this.premountMethodCalls.set("navigate",t)},this.redirectWithAuth=async(...e)=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectWithAuth(...e)};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("redirectWithAuth",t)},this.redirectToSignIn=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectToSignIn(e)};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("redirectToSignIn",t)},this.redirectToSignUp=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectToSignUp(e)};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("redirectToSignUp",t)},this.redirectToUserProfile=async()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToUserProfile()};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("redirectToUserProfile",e)},this.redirectToAfterSignUp=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToAfterSignUp()};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("redirectToAfterSignUp",e)},this.redirectToAfterSignIn=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToAfterSignIn()};this.clerkjs&&p(this,n)?e():this.premountMethodCalls.set("redirectToAfterSignIn",e)},this.redirectToAfterSignOut=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToAfterSignOut()};this.clerkjs&&p(this,n)?e():this.premountMethodCalls.set("redirectToAfterSignOut",e)},this.redirectToOrganizationProfile=async()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToOrganizationProfile()};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("redirectToOrganizationProfile",e)},this.redirectToCreateOrganization=async()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToCreateOrganization()};if(this.clerkjs&&p(this,n))return e();this.premountMethodCalls.set("redirectToCreateOrganization",e)},this.handleRedirectCallback=e=>{var t;let r=()=>{var t;return null==(t=this.clerkjs)?void 0:t.handleRedirectCallback(e)};this.clerkjs&&p(this,n)?null==(t=r())||t.catch(()=>{}):this.premountMethodCalls.set("handleRedirectCallback",r)},this.handleGoogleOneTapCallback=(e,t)=>{var r;let i=()=>{var r;return null==(r=this.clerkjs)?void 0:r.handleGoogleOneTapCallback(e,t)};this.clerkjs&&p(this,n)?null==(r=i())||r.catch(()=>{}):this.premountMethodCalls.set("handleGoogleOneTapCallback",i)},this.handleEmailLinkVerification=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.handleEmailLinkVerification(e)};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("handleEmailLinkVerification",t)},this.authenticateWithMetamask=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.authenticateWithMetamask(e)};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("authenticateWithMetamask",t)},this.authenticateWithCoinbaseWallet=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.authenticateWithCoinbaseWallet(e)};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("authenticateWithCoinbaseWallet",t)},this.authenticateWithWeb3=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.authenticateWithWeb3(e)};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("authenticateWithWeb3",t)},this.authenticateWithGoogleOneTap=async e=>(await m(this,a,u).call(this)).authenticateWithGoogleOneTap(e),this.createOrganization=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.createOrganization(e)};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("createOrganization",t)},this.getOrganization=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.getOrganization(e)};if(this.clerkjs&&p(this,n))return t();this.premountMethodCalls.set("getOrganization",t)},this.signOut=async(e,t)=>{let r=()=>{var r;return null==(r=this.clerkjs)?void 0:r.signOut(e,t)};if(this.clerkjs&&p(this,n))return r();this.premountMethodCalls.set("signOut",r)};let{Clerk:t=null,publishableKey:r}=e||{};g(this,s,r),g(this,o,null==e?void 0:e.proxyUrl),g(this,i,null==e?void 0:e.domain),this.options=e,this.Clerk=t,this.mode=(0,P._f)()?"browser":"server",this.options.sdkMetadata||(this.options.sdkMetadata=eg),this.loadClerkJS()}get publishableKey(){return p(this,s)}get loaded(){return p(this,n)}static getOrCreateInstance(t){return(0,P._f)()&&p(this,l)&&(!t.Clerk||p(this,l).Clerk===t.Clerk)||g(this,l,new e(t)),p(this,l)}static clearInstance(){g(this,l,null)}get domain(){return"undefined"!=typeof window&&window.location?C(p(this,i),new URL(window.location.href),""):"function"==typeof p(this,i)?c.RM.throw(c.qq):p(this,i)||""}get proxyUrl(){return"undefined"!=typeof window&&window.location?C(p(this,o),new URL(window.location.href),""):"function"==typeof p(this,o)?c.RM.throw(c.qq):p(this,o)||""}get sdkMetadata(){var e;return(null==(e=this.clerkjs)?void 0:e.sdkMetadata)||this.options.sdkMetadata||void 0}get instanceType(){var e;return null==(e=this.clerkjs)?void 0:e.instanceType}get frontendApi(){var e;return(null==(e=this.clerkjs)?void 0:e.frontendApi)||""}get isStandardBrowser(){var e;return(null==(e=this.clerkjs)?void 0:e.isStandardBrowser)||this.options.standardBrowser||!1}get isSatellite(){return"undefined"!=typeof window&&window.location?C(this.options.isSatellite,new URL(window.location.href),!1):"function"==typeof this.options.isSatellite&&c.RM.throw(c.qq)}async loadClerkJS(){var e,t;if(!("browser"!==this.mode||p(this,n))){"undefined"!=typeof window&&(window.__clerk_publishable_key=p(this,s),window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{if(this.Clerk){let e;(t=this.Clerk,"function"==typeof t)?(e=new this.Clerk(p(this,s),{proxyUrl:this.proxyUrl,domain:this.domain}),await e.load(this.options)):(e=this.Clerk).loaded||await e.load(this.options),global.Clerk=e}else{if(global.Clerk||await (0,v.YJ)({...this.options,publishableKey:p(this,s),proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),!global.Clerk)throw Error("Failed to download latest ClerkJS. Contact [email protected].");await global.Clerk.load(this.options)}if(null==(e=global.Clerk)?void 0:e.loaded)return this.hydrateClerkJS(global.Clerk);return}catch(e){console.error(e.stack||e.message||e);return}}}get version(){var e;return null==(e=this.clerkjs)?void 0:e.version}get client(){return this.clerkjs?this.clerkjs.client:void 0}get session(){return this.clerkjs?this.clerkjs.session:void 0}get user(){return this.clerkjs?this.clerkjs.user:void 0}get organization(){return this.clerkjs?this.clerkjs.organization:void 0}get telemetry(){return this.clerkjs?this.clerkjs.telemetry:void 0}get __unstable__environment(){return this.clerkjs?this.clerkjs.__unstable__environment:void 0}__unstable__setEnvironment(...e){this.clerkjs&&"__unstable__setEnvironment"in this.clerkjs&&this.clerkjs.__unstable__setEnvironment(e)}};n=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,a=new WeakSet,u=function(){return new Promise(e=>{this.addOnLoaded(()=>e(this.clerkjs))})},f(em,l);var ev=(e,t,r)=>!e&&r?ek(r):eb(t),ek=e=>{let t=e.userId,r=e.user,n=e.sessionId,i=e.session,o=e.organization,s=e.orgId,l=e.orgRole,a=e.orgPermissions;return{userId:t,user:r,sessionId:n,session:i,organization:o,orgId:s,orgRole:l,orgPermissions:a,orgSlug:e.orgSlug,actor:e.actor,__experimental_factorVerificationAge:e.__experimental_factorVerificationAge}},eb=e=>{var t;let r=e.user?e.user.id:e.user,n=e.user,i=e.session?e.session.id:e.session,o=e.session,s=e.session?e.session.__experimental_factorVerificationAge:null,l=null==o?void 0:o.actor,a=e.organization,u=e.organization?e.organization.id:e.organization,c=null==a?void 0:a.slug,d=a?null==(t=null==n?void 0:n.organizationMemberships)?void 0:t.find(e=>e.organization.id===u):a,h=d?d.permissions:d;return{userId:r,user:n,sessionId:i,session:o,organization:a,orgId:u,orgRole:d?d.role:d,orgSlug:c,orgPermissions:h,actor:l,__experimental_factorVerificationAge:s}};function ey(e){let{isomorphicClerkOptions:t,initialState:r,children:n}=e,{isomorphicClerk:i,loaded:o}=ew(t),[s,l]=y.useState({client:i.client,session:i.session,user:i.user,organization:i.organization});y.useEffect(()=>i.addListener(e=>l({...e})),[]);let a=ev(o,s,r),u=y.useMemo(()=>({value:i}),[o]),d=y.useMemo(()=>({value:s.client}),[s.client]),{sessionId:h,session:p,userId:f,user:g,orgId:m,actor:v,organization:k,orgRole:w,orgSlug:S,orgPermissions:P,__experimental_factorVerificationAge:C}
9=a,O=y.useMemo(()=>({value:{sessionId:h,userId:f,actor:v,orgId:m,orgRole:w,orgSlug:S,orgPermissions:P,__experimental_factorVerificationAge:C}}),[h,f,v,m,w,S,C]),_=y.useMemo(()=>({value:p}),[h,p]),j=y.useMemo(()=>({value:g}),[f,g]),U=y.useMemo(()=>({value:{organization:k}}),[m,k]);return y.createElement(c.iz.Provider,{value:u},y.createElement(b.RY.Provider,{value:d},y.createElement(b.B3.Provider,{value:_},y.createElement(b.f0,{...U.value},y.createElement(c.Vo.Provider,{value:O},y.createElement(b.St.Provider,{value:j},n))))))}var ew=e=>{let[t,r]=y.useState(!1),n=y.useMemo(()=>em.getOrCreateInstance(e),[]);return y.useEffect(()=>{n.__unstable__updateProps({appearance:e.appearance})},[e.appearance]),y.useEffect(()=>{n.__unstable__updateProps({options:e})},[e.localization]),y.useEffect(()=>{n.addOnLoaded(()=>r(!0))},[]),y.useEffect(()=>()=>{em.clearInstance()},[]),{isomorphicClerk:n,loaded:t}},eS=function(e,t,r){let n=e.displayName||e.name||t||"Component",i=n=>(!function(e,t,r=1){y.useEffect(()=>{let n=U.get(e)||0;return n==r?c.RM.throw(t):(U.set(e,n+1),()=>{U.set(e,(U.get(e)||1)-1)})},[])}(t,r),y.createElement(e,{...n}));return i.displayName=`withMaxAllowedInstancesGuard(${n})`,i}(function(e){let{initialState:t,children:r,...n}=e,{publishableKey:i="",Clerk:o}=n;return o||(i?i&&!(0,S.x9)(i)&&c.RM.throwInvalidPublishableKeyError({key:i}):c.RM.throwMissingPublishableKeyError()),y.createElement(ey,{initialState:t,isomorphicClerkOptions:n},r)},"ClerkProvider",c.KQ);eS.displayName="ClerkProvider",(0,c.JM)({packageName:"@clerk/clerk-react"}),(0,v.Aw)("@clerk/clerk-react")},7837:function(e,t,r){"use strict";r.d(t,{U9:function(){return f},ac:function(){return h},qx:function(){return p},r2:function(){return a},yA:function(){return c}});var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l=e=>{throw TypeError(e)},a=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},u=(e,t,r,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))s.call(e,a)||a===r||n(e,a,{get:()=>t[a],enumerable:!(l=i(t,a))||l.enumerable});return e},c=(e,t,r)=>(u(e,t,"default"),r&&u(r,t,"default")),d=(e,t,r)=>t.has(e)||l("Cannot "+r),h=(e,t,r)=>(d(e,t,"read from private field"),r?r.call(e):t.get(e)),p=(e,t,r,n)=>(d(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),f=(e,t,r)=>(d(e,t,"access private method"),r)},5133:function(e,t,r){"use strict";r.d(t,{ve:function(){return u},yJ:function(){return i}});var n=r(143),i=e=>{(0,n.vf)()&&console.error(`Clerk: ${e}`)},o={firstDelay:125,maxDelay:0,timeMultiple:2,shouldRetry:()=>!0},s=async e=>new Promise(t=>setTimeout(t,e)),l=e=>{let t=0,r=()=>{let r=e.firstDelay*Math.pow(e.timeMultiple,t);return Math.min(e.maxDelay||r,r)};return async()=>{await s(r()),t++}},a=async(e,t={})=>{let r=0,{shouldRetry:n,firstDelay:i,maxDelay:s,timeMultiple:a}={...o,...t},u=l({firstDelay:i,maxDelay:s,timeMultiple:a});for(;;)try{return await e()}catch(e){if(!n(e,++r))throw e;await u()}};async function u(e="",t){let{async:r,defer:n,beforeLoad:i,crossOrigin:o,nonce:s}=t||{};return a(()=>new Promise((t,l)=>{e||l("loadScript cannot be called without a src"),document&&document.body||l("loadScript cannot be called when document does not exist");let a=document.createElement("script");o&&a.setAttribute("crossorigin",o),a.async=r||!1,a.defer=n||!1,a.addEventListener("load",()=>{a.remove(),t(a)}),a.addEventListener("error",()=>{a.remove(),l()}),a.src=e,a.nonce=s,null==i||i(a),document.body.appendChild(a)}),{shouldRetry:(e,t)=>t<5})}},6470:function(e,t,r){"use strict";r.d(t,{Fo:function(){return l},Iq:function(){return a},Xv:function(){return u},cM:function(){return s},iF:function(){return o},mv:function(){return n},vO:function(){return i}});var n=[".lcl.dev",".lclstage.dev",".lclclerk.com"],i=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],o=[".lcl.dev","lclstage.dev",".lclclerk.com",".accounts.lclclerk.com"],s=[".accountsstage.dev"],l="https://api.lclclerk.com",a="https://api.clerkstage.dev",u="https://api.clerk.com"},8069:function(e,t,r){"use strict";r.d(t,{MY:function(){return a},x9:function(){return l},nQ:function(){return s}});var n=e=>"undefined"!=typeof atob&&"function"==typeof atob?atob(e):"undefined"!=typeof global&&global.Buffer?new global.Buffer(e,"base64").toString():e,i=r(6470),o="pk_live_";function s(e,t={}){if(!(e=e||"")||!l(e)){if(t.fatal)throw Error("Publishable key not val
9id.");return null}let r=e.startsWith(o)?"production":"development",i=n(e.split("_")[2]);return i=i.slice(0,-1),t.proxyUrl?i=t.proxyUrl:"development"!==r&&t.domain&&(i=`clerk.${t.domain}`),{instanceType:r,frontendApi:i}}function l(e){let t=(e=e||"").startsWith(o)||e.startsWith("pk_test_"),r=n(e.split("_")[2]||"").endsWith("$");return t&&r}function a(){let e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;let r="string"==typeof t?t:t.hostname,n=e.get(r);return void 0===n&&(n=i.vO.some(e=>r.endsWith(e)),e.set(r,n)),n}}}},290:function(e,t,r){"use strict";function n(){return"undefined"!=typeof window}r.d(t,{_f:function(){return 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")},8100:function(e,t,r){"use strict";r.d(t,{iv:function(){return m},wE:function(){return g},YJ:function(){return f},Aw:function(){return p}});var n=(e,t="5.27.0")=>{if(e)return e;let r=i(t);return r?"snapshot"===r?"5.27.0":r:o(t)},i=e=>{var t;return null==(t=e.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/))?void 0:t[1]},o=e=>e.trim().replace(/^v/,"").split(".")[0];function s(e){return e.startsWith("/")}var l=r(5133),a=r(4296),u=r(8069),c="Clerk: Failed to load Clerk",{isDevOrStagingUrl:d}=(0,u.MY)(),h=(0,a.t5)({packageName:"@clerk/shared"});function p(e){h.setPackageName({packageName:e})}var f=async e=>{let t=document.querySelector("script[data-clerk-js-script]");if(t)return new Promise((e,r)=>{t.addEventListener("load",()=>{e(t)}),t.addEventListener("error",()=>{r(c)})});if(!(null==e?void 0:e.publishableKey)){h.throwMissingPublishableKeyError();return}return(0,l.ve)(g(e),{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:v(e)}).catch(()=>{throw Error(c)})},g=e=>{var t,r;let{clerkJSUrl:i,clerkJSVariant:o,clerkJSVersion:l,proxyUrl:a,domain:c,publishableKey:h}=e;if(i)return i;let p="";p=a&&(!a||/^http(s)?:\/\//.test(a||"")||s(a))?(a?s(a)?new URL(a,window.location.origin).toString():a:"").replace(/http(s)?:\/\//,""):c&&!d((null==(t=(0,u.nQ)(h))?void 0:t.frontendApi)||"")?function(e){let t;if(!e)return"";if(e.match(/^(clerk\.)+\w*$/))t=/(clerk\.)*(?=clerk\.)/;else{if(e.match(/\.clerk.accounts/))return e;t=/^(clerk\.)*/gi}let r=e.replace(t,"");return`clerk.${r}`}(c):(null==(r=(0,u.nQ)(h))?void 0:r.frontendApi)||"";let f=o?`${o.replace(/\.+$/,"")}.`:"",g=n(l);return`https://${p}/npm/@clerk/clerk-js@${g}/dist/clerk.${f}browser.js`},m=e=>{let t={};return e.publishableKey&&(t["data-clerk-publishable-key"]=e.publishableKey),e.proxyUrl&&(t["data-clerk-proxy-url"]=e.proxyUrl),e.domain&&(t["data-clerk-domain"]=e.domain),e.nonce&&(t.nonce=e.nonce),t},v=e=>t=>{let r=m(e);for(let e in r)t.setAttribute(e,r[e])}},93:function(e,t,r){"use strict";r.d(t,{fQ:function(){return i}});var n=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 i=e(r.toString());i!==r&&(n[i]=n[r],delete n[r]),"object"==typeof n[i]&&(n[i]=t(n[i]))}return n};return t};function i(e){if("boolean"==typeof e)return e;if(null==e)return!1;if("string"==typeof e){if("true"===e.toLowerCase())return!0;if("false"===e.toLowerCase())return!1}let t=parseInt(e,10);return!isNaN(t)&&t>0}n(function(e){return e?e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`):""}),n(function(e){return e?e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace(/-|_/,"")):""})},143:function(e,t,r){"use strict";r.d(t,{rx:function(){return i},vf:function(){return n}});var n=()=>!1,i=()=>{try{return!0}catch(e){}return!1}},4296:function(e,t,r){"use strict";r.d(t,{t5:function(){return i}});var n=Object.freeze({InvalidProxyUrlErrorMessage:"The proxyUrl passed to Clerk is invali
9d. 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 i({packageName:e,customMessages:t}){let r=e,i={...n,...t};function o(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}`}return{setPackageName({packageName:e}){return"string"==typeof e&&(r=e),this},setMessages({customMessages:e}){return Object.assign(i,e||{}),this},throwInvalidPublishableKeyError(e){throw Error(o(i.InvalidPublishableKeyErrorMessage,e))},throwInvalidProxyUrl(e){throw Error(o(i.InvalidProxyUrlErrorMessage,e))},throwMissingPublishableKeyError(){throw Error(o(i.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw Error(o(i.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(e){throw Error(o(i.MissingClerkProvider,e))},throw(e){throw Error(o(e))}}}},6179:function(e,t,r){"use strict";function n(e,t){return{event:"METHOD_CALLED",payload:{method:e,...t}}}r.d(t,{J:function(){return n}})},8351:function(e,t,r){"use strict";r.d(t,{t5:function(){return n.t5}});var n=r(4296);r(7837)},595:function(e,t,r){"use strict";r.d(t,{rx:function(){return o.rx},yJ:function(){return i.yJ},zu:function(){return n}});var n=(e,...t)=>{let r={...e};for(let e of t)delete r[e];return r};r(93),r(8100);var i=r(5133),o=r(143);r(4296),Object.freeze({"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/x-icon":"ico","image/vnd.microsoft.icon":"ico"}),r(290),r(7837)},7723:function(e,t,r){"use strict";r.d(t,{Aw:function(){return n.Aw},YJ:function(){return n.YJ},iv:function(){return n.iv},wE:function(){return n.wE}});var n=r(8100);r(5133),r(4296),r(7837)},8578:function(e,t,r){"use strict";let n,i;r.d(t,{b5:function(){return eC},RY:function(){return eU},f0:function(){return ex},B3:function(){return eM},St:function(){return e_},uH:function(){return eS},c1:function(){return eQ},Rm:function(){return eT},cL:function(){return eG},rI:function(){return eO},sX:function(){return eE},o8:function(){return eF},eW:function(){return eV},kP:function(){return e$},xo:function(){return eJ},aF:function(){return eq}});var o={};r.r(o),r.d(o,{SWRConfig:function(){return eg},default:function(){return em},mutate:function(){return Y},preload:function(){return eo},unload:function(){return H},unstable_serialize:function(){return ev},useSWRConfig:function(){return ei}});var s=r(6179),l=r(7837),a=r(2265),u=r(554),c=Object.prototype.hasOwnProperty;let d=new WeakMap,h=()=>{},p=h(),f=Object,g=e=>e===p,m=e=>"function"==typeof e,v=(e,t)=>({...e,...t}),k=e=>m(e.then),b={},y={},w="undefined",S=typeof window!=w,P=typeof document!=w,C=S&&"Deno"in window,O=()=>S&&typeof window.requestAnimationFrame!=w,_=(e,t)=>{let r=d.get(e);return[()=>!g(t)&&e.get(t)||b,n=>{if(!g(t)){let i=e.get(t);t in y||(y[t]=i),r[5](t,v(i,n),i||b)}},r[6],()=>!g(t)&&t in y?y[t]:!g(t)&&e.get(t)||b]},j=!0,[U,E]=S&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[h,h],M={initFocus:e=>(P&&document.addEventListener("visibilitychange",e),U("focus",e),()=>{P&&document.removeEventListener("visibilitychange",e),E("focus",e)}),initReconnect:e=>{let t=()=>{j=!0,e()},r=()=>{j=!1};return U("online",t),U("offline",r),()=>{E("online",t),E("offline",r)}}},z=!a.useId,L=!S||C,I=e=>O()?window.requestAnimationFrame(e):setTimeout(e,1),x=L?a.useEffect:a.useLayoutEffect,T="undefined"!=typeof navigator&&navigator.connection,A=!L&&T&&(["slow-2g","2g"].includes(T.effectiveType)||T.saveData),R=new WeakMap,W=e=>f.prototype.toString.call(e),D=(e,t)=>e==="[object ".concat(t,"]"),N=0,F=e=>{let t,r;let n=typeof e,i=W(e),o=D(i,"Date"),s=D(i,"RegExp"),l=D(i,"Object");
9if(f(e)!==e||o||s)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=R.get(e))return t;if(t=++N+"~",R.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=F(e[r])+",";R.set(e,t)}if(l){t="#";let n=f.keys(e).sort();for(;!g(r=n.pop());)g(e[r])||(t+=r+":"+F(e[r])+",");R.set(e,t)}}return t},B=e=>{if(m(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?F(e):"",t]},V=0,$=()=>++V;async function J(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i,o,s]=t,l=v({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{}),a=l.populateCache,u=l.rollbackOnError,c=l.optimisticData,h=e=>"function"==typeof u?u(e):!1!==u,f=l.throwOnError;if(m(i)){let e=[];for(let t of n.keys())!/^\$(inf|sub)\$/.test(t)&&i(n.get(t)._k)&&e.push(t);return Promise.all(e.map(b))}return b(i);async function b(e){let r;let[i]=B(e);if(!i)return;let[s,u]=_(n,i),[v,b,y,w]=d.get(n),S=()=>{let t=v[i];return(m(l.revalidate)?l.revalidate(s().data,e):!1!==l.revalidate)&&(delete y[i],delete w[i],t&&t[0])?t[0](2).then(()=>s().data):s().data};if(t.length<3)return S();let P=o,C=!1,O=$();b[i]=[O,0];let j=!g(c),U=s(),E=U.data,M=U._c,z=g(M)?E:M;if(j&&u({data:c=m(c)?c(z,E):c,_c:z}),m(P))try{P=P(z)}catch(e){r=e,C=!0}if(P&&k(P)){if(P=await P.catch(e=>{r=e,C=!0}),O!==b[i][0]){if(C)throw r;return P}C&&j&&h(r)&&(a=!0,u({data:z,_c:p}))}if(a&&!C&&(m(a)?u({data:a(P,z),error:p,_c:p}):u({data:P,error:p,_c:p})),b[i][1]=$(),Promise.resolve(S()).then(()=>{u({_c:p})}),C){if(f)throw r;return}return P}}let q=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},G=(e,t)=>{if(!d.has(e)){let r=v(M,t),n=Object.create(null),i=J.bind(p,e),o=h,s=Object.create(null),l=(e,t)=>{let r=s[e]||[];return s[e]=r,r.push(t),()=>{let e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}},a=(t,r,n)=>{e.set(t,r);let i=s[t];if(i)for(let e of i)e(r,n)},u=t=>{let r=d.get(e),[,i,o,l]=r,a=$();for(let e in r[8]++,o)delete o[e];for(let e in l)delete l[e];for(let e in i)i[e]=[a,a];let u={};for(let t of[...e.keys()]){let r=e.get(t);e.delete(t);let n=s[t];if(n)for(let e of n)e(u,r)}let c=!t||!1!==t.revalidate;for(let e in n){let t=n[e];for(let e=0;e<t.length;e++)t[e](4,{revalidate:c&&!e})}},c=()=>{if(!d.has(e)&&(d.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,a,l,u,0]),!L)){let t=r.initFocus(setTimeout.bind(p,q.bind(p,n,0))),i=r.initReconnect(setTimeout.bind(p,q.bind(p,n,1)));o=()=>{t&&t(),i&&i(),d.delete(e)}}};return c(),[e,i,c,o,u]}let r=d.get(e);return[e,r[4],p,p,r[7]]},[K,Y,,,H]=G(new Map),Q=v({onLoadingSlow:h,onSuccess:h,onError:h,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,s=i.retryCount,l=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;(g(o)||!(s>o))&&setTimeout(n,l,i)},onDiscarded:h,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:A?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(c.call(t,n)&&++i&&!c.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:K,mutate:Y,unload:H,fallback:{}},{isOnline:()=>j,isVisible:()=>{let e=P&&document.visibilityState;return g(e)||"hidden"!==e}}),X=(e,t)=>{let r=v(e,t);if(t){let{use:n,fallback:i,cacheData:o}=e,{use:s,fallback:l,cacheData:a}=t;n&&s&&(r.use=n.concat(s)),i&&l&&(r.fallback=v(i,l)),o&&a&&(r.cacheData=v(o,a))}return r},Z=(0,a.createContext)({}),ee="$inf$",et=S&&window.__SWR_DEVTOOLS_USE__,er=et?window.__SWR_DEVTOOLS_USE__:[],en=e=>m(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],ei=()=>{let e=(0,a.useContext)(Z);return(0,a.useMemo)(()=>v(Q,e),[e])},eo=(e,t)=>{if(L)return;let[r,n]=B(e),[,,,i]=d.get(K);if(i[r])return i[r];let o=t(n);return i[r]=o,o},es=er.concat(e=>(t,r,n)=>{let i=r&&((...e)=>
9{let[n]=B(t),[,,,i]=d.get(K);if(n.startsWith(ee))return r(...e);let o=i[n];return g(o)?r(...e):(delete i[n],o)});return e(t,i,n)}),el=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};et&&(window.__SWR_DEVTOOLS_REACT__=a);let ea=a.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),eu={dedupe:!0},ec=(e,t,r)=>{var n;return!!t&&(null==(n=e.get(t))?void 0:n.has(r))===!0},ed=(e,t,r)=>{if(!t)return;let n=e.get(t);n||(n=new Set,e.set(t,n)),n.add(r)},eh=({value:e,getCacheData:t,canCommit:r,setCache:n})=>{let i=e=>{r()&&g(t())&&n(e)};Promise.resolve(e).then(e=>{i({data:e,error:p})},e=>{i({error:e})})},ep=Promise.resolve(p);ep.status="fulfilled",ep.value=p;let ef=()=>h,eg=f.defineProperty(e=>{let{value:t}=e,r=(0,a.useContext)(Z),n=m(t),i=(0,a.useMemo)(()=>n?t(r):t,[n,r,t]),o=(0,a.useMemo)(()=>n?i:X(r,i),[n,r,i]),s=i&&i.provider,l=(0,a.useRef)(p);s&&!l.current&&(l.current=G(s(o.cache||K),i));let u=l.current;return u&&(o.cache=u[0],o.mutate=u[1],o.unload=u[4]),x(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,a.createElement)(Z.Provider,v(e,{value:o}))},"defaultValue",{value:Q}),em=(n=(e,t,r)=>{let{cache:n,compare:i,suspense:o,fallbackData:s,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:h,refreshWhenHidden:f,refreshWhenOffline:b,keepPreviousData:y,strictServerPrefetchWarning:w}=r,[S,P,C,O]=d.get(n),[j,U]=B(e),E=(0,a.useRef)(!1),M=(0,a.useRef)(!1),T=(0,a.useRef)(j),A=(0,a.useRef)(t),R=(0,a.useRef)(r),W=()=>R.current,D=()=>W().isVisible()&&W().isOnline(),[N,F,V,q]=_(n,j),G=(0,a.useRef)({}).current,K=g(s)?g(r.fallback)?p:r.fallback[j]:s,Y=r.cacheData,H=j?null==Y?void 0:Y[j]:p,Q=j?O[j]:p,X=g(Q)&&!g(H),Z=X?H:Q,ee=(e,t)=>{for(let r in G)if("data"===r){if(!i(e[r],t[r])&&(!g(e[r])||!i(ey,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},et=!E.current,er=(0,a.useMemo)(()=>{let e=N(),r=q(),n=e=>{let r=v(e);return(delete r._k,(()=>{if(!j||!t||W().isPaused())return!1;if(et&&!g(l))return l;let e=g(K)?r.data:K;return!(o&&X&&g(e))&&(g(e)||c)})())?{isValidating:!0,isLoading:!0,...r}:r},i=n(e),s=e===r?i:n(r),a=i;return[()=>{let e=n(N());return ee(e,a)?(a.data=e.data,a.isLoading=e.isLoading,a.isValidating=e.isValidating,a.error=e.error,a):(a=e,e)},()=>s]},[n,j]),en=(0,u.useSyncExternalStore)((0,a.useCallback)(e=>V(j,(t,r)=>{ee(r,t)||e()}),[n,j]),er[0],er[1]),ei=S[j]&&S[j].length>0,eo=en.data,es=g(eo)?K&&k(K)?ea(K):K:eo,eg=en.error,em=(0,a.useRef)(es),ev=(0,a.useRef)(p),ek=ev.current;ek||(ek=new WeakMap,ev.current=ek);let eb=(0,a.useRef)(null),ey=y?g(eo)?g(em.current)?es:em.current:eo:es,ew=j&&g(es),eS=(0,a.useRef)(null);L||(0,u.useSyncExternalStore)(ef,()=>(eS.current=!1,eS),()=>(eS.current=!0,eS));let eP=eS.current;w&&eP&&!o&&ew&&console.warn(`Missing pre-initiated data for serialized key "${j}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let eC=!(!j||!t||W().isPaused())&&(!ei||!!g(eg))&&(et&&!g(l)?l:(!o||!X||!ew)&&(o?!g(es)&&c:g(es)||c)),eO=et&&eC,e_=g(en.isValidating)?eO:en.isValidating,ej=g(en.isLoading)?eO:en.isLoading,eU=(0,a.useCallback)(async e=>{let t,n;let o=A.current;if(!j||!o||M.current||W().isPaused())return!1;let s=!0,l=e||{},a=!C[j]||!l.dedupe,u=X&&!ec(ek,Y,j)&&!g(Z)&&g(N().data),c=()=>z?!M.current&&j===T.current&&E.current:j===T.current,d={isValidating:!1,isLoading:!1},h=()=>{F(d)},f=()=>{let e=C[j];e&&e[1]===n&&delete C[j]},v={isValidating:!0};g(N().data)&&(v.isLoading=!0);try{if(a&&(F(v),r.loadingTimeout&&g(N().data)&&setTimeout(()=>{s&&c()&&W().onLoadingSlow(j,r)},r.loadingTimeout),u&&ed(ek,Y,j),C[j]=[u?Z:o(U),$()],u&&O[j]&&delete O[j]),[t,n]=C[j],t=await t,a&&setTimeout(f,r.dedupingInterval),!C[j]||C[j][1]!==n)return a&&c()&&W().onDiscarded(j),!1;d.error=p;let e=P[j];if(!g(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return h(),a&&c()&&W().onDiscarded(j),!1;let l=N().data;d.data=i(l,t)?l:t,a&&c()&&W().onSuccess(t,j,r)}catch(r){f();let e=W(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,a&&c()&&(e.onError(r,j,e),(!0===t||m(t)&&t(r))&&(!W().revalidateOnFocus||!W().revalidateOnReconnect||D())&&e.onErrorRetry(r,j,e,e=>{let t=S[j];t&&t[0]&&t[0](3,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return s=!1,h(),!0},[j,n]),eE=(0,a.useCallback)((...e)=>J(n,T.current,...e),[]);if(x(()=>{let e=eb.current;e&&(eb.current=null,ed(ek,e.cacheData,e.key),g(N().data)&&F({data:e.data,error:p,_k:e._k}),O[e.key]&&delete O[e.key])}),x(()=>{A.current=t,R.current=r,g(eo)||(em.current=eo)}),x(()=>
9{if(t||!X||g(Z)||ec(ek,Y,j)||!g(N().data))return;ed(ek,Y,j);let e=P[j];eh({value:Z,getCacheData:()=>N().data,canCommit:()=>!M.current&&j===T.current&&P[j]===e,setCache:e=>F({...e,_k:U})})}),x(()=>{if(!j)return;let e=eU.bind(p,eu),t=0;W().revalidateOnFocus&&(t=Date.now()+W().focusThrottleInterval);let r=el(j,S,(r,n={})=>{if(0==r){let r=Date.now();W().revalidateOnFocus&&r>t&&D()&&(t=r+W().focusThrottleInterval,e())}else if(1==r)W().revalidateOnReconnect&&D()&&e();else if(2==r)return eU();else if(3==r)return eU(n);else if(4==r&&(em.current=p,n.revalidate))return eU()});return M.current=!1,T.current=j,E.current=!0,F({_k:U}),eC&&!C[j]&&(g(es)||L?e():I(e)),()=>{M.current=!0,r()}},[j]),x(()=>{let e;function t(){let t=m(h)?h(N().data):h;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!N().error&&(f||W().isVisible())&&(b||W().isOnline())?eU(eu).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[h,f,b,j]),(0,a.useDebugValue)(ey),o){if(!z&&L&&ew&&g(Z))throw Error("Fallback data is required when using Suspense in SSR.");ew&&(A.current=t,R.current=r,M.current=!1);let e=!g(Z)&&ew,n=p;if(e&&X?(es=n=Z&&k(Z)?ea(Z):Z,ey=n,L||(eb.current={data:n,_k:U,key:j,cacheData:Y})):ea(e?eE(Z):ep),!g(eg)&&ew)throw eg;let i=ew&&g(n)?eU(eu):ep;!g(ey)&&ew&&(i.status="fulfilled",i.value=!0),ea(i)}return{mutate:eE,get data(){return G.data=!0,ey},get error(){return G.error=!0,eg},get isValidating(){return G.isValidating=!0,e_},get isLoading(){return G.isLoading=!0,ej}}},function(...e){let t=ei(),[r,i,o]=en(e),s=X(t,o),l=n,{use:a}=s,u=(a||[]).concat(es);for(let e=u.length;e--;)l=u[e](l);return l(r,i||s.fetcher||null,s)}),ev=e=>B(e)[0],ek=e=>B(e?e(0,null):null)[0],eb=Promise.resolve(),ey=(i=e=>(t,r,n)=>{let i;let o=(0,a.useRef)(!1),{cache:s,initialSize:l=1,revalidateAll:c=!1,persistSize:h=!1,revalidateFirstPage:f=!0,revalidateOnMount:v=!1,parallel:k=!1}=n,[,,,b]=d.get(K);try{(i=ek(t))&&(i=ee+i)}catch(e){}let[y,w,S]=_(s,i),P=(0,a.useCallback)(()=>g(y()._l)?l:y()._l,[s,i,l]);(0,u.useSyncExternalStore)((0,a.useCallback)(e=>i?S(i,()=>{e()}):()=>{},[s,i]),P,P);let C=(0,a.useCallback)(()=>{let e=y()._l;return g(e)?l:e},[i,l]),O=(0,a.useRef)(C());x(()=>{if(!o.current){o.current=!0;return}i&&w({_l:h?O.current:C()})},[i,s]);let j=v&&!o.current,U=e(i,async e=>{let i=y()._i,o=y()._r,l=d.get(s),a=l[8],u=()=>l[8]!==a;w({_r:p});let h=[],m=C(),[v]=_(s,e),S=v().data,P=[],O=null;for(let e=0;e<m;++e){let[l,a]=B(t(e,k?null:O));if(!l)break;let[d,p]=_(s,l),m=d().data,v=c||i||g(m)||f&&!e&&!g(S)||j||S&&!g(S[e])&&!n.compare(S[e],m);if(r&&("function"==typeof o?o(m,a):v)){let t=async()=>{if(l in b){let e=b[l];delete b[l],m=await e}else m=await r(a);u()||p({data:m,_k:a}),h[e]=m};k?P.push(t):await t()}else h[e]=m;k||(O=m)}return k&&await Promise.all(P.map(e=>e())),u()||w({_i:p}),h},n),E=(0,a.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},n=!1!==r.revalidate;return i?(n&&(g(e)?w({_i:!0,_r:r.revalidate}):w({_i:!1,_r:r.revalidate})),arguments.length?U.mutate(e,{...r,revalidate:n}):U.mutate()):eb},[i,s]),M=(0,a.useCallback)(e=>{let r;if(!i)return eb;let[,n]=_(s,i);if(m(e)?r=e(C()):"number"==typeof e&&(r=e),"number"!=typeof r)return eb;n({_l:r}),O.current=r;let o=[],[l]=_(s,i),a=null;for(let e=0;e<r;++e){let[r]=B(t(e,a)),[n]=_(s,r),i=r?n().data:p;if(g(i))return E(l().data);o.push(i),a=i}return E(o)},[i,s,E,C]);return{size:C(),setSize:M,mutate:E,get data(){return U.data},get error(){return U.error},get isValidating(){return U.isValidating},get isLoading(){return U.isLoading}}},(...e)=>{let[t,r,n]=en(e),o=(n.use||[]).concat(i);return em(t,r,{...n,use:o})});function ew(e,t){if(!e)throw"string"==typeof t?Error(t):Error(`${t.displayName} not found`)}var eS=(e,t)=>{let{assertCtxFn:r=ew}=t||{},n=a.createContext(void 0);return n.displayName=e,[n,()=>{let t=a.useContext(n);return r(t,`${e} not found`),t.value},()=>{let e=a.useContext(n);return e?e.value:{}}]},eP={};(0,l.r2)(eP,{SWRConfig:()=>eg,useSWR:()=>em,useSWRInfinite:()=>ey}),(0,l.yA)(eP,o);var[eC,eO]=eS("ClerkInstanceContext"),[e_,ej]=eS("UserContext"),[eU,eE]=eS("ClientContext"),[eM,ez]=eS("SessionContext");a.createContext({});var[eL,eI]=eS("OrganizationContext"),ex=({children:e,organization:t,swrConfig:r})=>a.createElement(eg,{value:r},a.createElement(eL.Provider,{value:{value:{organization:t}}},e));function eT(e){if(!a.useContext(eC)){if("function"==typeof e){e();return}throw Error(`${e} can only be used within the <ClerkProvider />
9 component. Learn more: https://clerk.com/docs/components/clerk-provider`)}}function eA(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}var eR=(e,t)=>{var r,n,i;let o="boolean"==typeof e&&e,s=(0,a.useRef)(o?t.initialPage:null!=(r=null==e?void 0:e.initialPage)?r:t.initialPage),l=(0,a.useRef)(o?t.pageSize:null!=(n=null==e?void 0:e.pageSize)?n:t.pageSize),u={};for(let r of Object.keys(t))u[r]=o?t[r]:null!=(i=null==e?void 0:e[r])?i:t[r];return{...u,initialPage:s.current,pageSize:l.current}},eW={dedupingInterval:6e4,focusThrottleInterval:12e4},eD=(e,t,r,n)=>{var i,o,s,l,u,c,d;let[h,p]=(0,a.useState)(null!=(i=e.initialPage)?i:1),f=(0,a.useRef)(null!=(o=e.initialPage)?o:1),g=(0,a.useRef)(null!=(s=e.pageSize)?s:10),m=null==(l=r.enabled)||l,v=null!=(u=r.infinite)&&u,k=null!=(c=r.keepPreviousData)&&c,b={...n,...e,initialPage:h,pageSize:g.current},{data:y,isValidating:w,isLoading:S,error:P,mutate:C}=em(!v&&t&&m?b:null,e=>{let r=eA(e,n);return null==t?void 0:t(r)},{keepPreviousData:k,...eW}),{data:O,isLoading:_,isValidating:j,error:U,size:E,setSize:M,mutate:z}=ey(t=>v&&m?{...e,...n,initialPage:f.current+t,pageSize:g.current}:null,e=>{let r=eA(e,n);return null==t?void 0:t(r)},eW),L=(0,a.useMemo)(()=>v?E:h,[v,E,h]),I=(0,a.useCallback)(e=>{if(v){M(e);return}return p(e)},[M]),x=(0,a.useMemo)(()=>{var e,t;return v?null!=(e=null==O?void 0:O.map(e=>null==e?void 0:e.data).flat())?e:[]:null!=(t=null==y?void 0:y.data)?t:[]},[v,y,O]),T=(0,a.useMemo)(()=>{var e,t;return v?(null==(e=null==O?void 0:O[(null==O?void 0:O.length)-1])?void 0:e.total_count)||0:null!=(t=null==y?void 0:y.total_count)?t:0},[v,y,O]),A=v?_:S,R=v?j:w,W=null!=(d=v?U:P)?d:null,D=(0,a.useCallback)(()=>{I(e=>Math.max(0,e+1))},[I]),N=(0,a.useCallback)(()=>{I(e=>Math.max(0,e-1))},[I]),F=(f.current-1)*g.current,B=Math.ceil((T-F)/g.current),V=T-F*g.current>L*g.current,$=(L-1)*g.current>F*g.current,J=v?e=>z(e,{revalidate:!1}):e=>C(e,{revalidate:!1});return{data:x,count:T,error:W,isLoading:A,isFetching:R,isError:!!W,page:L,pageCount:B,fetchPage:I,fetchNext:D,fetchPrevious:N,hasNextPage:V,hasPreviousPage:$,revalidate:v?()=>z():()=>C(),setData:J}},eN={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},eF=e=>{var t,r,n;let{domains:i,membershipRequests:o,memberships:l,invitations:a}=e||{};eT("useOrganization");let{organization:u}=eI(),c=ez(),d=eR(i,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,enrollmentMode:void 0}),h=eR(o,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),p=eR(l,{initialPage:1,pageSize:10,role:void 0,keepPreviousData:!1,infinite:!1}),f=eR(a,{initialPage:1,pageSize:10,status:["pending"],keepPreviousData:!1,infinite:!1}),g=eO();null==(t=g.telemetry)||t.record((0,s.J)("useOrganization"));let m=void 0===i?void 0:{initialPage:d.initialPage,pageSize:d.pageSize,enrollmentMode:d.enrollmentMode},v=void 0===o?void 0:{initialPage:h.initialPage,pageSize:h.pageSize,status:h.status},k=void 0===l?void 0:{initialPage:p.initialPage,pageSize:p.pageSize,role:p.role},b=void 0===a?void 0:{initialPage:f.initialPage,pageSize:f.pageSize,status:f.status},y=eD({...m},null==u?void 0:u.getDomains,{keepPreviousData:d.keepPreviousData,infinite:d.infinite,enabled:!!m},{type:"domains",organizationId:null==u?void 0:u.id}),w=eD({...v},null==u?void 0:u.getMembershipRequests,{keepPreviousData:h.keepPreviousData,infinite:h.infinite,enabled:!!v},{type:"membershipRequests",organizationId:null==u?void 0:u.id}),S=eD(k||{},null==u?void 0:u.getMemberships,{keepPreviousData:p.keepPreviousData,infinite:p.infinite,enabled:!!k},{type:"members",organizationId:null==u?void 0:u.id}),P=eD({...b},null==u?void 0:u.getInvitations,{keepPreviousData:f.keepPreviousData,infinite:f.infinite,enabled:!!b},{type:"invitations",organizationId:null==u?void 0:u.id});return void 0===u?{isLoaded:!1,organization:void 0,membership:void 0,domains:eN,membershipRequests:eN,memberships:eN,invitations:eN}:null===u?{isLoaded:!0,organization:null,membership:null,domains:null,membershipRequests:null,memberships:null,invitations:null}:!g.loaded&&u?{isLoaded:!0,organization:u,membership:void 0,domains:eN,membershipRequests:eN,memberships:eN,invitations:eN}:{isLoaded:g.loaded,organization:u,membership:(r=c.user.organizationMemberships,n=u.id,r.find(e=>e.organization.id===n)),domains:y,membershipRequests:w,memberships:S,invitations:P}},eB={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},eV=e=>{var t;let{userMemberships:r,userInvitations:n,userSuggestions:i}=e||{};eT("useOrganizationList");let o=eR(r,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1}),l=eR(n,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),a=eR(i,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),u=eO(),c=ej();null==(t=u.telemetry)||t.record((0,s.J)("useOrganizationList"));let d=void 0===r?void 0:{initialPage:o.initialPage,pageSize:o.pageSize},h=void 0===n?void 0:{initialPage:l.initialPage,pageSize:l.pageSize,status:l.status},p=void 0===i?void 0:{initialPage:a.initialPage,pageSize:a.pageSize,status:a.status},f=!!(u.loaded&&c),g=eD(d||{},null==c?void 0:c.getOrganizationMemberships,{keepPreviousData:o.keepPreviousData,infinite:o.infinite,enabled:!!d},{type:"userMemberships",userId:null==c?void 0:c.id}),m=eD({...h},null==c?void 0:c.getOrganizationInvitations,{keepPreviousData:l.keepPreviousData,infinite:l.infinite,enabled:!!h},{type:"userInvitations",userId:null==c?void 0:c.id}),v=eD({...p},null==c?void 0:c.getOrganizationSuggestions,{keepPreviousData:a.keepPreviousData,infinite:a.infinite,enabled:!!p},{type:"userSuggestions",userId:null==c?void 0:c.id});return f?{isLoaded:f,setActive:u.setActive,createOrganization:u.createOrganization,userMemberships:g,userInvitations:m,userSuggestions:v}
9:{isLoaded:!1,createOrganization:void 0,setActive:void 0,userMemberships:eB,userInvitations:eB,userSuggestions:eB}};"undefined"!=typeof window?a.useLayoutEffect:a.useEffect;var e$=()=>{eT("useSession");let e=ez();return void 0===e?{isLoaded:!1,isSignedIn:void 0,session:void 0}:null===e?{isLoaded:!0,isSignedIn:!1,session:null}:{isLoaded:!0,isSignedIn:!0,session:e}},eJ=()=>{eT("useSessionList");let e=eO(),t=eE();return t?{isLoaded:!0,sessions:t.sessions,setActive:e.setActive}:{isLoaded:!1,sessions:void 0,setActive:void 0}};function eq(){eT("useUser");let e=ej();return 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}}var eG=()=>(eT("useClerk"),eO()),eK=Object.prototype.hasOwnProperty;function eY(e,t,r){for(r of e.keys())if(eH(r,t))return r}function eH(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&eH(e[n],t[n]););return -1===n}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if((i=n)&&"object"==typeof i&&!(i=eY(t,i))||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if((i=n[0])&&"object"==typeof i&&!(i=eY(t,i))||!eH(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return -1===n}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return -1===n}if(!r||"object"==typeof e){for(r in n=0,e)if(eK.call(e,r)&&++n&&!eK.call(t,r)||!(r in t)||!eH(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!=e&&t!=t}var eQ=eH}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.