dash-auth-plus 0.0.1__py3-none-any.whl
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.
- dash_auth_plus/DashAuthComponents/ClerkProvider.py +79 -0
- dash_auth_plus/DashAuthComponents/UserProfile.py +44 -0
- dash_auth_plus/DashAuthComponents/UserProfilePage.py +64 -0
- dash_auth_plus/DashAuthComponents/__init__.py +49 -0
- dash_auth_plus/DashAuthComponents/_imports_.py +5 -0
- dash_auth_plus/DashAuthComponents/dash_auth_plus.js +3 -0
- dash_auth_plus/DashAuthComponents/dash_auth_plus.js.LICENSE.txt +9 -0
- dash_auth_plus/DashAuthComponents/dash_auth_plus.js.map +1 -0
- dash_auth_plus/DashAuthComponents/metadata.json +1 -0
- dash_auth_plus/DashAuthComponents/package-info.json +47 -0
- dash_auth_plus/DashAuthComponents/proptypes.js +15 -0
- dash_auth_plus/__init__.py +39 -0
- dash_auth_plus/_version.py +14 -0
- dash_auth_plus/auth.py +189 -0
- dash_auth_plus/basic_auth.py +124 -0
- dash_auth_plus/clerk_auth.py +705 -0
- dash_auth_plus/group_protection.py +485 -0
- dash_auth_plus/oidc_auth.py +355 -0
- dash_auth_plus/package-info.json +47 -0
- dash_auth_plus/public_routes.py +107 -0
- dash_auth_plus-0.0.1.dist-info/METADATA +899 -0
- dash_auth_plus-0.0.1.dist-info/RECORD +25 -0
- dash_auth_plus-0.0.1.dist-info/WHEEL +5 -0
- dash_auth_plus-0.0.1.dist-info/licenses/LICENSE +21 -0
- dash_auth_plus-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
|
|
7
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
8
|
+
ComponentType = typing.Union[
|
|
9
|
+
ComponentSingleType,
|
|
10
|
+
typing.Sequence[ComponentSingleType],
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
NumberType = typing.Union[
|
|
14
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ClerkProvider(Component):
|
|
19
|
+
"""A ClerkProvider component.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Keyword arguments:
|
|
23
|
+
|
|
24
|
+
- children (a list of or a singular dash component, string or number; required)
|
|
25
|
+
|
|
26
|
+
- id (string; optional)
|
|
27
|
+
|
|
28
|
+
- afterSignOutUrl (string; optional)
|
|
29
|
+
|
|
30
|
+
- publishableKey (string; required)
|
|
31
|
+
|
|
32
|
+
- themeName (string; optional)"""
|
|
33
|
+
|
|
34
|
+
_children_props: typing.List[str] = []
|
|
35
|
+
_base_nodes = ["children"]
|
|
36
|
+
_namespace = "dash_auth_plus_components"
|
|
37
|
+
_type = "ClerkProvider"
|
|
38
|
+
|
|
39
|
+
def __init__(
|
|
40
|
+
self,
|
|
41
|
+
children: typing.Optional[ComponentType] = None,
|
|
42
|
+
publishableKey: typing.Optional[str] = None,
|
|
43
|
+
afterSignOutUrl: typing.Optional[str] = None,
|
|
44
|
+
themeName: typing.Optional[str] = None,
|
|
45
|
+
id: typing.Optional[typing.Union[str, dict]] = None,
|
|
46
|
+
**kwargs
|
|
47
|
+
):
|
|
48
|
+
self._prop_names = [
|
|
49
|
+
"children",
|
|
50
|
+
"id",
|
|
51
|
+
"afterSignOutUrl",
|
|
52
|
+
"publishableKey",
|
|
53
|
+
"themeName",
|
|
54
|
+
]
|
|
55
|
+
self._valid_wildcard_attributes = []
|
|
56
|
+
self.available_properties = [
|
|
57
|
+
"children",
|
|
58
|
+
"id",
|
|
59
|
+
"afterSignOutUrl",
|
|
60
|
+
"publishableKey",
|
|
61
|
+
"themeName",
|
|
62
|
+
]
|
|
63
|
+
self.available_wildcard_properties = []
|
|
64
|
+
_explicit_args = kwargs.pop("_explicit_args")
|
|
65
|
+
_locals = locals()
|
|
66
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
67
|
+
args = {k: _locals[k] for k in _explicit_args if k != "children"}
|
|
68
|
+
|
|
69
|
+
for k in ["publishableKey"]:
|
|
70
|
+
if k not in args:
|
|
71
|
+
raise TypeError("Required argument `" + k + "` was not specified.")
|
|
72
|
+
|
|
73
|
+
if "children" not in _explicit_args:
|
|
74
|
+
raise TypeError("Required argument children was not specified.")
|
|
75
|
+
|
|
76
|
+
super(ClerkProvider, self).__init__(children=children, **args)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
setattr(ClerkProvider, "__init__", _explicitize_args(ClerkProvider.__init__))
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
|
|
7
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
8
|
+
ComponentType = typing.Union[
|
|
9
|
+
ComponentSingleType,
|
|
10
|
+
typing.Sequence[ComponentSingleType],
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
NumberType = typing.Union[
|
|
14
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class UserProfile(Component):
|
|
19
|
+
"""An UserProfile component.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Keyword arguments:
|
|
23
|
+
|
|
24
|
+
- children (a list of or a singular dash component, string or number; optional)"""
|
|
25
|
+
|
|
26
|
+
_children_props: typing.List[str] = []
|
|
27
|
+
_base_nodes = ["children"]
|
|
28
|
+
_namespace = "dash_auth_plus_components"
|
|
29
|
+
_type = "UserProfile"
|
|
30
|
+
|
|
31
|
+
def __init__(self, children: typing.Optional[ComponentType] = None, **kwargs):
|
|
32
|
+
self._prop_names = ["children"]
|
|
33
|
+
self._valid_wildcard_attributes = []
|
|
34
|
+
self.available_properties = ["children"]
|
|
35
|
+
self.available_wildcard_properties = []
|
|
36
|
+
_explicit_args = kwargs.pop("_explicit_args")
|
|
37
|
+
_locals = locals()
|
|
38
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
39
|
+
args = {k: _locals[k] for k in _explicit_args if k != "children"}
|
|
40
|
+
|
|
41
|
+
super(UserProfile, self).__init__(children=children, **args)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
setattr(UserProfile, "__init__", _explicitize_args(UserProfile.__init__))
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
|
|
7
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
8
|
+
ComponentType = typing.Union[
|
|
9
|
+
ComponentSingleType,
|
|
10
|
+
typing.Sequence[ComponentSingleType],
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
NumberType = typing.Union[
|
|
14
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class UserProfilePage(Component):
|
|
19
|
+
"""An UserProfilePage component.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Keyword arguments:
|
|
23
|
+
|
|
24
|
+
- children (a list of or a singular dash component, string or number; required)
|
|
25
|
+
|
|
26
|
+
- label (string; required)
|
|
27
|
+
|
|
28
|
+
- labelIcon (a list of or a singular dash component, string or number; required)
|
|
29
|
+
|
|
30
|
+
- url (string; required)"""
|
|
31
|
+
|
|
32
|
+
_children_props: typing.List[str] = ["labelIcon"]
|
|
33
|
+
_base_nodes = ["labelIcon", "children"]
|
|
34
|
+
_namespace = "dash_auth_plus_components"
|
|
35
|
+
_type = "UserProfilePage"
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self,
|
|
39
|
+
children: typing.Optional[ComponentType] = None,
|
|
40
|
+
label: typing.Optional[str] = None,
|
|
41
|
+
url: typing.Optional[str] = None,
|
|
42
|
+
labelIcon: typing.Optional[ComponentType] = None,
|
|
43
|
+
**kwargs
|
|
44
|
+
):
|
|
45
|
+
self._prop_names = ["children", "label", "labelIcon", "url"]
|
|
46
|
+
self._valid_wildcard_attributes = []
|
|
47
|
+
self.available_properties = ["children", "label", "labelIcon", "url"]
|
|
48
|
+
self.available_wildcard_properties = []
|
|
49
|
+
_explicit_args = kwargs.pop("_explicit_args")
|
|
50
|
+
_locals = locals()
|
|
51
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
52
|
+
args = {k: _locals[k] for k in _explicit_args if k != "children"}
|
|
53
|
+
|
|
54
|
+
for k in ["label", "labelIcon", "url"]:
|
|
55
|
+
if k not in args:
|
|
56
|
+
raise TypeError("Required argument `" + k + "` was not specified.")
|
|
57
|
+
|
|
58
|
+
if "children" not in _explicit_args:
|
|
59
|
+
raise TypeError("Required argument children was not specified.")
|
|
60
|
+
|
|
61
|
+
super(UserProfilePage, self).__init__(children=children, **args)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
setattr(UserProfilePage, "__init__", _explicitize_args(UserProfilePage.__init__))
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
from __future__ import print_function as _
|
|
2
|
+
|
|
3
|
+
import os as _os
|
|
4
|
+
import sys as _sys
|
|
5
|
+
import json
|
|
6
|
+
|
|
7
|
+
import dash as _dash
|
|
8
|
+
|
|
9
|
+
# noinspection PyUnresolvedReferences
|
|
10
|
+
from ._imports_ import * # noqa: F403,F401
|
|
11
|
+
from ._imports_ import __all__ # noqa: F401
|
|
12
|
+
|
|
13
|
+
if not hasattr(_dash, "__plotly_dash") and not hasattr(_dash, "development"):
|
|
14
|
+
print(
|
|
15
|
+
"Dash was not successfully imported. "
|
|
16
|
+
"Make sure you don't have a file "
|
|
17
|
+
'named \n"dash.py" in your current directory.',
|
|
18
|
+
file=_sys.stderr,
|
|
19
|
+
)
|
|
20
|
+
_sys.exit(1)
|
|
21
|
+
|
|
22
|
+
_basepath = _os.path.dirname(__file__)
|
|
23
|
+
_filepath = _os.path.abspath(_os.path.join(_basepath, "package-info.json"))
|
|
24
|
+
with open(_filepath) as f:
|
|
25
|
+
package = json.load(f)
|
|
26
|
+
|
|
27
|
+
package_name = package["name"].replace(" ", "_").replace("-", "_")
|
|
28
|
+
__version__ = package["version"]
|
|
29
|
+
|
|
30
|
+
_current_path = _os.path.dirname(_os.path.abspath(__file__))
|
|
31
|
+
|
|
32
|
+
_this_module = _sys.modules[__name__]
|
|
33
|
+
|
|
34
|
+
_unpkg = f"https://unpkg.com/dash-auth-plus@{__version__}/dash_auth_plus/"
|
|
35
|
+
|
|
36
|
+
_js_dist = [
|
|
37
|
+
{
|
|
38
|
+
"relative_package_path": "DashAuthComponents/dash_auth_plus.js",
|
|
39
|
+
"external_url": f"{_unpkg}dash_auth_plus.js",
|
|
40
|
+
"namespace": package_name,
|
|
41
|
+
},
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
_css_dist = []
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
for _component in __all__:
|
|
48
|
+
setattr(locals()[_component], "_js_dist", _js_dist)
|
|
49
|
+
setattr(locals()[_component], "_css_dist", _css_dist)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see dash_auth_plus.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define("dash_auth_plus_components",["React","ReactDOM"],t):"object"==typeof exports?exports.dash_auth_plus_components=t(require("React"),require("ReactDOM")):e.dash_auth_plus_components=t(e.React,e.ReactDOM)}(this,((e,t)=>(()=>{var r={48:(e,t,r)=>{"use strict";var n,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of s(t))a.call(e,l)||l===r||o(e,l,{get:()=>t[l],enumerable:!(n=i(t,l))||n.enumerable});return e},c=(e,t,r)=>(l(e,t,"default"),r&&l(r,t,"default")),u={};e.exports=(n=u,l(o({},"__esModule",{value:!0}),n)),c(u,r(381),e.exports),c(u,r(967),e.exports)},69:(e,t,r)=>{"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(t,e)}r.d(t,{A:()=>n})},124:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(254);function o(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function i(e,t,r){for(var n=0,o=r.length;n<o;){if(e(t,r[n]))return!0;n+=1}return!1}var s=r(69);const a="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var l=r(579),c=r(689),u=!{toString:null}.propertyIsEnumerable("toString"),d=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],p=function(){return arguments.propertyIsEnumerable("length")}(),h=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const f="function"!=typeof Object.keys||p?(0,l.A)((function(e){if(Object(e)!==e)return[];var t,r,n=[],o=p&&(0,c.A)(e);for(t in e)!(0,s.A)(t,e)||o&&"length"===t||(n[n.length]=t);if(u)for(r=d.length-1;r>=0;)t=d[r],(0,s.A)(t,e)&&!h(n,t)&&(n[n.length]=t),r-=1;return n})):(0,l.A)((function(e){return Object(e)!==e?[]:Object.keys(e)}));var m=r(322);function g(e,t,r,n){var s=o(e);function a(e,t){return y(e,t,r.slice(),n.slice())}return!i((function(e,t){return!i(a,t,e)}),o(t),s)}function y(e,t,r,n){if(a(e,t))return!0;var o,i,l=(0,m.A)(e);if(l!==(0,m.A)(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(l){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(o=e.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!a(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!a(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=r.length-1;c>=0;){if(r[c]===e)return n[c]===t;c-=1}switch(l){case"Map":return e.size===t.size&&g(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&g(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=f(e);if(u.length!==f(t).length)return!1;var d=r.concat([e]),p=n.concat([t]);for(c=u.length-1;c>=0;){var h=u[c];if(!(0,s.A)(h,t)||!y(t[h],e[h],d,p))return!1;c-=1}return!0}const b=(0,n.A)((function(e,t){return y(e,t,[],[])}))},209:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDescendantProp:()=>T,renderDashComponent:()=>L,renderDashComponents:()=>W,resolveProp:()=>z,resolveProps:()=>R});var n=r(738),o=r(254),i=r(69),s=r(647);const a=(0,o.A)((function(e,t){if(0===e.length||(0,s.A)(t))return!1;for(var r=t,n=0;n<e.length;){if((0,s.A)(r)||!(0,i.A)(e[n],r))return!1;r=r[e[n]],n+=1}return!0})),l=(0,o.A)((function(e,t){return a([e],t)})),c="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,n=arguments.length;r<n;){var o=arguments[r];if(null!=o)for(var s in o)(0,i.A)(s,o)&&(t[s]=o[s]);r+=1}return t},u=(0,o.A)((function(e,t){return c({},e,t)}));var d=r(322),p=r(809);const h=Number.isInteger||function(e){return(0|e)===e};var f=r(564),m=r(579),g=r(808);function y(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return(0,g.A)(r)?t:(0,o.A)((function(t,n){return e(r,t,n)}));case 2:return(0,g.A)(r)&&(0,g.A)(n)?t:(0,g.A)(r)?(0,o.A)((function(t,r){return e(t,n,r)})):(0,g.A)(n)?(0,o.A)((function(t,n){return e(r,t,n)})):(0,m.A)((function(t){return e(r,n,t)}));default:return(0,g.A)(r)&&(0,g.A)(n)&&(0,g.A)(i)?t:(0,g.A)(r)&&(0,g.A)(n)?(0,o.A)((function(t,r){return e(t,r,i)})):(0,g.A)(r)&&(0,g.A)(i)?(0,o.A)((function(t,r){return e(t,n,r)})):(0,g.A)(n)&&(0,g.A)(i)?(0,o.A)((function(t,n){return e(r,t,n)})):(0,g.A)(r)?(0,m.A)((function(t){return e(t,n,i)})):(0,g.A)(n)?(0,m.A)((function(t){return e(r,t,i)})):(0,g.A)(i)?(0,m.A)((function(t){return e(r,n,t)})):e(r,n,i)}}}const b=y((function(e,t,r){var n=Array.prototype.slice.call(r,0);return n.splice(e,t),n})),v=y((function e(t,r,n){if(0===t.length)return r;var o=t[0];if(t.length>1){var a=!(0,s.A)(n)&&(0,i.A)(o,n)&&"object"==typeof n[o]?n[o]:h(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,a)}return function(e,t,r){if(h(e)&&(0,f.A)(r)){var n=[].concat(r);return n[e]=t,n}var o={};for(var i in r)o[i]=r[i];return o[e]=t,o}(o,r,n)})),k=y((function(e,t,r){return v([e],t,r)})),w=(0,o.A)((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if(h(e)&&(0,f.A)(t))return b(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}(t[0],r);default:var n=t[0],o=Array.prototype.slice.call(t,1);return null==r[n]?function(e,t){if(h(e)&&(0,f.A)(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}(n,r):k(n,e(o,r[n]),r)}})),P=(0,o.A)((function(e,t){return w([e],t)}));var _=r(925),O=r.n(_),j=r(556),S=r.n(j),C=r(883),A=r.n(C);function U(e){const{element:t,extraProps:r,props:o,children:i,type:s}=e,a=function(e,t,r,n,o=null){const i=[];for(const a in e)if(e.hasOwnProperty(a)){let l;try{"function"!=typeof e[a]?(l=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`."),l.name="Invariant Violation"):l=e[a](t,a,n,r,null,O())}catch(e){l=e}if(!l||l instanceof Error||i.push((n||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error){var s=o&&o()||"";i.push("Failed "+r+" type: "+l.message+s)}}return i.join("\n\n")}(t.propTypes,o,"component prop",t);return a&&function(e,t,r){const o=e.split("`");let i;if((0,n.A)("is marked as required",e))i=`${o[1]} in ${r}`,t.id&&(i+=` with ID "${t.id}"`),i+=" is required but it was not provided.";else if((0,n.A)("Bad object",e))i=e.split("supplied to ")[0]+`supplied to ${r}.\nBad`+e.split(".\nBad")[1];else{if(!(0,n.A)("Invalid ",e)||!(0,n.A)(" supplied to ",e))throw new Error(e);{const s=o[1];if(i=`Invalid argument \`${s}\` passed into ${r}`,t.id&&(i+=` with ID "${t.id}"`),i+=".",(0,n.A)(", expected ",e)&&(i+=`\nExpected ${e.split(", expected ")[1]}`),(0,n.A)(" of type `",e)&&(i+=`\nWas supplied type \`${e.split(" of type `")[1].split("`")[0]}\`.`),l(s,t)){const e=JSON.stringify(t[s],null,2);e&&((0,n.A)("\n",e)?i+=`\nValue provided: \n${e}`:i+=`\nValue provided: ${e}`)}}}throw new Error(i)}(a,o,s),function(e,t,r,n){const o=u(t,r);return Array.isArray(n)?A().createElement(e,o,...n):A().createElement(e,o,n)}(t,o,r,i)}U.propTypes={children:S().any,element:S().any,layout:S().any,props:S().any,extraProps:S().any,id:S().string};const E=["String","Number","Null","Boolean"],I=e=>(0,n.A)((0,d.A)(e),E),M={is_loading:!1},x={resolve:e=>{const{type:t,namespace:r}=e,n=window[r];if(n){if(n[t])return n[t];throw new Error(`Component ${t} not found in ${r}`)}throw new Error(`${r} was not found.`)}};function z(e,t){return null===(r=e)||Array.isArray(r)||"function"==typeof r||r.constructor===Date||"object"!=typeof r?e:e.variable?function(e,t){const r=T(window,e.variable);if(void 0===r)throw new Error("No match for ["+e.variable+"] in the global window object.");return(n=r)&&"[object Function]"==={}.toString.call(n)&&t?(...e)=>r(...e,t):r;var n}(e,t):e.arrow?(...t)=>e.arrow:e;var r}function T(e,t){const r=t.split(".");for(;r.length&&(e=e[r.shift()]););return e}function R(e,t,r){let n=Object.assign({},e);for(let e of t)n[e]&&(n[e]=z(n[e],r));return n}function L(e,t=null){if((0,s.A)(e)||(0,p.A)(e))return null;if(I(e))return e;if(Array.isArray(e))return e.map(((e,t)=>L(e,t)));const r=x.resolve(e),n=P("children",e.props),o=L(e.props.children);var i;"Object"===(0,d.A)(n.id)&&(n.id="object"!=typeof(i=n.id)?i:"{"+Object.keys(i).sort().map((e=>{return JSON.stringify(e)+":"+((t=i[e])&&t.wild||JSON.stringify(t));var t})).join(",")+"}");const a={props:n,element:r,extraProps:{loading_state:M,setProps:()=>null},type:e.type,key:t};return A().createElement(U,a,o)}function W(e,t){for(let r=0;r<t.length;r++){let n=t[r];e.hasOwnProperty(n)&&(e[n]=L(e[n]))}return e}},254:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(579),o=r(808);function i(e){return function t(r,i){switch(arguments.length){case 0:return t;case 1:return(0,o.A)(r)?t:(0,n.A)((function(t){return e(r,t)}));default:return(0,o.A)(r)&&(0,o.A)(i)?t:(0,o.A)(r)?(0,n.A)((function(t){return e(t,i)})):(0,o.A)(i)?(0,n.A)((function(t){return e(r,t)})):e(r,i)}}}},322:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(579).A)((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}))},370:(e,t,r)=>{"use strict";var n,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{neobrutalism:()=>d}),e.exports=(n=l,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))a.call(e,r)||undefined===r||o(e,r,{get:()=>t[r],enumerable:!(n=i(t,r))||n.enumerable});return e})(o({},"__esModule",{value:!0}),n));const c={boxShadow:"3px 3px 0px #000",border:"2px solid #000","&:focus":{boxShadow:"4px 4px 0px #000",border:"2px solid #000",transform:"scale(1.01)"},"&:active":{boxShadow:"2px 2px 0px #000",transform:"translate(1px)"}},u={boxShadow:"3px 3px 0px #000",border:"2px solid #000"},d=(0,r(381).experimental_createTheme)({name:"neobrutalism",simpleStyles:!0,variables:{colorPrimary:"#DF1B1B",colorShimmer:"rgba(255,255,255,0.64)",fontWeight:{normal:500,medium:600,bold:700}},elements:{cardBox:{boxShadow:"7px 7px 0px #000",border:"3px solid #000"},card:{borderRadius:"0"},headerSubtitle:{color:"#212126"},alternativeMethodsBlockButton:c,socialButtonsIconButton:{...c},selectButton:{...c,...u,transition:"all 0.2s ease-in-out","&:focus":{boxShadow:"4px 4px 0px #000",border:"2px solid #000",transform:"scale(1.01)"}},socialButtonsBlockButton:{...c,color:"#212126"},profileSectionPrimaryButton:c,profileSectionItem:{color:"#212126"},avatarImageActionsUpload:c,menuButton:u,menuList:u,formButtonPrimary:c,navbarButton:c,formFieldAction:{fontWeight:"700"},formFieldInput:{...u,transition:"all 0.2s ease-in-out","&:focus":{boxShadow:"4px 4px 0px #000",border:"2px solid #000",transform:"scale(1.01)"},"&:hover":{...u,transform:"scale(1.01)"}},table:u,tableHead:{color:"#212126"},dividerLine:{background:"#000"},dividerText:{fontWeight:"700",color:"#212126"},footer:{background:"#fff","& div":{color:"#212126"}},footerActionText:{color:"#212126"},footerActionLink:{fontWeight:"700",borderBottom:"3px solid","&:focus":{boxShadow:"none"}},actionCard:{...u},badge:{border:"1px solid #000",background:"#fff",color:"#212126"}}})},380:(e,t,r)=>{"use strict";var n,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{shadcn:()=>c}),e.exports=(n=l,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))a.call(e,r)||undefined===r||o(e,r,{get:()=>t[r],enumerable:!(n=i(t,r))||n.enumerable});return e})(o({},"__esModule",{value:!0}),n));const c=(0,r(381).experimental_createTheme)({name:"shadcn",cssLayerName:"components",variables:{colorBackground:"var(--card)",colorDanger:"var(--destructive)",colorForeground:"var(--card-foreground)",colorInput:"var(--input)",colorInputForeground:"var(--card-foreground)",colorModalBackdrop:"var(--color-black)",colorMuted:"var(--muted)",colorMutedForeground:"var(--muted-foreground)",colorNeutral:"var(--foreground)",colorPrimary:"var(--primary)",colorPrimaryForeground:"var(--primary-foreground)",colorRing:"var(--ring)",fontWeight:{normal:"var(--font-weight-normal)",medium:"var(--font-weight-medium)",semibold:"var(--font-weight-semibold)",bold:"var(--font-weight-semibold)"}},elements:{input:"bg-transparent dark:bg-input/30",cardBox:"shadow-sm border",popoverBox:"shadow-sm border",button:{'&[data-variant="solid"]::after':{display:"none"}},providerIcon__apple:"dark:invert",providerIcon__github:"dark:invert",providerIcon__okx_wallet:"dark:invert",providerIcon__vercel:"dark:invert"}})},381:e=>{"use strict";var t,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(s,{experimental_createTheme:()=>a}),e.exports=(t=s,((e,t,s,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))i.call(e,s)||undefined===s||r(e,s,{get:()=>t[s],enumerable:!(a=n(t,s))||a.enumerable});return e})(r({},"__esModule",{value:!0}),t));const a=e=>({...e,__type:"prebuilt_appearance"})},493:(e,t,r)=>{"use strict";var n=r(883),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,u=n[1];return a((function(){o.value=r,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,r,t]),s((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},556:(e,t,r)=>{e.exports=r(694)()},564:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},579:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(808);function o(e){return function t(r){return 0===arguments.length||(0,n.A)(r)?t:e.apply(this,arguments)}}},647:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(579).A)((function(e){return null==e}))},650:(e,t,r)=>{"use strict";var n,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{shadesOfPurple:()=>d}),e.exports=(n=l,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))a.call(e,r)||undefined===r||o(e,r,{get:()=>t[r],enumerable:!(n=i(t,r))||n.enumerable});return e})(o({},"__esModule",{value:!0}),n));var c=r(381),u=r(751);const d=(0,c.experimental_createTheme)({name:"shadesOfPurple",baseTheme:u.dark,variables:{colorBackground:"#3f3c77",colorPrimary:"#f8d80d",colorPrimaryForeground:"#38375f",colorInputForeground:"#a1fdfe",colorShimmer:"rgba(161,253,254,0.36)"}})},689:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(69),o=Object.prototype.toString;const i=function(){return"[object Arguments]"===o.call(arguments)?function(e){return"[object Arguments]"===o.call(e)}:function(e){return(0,n.A)("callee",e)}}()},694:(e,t,r)=>{"use strict";var n=r(925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},738:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(124);function o(e,t){return function(e,t,r){var o,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(o=1/t;r<e.length;){if(0===(i=e[r])&&1/i===o)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(i=e[r])&&i!=i)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if((0,n.A)(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}const i=(0,r(254).A)(o)},751:(e,t,r)=>{"use strict";var n,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{dark:()=>c}),e.exports=(n=l,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))a.call(e,r)||undefined===r||o(e,r,{get:()=>t[r],enumerable:!(n=i(t,r))||n.enumerable});return e})(o({},"__esModule",{value:!0}),n));const c=(0,r(381).experimental_createTheme)({name:"dark",variables:{colorBackground:"#212126",colorNeutral:"white",colorPrimary:"#ffffff",colorPrimaryForeground:"black",colorForeground:"white",colorInputForeground:"white",colorInput:"#26262B"},elements:{providerIcon__apple:{filter:"invert(1)"},providerIcon__github:{filter:"invert(1)"},providerIcon__okx_wallet:{filter:"invert(1)"},providerIcon__vercel:{filter:"invert(1)"},activeDeviceIcon:{"--cl-chassis-bottom":"#d2d2d2","--cl-chassis-back":"#e6e6e6","--cl-chassis-screen":"#e6e6e6","--cl-screen":"#111111"}}})},808:(e,t,r)=>{"use strict";function n(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}r.d(t,{A:()=>n})},809:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(579),o=r(689),i=r(564);const s=(0,n.A)((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():(0,i.A)(e)?[]:function(e){return"[object String]"===Object.prototype.toString.call(e)}(e)?"":function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)?{}:(0,o.A)(e)?function(){return arguments}():(t=e,"[object Uint8ClampedArray]"===(r=Object.prototype.toString.call(t))||"[object Int8Array]"===r||"[object Uint8Array]"===r||"[object Int16Array]"===r||"[object Uint16Array]"===r||"[object Int32Array]"===r||"[object Uint32Array]"===r||"[object Float32Array]"===r||"[object Float64Array]"===r||"[object BigInt64Array]"===r||"[object BigUint64Array]"===r?e.constructor.from(""):void 0);var t,r}));var a=r(124);const l=(0,n.A)((function(e){return null!=e&&(0,a.A)(e,s(e))}))},845:e=>{"use strict";e.exports=t},883:t=>{"use strict";t.exports=e},888:(e,t,r)=>{"use strict";e.exports=r(493)},889:(e,t,r)=>{"use strict";var n,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{experimental__simple:()=>c}),e.exports=(n=l,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))a.call(e,r)||undefined===r||o(e,r,{get:()=>t[r],enumerable:!(n=i(t,r))||n.enumerable});return e})(o({},"__esModule",{value:!0}),n));const c=(0,r(381).experimental_createTheme)({name:"simple",simpleStyles:!0})},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},967:(e,t,r)=>{"use strict";var n,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of s(t))a.call(e,l)||l===r||o(e,l,{get:()=>t[l],enumerable:!(n=i(t,l))||n.enumerable});return e},c=(e,t,r)=>(l(e,t,"default"),r&&l(r,t,"default")),u={};e.exports=(n=u,l(o({},"__esModule",{value:!0}),n)),c(u,r(751),e.exports),c(u,r(650),e.exports),c(u,r(370),e.exports),c(u,r(380),e.exports),c(u,r(889),e.exports)}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i),o.d(i,{ClerkProvider:()=>on,UserProfile:()=>tn,UserProfilePage:()=>Jr});var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)};function t(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function r(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var n=o(883),s=o.n(n);function a(e){return function(t){const r=t??this;if(!r)throw new TypeError(`${e.kind||e.name} type guard requires an error object`);return r instanceof e}}var l=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}};a(l);var c=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}]\nMessage:${this.message}`}static formatMessage(e,t,r,n){const o="Clerk:",i=new RegExp(o.replace(" ","\\s*"),"i");return t=`${o} ${(t=t.replace(i,"")).trim()}\n\n(code="${r}")\n\n`,n&&(t+=`\n\nDocs: ${n}`),t}};a(class e extends c{static kind="ClerkAPIResponseError";status;clerkTraceId;retryAfter;errors;constructor(t,r){const{data:n,status:o,clerkTraceId:i,retryAfter:s}=r;super({...r,message:t,code:"api_response_error"}),Object.setPrototypeOf(this,e.prototype),this.status=o,this.clerkTraceId=i,this.retryAfter=s,this.errors=(n||[]).map((e=>new l(e)))}toString(){let e=`[${this.name}]\nMessage:${this.message}\nStatus:${this.status}\nSerialized errors: ${this.errors.map((e=>JSON.stringify(e)))}`;return this.clerkTraceId&&(e+=`\nClerk Trace ID: ${this.clerkTraceId}`),e}static formatMessage(e,t,r,n){return t}});const u=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 d({packageName:e,customMessages:t}){let r=e;function n(e,t){if(!t)return`${r}: ${e}`;let n=e;const o=e.matchAll(/{{([a-zA-Z0-9-_]+)}}/g);for(const e of o){const r=(t[e[1]]||"").toString();n=n.replace(`{{${e[1]}}}`,r)}return`${r}: ${n}`}const o={...u,...t};return{setPackageName({packageName:e}){return"string"==typeof e&&(r=e),this},setMessages({customMessages:e}){return Object.assign(o,e||{}),this},throwInvalidPublishableKeyError(e){throw new Error(n(o.InvalidPublishableKeyErrorMessage,e))},throwInvalidProxyUrl(e){throw new Error(n(o.InvalidProxyUrlErrorMessage,e))},throwMissingPublishableKeyError(){throw new Error(n(o.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw new Error(n(o.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(e){throw new Error(n(o.MissingClerkProvider,e))},throw(e){throw new Error(n(e))}}}Error;var p=class e extends c{static kind="ClerkRuntimeError";clerkRuntimeError=!0;constructor(t,r){super({...r,message:t}),Object.setPrototypeOf(this,e.prototype)}};a(p),new Set(["first_factor","second_factor","multi_factor"]),new Set(["strict_mfa","strict","moderate","lax"]);const h=e=>{const t=r=>{if(!r)return r;if(Array.isArray(r))return r.map((e=>"object"==typeof e||Array.isArray(e)?t(e):e));const n={...r},o=Object.keys(n);for(const r of o){const 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};h((function(e){return e?e.replace(/[A-Z]/g,(e=>`_${e.toLowerCase()}`)):""})),h((function(e){return e?e.replace(/([-_][a-z])/g,(e=>e.toUpperCase().replace(/-|_/,""))):""})),new Set(["error","warn","info","debug","trace"]),new Set(["SignIn","SignUp"]);var f=o(888),m=Object.prototype.hasOwnProperty;const g=new WeakMap,y=()=>{},b=y(),v=Object,k=e=>e===b,w=e=>"function"==typeof e,P=(e,t)=>({...e,...t}),_=e=>w(e.then),O={},j={},S="undefined",C=typeof window!=S,A=typeof document!=S,U=C&&"Deno"in window,E=(e,t)=>{const r=g.get(e);return[()=>!k(t)&&e.get(t)||O,n=>{if(!k(t)){const o=e.get(t);t in j||(j[t]=o),r[5](t,P(o,n),o||O)}},r[6],()=>!k(t)&&t in j?j[t]:!k(t)&&e.get(t)||O]};let I=!0;const[M,x]=C&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[y,y],z={isOnline:()=>I,isVisible:()=>{const e=A&&document.visibilityState;return k(e)||"hidden"!==e}},T={initFocus:e=>(A&&document.addEventListener("visibilitychange",e),M("focus",e),()=>{A&&document.removeEventListener("visibilitychange",e),x("focus",e)}),initReconnect:e=>{const t=()=>{I=!0,e()},r=()=>{I=!1};return M("online",t),M("offline",r),()=>{x("online",t),x("offline",r)}}},R=!n.useId,L=!C||U,W=L?n.useEffect:n.useLayoutEffect,N="undefined"!=typeof navigator&&navigator.connection,B=!L&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),D=new WeakMap,F=(e,t)=>e===`[object ${t}]`;let $=0;const V=e=>{const t=typeof e,r=(n=e,v.prototype.toString.call(n));var n;const o=F(r,"Date"),i=F(r,"RegExp"),s=F(r,"Object");let a,l;if(v(e)!==e||o||i)a=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(a=D.get(e),a)return a;if(a=++$+"~",D.set(e,a),Array.isArray(e)){for(a="@",l=0;l<e.length;l++)a+=V(e[l])+",";D.set(e,a)}if(s){a="#";const t=v.keys(e).sort();for(;!k(l=t.pop());)k(e[l])||(a+=l+":"+V(e[l])+",");D.set(e,a)}}return a},K=e=>{if(w(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?V(e):"",t]};let q=0;const G=()=>++q;async function J(...e){const[t,r,n,o]=e,i=P({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const c=i.throwOnError;if(w(r)){const e=r,n=[],o=t.keys();for(const r of o)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(u))}return u(r);async function u(r){const[o]=K(r);if(!o)return;const[u,d]=E(t,o),[p,h,f,m]=g.get(t),y=()=>{const e=p[o];return(w(i.revalidate)?i.revalidate(u().data,r):!1!==i.revalidate)&&(delete f[o],delete m[o],e&&e[0])?e[0](2).then((()=>u().data)):u().data};if(e.length<3)return y();let v,P=n,O=!1;const j=G();h[o]=[j,0];const S=!k(l),C=u(),A=C.data,U=C._c,I=k(U)?A:U;if(S&&(l=w(l)?l(I,A):l,d({data:l,_c:I})),w(P))try{P=P(I)}catch(e){v=e,O=!0}if(P&&_(P)){if(P=await P.catch((e=>{v=e,O=!0})),j!==h[o][0]){if(O)throw v;return P}O&&S&&(e=>"function"==typeof a?a(e):!1!==a)(v)&&(s=!0,d({data:I,_c:b}))}if(s&&!O)if(w(s)){const e=s(P,I);d({data:e,error:b,_c:b})}else d({data:P,error:b,_c:b});if(h[o][1]=G(),Promise.resolve(y()).then((()=>{d({_c:b})})),!O)return P;if(c)throw v}}const H=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},Y=(e,t)=>{if(!g.has(e)){const r=P(T,t),n=Object.create(null),o=J.bind(b,e);let i=y;const s=Object.create(null),a=(e,t)=>{const r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const o=s[t];if(o)for(const e of o)e(r,n)},c=()=>{if(!g.has(e)&&(g.set(e,[n,Object.create(null),Object.create(null),Object.create(null),o,l,a]),!L)){const t=r.initFocus(setTimeout.bind(b,H.bind(b,n,0))),o=r.initReconnect(setTimeout.bind(b,H.bind(b,n,1)));i=()=>{t&&t(),o&&o(),g.delete(e)}}};return c(),[e,o,c,i]}return[e,g.get(e)[4]]},[X,Z]=Y(new Map),Q=P({onLoadingSlow:y,onSuccess:y,onError:y,onErrorRetry:(e,t,r,n,o)=>{const i=r.errorRetryCount,s=o.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;!k(i)&&s>i||setTimeout(n,a,o)},onDiscarded:y,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:B?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:B?5e3:3e3,compare:function e(t,r){var n,o;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((o=t.length)===r.length)for(;o--&&e(t[o],r[o]););return-1===o}if(!n||"object"==typeof t){for(n in o=0,t){if(m.call(t,n)&&++o&&!m.call(r,n))return!1;if(!(n in r)||!e(t[n],r[n]))return!1}return Object.keys(r).length===o}}return t!=t&&r!=r},isPaused:()=>!1,cache:X,mutate:Z,fallback:{}},z),ee=(e,t)=>{const r=P(e,t);if(t){const{use:n,fallback:o}=e,{use:i,fallback:s}=t;n&&i&&(r.use=n.concat(i)),o&&s&&(r.fallback=P(o,s))}return r},te=(0,n.createContext)({}),re="$inf$",ne=C&&window.__SWR_DEVTOOLS_USE__,oe=ne?window.__SWR_DEVTOOLS_USE__:[],ie=e=>w(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],se=oe.concat((e=>(t,r,n)=>e(t,r&&((...e)=>{const[n]=K(t),[,,,o]=g.get(X);if(n.startsWith(re))return r(...e);const i=o[n];return k(i)?r(...e):(delete o[n],i)}),n)));ne&&(window.__SWR_DEVTOOLS_REACT__=n);const ae=()=>{};ae(),new WeakMap;const le=n.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}}),ce={dedupe:!0},ue=v.defineProperty((e=>{const{value:t}=e,r=(0,n.useContext)(te),o=w(t),i=(0,n.useMemo)((()=>o?t(r):t),[o,r,t]),s=(0,n.useMemo)((()=>o?i:ee(r,i)),[o,r,i]),a=i&&i.provider,l=(0,n.useRef)(b);a&&!l.current&&(l.current=Y(a(s.cache||X),i));const c=l.current;return c&&(s.cache=c[0],s.mutate=c[1]),W((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,n.createElement)(te.Provider,P(e,{value:s}))}),"defaultValue",{value:Q}),de=(pe=(e,t,r)=>{const{cache:o,compare:i,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:p,keepPreviousData:h}=r,[m,y,v,O]=g.get(o),[j,A]=K(e),U=(0,n.useRef)(!1),I=(0,n.useRef)(!1),M=(0,n.useRef)(j),x=(0,n.useRef)(t),z=(0,n.useRef)(r),T=()=>z.current,N=()=>T().isVisible()&&T().isOnline(),[B,D,F,$]=E(o,j),V=(0,n.useRef)({}).current,q=k(a)?k(r.fallback)?b:r.fallback[j]:a,H=(e,t)=>{for(const r in V){const n=r;if("data"===n){if(!i(e[n],t[n])){if(!k(e[n]))return!1;if(!i(oe,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},Y=(0,n.useMemo)((()=>{const e=!!j&&!!t&&(k(l)?!T().isPaused()&&!s&&!1!==c:l),r=t=>{const r=P(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=B(),o=$(),i=r(n),a=n===o?i:r(o);let u=i;return[()=>{const e=r(B());return H(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>a]}),[o,j]),X=(0,f.useSyncExternalStore)((0,n.useCallback)((e=>F(j,((t,r)=>{H(r,t)||e()}))),[o,j]),Y[0],Y[1]),Z=!U.current,Q=m[j]&&m[j].length>0,ee=X.data,te=k(ee)?q&&_(q)?le(q):q:ee,re=X.error,ne=(0,n.useRef)(te),oe=h?k(ee)?k(ne.current)?te:ne.current:ee:te,ie=!(Q&&!k(re))&&(Z&&!k(l)?l:!T().isPaused()&&(s?!k(te)&&c:k(te)||c)),se=!!(j&&t&&Z&&ie),ae=k(X.isValidating)?se:X.isValidating,ue=k(X.isLoading)?se:X.isLoading,de=(0,n.useCallback)((async e=>{const t=x.current;if(!j||!t||I.current||T().isPaused())return!1;let n,o,s=!0;const a=e||{},l=!v[j]||!a.dedupe,c=()=>R?!I.current&&j===M.current&&U.current:j===M.current,u={isValidating:!1,isLoading:!1},d=()=>{D(u)},p=()=>{const e=v[j];e&&e[1]===o&&delete v[j]},h={isValidating:!0};k(B().data)&&(h.isLoading=!0);try{if(l&&(D(h),r.loadingTimeout&&k(B().data)&&setTimeout((()=>{s&&c()&&T().onLoadingSlow(j,r)}),r.loadingTimeout),v[j]=[t(A),G()]),[n,o]=v[j],n=await n,l&&setTimeout(p,r.dedupingInterval),!v[j]||v[j][1]!==o)return l&&c()&&T().onDiscarded(j),!1;u.error=b;const e=y[j];if(!k(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return d(),l&&c()&&T().onDiscarded(j),!1;const a=B().data;u.data=i(a,n)?a:n,l&&c()&&T().onSuccess(n,j,r)}catch(e){p();const t=T(),{shouldRetryOnError:r}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,j,t),(!0===r||w(r)&&r(e))&&(T().revalidateOnFocus&&T().revalidateOnReconnect&&!N()||t.onErrorRetry(e,j,t,(e=>{const t=m[j];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return s=!1,d(),!0}),[j,o]),pe=(0,n.useCallback)(((...e)=>J(o,M.current,...e)),[]);if(W((()=>{x.current=t,z.current=r,k(ee)||(ne.current=ee)})),W((()=>{if(!j)return;const e=de.bind(b,ce);let t=0;if(T().revalidateOnFocus){const e=Date.now();t=e+T().focusThrottleInterval}const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(j,m,((r,n={})=>{if(0==r){const r=Date.now();T().revalidateOnFocus&&r>t&&N()&&(t=r+T().focusThrottleInterval,e())}else if(1==r)T().revalidateOnReconnect&&N()&&e();else{if(2==r)return de();if(3==r)return de(n)}}));return I.current=!1,M.current=j,U.current=!0,D({_k:A}),ie&&(v[j]||(k(te)||L?e():(n=e,C&&typeof window.requestAnimationFrame!=S?window.requestAnimationFrame(n):setTimeout(n,1)))),()=>{I.current=!0,r()};var n}),[j]),W((()=>{let e;function t(){const t=w(u)?u(B().data):u;t&&-1!==e&&(e=setTimeout(r,t))}function r(){B().error||!d&&!T().isVisible()||!p&&!T().isOnline()?t():de(ce).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,d,p,j]),(0,n.useDebugValue)(oe),s&&k(te)&&j){if(!R&&L)throw new Error("Fallback data is required when using Suspense in SSR.");x.current=t,z.current=r,I.current=!1;const e=O[j];if(!k(e)){const t=pe(e);le(t)}if(!k(re))throw re;{const e=de(ce);k(oe)||(e.status="fulfilled",e.value=!0),le(e)}}return{mutate:pe,get data(){return V.data=!0,oe},get error(){return V.error=!0,re},get isValidating(){return V.isValidating=!0,ae},get isLoading(){return V.isLoading=!0,ue}}},function(...e){const t=P(Q,(0,n.useContext)(te)),[r,o,i]=ie(e),s=ee(t,i);let a=pe;const{use:l}=s,c=(l||[]).concat(se);for(let e=c.length;e--;)a=c[e](a);return a(r,o||s.fetcher||null,s)});var pe;const he=()=>{},fe=he(),me=Object,ge=e=>e===fe,ye=new WeakMap,be=(e,t)=>e===`[object ${t}]`;let ve=0;const ke=e=>{const t=typeof e,r=(n=e,me.prototype.toString.call(n));var n;const o=be(r,"Date"),i=be(r,"RegExp"),s=be(r,"Object");let a,l;if(me(e)!==e||o||i)a=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(a=ye.get(e),a)return a;if(a=++ve+"~",ye.set(e,a),Array.isArray(e)){for(a="@",l=0;l<e.length;l++)a+=ke(e[l])+",";ye.set(e,a)}if(s){a="#";const t=me.keys(e).sort();for(;!ge(l=t.pop());)ge(e[l])||(a+=l+":"+ke(e[l])+",");ye.set(e,a)}}return a},we=Promise.resolve(),Pe=(_e=de,Oe=e=>(t,r,o)=>{const i=(0,n.useRef)(!1),{cache:s,initialSize:a=1,revalidateAll:l=!1,persistSize:c=!1,revalidateFirstPage:u=!0,revalidateOnMount:d=!1,parallel:p=!1}=o,[,,,h]=g.get(X);let m;try{m=(e=>(e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?ke(e):"",t]})(e?e(0,null):null)[0])(t),m&&(m=re+m)}catch(e){}const[y,v,P]=E(s,m),_=(0,n.useCallback)((()=>k(y()._l)?a:y()._l),[s,m,a]);(0,f.useSyncExternalStore)((0,n.useCallback)((e=>m?P(m,(()=>{e()})):()=>{}),[s,m]),_,_);const O=(0,n.useCallback)((()=>{const e=y()._l;return k(e)?a:e}),[m,a]),j=(0,n.useRef)(O());W((()=>{i.current?m&&v({_l:c?j.current:O()}):i.current=!0}),[m,s]);const S=d&&!i.current,C=e(m,(async e=>{const n=y()._i,i=y()._r;v({_r:b});const a=[],c=O(),[d]=E(s,e),f=d().data,m=[];let g=null;for(let e=0;e<c;++e){const[c,d]=K(t(e,p?null:g));if(!c)break;const[y,b]=E(s,c);let v=y().data;const w=l||n||k(v)||u&&!e&&!k(f)||S||f&&!k(f[e])&&!o.compare(f[e],v);if(r&&("function"==typeof i?i(v,d):w)){const t=async()=>{if(c in h){const e=h[c];delete h[c],v=await e}else v=await r(d);b({data:v,_k:d}),a[e]=v};p?m.push(t):await t()}else a[e]=v;p||(g=v)}return p&&await Promise.all(m.map((e=>e()))),v({_i:b}),a}),o),A=(0,n.useCallback)((function(e,t){const r="boolean"==typeof t?{revalidate:t}:t||{},n=!1!==r.revalidate;return m?(n&&(k(e)?v({_i:!0,_r:r.revalidate}):v({_i:!1,_r:r.revalidate})),arguments.length?C.mutate(e,{...r,revalidate:n}):C.mutate()):we}),[m,s]),U=(0,n.useCallback)((e=>{if(!m)return we;const[,r]=E(s,m);let n;if(w(e)?n=e(O()):"number"==typeof e&&(n=e),"number"!=typeof n)return we;r({_l:n}),j.current=n;const o=[],[i]=E(s,m);let a=null;for(let e=0;e<n;++e){const[r]=K(t(e,a)),[n]=E(s,r),l=r?n().data:b;if(k(l))return A(i().data);o.push(l),a=l}return A(o)}),[m,s,A,O]);return{size:O(),setSize:U,mutate:A,get data(){return C.data},get error(){return C.error},get isValidating(){return C.isValidating},get isLoading(){return C.isLoading}}},(...e)=>{const[t,r,n]=ie(e),o=(n.use||[]).concat(Oe);return _e(t,r,{...n,use:o})});var _e,Oe,je=Object.prototype.hasOwnProperty;function Se(e,t,r){for(r of e.keys())if(Ce(r,t))return r}function Ce(e,t){var r,n,o;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--&&Ce(e[n],t[n]););return-1===n}if(r===Set){if(e.size!==t.size)return!1;for(n of e){if((o=n)&&"object"==typeof o&&!(o=Se(t,o)))return!1;if(!t.has(o))return!1}return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e){if((o=n[0])&&"object"==typeof o&&!(o=Se(t,o)))return!1;if(!Ce(n[1],t.get(o)))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(je.call(e,r)&&++n&&!je.call(t,r))return!1;if(!(r in t)||!Ce(e[r],t[r]))return!1}return Object.keys(t).length===n}}return e!=e&&t!=t}function Ae(e,t){if(!e)throw"string"==typeof t?new Error(t):new Error(`${t.displayName} not found`)}const Ue=(e,t)=>{const{assertCtxFn:r=Ae}=t||{},o=n.createContext(void 0);return o.displayName=e,[o,()=>{const t=n.useContext(o);return r(t,`${e} not found`),t.value},()=>{const e=n.useContext(o);return e?e.value:{}}]};function Ee({swrConfig:e,children:t}){return n.createElement(ue,{value:e},t)}const[Ie,Me]=Ue("ClerkInstanceContext"),[xe,ze]=Ue("UserContext"),[Te,Re]=Ue("ClientContext"),[Le,We]=Ue("SessionContext"),[Ne,Be]=(n.createContext({}),Ue("CheckoutContext")),[De,Fe]=Ue("OrganizationContext"),$e=({children:e,organization:t,swrConfig:r})=>n.createElement(Ee,{swrConfig:r},n.createElement(De.Provider,{value:{value:{organization:t}}},e));function Ve(e){if(!n.useContext(Ie)){if("function"==typeof e)return void e();throw new Error(`${e} can only be used within the <ClerkProvider /> component.\n\nPossible fixes:\n1. Ensure that the <ClerkProvider /> is correctly wrapping your application where this component is used.\n2. 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.\n\nLearn more: https://clerk.com/docs/components/clerk-provider`.trim())}}function Ke(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 qe(e){const{queryKey:t}=e;return{type:t[0],...t[2],...t[3].args}}function Ge(e,t){const r=new Set(Object.keys(t)),n={};for(const t of Object.keys(e))r.has(t)||(n[t]=e[t]);return n}const Je={dedupingInterval:6e4,focusThrottleInterval:12e4},He={...Je,revalidateFirstPage:!1};"undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const Ye=Ce;function Xe({hookName:e,resourceType:t,useFetcher:r,options:o}){return function(i){const{for:s,enabled:a,...l}=i||{},c=s||"user";Ve(e);const u=r(c),d=((e,t)=>{const r="boolean"==typeof e&&e,o=(0,n.useRef)(r?t.initialPage:e?.initialPage??t.initialPage),i=(0,n.useRef)(r?t.pageSize:e?.pageSize??t.pageSize),s={};for(const n of Object.keys(t))s[n]=r?t[n]:e?.[n]??t[n];return{...s,initialPage:o.current,pageSize:i.current}})(l,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,__experimental_mode:void 0}),p=Me(),h=ze(),{organization:f}=Fe();p.telemetry?.record({event:"METHOD_CALLED",eventSamplingRate:.1,payload:{method:e}});const m="organization"===c,g=function(e){const t=Me(),r=e?.enabled??!0,n=t.__unstable__environment,o=ze(),{organization:i}=Fe(),s="organization"===e?.for,a=s?n?.commerceSettings.billing.organization.enabled:n?.commerceSettings.billing.user.enabled,l=!(e?.authenticated??1)||(!s||Boolean(i?.id))&&Boolean(o?.id);return a&&r&&t.loaded&&l}({for:c,enabled:a,authenticated:!o?.unauthenticated}),y=void 0===l?void 0:{initialPage:d.initialPage,pageSize:d.pageSize,...o?.unauthenticated?{}:m?{orgId:f?.id}:{}},b=!!y&&p.loaded&&!!g;return(e=>{const{fetcher:t,config:r,keys:o}=e,[i,s]=(0,n.useState)(r.initialPage??1),a=(0,n.useRef)(r.initialPage??1),l=(0,n.useRef)(r.pageSize??10),c=r.enabled??!0,u="cache"===r.__experimental_mode,d=r.infinite??!1,p=r.keepPreviousData??!1,h=r.isSignedIn,f={...qe(o),initialPage:i,pageSize:l.current},m=function(e){const t=(0,n.useRef)(e),r=(0,n.useRef)(null);return t.current!==e&&(r.current=t.current,t.current=e),r.current}(h),g=!d&&c&&(!!u||!!t),{data:y,isValidating:b,isLoading:v,error:k,mutate:w}=de("boolean"==typeof h?!0===m&&!1===h||h&&g?f:null:g?f:null,!u&&t?e=>!1===h||!1===g?null:t(Ge(e,{type:o.queryKey[0],...o.queryKey[2]})):null,{keepPreviousData:p,...Je}),{data:P,isLoading:_,isValidating:O,error:j,size:S,setSize:C,mutate:A}=Pe((e=>d&&c&&!1!==h?{...qe(o),initialPage:a.current+e,pageSize:l.current}:null),(e=>{const r=Ge(e,{type:o.queryKey[0],...o.queryKey[2]});return t?.(r)}),He),U=(0,n.useMemo)((()=>d?S:i),[d,S,i]),E=(0,n.useCallback)((e=>{if(!d)return s(e);C(e)}),[C,d]),I=(0,n.useMemo)((()=>d?P?.map((e=>e?.data)).flat()??[]:y?.data??[]),[d,y,P]),M=(0,n.useMemo)((()=>d?P?.[P?.length-1]?.total_count||0:y?.total_count??0),[d,y,P]),x=d?_:v,z=d?O:b,T=(d?j:k)??null,R=!!T,L=(0,n.useCallback)((()=>{E((e=>Math.max(0,e+1)))}),[E]),W=(0,n.useCallback)((()=>{E((e=>Math.max(0,e-1)))}),[E]),N=(a.current-1)*l.current;return{data:I,count:M,error:T,isLoading:x,isFetching:z,isError:R,page:U,pageCount:Math.ceil((M-N)/l.current),fetchPage:E,fetchNext:L,fetchPrevious:W,hasNextPage:M-N*l.current>U*l.current,hasPreviousPage:(U-1)*l.current>N*l.current,revalidate:d?()=>A():()=>w(),setData:d?e=>A(e,{revalidate:!1}):e=>w(e,{revalidate:!1})}})({fetcher:u,config:{keepPreviousData:d.keepPreviousData,infinite:d.infinite,enabled:b,...o?.unauthenticated?{}:{isSignedIn:null!==h},__experimental_mode:d.__experimental_mode,initialPage:d.initialPage,pageSize:d.pageSize},keys:Ke({stablePrefix:t,authenticated:!o?.unauthenticated,tracked:o?.unauthenticated?{for:c}:{userId:h?.id,...m?{_orgId:f?.id}:{}},untracked:{args:y}})})}}Xe({hookName:"useStatements",resourceType:"billing-statements",useFetcher:()=>{const e=Me();if(e.loaded)return e.billing.getStatements}}),Xe({hookName:"usePaymentAttempts",resourceType:"billing-payment-attempts",useFetcher:()=>{const e=Me();if(e.loaded)return e.billing.getPaymentAttempts}}),Xe({hookName:"usePaymentMethods",resourceType:"billing-payment-methods",useFetcher:e=>{const{organization:t}=Fe(),r=ze();return"organization"===e?t?.getPaymentMethods:r?.getPaymentMethods}}),Xe({hookName:"usePlans",resourceType:"billing-plans",useFetcher:e=>{const t=Me();if(t.loaded)return r=>t.billing.getPlans({...r,for:e})},options:{unauthenticated:!0}});const Ze=(e,t,r)=>{const o=!!r,i=(0,n.useRef)(r);(0,n.useEffect)((()=>{i.current=r}),[r]),(0,n.useEffect)((()=>{if(!o||!e)return()=>{};const r=(...e)=>{i.current&&i.current(...e)};return e.on(t,r),()=>{e.off(t,r)}}),[o,t,e,i])},Qe=n.createContext(null);Qe.displayName="ElementsContext";const et=e=>null!==e&&"object"==typeof e,tt="[object Object]",rt=(e,t)=>{if(!et(e)||!et(t))return e===t;const r=Array.isArray(e);if(r!==Array.isArray(t))return!1;const n=Object.prototype.toString.call(e)===tt;if(n!==(Object.prototype.toString.call(t)===tt))return!1;if(!n&&!r)return e===t;const o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;const s={};for(let e=0;e<o.length;e+=1)s[o[e]]=!0;for(let e=0;e<i.length;e+=1)s[i[e]]=!0;const a=Object.keys(s);if(a.length!==o.length)return!1;const l=e,c=t;return a.every((e=>rt(l[e],c[e])))},nt=e=>((e,t)=>{if(!e)throw new Error(`Could not find Elements context; You need to wrap the part of your app that ${t} in an <Elements> provider.`);return e})(n.useContext(Qe),e);((e,t)=>{const r=`${o=e,o.charAt(0).toUpperCase()+o.slice(1)}Element`;var o;const i=t?e=>{nt(`mounts <${r}>`);const{id:t,className:o}=e;return n.createElement("div",{id:t,className:o})}:({id:t,className:o,fallback:i,options:s={},onBlur:a,onFocus:l,onReady:c,onChange:u,onEscape:d,onClick:p,onLoadError:h,onLoaderStart:f,onNetworksChange:m,onConfirm:g,onCancel:y,onShippingAddressChange:b,onShippingRateChange:v})=>{const k=nt(`mounts <${r}>`),w="elements"in k?k.elements:null,[P,_]=n.useState(null),O=n.useRef(null),j=n.useRef(null),[S,C]=(0,n.useState)(!1);let A;Ze(P,"blur",a),Ze(P,"focus",l),Ze(P,"escape",d),Ze(P,"click",p),Ze(P,"loaderror",h),Ze(P,"loaderstart",f),Ze(P,"networkschange",m),Ze(P,"confirm",g),Ze(P,"cancel",y),Ze(P,"shippingaddresschange",b),Ze(P,"shippingratechange",v),Ze(P,"change",u),c&&(A=()=>{C(!0),c(P)}),Ze(P,"ready",A),n.useLayoutEffect((()=>{if(null===O.current&&null!==j.current&&w){let t=null;w&&(t=w.create(e,s)),O.current=t,_(t),t&&t.mount(j.current)}}),[w,s]);const U=(e=>{const t=(0,n.useRef)(e);return(0,n.useEffect)((()=>{t.current=e}),[e]),t.current})(s);return n.useEffect((()=>{if(!O.current)return;const e=((e,t,r)=>et(e)?Object.keys(e).reduce(((n,o)=>{const i=!et(t)||!rt(e[o],t[o]);return r.includes(o)?(i&&console.warn(`Unsupported prop change: options.${o} is not a mutable property.`),n):i?{...n||{},[o]:e[o]}:n}),null):null)(s,U,["paymentRequest"]);e&&"update"in O.current&&O.current.update(e)}),[s,U]),n.useLayoutEffect((()=>()=>{if(O.current&&"function"==typeof O.current.destroy)try{O.current.destroy(),O.current=null}catch{}}),[]),n.createElement(n.Fragment,null,!S&&i,n.createElement("div",{id:t,style:{height:S?"unset":"0px",visibility:S?"visible":"hidden"},className:o,ref:j}))};i.displayName=r,i.__elementType=e})("payment","undefined"==typeof window);const[ot,it]=Ue("PaymentElementContext"),[st,at]=Ue("StripeUtilsContext"),lt=new Set,ct=(e,t,r)=>{const n=(()=>{try{return!1}catch{}return!1})()||(()=>{try{return!0}catch{}return!1})(),o=r??e;lt.has(o)||n||(lt.add(o),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release.\n${t}`))};var ut=d({packageName:"@clerk/clerk-react"}),[dt,pt]=Ue("AuthContext"),ht=Ie,ft=Me,mt="Unsupported usage of isSatellite, domain or proxyUrl. The usage of isSatellite, domain or proxyUrl as function is not supported in non-browser environments.",gt=(e,t)=>{const r=("string"==typeof t?t:null==t?void 0:t.component)||e.displayName||e.name||"Component";e.displayName=r;const o="string"==typeof t?void 0:t,i=t=>{var i;i=r||"withClerk",Ve((()=>{ut.throwMissingClerkProviderError({source:i})}));const s=ft();return s.loaded||(null==o?void 0:o.renderWhileLoading)?n.createElement(e,{...t,component:r,clerk:s}):null};return i.displayName=`withClerk(${r})`,i},yt=(gt((({clerk:e,...t})=>{const{client:r,session:o}=e,i=r.signedInSessions?r.signedInSessions.length>0:r.activeSessions&&r.activeSessions.length>0;return n.useEffect((()=>{null===o&&i?e.redirectToAfterSignOut():e.redirectToSignIn(t)}),[]),null}),"RedirectToSignIn"),gt((({clerk:e,...t})=>(n.useEffect((()=>{e.redirectToSignUp(t)}),[]),null)),"RedirectToSignUp"),gt((({clerk:e})=>(n.useEffect((()=>{ct("RedirectToUserProfile","Use the `redirectToUserProfile()` method instead."),e.redirectToUserProfile()}),[]),null)),"RedirectToUserProfile"),gt((({clerk:e})=>(n.useEffect((()=>{ct("RedirectToOrganizationProfile","Use the `redirectToOrganizationProfile()` method instead."),e.redirectToOrganizationProfile()}),[]),null)),"RedirectToOrganizationProfile"),gt((({clerk:e})=>(n.useEffect((()=>{ct("RedirectToCreateOrganization","Use the `redirectToCreateOrganization()` method instead."),e.redirectToCreateOrganization()}),[]),null)),"RedirectToCreateOrganization"),gt((({clerk:e,...t})=>(n.useEffect((()=>{e.handleRedirectCallback(t)}),[]),null)),"AuthenticateWithRedirectCallback"),e=>{throw TypeError(e)}),bt=(e,t,r)=>t.has(e)||yt("Cannot "+r),vt=(e,t,r)=>(bt(e,t,"read from private field"),r?r.call(e):t.get(e)),kt=(e,t,r)=>t.has(e)?yt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),wt=(e,t,r,n)=>(bt(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Pt=(e,t,r)=>(bt(e,t,"access private method"),r);const _t={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},Ot=async e=>new Promise((t=>setTimeout(t,e))),jt=(e,t)=>t?e*(1+Math.random()):e;async function St(e="",t){const{async:r,defer:n,beforeLoad:o,crossOrigin:i,nonce:s}=t||{};return(async(e,t={})=>{let r=0;const{shouldRetry:n,initialDelay:o,maxDelayBetweenRetries:i,factor:s,retryImmediately:a,jitter:l,onBeforeRetry:c}={..._t,...t},u=(e=>{let t=0;return async()=>{await Ot((()=>{const r=e.initialDelay,n=e.factor;let o=r*Math.pow(n,t);return o=jt(o,e.jitter),Math.min(e.maxDelayBetweenRetries||o,o)})()),t++}})({initialDelay:o,maxDelayBetweenRetries:i,factor:s,jitter:l});for(;;)try{return await e()}catch(e){if(r++,!n(e,r))throw e;c&&await c(r),a&&1===r?await Ot(jt(100,l)):await u()}})((()=>new Promise(((t,a)=>{e||a(new Error("loadScript cannot be called without a src")),document&&document.body||a(new Error("loadScript cannot be called when document does not exist"));const l=document.createElement("script");i&&l.setAttribute("crossorigin",i),l.async=r||!1,l.defer=n||!1,l.addEventListener("load",(()=>{l.remove(),t(l)})),l.addEventListener("error",(t=>{l.remove(),a(t.error??new Error(`failed to load script: ${e}`))})),l.src=e,l.nonce=s,o?.(l),document.body.appendChild(l)}))),{shouldRetry:(e,t)=>t<=5})}const Ct=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],At=e=>"undefined"!=typeof atob&&"function"==typeof atob?atob(e):"undefined"!=typeof global&&global.Buffer?new global.Buffer(e,"base64").toString():e,Ut="pk_live_";function Et(e){if(!e.endsWith("$"))return!1;const t=e.slice(0,-1);return!t.includes("$")&&t.includes(".")}function It(e,t={}){if(!(e=e||"")||!Mt(e)){if(t.fatal&&!e)throw new Error("Publishable key is missing. Ensure that your publishable key is correctly configured. Double-check your environment configuration for your keys, or access them here: https://dashboard.clerk.com/last-active?path=api-keys");if(t.fatal&&!Mt(e))throw new Error("Publishable key not valid.");return null}const r=e.startsWith(Ut)?"production":"development";let n;try{n=At(e.split("_")[2])}catch{if(t.fatal)throw new Error("Publishable key not valid: Failed to decode key.");return null}if(!Et(n)){if(t.fatal)throw new Error("Publishable key not valid: Decoded key has invalid format.");return null}let o=n.slice(0,-1);return t.proxyUrl?o=t.proxyUrl:"development"!==r&&t.domain&&t.isSatellite&&(o=`clerk.${t.domain}`),{instanceType:r,frontendApi:o}}function Mt(e=""){try{if(!e.startsWith(Ut)&&!e.startsWith("pk_test_"))return!1;const t=e.split("_");if(3!==t.length)return!1;const r=t[2];return!!r&&Et(At(r))}catch{return!1}}function xt(e){return e.startsWith("/")}const zt="failed_to_load_clerk_js",Tt="Failed to load Clerk",{isDevOrStagingUrl:Rt}=function(){const e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;const r="string"==typeof t?t:t.hostname;let n=e.get(r);return void 0===n&&(n=Ct.some((e=>r.endsWith(e))),e.set(r,n)),n}}}(),Lt=d({packageName:"@clerk/shared"});function Wt(){if("undefined"==typeof window||!window.Clerk)return!1;const e=window.Clerk;return"object"==typeof e&&"function"==typeof e.load}function Nt(e,t){return new Promise(((r,n)=>{let o=!1;const i=(e,t)=>{clearTimeout(e),clearInterval(t)};t?.addEventListener("error",(()=>{i(a,l),n(new p(Tt,{code:zt}))}));const s=()=>{o||Wt()&&(o=!0,i(a,l),r(null))},a=setTimeout((()=>{o||(o=!0,i(a,l),Wt()?r(null):n(new p(Tt,{code:"failed_to_load_clerk_js_timeout"})))}),e);s();const l=setInterval((()=>{o?clearInterval(l):s()}),100)}))}const Bt=e=>{const{clerkJSUrl:t,clerkJSVariant:r,clerkJSVersion:n,proxyUrl:o,domain:i,publishableKey:s}=e;if(t)return t;let a="";var l,c;a=o&&(!(c=o)||function(e){return/^http(s)?:\/\//.test(e||"")}(c)||xt(c))?(l=o,l?xt(l)?new URL(l,window.location.origin).toString():l:"").replace(/http(s)?:\/\//,""):i&&!Rt(It(s)?.frontendApi||"")?function(e){if(!e)return"";let t;if(e.match(/^(clerk\.)+\w*$/))t=/(clerk\.)*(?=clerk\.)/;else{if(e.match(/\.clerk.accounts/))return e;t=/^(clerk\.)*/gi}return`clerk.${e.replace(t,"")}`}(i):It(s)?.frontendApi||"";const u=r?`${r.replace(/\.+$/,"")}.`:"",d=((e,t="5.113.0")=>{if(e)return e;const r=(e=>e.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/)?.[1])(t);return r?"snapshot"===r?"5.113.0":r:(e=>e.trim().replace(/^v/,"").split(".")[0])(t)})(n);return`https://${a}/npm/@clerk/clerk-js@${d}/dist/clerk.${u}browser.js`},Dt=e=>t=>{const r=(e=>{const 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})(e);for(const e in r)t.setAttribute(e,r[e])},Ft=e=>{(()=>{try{return!1}catch{}return!1})()&&console.error(`Clerk: ${e}`)};var $t=o(845);const Vt=(e,...t)=>{const r={...e};for(const e of t)delete r[e];return r};function Kt(){return"undefined"!=typeof window}new 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"].join("|"),"i");const qt=(e,t,r,n,o)=>{const{notify:i}=o||{};let s=e.get(r);s||(s=[],e.set(r,s)),s.push(n),i&&t.has(r)&&n(t.get(r))},Gt=(e,t,r)=>(e.get(t)||[]).map((e=>e(r))),Jt=(e,t,r)=>{const n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},Ht="status";function Yt(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 Xt=e=>t=>{try{return n.Children.only(e)}catch{return ut.throw((e=>`You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`)(t))}},Zt=(e,t)=>(e||(e=t),"string"==typeof e&&(e=n.createElement("button",null,e)),e),Qt=e=>(...t)=>{if(e&&"function"==typeof e)return e(...t)},er=new Map,tr=e=>{const t=Array(e.length).fill(null),[r,o]=(0,n.useState)(t);return e.map(((e,t)=>({id:e.id,mount:e=>o((r=>r.map(((r,n)=>n===t?e:r)))),unmount:()=>o((e=>e.map(((e,r)=>r===t?null:e)))),portal:()=>n.createElement(n.Fragment,null,r[t]?(0,$t.createPortal)(e.component,r[t]):null)})))},rr=(e,t)=>!!e&&n.isValidElement(e)&&(null==e?void 0:e.type)===t,nr=(e,t)=>sr({children:e,reorderItemsLabels:["account","security"],LinkComponent:kr,PageComponent:vr,MenuItemsComponent:jr,componentName:"UserProfile"},t),or=(e,t)=>sr({children:e,reorderItemsLabels:["general","members"],LinkComponent:Ur,PageComponent:Ar,componentName:"OrganizationProfile"},t),ir=e=>{const t=[],r=[Ur,Ar,jr,vr,kr];return n.Children.forEach(e,(e=>{r.some((t=>rr(e,t)))||t.push(e)})),t},sr=(e,t)=>{const{children:r,LinkComponent:o,PageComponent:i,MenuItemsComponent:s,reorderItemsLabels:a,componentName:l}=e,{allowForAnyChildren:c=!1}=t||{},u=[];n.Children.forEach(r,(e=>{if(!rr(e,i)&&!rr(e,o)&&!rr(e,s))return void(e&&!c&&Ft((e=>`<${e} /> can only accept <${e}.Page /> and <${e}.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.`)(l)));const{props:t}=e,{children:r,label:n,url:d,labelIcon:p}=t;if(rr(e,i))if(ar(t,a))u.push({label:n});else{if(!lr(t))return void Ft((e=>`Missing props. <${e}.Page /> component requires the following props: url, label, labelIcon, alongside with children to be rendered inside the page.`)(l));u.push({label:n,labelIcon:p,children:r,url:d})}if(rr(e,o)){if(!cr(t))return void Ft((e=>`Missing props. <${e}.Link /> component requires the following props: url, label and labelIcon.`)(l));u.push({label:n,labelIcon:p,url:d})}}));const d=[],p=[],h=[];u.forEach(((e,t)=>{if(lr(e))return d.push({component:e.children,id:t}),void p.push({component:e.labelIcon,id:t});cr(e)&&h.push({component:e.labelIcon,id:t})}));const f=tr(d),m=tr(p),g=tr(h),y=[],b=[];return u.forEach(((e,t)=>{if(ar(e,a))y.push({label:e.label});else{if(lr(e)){const{portal:r,mount:n,unmount:o}=f.find((e=>e.id===t)),{portal:i,mount:s,unmount:a}=m.find((e=>e.id===t));return y.push({label:e.label,url:e.url,mount:n,unmount:o,mountIcon:s,unmountIcon:a}),b.push(r),void b.push(i)}if(cr(e)){const{portal:r,mount:n,unmount:o}=g.find((e=>e.id===t));return y.push({label:e.label,url:e.url,mountIcon:n,unmountIcon:o}),void b.push(r)}}})),{customPages:y,customPagesPortals:b}},ar=(e,t)=>{const{children:r,label:n,url:o,labelIcon:i}=e;return!r&&!o&&!i&&t.some((e=>e===n))},lr=e=>{const{children:t,label:r,url:n,labelIcon:o}=e;return!!(t&&n&&o&&r)},cr=e=>{const{children:t,label:r,url:n,labelIcon:o}=e;return!(t||!n||!o||!r)},ur=(e,t)=>{const{children:r,label:n,onClick:o,labelIcon:i}=e;return!r&&!o&&!i&&t.some((e=>e===n))},dr=e=>{const{label:t,labelIcon:r,onClick:n,open:o}=e;return!(!r||!t||"function"!=typeof n&&"string"!=typeof o)},pr=e=>{const{label:t,href:r,labelIcon:n}=e;return!!r&&!!n&&!!t};function hr(e){const t=(0,n.useRef)(),[r,o]=(0,n.useState)("rendering");return(0,n.useEffect)((()=>{if(!e)throw new Error("Clerk: no component name provided, unable to detect mount.");"undefined"==typeof window||t.current||(t.current=function(e){const{root:t=(null==document?void 0:document.body),selector:r,timeout:n=0}=e;return new Promise(((e,o)=>{if(!t)return void o(new Error("No root element provided"));let i=t;if(r&&(i=null==t?void 0:t.querySelector(r)),(null==i?void 0:i.childElementCount)&&i.childElementCount>0)return void e();const s=new MutationObserver((n=>{for(const o of n)if("childList"===o.type&&(!i&&r&&(i=null==t?void 0:t.querySelector(r)),(null==i?void 0:i.childElementCount)&&i.childElementCount>0))return s.disconnect(),void e()}));s.observe(t,{childList:!0,subtree:!0}),n>0&&setTimeout((()=>{s.disconnect(),o(new Error("Timeout waiting for element children"))}),n)}))}({selector:`[data-clerk-component="${e}"]`}).then((()=>{o("rendered")})).catch((()=>{o("error")})))}),[e]),r}var fr=e=>"mount"in e,mr=e=>"open"in e,gr=e=>null==e?void 0:e.map((({mountIcon:e,unmountIcon:t,...r})=>r)),yr=class extends n.PureComponent{constructor(){super(...arguments),this.rootRef=n.createRef()}componentDidUpdate(e){var t,r,n,o;if(!fr(e)||!fr(this.props))return;const i=Vt(e.props,"customPages","customMenuItems","children"),s=Vt(this.props.props,"customPages","customMenuItems","children"),a=(null==(t=i.customPages)?void 0:t.length)!==(null==(r=s.customPages)?void 0:r.length),l=(null==(n=i.customMenuItems)?void 0:n.length)!==(null==(o=s.customMenuItems)?void 0:o.length),c=gr(e.props.customMenuItems),u=gr(this.props.props.customMenuItems);Ye(i,s)&&Ye(c,u)&&!a&&!l||this.rootRef.current&&this.props.updateProps({node:this.rootRef.current,props:this.props.props})}componentDidMount(){this.rootRef.current&&(fr(this.props)&&this.props.mount(this.rootRef.current,this.props.props),mr(this.props)&&this.props.open(this.props.props))}componentWillUnmount(){this.rootRef.current&&(fr(this.props)&&this.props.unmount(this.rootRef.current),mr(this.props)&&this.props.close())}render(){const{hideRootHtmlElement:e=!1}=this.props,t={ref:this.rootRef,...this.props.rootProps,...this.props.component&&{"data-clerk-component":this.props.component}};return n.createElement(n.Fragment,null,!e&&n.createElement("div",{...t}),this.props.children)}},br=e=>{var t,r;return n.createElement(n.Fragment,null,null==(t=null==e?void 0:e.customPagesPortals)?void 0:t.map(((e,t)=>(0,n.createElement)(e,{key:t}))),null==(r=null==e?void 0:e.customMenuItemsPortals)?void 0:r.map(((e,t)=>(0,n.createElement)(e,{key:t}))))};function vr({children:e}){return Ft("<UserProfile.Page /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`."),n.createElement(n.Fragment,null,e)}function kr({children:e}){return Ft("<UserProfile.Link /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`."),n.createElement(n.Fragment,null,e)}gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}};return n.createElement(n.Fragment,null,i&&r,e.loaded&&n.createElement(yr,{component:t,mount:e.mountSignIn,unmount:e.unmountSignIn,updateProps:e.__unstable__updateProps,props:o,rootProps:s}))}),{component:"SignIn",renderWhileLoading:!0}),gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}};return n.createElement(n.Fragment,null,i&&r,e.loaded&&n.createElement(yr,{component:t,mount:e.mountSignUp,unmount:e.unmountSignUp,updateProps:e.__unstable__updateProps,props:o,rootProps:s}))}),{component:"SignUp",renderWhileLoading:!0});var wr=gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}},{customPages:a,customPagesPortals:l}=nr(o.children);return n.createElement(n.Fragment,null,i&&r,n.createElement(yr,{component:t,mount:e.mountUserProfile,unmount:e.unmountUserProfile,updateProps:e.__unstable__updateProps,props:{...o,customPages:a},rootProps:s},n.createElement(br,{customPagesPortals:l})))}),{component:"UserProfile",renderWhileLoading:!0}),Pr=Object.assign(wr,{Page:vr,Link:kr}),_r=(0,n.createContext)({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),Or=gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}},{customPages:a,customPagesPortals:l}=nr(o.children,{allowForAnyChildren:!!o.__experimental_asProvider}),c=Object.assign(o.userProfileProps||{},{customPages:a}),{customMenuItems:u,customMenuItemsPortals:d}=(({children:e,MenuItemsComponent:t,MenuActionComponent:r,MenuLinkComponent:o,UserProfileLinkComponent:i,UserProfilePageComponent:s,reorderItemsLabels:a})=>{const l=[],c=[],u=[];n.Children.forEach(e,(e=>{if(!rr(e,t)&&!rr(e,i)&&!rr(e,s))return void(e&&Ft("<UserButton /> can only accept <UserButton.UserProfilePage />, <UserButton.UserProfileLink /> and <UserButton.MenuItems /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component."));if(rr(e,i)||rr(e,s))return;const{props:c}=e;n.Children.forEach(c.children,(e=>{if(!rr(e,r)&&!rr(e,o))return void(e&&Ft("<UserButton.MenuItems /> component can only accept <UserButton.Action /> and <UserButton.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component."));const{props:t}=e,{label:n,labelIcon:i,href:s,onClick:c,open:u}=t;if(rr(e,r))if(ur(t,a))l.push({label:n});else{if(!dr(t))return void Ft("Missing props. <UserButton.Action /> component requires the following props: label.");{const e={label:n,labelIcon:i};if(void 0!==c)l.push({...e,onClick:c});else{if(void 0===u)return void Ft("Custom menu item must have either onClick or open property");l.push({...e,open:u.startsWith("/")?u:`/${u}`})}}}if(rr(e,o)){if(!pr(t))return void Ft("Missing props. <UserButton.Link /> component requires the following props: href, label and labelIcon.");l.push({label:n,labelIcon:i,href:s})}}))}));const d=[],p=[];l.forEach(((e,t)=>{dr(e)&&d.push({component:e.labelIcon,id:t}),pr(e)&&p.push({component:e.labelIcon,id:t})}));const h=tr(d),f=tr(p);return l.forEach(((e,t)=>{if(ur(e,a)&&c.push({label:e.label}),dr(e)){const{portal:r,mount:n,unmount:o}=h.find((e=>e.id===t)),i={label:e.label,mountIcon:n,unmountIcon:o};"onClick"in e?i.onClick=e.onClick:"open"in e&&(i.open=e.open),c.push(i),u.push(r)}if(pr(e)){const{portal:r,mount:n,unmount:o}=f.find((e=>e.id===t));c.push({label:e.label,href:e.href,mountIcon:n,unmountIcon:o}),u.push(r)}})),{customMenuItems:c,customMenuItemsPortals:u}})({children:o.children,reorderItemsLabels:["manageAccount","signOut"],MenuItemsComponent:jr,MenuActionComponent:Sr,MenuLinkComponent:Cr,UserProfileLinkComponent:kr,UserProfilePageComponent:vr});const p=ir(o.children),h={mount:e.mountUserButton,unmount:e.unmountUserButton,updateProps:e.__unstable__updateProps,props:{...o,userProfileProps:c,customMenuItems:u}},f={customPagesPortals:l,customMenuItemsPortals:d};return n.createElement(_r.Provider,{value:h},i&&r,e.loaded&&n.createElement(yr,{component:t,...h,hideRootHtmlElement:!!o.__experimental_asProvider,rootProps:s},o.__experimental_asProvider?p:null,n.createElement(br,{...f})))}),{component:"UserButton",renderWhileLoading:!0});function jr({children:e}){return Ft("<UserButton.MenuItems /> component needs to be a direct child of `<UserButton />`."),n.createElement(n.Fragment,null,e)}function Sr({children:e}){return Ft("<UserButton.Action /> component needs to be a direct child of `<UserButton.MenuItems />`."),n.createElement(n.Fragment,null,e)}function Cr({children:e}){return Ft("<UserButton.Link /> component needs to be a direct child of `<UserButton.MenuItems />`."),n.createElement(n.Fragment,null,e)}function Ar({children:e}){return Ft("<OrganizationProfile.Page /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`."),n.createElement(n.Fragment,null,e)}function Ur({children:e}){return Ft("<OrganizationProfile.Link /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`."),n.createElement(n.Fragment,null,e)}Object.assign(Or,{UserProfilePage:vr,UserProfileLink:kr,MenuItems:jr,Action:Sr,Link:Cr,__experimental_Outlet:function(e){const t=(0,n.useContext)(_r),r={...t,props:{...t.props,...e}};return n.createElement(yr,{...r})}});var Er=gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}},{customPages:a,customPagesPortals:l}=or(o.children);return n.createElement(n.Fragment,null,i&&r,e.loaded&&n.createElement(yr,{component:t,mount:e.mountOrganizationProfile,unmount:e.unmountOrganizationProfile,updateProps:e.__unstable__updateProps,props:{...o,customPages:a},rootProps:s},n.createElement(br,{customPagesPortals:l})))}),{component:"OrganizationProfile",renderWhileLoading:!0}),Ir=(Object.assign(Er,{Page:Ar,Link:Ur}),gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}};return n.createElement(n.Fragment,null,i&&r,e.loaded&&n.createElement(yr,{component:t,mount:e.mountCreateOrganization,unmount:e.unmountCreateOrganization,updateProps:e.__unstable__updateProps,props:o,rootProps:s}))}),{component:"CreateOrganization",renderWhileLoading:!0}),(0,n.createContext)({mount:()=>{},unmount:()=>{},updateProps:()=>{}})),Mr=gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}},{customPages:a,customPagesPortals:l}=or(o.children,{allowForAnyChildren:!!o.__experimental_asProvider}),c=Object.assign(o.organizationProfileProps||{},{customPages:a}),u=ir(o.children),d={mount:e.mountOrganizationSwitcher,unmount:e.unmountOrganizationSwitcher,updateProps:e.__unstable__updateProps,props:{...o,organizationProfileProps:c},rootProps:s,component:t};return e.__experimental_prefetchOrganizationSwitcher(),n.createElement(Ir.Provider,{value:d},n.createElement(n.Fragment,null,i&&r,e.loaded&&n.createElement(yr,{...d,hideRootHtmlElement:!!o.__experimental_asProvider},o.__experimental_asProvider?u:null,n.createElement(br,{customPagesPortals:l}))))}),{component:"OrganizationSwitcher",renderWhileLoading:!0});Object.assign(Mr,{OrganizationProfilePage:Ar,OrganizationProfileLink:Ur,__experimental_Outlet:function(e){const t=(0,n.useContext)(Ir),r={...t,props:{...t.props,...e}};return n.createElement(yr,{...r})}}),gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}};return n.createElement(n.Fragment,null,i&&r,e.loaded&&n.createElement(yr,{component:t,mount:e.mountOrganizationList,unmount:e.unmountOrganizationList,updateProps:e.__unstable__updateProps,props:o,rootProps:s}))}),{component:"OrganizationList",renderWhileLoading:!0}),gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}};return n.createElement(n.Fragment,null,i&&r,e.loaded&&n.createElement(yr,{component:t,open:e.openGoogleOneTap,close:e.closeGoogleOneTap,updateProps:e.__unstable__updateProps,props:o,rootProps:s}))}),{component:"GoogleOneTap",renderWhileLoading:!0}),gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}};return n.createElement(n.Fragment,null,i&&r,e.loaded&&n.createElement(yr,{component:t,mount:e.mountWaitlist,unmount:e.unmountWaitlist,updateProps:e.__unstable__updateProps,props:o,rootProps:s}))}),{component:"Waitlist",renderWhileLoading:!0}),gt((({clerk:e,component:t,fallback:r,...o})=>{const i="rendering"===hr(t)||!e.loaded,s={...i&&r&&{style:{display:"none"}}};return n.createElement(n.Fragment,null,i&&r,e.loaded&&n.createElement(yr,{component:t,mount:e.mountPricingTable,unmount:e.unmountPricingTable,updateProps:e.__unstable__updateProps,props:o,rootProps:s}))}),{component:"PricingTable",renderWhileLoading:!0}),gt((({clerk:e,children:t,...r})=>{const{signUpFallbackRedirectUrl:o,forceRedirectUrl:i,fallbackRedirectUrl:s,signUpForceRedirectUrl:a,mode:l,initialValues:c,withSignUp:u,oauthFlow:d,...p}=r;t=Zt(t,"Sign in");const h=Xt(t)("SignInButton"),f={...p,onClick:async t=>(h&&"object"==typeof h&&"props"in h&&await Qt(h.props.onClick)(t),(()=>{const t={forceRedirectUrl:i,fallbackRedirectUrl:s,signUpFallbackRedirectUrl:o,signUpForceRedirectUrl:a,initialValues:c,withSignUp:u,oauthFlow:d};return"modal"===l?e.openSignIn({...t,appearance:r.appearance}):e.redirectToSignIn({...t,signInFallbackRedirectUrl:s,signInForceRedirectUrl:i})})())};return n.cloneElement(h,f)}),{component:"SignInButton",renderWhileLoading:!0}),gt((({clerk:e,children:t,...r})=>{const{fallbackRedirectUrl:o,forceRedirectUrl:i,signInFallbackRedirectUrl:s,signInForceRedirectUrl:a,mode:l,unsafeMetadata:c,initialValues:u,oauthFlow:d,...p}=r;t=Zt(t,"Sign up");const h=Xt(t)("SignUpButton"),f={...p,onClick:async t=>(h&&"object"==typeof h&&"props"in h&&await Qt(h.props.onClick)(t),(()=>{const t={fallbackRedirectUrl:o,forceRedirectUrl:i,signInFallbackRedirectUrl:s,signInForceRedirectUrl:a,unsafeMetadata:c,initialValues:u,oauthFlow:d};return"modal"===l?e.openSignUp({...t,appearance:r.appearance}):e.redirectToSignUp({...t,signUpFallbackRedirectUrl:o,signUpForceRedirectUrl:i})})())};return n.cloneElement(h,f)}),{component:"SignUpButton",renderWhileLoading:!0}),gt((({clerk:e,children:t,...r})=>{const{redirectUrl:o="/",signOutOptions:i,...s}=r;t=Zt(t,"Sign out");const a=Xt(t)("SignOutButton"),l={...s,onClick:async t=>(await Qt(a.props.onClick)(t),e.signOut({redirectUrl:o,...i}))};return n.cloneElement(a,l)}),{component:"SignOutButton",renderWhileLoading:!0}),gt((({clerk:e,children:t,...r})=>{const{redirectUrl:o,...i}=r;t=Zt(t,"Sign in with Metamask");const s=Xt(t)("SignInWithMetamaskButton"),a={...i,onClick:async t=>(await Qt(s.props.onClick)(t),(async()=>{!async function(){await e.authenticateWithMetamask({redirectUrl:o||void 0})}()})())};return n.cloneElement(s,a)}),{component:"SignInWithMetamask",renderWhileLoading:!0}),void 0===globalThis.__BUILD_DISABLE_RHC__&&(globalThis.__BUILD_DISABLE_RHC__=!1);var xr,zr,Tr,Rr,Lr,Wr,Nr,Br,Dr={name:"@clerk/clerk-react",version:"5.31.9",environment:"production"},Fr=class e{constructor(e){kt(this,Nr),this.clerkjs=null,this.preopenOneTap=null,this.preopenUserVerification=null,this.preopenSignIn=null,this.preopenCheckout=null,this.preopenPlanDetails=null,this.preopenSignUp=null,this.preopenUserProfile=null,this.preopenOrganizationProfile=null,this.preopenCreateOrganization=null,this.preOpenWaitlist=null,this.premountSignInNodes=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.premountWaitlistNodes=new Map,this.premountPricingTableNodes=new Map,this.premountOAuthConsentNodes=new Map,this.premountAddListenerCalls=new Map,this.loadedListeners=[],kt(this,xr,"loading"),kt(this,zr),kt(this,Tr),kt(this,Rr),kt(this,Lr,(()=>{const e=new Map,t=new Map,r=new Map;return{on:(...r)=>qt(e,t,...r),prioritizedOn:(...e)=>qt(r,t,...e),emit:(n,o)=>{t.set(n,o),Gt(r,n,o),Gt(e,n,o)},off:(...t)=>Jt(e,...t),prioritizedOff:(...e)=>Jt(r,...e),internal:{retrieveListeners:t=>e.get(t)||[]}}})()),this.buildSignInUrl=e=>{const t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildSignInUrl(e))||""};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildSignInUrl",t)},this.buildSignUpUrl=e=>{const t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildSignUpUrl(e))||""};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildSignUpUrl",t)},this.buildAfterSignInUrl=(...e)=>{const t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildAfterSignInUrl(...e))||""};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildAfterSignInUrl",t)},this.buildAfterSignUpUrl=(...e)=>{const t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildAfterSignUpUrl(...e))||""};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildAfterSignUpUrl",t)},this.buildAfterSignOutUrl=()=>{const e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildAfterSignOutUrl())||""};if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildAfterSignOutUrl",e)},this.buildNewSubscriptionRedirectUrl=()=>{const e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildNewSubscriptionRedirectUrl())||""};if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildNewSubscriptionRedirectUrl",e)},this.buildAfterMultiSessionSingleSignOutUrl=()=>{const e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildAfterMultiSessionSingleSignOutUrl())||""};if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildAfterMultiSessionSingleSignOutUrl",e)},this.buildUserProfileUrl=()=>{const e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildUserProfileUrl())||""};if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildUserProfileUrl",e)},this.buildCreateOrganizationUrl=()=>{const e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildCreateOrganizationUrl())||""};if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildCreateOrganizationUrl",e)},this.buildOrganizationProfileUrl=()=>{const e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildOrganizationProfileUrl())||""};if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildOrganizationProfileUrl",e)},this.buildWaitlistUrl=()=>{const e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildWaitlistUrl())||""};if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildWaitlistUrl",e)},this.buildUrlWithAuth=e=>{const t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildUrlWithAuth(e))||""};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildUrlWithAuth",t)},this.handleUnauthenticated=async()=>{const e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.handleUnauthenticated()};this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("handleUnauthenticated",e)},this.on=(...e)=>{var t;if(null==(t=this.clerkjs)?void 0:t.on)return this.clerkjs.on(...e);vt(this,Lr).on(...e)},this.off=(...e)=>{var t;if(null==(t=this.clerkjs)?void 0:t.off)return this.clerkjs.off(...e);vt(this,Lr).off(...e)},this.addOnLoaded=e=>{this.loadedListeners.push(e),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>{this.loadedListeners.forEach((e=>e())),this.loadedListeners=[]},this.beforeLoad=e=>{if(!e)throw new Error("Failed to hydrate latest Clerk JS")},this.hydrateClerkJS=e=>{var t;if(!e)throw new 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==(t=vt(this,Lr).internal.retrieveListeners("status"))||t.forEach((e=>{this.on("status",e,{notify:!0})})),null!==this.preopenSignIn&&e.openSignIn(this.preopenSignIn),null!==this.preopenCheckout&&e.__internal_openCheckout(this.preopenCheckout),null!==this.preopenPlanDetails&&e.__internal_openPlanDetails(this.preopenPlanDetails),null!==this.preopenSignUp&&e.openSignUp(this.preopenSignUp),null!==this.preopenUserProfile&&e.openUserProfile(this.preopenUserProfile),null!==this.preopenUserVerification&&e.__internal_openReverification(this.preopenUserVerification),null!==this.preopenOneTap&&e.openGoogleOneTap(this.preopenOneTap),null!==this.preopenOrganizationProfile&&e.openOrganizationProfile(this.preopenOrganizationProfile),null!==this.preopenCreateOrganization&&e.openCreateOrganization(this.preopenCreateOrganization),null!==this.preOpenWaitlist&&e.openWaitlist(this.preOpenWaitlist),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)})),this.premountWaitlistNodes.forEach(((t,r)=>{e.mountWaitlist(r,t)})),this.premountPricingTableNodes.forEach(((t,r)=>{e.mountPricingTable(r,t)})),this.premountOAuthConsentNodes.forEach(((t,r)=>{e.__internal_mountOAuthConsent(r,t)})),void 0===this.clerkjs.status&&vt(this,Lr).emit(Ht,"ready"),this.emitLoaded(),this.clerkjs},this.__unstable__updateProps=async e=>{const t=await Pt(this,Nr,Br).call(this);if(t&&"__unstable__updateProps"in t)return t.__unstable__updateProps(e)},this.__experimental_navigateToTask=async e=>this.clerkjs?this.clerkjs.__experimental_navigateToTask(e):Promise.reject(),this.setActive=e=>this.clerkjs?this.clerkjs.setActive(e):Promise.reject(),this.openSignIn=e=>{this.clerkjs&&this.loaded?this.clerkjs.openSignIn(e):this.preopenSignIn=e},this.closeSignIn=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.__internal_openCheckout=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openCheckout(e):this.preopenCheckout=e},this.__internal_closeCheckout=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeCheckout():this.preopenCheckout=null},this.__internal_openPlanDetails=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openPlanDetails(e):this.preopenPlanDetails=e},this.__internal_closePlanDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closePlanDetails():this.preopenPlanDetails=null},this.__internal_openReverification=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openReverification(e):this.preopenUserVerification=e},this.__internal_closeReverification=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeReverification():this.preopenUserVerification=null},this.openGoogleOneTap=e=>{this.clerkjs&&this.loaded?this.clerkjs.openGoogleOneTap(e):this.preopenOneTap=e},this.closeGoogleOneTap=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.openUserProfile(e):this.preopenUserProfile=e},this.closeUserProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.openOrganizationProfile(e):this.preopenOrganizationProfile=e},this.closeOrganizationProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openCreateOrganization=e=>{this.clerkjs&&this.loaded?this.clerkjs.openCreateOrganization(e):this.preopenCreateOrganization=e},this.closeCreateOrganization=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openWaitlist=e=>{this.clerkjs&&this.loaded?this.clerkjs.openWaitlist(e):this.preOpenWaitlist=e},this.closeWaitlist=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeWaitlist():this.preOpenWaitlist=null},this.openSignUp=e=>{this.clerkjs&&this.loaded?this.clerkjs.openSignUp(e):this.preopenSignUp=e},this.closeSignUp=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignUp():this.preopenSignUp=null},this.mountSignIn=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignIn(e,t):this.premountSignInNodes.set(e,t)},this.unmountSignIn=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignIn(e):this.premountSignInNodes.delete(e)},this.mountSignUp=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignUp(e,t):this.premountSignUpNodes.set(e,t)},this.unmountSignUp=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignUp(e):this.premountSignUpNodes.delete(e)},this.mountUserProfile=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserProfile(e,t):this.premountUserProfileNodes.set(e,t)},this.unmountUserProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserProfile(e):this.premountUserProfileNodes.delete(e)},this.mountOrganizationProfile=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationProfile(e,t):this.premountOrganizationProfileNodes.set(e,t)},this.unmountOrganizationProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationProfile(e):this.premountOrganizationProfileNodes.delete(e)},this.mountCreateOrganization=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountCreateOrganization(e,t):this.premountCreateOrganizationNodes.set(e,t)},this.unmountCreateOrganization=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountCreateOrganization(e):this.premountCreateOrganizationNodes.delete(e)},this.mountOrganizationSwitcher=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationSwitcher(e,t):this.premountOrganizationSwitcherNodes.set(e,t)},this.unmountOrganizationSwitcher=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationSwitcher(e):this.premountOrganizationSwitcherNodes.delete(e)},this.__experimental_prefetchOrganizationSwitcher=()=>{const e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.__experimental_prefetchOrganizationSwitcher()};this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("__experimental_prefetchOrganizationSwitcher",e)},this.mountOrganizationList=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationList(e,t):this.premountOrganizationListNodes.set(e,t)},this.unmountOrganizationList=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationList(e):this.premountOrganizationListNodes.delete(e)},this.mountUserButton=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserButton(e,t):this.premountUserButtonNodes.set(e,t)},this.unmountUserButton=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserButton(e):this.premountUserButtonNodes.delete(e)},this.mountWaitlist=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountWaitlist(e,t):this.premountWaitlistNodes.set(e,t)},this.unmountWaitlist=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountWaitlist(e):this.premountWaitlistNodes.delete(e)},this.mountPricingTable=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountPricingTable(e,t):this.premountPricingTableNodes.set(e,t)},this.unmountPricingTable=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountPricingTable(e):this.premountPricingTableNodes.delete(e)},this.__internal_mountOAuthConsent=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountOAuthConsent(e,t):this.premountOAuthConsentNodes.set(e,t)},this.__internal_unmountOAuthConsent=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountOAuthConsent(e):this.premountOAuthConsentNodes.delete(e)},this.addListener=e=>{if(this.clerkjs)return this.clerkjs.addListener(e);{const t=()=>{var t;const 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=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.navigate(e)};this.clerkjs&&this.loaded?t():this.premountMethodCalls.set("navigate",t)},this.redirectWithAuth=async(...e)=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectWithAuth(...e)};return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectWithAuth",t)},this.redirectToSignIn=async e=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectToSignIn(e)};return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectToSignIn",t)},this.redirectToSignUp=async e=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectToSignUp(e)};return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectToSignUp",t)},this.redirectToUserProfile=async()=>{const e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToUserProfile()};return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToUserProfile",e)},this.redirectToAfterSignUp=()=>{const e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToAfterSignUp()};if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("redirectToAfterSignUp",e)},this.redirectToAfterSignIn=()=>{const e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToAfterSignIn()};this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("redirectToAfterSignIn",e)},this.redirectToAfterSignOut=()=>{const e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToAfterSignOut()};this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("redirectToAfterSignOut",e)},this.redirectToOrganizationProfile=async()=>{const e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToOrganizationProfile()};return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToOrganizationProfile",e)},this.redirectToCreateOrganization=async()=>{const e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToCreateOrganization()};return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToCreateOrganization",e)},this.redirectToWaitlist=async()=>{const e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToWaitlist()};return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToWaitlist",e)},this.handleRedirectCallback=async e=>{var t;const r=()=>{var t;return null==(t=this.clerkjs)?void 0:t.handleRedirectCallback(e)};this.clerkjs&&this.loaded?null==(t=r())||t.catch((()=>{})):this.premountMethodCalls.set("handleRedirectCallback",r)},this.handleGoogleOneTapCallback=async(e,t)=>{var r;const n=()=>{var r;return null==(r=this.clerkjs)?void 0:r.handleGoogleOneTapCallback(e,t)};this.clerkjs&&this.loaded?null==(r=n())||r.catch((()=>{})):this.premountMethodCalls.set("handleGoogleOneTapCallback",n)},this.handleEmailLinkVerification=async e=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.handleEmailLinkVerification(e)};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("handleEmailLinkVerification",t)},this.authenticateWithMetamask=async e=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.authenticateWithMetamask(e)};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithMetamask",t)},this.authenticateWithCoinbaseWallet=async e=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.authenticateWithCoinbaseWallet(e)};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithCoinbaseWallet",t)},this.authenticateWithOKXWallet=async e=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.authenticateWithOKXWallet(e)};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithOKXWallet",t)},this.authenticateWithWeb3=async e=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.authenticateWithWeb3(e)};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithWeb3",t)},this.authenticateWithGoogleOneTap=async e=>(await Pt(this,Nr,Br).call(this)).authenticateWithGoogleOneTap(e),this.createOrganization=async e=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.createOrganization(e)};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("createOrganization",t)},this.getOrganization=async e=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.getOrganization(e)};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("getOrganization",t)},this.joinWaitlist=async e=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.joinWaitlist(e)};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("joinWaitlist",t)},this.signOut=async(...e)=>{const t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.signOut(...e)};if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("signOut",t)};const{Clerk:t=null,publishableKey:r}=e||{};wt(this,Rr,r),wt(this,Tr,null==e?void 0:e.proxyUrl),wt(this,zr,null==e?void 0:e.domain),this.options=e,this.Clerk=t,this.mode=Kt()?"browser":"server",this.options.sdkMetadata||(this.options.sdkMetadata=Dr),vt(this,Lr).emit(Ht,"loading"),vt(this,Lr).prioritizedOn(Ht,(e=>wt(this,xr,e))),vt(this,Rr)&&this.loadClerkJS()}get publishableKey(){return vt(this,Rr)}get loaded(){var e;return(null==(e=this.clerkjs)?void 0:e.loaded)||!1}get status(){var e;return this.clerkjs?(null==(e=this.clerkjs)?void 0:e.status)||(this.clerkjs.loaded?"ready":"loading"):vt(this,xr)}static getOrCreateInstance(t){return(!Kt()||!vt(this,Wr)||t.Clerk&&vt(this,Wr).Clerk!==t.Clerk||vt(this,Wr).publishableKey!==t.publishableKey)&&wt(this,Wr,new e(t)),vt(this,Wr)}static clearInstance(){wt(this,Wr,null)}get domain(){return"undefined"!=typeof window&&window.location?Yt(vt(this,zr),new URL(window.location.href),""):"function"==typeof vt(this,zr)?ut.throw(mt):vt(this,zr)||""}get proxyUrl(){return"undefined"!=typeof window&&window.location?Yt(vt(this,Tr),new URL(window.location.href),""):"function"==typeof vt(this,Tr)?ut.throw(mt):vt(this,Tr)||""}__internal_getOption(e){var t,r;return(null==(t=this.clerkjs)?void 0:t.__internal_getOption)?null==(r=this.clerkjs)?void 0:r.__internal_getOption(e):this.options[e]}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?Yt(this.options.isSatellite,new URL(window.location.href),!1):"function"==typeof this.options.isSatellite&&ut.throw(mt)}async loadClerkJS(){var e;if("browser"===this.mode&&!this.loaded){"undefined"!=typeof window&&(window.__clerk_publishable_key=vt(this,Rr),window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{if(this.Clerk){let e;"function"==typeof this.Clerk?(e=new this.Clerk(vt(this,Rr),{proxyUrl:this.proxyUrl,domain:this.domain}),this.beforeLoad(e),await e.load(this.options)):(e=this.Clerk,e.loaded||(this.beforeLoad(e),await e.load(this.options))),global.Clerk=e}else if(!__BUILD_DISABLE_RHC__){if(global.Clerk||await(async e=>{const t=e?.scriptLoadTimeout??15e3;if(Wt())return null;if(!e?.publishableKey)return Lt.throwMissingPublishableKeyError(),null;const r=Bt(e),n=document.querySelector("script[data-clerk-js-script]");if(n)if(function(e){if("undefined"==typeof window||!window.performance)return!1;const t=performance.getEntriesByName(e,"resource");if(0===t.length)return!1;const r=t[t.length-1];if(0===r.transferSize&&0===r.decodedBodySize){if(0===r.responseEnd)return!0;if(r.responseEnd>0&&r.responseStart>0)return!0;if("responseStatus"in r){if(r.responseStatus>=400)return!0;if(0===r.responseStatus)return!0}}return!1}(r))n.remove();else try{return await Nt(t,n),null}catch{n.remove()}const o=Nt(t);return St(r,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:Dt(e)}).catch((e=>{throw new p(Tt+(e.message?`, ${e.message}`:""),{code:zt,cause:e})})),o})({...this.options,publishableKey:vt(this,Rr),proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),!global.Clerk)throw new Error("Failed to download latest ClerkJS. Contact support@clerk.com.");this.beforeLoad(global.Clerk),await global.Clerk.load(this.options)}return(null==(e=global.Clerk)?void 0:e.loaded)?this.hydrateClerkJS(global.Clerk):void 0}catch(e){const t=e;return vt(this,Lr).emit(Ht,"error"),void console.error(t.stack||t.message||t)}}}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}get isSignedIn(){return!!this.clerkjs&&this.clerkjs.isSignedIn}get billing(){var e;return null==(e=this.clerkjs)?void 0:e.billing}__unstable__setEnvironment(...e){this.clerkjs&&"__unstable__setEnvironment"in this.clerkjs&&this.clerkjs.__unstable__setEnvironment(e)}};xr=new WeakMap,zr=new WeakMap,Tr=new WeakMap,Rr=new WeakMap,Lr=new WeakMap,Wr=new WeakMap,Nr=new WeakSet,Br=function(){return new Promise((e=>{this.addOnLoaded((()=>e(this.clerkjs)))}))},kt(Fr,Wr);var $r=Fr;function Vr(e){const{isomorphicClerkOptions:t,initialState:r,children:o}=e,{isomorphicClerk:i,clerkStatus:s}=qr(t),[a,l]=n.useState({client:i.client,session:i.session,user:i.user,organization:i.organization});n.useEffect((()=>i.addListener((e=>l({...e})))),[]);const c=((e,t,r)=>!e&&r?(e=>{const t=e.userId,r=e.user,n=e.sessionId,o=e.sessionStatus,i=e.sessionClaims;return{userId:t,user:r,sessionId:n,session:e.session,sessionStatus:o,sessionClaims:i,organization:e.organization,orgId:e.orgId,orgRole:e.orgRole,orgPermissions:e.orgPermissions,orgSlug:e.orgSlug,actor:e.actor,factorVerificationAge:e.factorVerificationAge}})(r):(e=>{const t=e.user?e.user.id:e.user,r=e.user,n=e.session?e.session.id:e.session,o=e.session,i=e.session?.status,s=e.session?e.session.lastActiveToken?.jwt?.claims:null,a=e.session?e.session.factorVerificationAge:null,l=o?.actor,c=e.organization,u=e.organization?e.organization.id:e.organization,d=c?.slug,p=c?r?.organizationMemberships?.find((e=>e.organization.id===u)):c,h=p?p.permissions:p;return{userId:t,user:r,sessionId:n,session:o,sessionStatus:i,sessionClaims:s,organization:c,orgId:u,orgRole:p?p.role:p,orgSlug:d,orgPermissions:h,actor:l,factorVerificationAge:a}})(t))(i.loaded,a,r),u=n.useMemo((()=>({value:i})),[s]),d=n.useMemo((()=>({value:a.client})),[a.client]),{sessionId:p,sessionStatus:h,sessionClaims:f,session:m,userId:g,user:y,orgId:b,actor:v,organization:k,orgRole:w,orgSlug:P,orgPermissions:_,factorVerificationAge:O}=c,j=n.useMemo((()=>({value:{sessionId:p,sessionStatus:h,sessionClaims:f,userId:g,actor:v,orgId:b,orgRole:w,orgSlug:P,orgPermissions:_,factorVerificationAge:O}})),[p,h,g,v,b,w,P,O,null==f?void 0:f.__raw]),S=n.useMemo((()=>({value:m})),[p,m]),C=n.useMemo((()=>({value:y})),[g,y]),A=n.useMemo((()=>({value:{organization:k}})),[b,k]);return n.createElement(ht.Provider,{value:u},n.createElement(Te.Provider,{value:d},n.createElement(Le.Provider,{value:S},n.createElement($e,{...A.value},n.createElement(dt.Provider,{value:j},n.createElement(xe.Provider,{value:C},o))))))}var Kr,qr=e=>{const t=n.useRef($r.getOrCreateInstance(e)),[r,o]=n.useState(t.current.status);return n.useEffect((()=>{t.current.__unstable__updateProps({appearance:e.appearance})}),[e.appearance]),n.useEffect((()=>{t.current.__unstable__updateProps({options:e})}),[e.localization]),n.useEffect((()=>(t.current.on("status",o),()=>{t.current&&t.current.off("status",o),$r.clearInstance()})),[]),{isomorphicClerk:t.current,clerkStatus:r}},Gr=function(e,t){const r=r=>(function(e,t,r=1){n.useEffect((()=>{const n=er.get(e)||0;return n==r?ut.throw(t):(er.set(e,n+1),()=>{er.set(e,(er.get(e)||1)-1)})}),[])}(t,"You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>."),n.createElement(e,{...r}));return r.displayName=`withMaxAllowedInstancesGuard(${e.displayName||e.name||t||"Component"})`,r}((function(e){const{initialState:t,children:r,__internal_bypassMissingPublishableKey:o,...i}=e,{publishableKey:s="",Clerk:a}=i;return a||o||(s?s&&!Mt(s)&&ut.throwInvalidPublishableKeyError({key:s}):ut.throwMissingPublishableKeyError()),n.createElement(Vr,{initialState:t,isomorphicClerkOptions:i},r)}),"ClerkProvider");Gr.displayName="ClerkProvider",Kr={packageName:"@clerk/clerk-react"},ut.setMessages(Kr).setPackageName(Kr),Lt.setPackageName({packageName:"@clerk/clerk-react"});const Jr=function(e){var r=e.children,n=e.label,o=e.labelIcon,i=e.url;return t(e,["children","label","labelIcon","url"]),s().createElement(Pr.Page,{label:n,labelIcon:o,url:i},r)};var Hr=o(738),Yr=o(322),Xr=o(809),Zr=o(647),Qr=["String","Number","Null","Boolean"],en=function(e,t,i){if(!window.dash_component_api||(0,Xr.A)(i)||!i)return(0,o(209).renderDashComponent)(e,t);if((0,Zr.A)(e)||(0,Xr.A)(e))return null;if(function(e){return(0,Hr.A)((0,Yr.A)(e),Qr)}(e))return e;if(Array.isArray(e))return e.map((function(e,t){return en(e,t,r(r([],i||[],!0),[t,"props"],!1))}));var s={component:e,componentPath:r([],i||[],!0),key:null!==t?t:Math.random().toString(36).substr(2,9),temp:!0};return(0,n.createElement)(window.dash_component_api.ExternalWrapper,s)};const tn=function(n){var o=n.children,i=t(n,["children"]),a=s().Children.toArray(o).map((function(n,o){var i=function(e){var t;return e.props.componentPath?null===(t=window.dash_component_api)||void 0===t?void 0:t.getLayout(r(r([],e.props.componentPath,!0),["props"],!1)):e.props}(n);return function(r,n){var o=r.children,i=r.label,a=r.labelIcon,l=r.url,c=t(r,["children","label","labelIcon","url"]);return s().createElement(Pr.Page,e({label:i,labelIcon:en(a),url:l,key:n},c),en(o))}(i,o)}));return s().createElement(Pr,e({},i),a)};var rn=o(48),nn={dark:rn.dark,neobrutalism:rn.neobrutalism};const on=function(r){var n=r.publishableKey,o=r.afterSignOutUrl,i=r.children,a=r.themeName,l=t(r,["publishableKey","afterSignOutUrl","children","themeName"]),c=s().useMemo((function(){var e=a?nn[a]:void 0;return e?{baseTheme:e}:void 0}),[a]);return s().createElement(Gr,e({publishableKey:n,afterSignOutUrl:o,appearance:c},l),i)}})(),i})()));
|
|
3
|
+
//# sourceMappingURL=dash_auth_plus.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
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
|
+
*/
|