From 743c18bdd749bf2db2fcc2b95663fc6e7783cbed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 5 Aug 2024 15:09:40 +0200 Subject: [PATCH 01/41] fix: need to compare with serialized value (for enums) --- src/pydase/data_service/data_service_observer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydase/data_service/data_service_observer.py b/src/pydase/data_service/data_service_observer.py index 479d601..28569bc 100644 --- a/src/pydase/data_service/data_service_observer.py +++ b/src/pydase/data_service/data_service_observer.py @@ -53,7 +53,7 @@ class DataServiceObserver(PropertyObserver): cached_value = cached_value_dict.get("value") if ( all(part[0] != "_" for part in full_access_path.split(".")) - and cached_value != value + and cached_value != dump(value)["value"] ): logger.debug("'%s' changed to '%s'", full_access_path, value) From c34351270c00de88e2f27deb0a6efb7d29b6308b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 5 Aug 2024 15:10:04 +0200 Subject: [PATCH 02/41] feat: first Task implementation --- src/pydase/task/__init__.py | 3 ++ src/pydase/task/decorator.py | 29 ++++++++++++ src/pydase/task/task.py | 86 ++++++++++++++++++++++++++++++++++++ 3 files changed, 118 insertions(+) create mode 100644 src/pydase/task/__init__.py create mode 100644 src/pydase/task/decorator.py create mode 100644 src/pydase/task/task.py diff --git a/src/pydase/task/__init__.py b/src/pydase/task/__init__.py new file mode 100644 index 0000000..69c7c2f --- /dev/null +++ b/src/pydase/task/__init__.py @@ -0,0 +1,3 @@ +from pydase.task.decorator import task + +__all__ = ["task"] diff --git a/src/pydase/task/decorator.py b/src/pydase/task/decorator.py new file mode 100644 index 0000000..ee704a9 --- /dev/null +++ b/src/pydase/task/decorator.py @@ -0,0 +1,29 @@ +import asyncio +import logging +from collections.abc import Callable, Coroutine +from typing import Any, Concatenate, ParamSpec, TypeVar + +from pydase.task.task import Task + +logger = logging.getLogger(__name__) + +P = ParamSpec("P") +R = TypeVar("R") + + +def task( + *, autostart: bool = False +) -> Callable[[Callable[Concatenate[Any, P], Coroutine[None, None, R]]], Task[P, R]]: + def decorator( + func: Callable[Concatenate[Any, P], Coroutine[None, None, R]], + ) -> Task[P, R]: + async def wrapper(self: Any, *args: P.args, **kwargs: P.kwargs) -> R | None: + try: + return await func(self, *args, **kwargs) + except asyncio.CancelledError: + logger.info("Task '%s' was cancelled", func.__name__) + return None + + return Task(wrapper) + + return decorator diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py new file mode 100644 index 0000000..fcd2d89 --- /dev/null +++ b/src/pydase/task/task.py @@ -0,0 +1,86 @@ +import asyncio +import inspect +import logging +from collections.abc import Callable, Coroutine +from enum import Enum +from typing import Any, Concatenate, Generic, ParamSpec, Self, TypeVar + +import pydase + +logging.basicConfig(level=logging.DEBUG) +logger = logging.getLogger(__name__) + +P = ParamSpec("P") +R = TypeVar("R") + + +class TaskStatus(Enum): + RUNNING = "running" + NOT_RUNNING = "not_running" + + +class Task(pydase.DataService, Generic[P, R]): + def __init__( + self, + func: Callable[Concatenate[Any, P], R | None] + | Callable[Concatenate[Any, P], Coroutine[Any, Any, R | None]], + ) -> None: + super().__init__() + self._func = func + self._task: asyncio.Task[R] | None = None + self._status = TaskStatus.NOT_RUNNING + self._result: R | None = None + + @property + def status(self) -> TaskStatus: + return self._status + + def start(self, *args: P.args, **kwargs: P.kwargs) -> None: + def task_done_callback(task: asyncio.Task[R]) -> None: + """Handles tasks that have finished. + + Removes a task from the tasks dictionary, calls the defined + callbacks, and logs and re-raises exceptions.""" + + # removing the finished task from the tasks i + self._task = None + + # emit the notification that the task was stopped + self._status = TaskStatus.NOT_RUNNING + + exception = task.exception() + if exception is not None: + # Handle the exception, or you can re-raise it. + logger.error( + "Task '%s' encountered an exception: %s: %s", + self._func.__name__, + type(exception).__name__, + exception, + ) + raise exception + + self._result = task.result() + + logger.info("Starting task") + if inspect.iscoroutinefunction(self._func): + logger.info("Is coroutine function.") + res: Coroutine[None, None, R] = self._func( + self._parent_obj, *args, **kwargs + ) + self._task = asyncio.create_task(res) + self._task.add_done_callback(task_done_callback) + self._status = TaskStatus.RUNNING + else: + logger.info("Is not a coroutine function.") + + def stop(self) -> None: + if self._task: + self._task.cancel() + + def __get__(self, obj: Any, obj_type: Any) -> Self: + # need to use this descriptor to bind the function to the instance of the class + # containing the function + + if obj is not None: + self._parent_obj = obj + return self From 09ceae90ec865b39800533d286befad7d3e1d4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 5 Aug 2024 16:38:17 +0200 Subject: [PATCH 03/41] tasks: only care about async methods right now --- src/pydase/task/task.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index fcd2d89..d029f46 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -22,8 +22,7 @@ class TaskStatus(Enum): class Task(pydase.DataService, Generic[P, R]): def __init__( self, - func: Callable[Concatenate[Any, P], R | None] - | Callable[Concatenate[Any, P], Coroutine[Any, Any, R | None]], + func: Callable[Concatenate[Any, P], Coroutine[None, None, R | None]], ) -> None: super().__init__() self._func = func From 5f78771f66bed9defee6aaf67b8f7c7388f63d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 5 Aug 2024 16:40:24 +0200 Subject: [PATCH 04/41] tasks: need to bind method as soon as instance is passed to __get__ I cannot keep a reference to the parent class as the Task class is a DataService, as well. --- src/pydase/task/task.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index d029f46..7b9a628 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -26,6 +26,7 @@ class Task(pydase.DataService, Generic[P, R]): ) -> None: super().__init__() self._func = func + self._bound_func: Callable[P, Coroutine[None, None, R | None]] | None = None self._task: asyncio.Task[R] | None = None self._status = TaskStatus.NOT_RUNNING self._result: R | None = None @@ -61,25 +62,23 @@ class Task(pydase.DataService, Generic[P, R]): self._result = task.result() logger.info("Starting task") - if inspect.iscoroutinefunction(self._func): - logger.info("Is coroutine function.") - res: Coroutine[None, None, R] = self._func( - self._parent_obj, *args, **kwargs - ) + if inspect.iscoroutinefunction(self._bound_func): + res: Coroutine[None, None, R] = self._bound_func(*args, **kwargs) self._task = asyncio.create_task(res) self._task.add_done_callback(task_done_callback) self._status = TaskStatus.RUNNING - else: - logger.info("Is not a coroutine function.") def stop(self) -> None: if self._task: self._task.cancel() - def __get__(self, obj: Any, obj_type: Any) -> Self: + def __get__(self, instance: Any, owner: Any) -> Self: # need to use this descriptor to bind the function to the instance of the class # containing the function + if instance: - if obj is not None: - self._parent_obj = obj + async def bound_func(*args, **kwargs) -> R | None: + return await self._func(instance, *args, **kwargs) + + self._bound_func = bound_func return self From e69ef376ae2e4ba5544911d2bae535aed23896bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 5 Aug 2024 16:40:59 +0200 Subject: [PATCH 05/41] replaces some code with helper function --- src/pydase/utils/serialization/serializer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pydase/utils/serialization/serializer.py b/src/pydase/utils/serialization/serializer.py index 0633842..6e8bdda 100644 --- a/src/pydase/utils/serialization/serializer.py +++ b/src/pydase/utils/serialization/serializer.py @@ -15,6 +15,7 @@ from pydase.utils.helpers import ( get_attribute_doc, get_component_classes, get_data_service_class_reference, + is_property_attribute, parse_full_access_path, parse_serialized_key, ) @@ -316,7 +317,7 @@ class Serializer: value[key] = serialized_object # If the DataService attribute is a property - if isinstance(getattr(obj.__class__, key, None), property): + if is_property_attribute(obj, key): prop: property = getattr(obj.__class__, key) value[key]["readonly"] = prop.fset is None value[key]["doc"] = get_attribute_doc(prop) # overwrite the doc From 456090fee9ada93aafd1a2e076b007d520b129d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 5 Aug 2024 16:41:11 +0200 Subject: [PATCH 06/41] adds is_descriptor helper method --- src/pydase/utils/helpers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pydase/utils/helpers.py b/src/pydase/utils/helpers.py index 7b685ab..a1812fd 100644 --- a/src/pydase/utils/helpers.py +++ b/src/pydase/utils/helpers.py @@ -196,3 +196,7 @@ def function_has_arguments(func: Callable[..., Any]) -> bool: # Check if there are any parameters left which would indicate additional arguments. return len(parameters) > 0 + +def is_descriptor(obj): + """Check if an object is a descriptor.""" + return any(hasattr(obj, method) for method in ("__get__", "__set__", "__delete__")) From ed7f3d8509882429173a56032bd11725162244dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 5 Aug 2024 16:41:50 +0200 Subject: [PATCH 07/41] dont make descriptors attributes of the instance -> would loose functionality --- src/pydase/observer_pattern/observable/observable.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pydase/observer_pattern/observable/observable.py b/src/pydase/observer_pattern/observable/observable.py index c24b64c..474d684 100644 --- a/src/pydase/observer_pattern/observable/observable.py +++ b/src/pydase/observer_pattern/observable/observable.py @@ -6,7 +6,7 @@ from pydase.observer_pattern.observable.decorators import ( has_validate_set_decorator, ) from pydase.observer_pattern.observable.observable_object import ObservableObject -from pydase.utils.helpers import is_property_attribute +from pydase.utils.helpers import is_descriptor, is_property_attribute logger = logging.getLogger(__name__) @@ -24,6 +24,11 @@ class Observable(ObservableObject): for name, value in class_attrs.items(): if isinstance(value, property) or callable(value): continue + elif is_descriptor(value): + # Descriptors have to be stored as a class variable in another class to + # work properly. So don't make it an instance attribute. + self._initialise_new_objects(name, value) + continue self.__dict__[name] = self._initialise_new_objects(name, value) def __setattr__(self, name: str, value: Any) -> None: From c00cf9a6ff78b6137f537c6e904538e8cbfd9503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 5 Aug 2024 16:44:45 +0200 Subject: [PATCH 08/41] updating property dependencies in PropertyObserver As Task objects have to be class attributes, I have to loop through class attributes, as well when calculating nested observables properties. --- src/pydase/observer_pattern/observer/property_observer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydase/observer_pattern/observer/property_observer.py b/src/pydase/observer_pattern/observer/property_observer.py index 4b9819d..f9a125e 100644 --- a/src/pydase/observer_pattern/observer/property_observer.py +++ b/src/pydase/observer_pattern/observer/property_observer.py @@ -60,7 +60,7 @@ class PropertyObserver(Observer): def _process_nested_observables_properties( self, obj: Observable, deps: dict[str, Any], prefix: str ) -> None: - for k, value in vars(obj).items(): + for k, value in {**vars(type(obj)), **vars(obj)}.items(): prefix = ( f"{prefix}." if prefix != "" and not prefix.endswith(".") else prefix ) From 861e89f37a7a181c911490e525cd939d7adab082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 5 Aug 2024 16:49:16 +0200 Subject: [PATCH 09/41] task: using functools to get correct func name --- src/pydase/task/decorator.py | 2 ++ src/pydase/task/task.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pydase/task/decorator.py b/src/pydase/task/decorator.py index ee704a9..224e119 100644 --- a/src/pydase/task/decorator.py +++ b/src/pydase/task/decorator.py @@ -1,4 +1,5 @@ import asyncio +import functools import logging from collections.abc import Callable, Coroutine from typing import Any, Concatenate, ParamSpec, TypeVar @@ -17,6 +18,7 @@ def task( def decorator( func: Callable[Concatenate[Any, P], Coroutine[None, None, R]], ) -> Task[P, R]: + @functools.wraps(func) async def wrapper(self: Any, *args: P.args, **kwargs: P.kwargs) -> R | None: try: return await func(self, *args, **kwargs) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 7b9a628..781988a 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -61,7 +61,7 @@ class Task(pydase.DataService, Generic[P, R]): self._result = task.result() - logger.info("Starting task") + logger.info("Starting task %s", self._func.__name__) if inspect.iscoroutinefunction(self._bound_func): res: Coroutine[None, None, R] = self._bound_func(*args, **kwargs) self._task = asyncio.create_task(res) From 80da96657c2f6436915e4d9041c4134132e79853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 5 Aug 2024 16:49:42 +0200 Subject: [PATCH 10/41] tasks: don't start another task when it is already running --- src/pydase/task/task.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 781988a..e848f1d 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -36,6 +36,9 @@ class Task(pydase.DataService, Generic[P, R]): return self._status def start(self, *args: P.args, **kwargs: P.kwargs) -> None: + if self._task: + return + def task_done_callback(task: asyncio.Task[R]) -> None: """Handles tasks that have finished. From 7ddcd97f68ddc045a56b0b44d67369a2954a5c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 08:16:20 +0200 Subject: [PATCH 11/41] fixing ruff and mypy errors --- src/pydase/observer_pattern/observable/observable.py | 2 +- src/pydase/task/task.py | 2 +- src/pydase/utils/helpers.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pydase/observer_pattern/observable/observable.py b/src/pydase/observer_pattern/observable/observable.py index 474d684..9299fb3 100644 --- a/src/pydase/observer_pattern/observable/observable.py +++ b/src/pydase/observer_pattern/observable/observable.py @@ -24,7 +24,7 @@ class Observable(ObservableObject): for name, value in class_attrs.items(): if isinstance(value, property) or callable(value): continue - elif is_descriptor(value): + if is_descriptor(value): # Descriptors have to be stored as a class variable in another class to # work properly. So don't make it an instance attribute. self._initialise_new_objects(name, value) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index e848f1d..257ef98 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -80,7 +80,7 @@ class Task(pydase.DataService, Generic[P, R]): # containing the function if instance: - async def bound_func(*args, **kwargs) -> R | None: + async def bound_func(*args: P.args, **kwargs: P.kwargs) -> R | None: return await self._func(instance, *args, **kwargs) self._bound_func = bound_func diff --git a/src/pydase/utils/helpers.py b/src/pydase/utils/helpers.py index a1812fd..3c5269f 100644 --- a/src/pydase/utils/helpers.py +++ b/src/pydase/utils/helpers.py @@ -197,6 +197,7 @@ def function_has_arguments(func: Callable[..., Any]) -> bool: # Check if there are any parameters left which would indicate additional arguments. return len(parameters) > 0 -def is_descriptor(obj): + +def is_descriptor(obj: object) -> bool: """Check if an object is a descriptor.""" return any(hasattr(obj, method) for method in ("__get__", "__set__", "__delete__")) From e4a3cf341f7f414f8041bb4d27df3db8485a8639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 09:29:18 +0200 Subject: [PATCH 12/41] task can receive bound and unbound functions now --- src/pydase/task/task.py | 39 ++++++++++++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 257ef98..9242145 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -3,7 +3,16 @@ import inspect import logging from collections.abc import Callable, Coroutine from enum import Enum -from typing import Any, Concatenate, Generic, ParamSpec, Self, TypeVar +from typing import ( + Any, + Concatenate, + Generic, + ParamSpec, + Self, + TypeVar, +) + +from typing_extensions import TypeIs import pydase @@ -14,6 +23,14 @@ P = ParamSpec("P") R = TypeVar("R") +def is_bound_method( + method: Callable[P, Coroutine[None, None, R | None]] + | Callable[Concatenate[Any, P], Coroutine[None, None, R | None]], +) -> TypeIs[Callable[P, Coroutine[None, None, R | None]]]: + """Check if instance method is bound to an object.""" + return inspect.ismethod(method) + + class TaskStatus(Enum): RUNNING = "running" NOT_RUNNING = "not_running" @@ -22,11 +39,17 @@ class TaskStatus(Enum): class Task(pydase.DataService, Generic[P, R]): def __init__( self, - func: Callable[Concatenate[Any, P], Coroutine[None, None, R | None]], + func: Callable[Concatenate[Any, P], Coroutine[None, None, R | None]] + | Callable[P, Coroutine[None, None, R | None]], ) -> None: super().__init__() - self._func = func + self._func_name = func.__name__ self._bound_func: Callable[P, Coroutine[None, None, R | None]] | None = None + if is_bound_method(func): + self._func = func + self._bound_func = func + else: + self._func = func self._task: asyncio.Task[R] | None = None self._status = TaskStatus.NOT_RUNNING self._result: R | None = None @@ -56,7 +79,7 @@ class Task(pydase.DataService, Generic[P, R]): # Handle the exception, or you can re-raise it. logger.error( "Task '%s' encountered an exception: %s: %s", - self._func.__name__, + self._func_name, type(exception).__name__, exception, ) @@ -64,7 +87,7 @@ class Task(pydase.DataService, Generic[P, R]): self._result = task.result() - logger.info("Starting task %s", self._func.__name__) + logger.info("Starting task %s", self._func_name) if inspect.iscoroutinefunction(self._bound_func): res: Coroutine[None, None, R] = self._bound_func(*args, **kwargs) self._task = asyncio.create_task(res) @@ -78,10 +101,12 @@ class Task(pydase.DataService, Generic[P, R]): def __get__(self, instance: Any, owner: Any) -> Self: # need to use this descriptor to bind the function to the instance of the class # containing the function - if instance: + if instance and self._bound_func is not None: async def bound_func(*args: P.args, **kwargs: P.kwargs) -> R | None: - return await self._func(instance, *args, **kwargs) + if not is_bound_method(self._func): + return await self._func(instance, *args, **kwargs) + return None self._bound_func = bound_func return self From 1e02f12794c06bfad25b75e044e1516617a6df50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 09:34:43 +0200 Subject: [PATCH 13/41] adds autostart flag to task --- src/pydase/task/decorator.py | 2 +- src/pydase/task/task.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pydase/task/decorator.py b/src/pydase/task/decorator.py index 224e119..58c7d9f 100644 --- a/src/pydase/task/decorator.py +++ b/src/pydase/task/decorator.py @@ -26,6 +26,6 @@ def task( logger.info("Task '%s' was cancelled", func.__name__) return None - return Task(wrapper) + return Task(wrapper, autostart=autostart) return decorator diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 9242145..9c07b10 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -41,6 +41,8 @@ class Task(pydase.DataService, Generic[P, R]): self, func: Callable[Concatenate[Any, P], Coroutine[None, None, R | None]] | Callable[P, Coroutine[None, None, R | None]], + *, + autostart: bool = False, ) -> None: super().__init__() self._func_name = func.__name__ @@ -53,6 +55,8 @@ class Task(pydase.DataService, Generic[P, R]): self._task: asyncio.Task[R] | None = None self._status = TaskStatus.NOT_RUNNING self._result: R | None = None + if autostart: + self.start() @property def status(self) -> TaskStatus: From 3cd71987470c2b0e0b974a185b8463406f2a4ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 09:36:12 +0200 Subject: [PATCH 14/41] task can only wrap async functions without arguments --- src/pydase/task/decorator.py | 13 ++++++------- src/pydase/task/task.py | 25 +++++++++++-------------- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/src/pydase/task/decorator.py b/src/pydase/task/decorator.py index 58c7d9f..a1d9a70 100644 --- a/src/pydase/task/decorator.py +++ b/src/pydase/task/decorator.py @@ -2,26 +2,25 @@ import asyncio import functools import logging from collections.abc import Callable, Coroutine -from typing import Any, Concatenate, ParamSpec, TypeVar +from typing import Any, TypeVar from pydase.task.task import Task logger = logging.getLogger(__name__) -P = ParamSpec("P") R = TypeVar("R") def task( *, autostart: bool = False -) -> Callable[[Callable[Concatenate[Any, P], Coroutine[None, None, R]]], Task[P, R]]: +) -> Callable[[Callable[[Any], Coroutine[None, None, R]]], Task[R]]: def decorator( - func: Callable[Concatenate[Any, P], Coroutine[None, None, R]], - ) -> Task[P, R]: + func: Callable[[Any], Coroutine[None, None, R]], + ) -> Task[R]: @functools.wraps(func) - async def wrapper(self: Any, *args: P.args, **kwargs: P.kwargs) -> R | None: + async def wrapper(self: Any) -> R | None: try: - return await func(self, *args, **kwargs) + return await func(self) except asyncio.CancelledError: logger.info("Task '%s' was cancelled", func.__name__) return None diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 9c07b10..30c7ca1 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -5,9 +5,7 @@ from collections.abc import Callable, Coroutine from enum import Enum from typing import ( Any, - Concatenate, Generic, - ParamSpec, Self, TypeVar, ) @@ -19,14 +17,13 @@ import pydase logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) -P = ParamSpec("P") R = TypeVar("R") def is_bound_method( - method: Callable[P, Coroutine[None, None, R | None]] - | Callable[Concatenate[Any, P], Coroutine[None, None, R | None]], -) -> TypeIs[Callable[P, Coroutine[None, None, R | None]]]: + method: Callable[[], Coroutine[None, None, R | None]] + | Callable[[Any], Coroutine[None, None, R | None]], +) -> TypeIs[Callable[[], Coroutine[None, None, R | None]]]: """Check if instance method is bound to an object.""" return inspect.ismethod(method) @@ -36,17 +33,17 @@ class TaskStatus(Enum): NOT_RUNNING = "not_running" -class Task(pydase.DataService, Generic[P, R]): +class Task(pydase.DataService, Generic[R]): def __init__( self, - func: Callable[Concatenate[Any, P], Coroutine[None, None, R | None]] - | Callable[P, Coroutine[None, None, R | None]], + func: Callable[[Any], Coroutine[None, None, R | None]] + | Callable[[], Coroutine[None, None, R | None]], *, autostart: bool = False, ) -> None: super().__init__() self._func_name = func.__name__ - self._bound_func: Callable[P, Coroutine[None, None, R | None]] | None = None + self._bound_func: Callable[[], Coroutine[None, None, R | None]] | None = None if is_bound_method(func): self._func = func self._bound_func = func @@ -62,7 +59,7 @@ class Task(pydase.DataService, Generic[P, R]): def status(self) -> TaskStatus: return self._status - def start(self, *args: P.args, **kwargs: P.kwargs) -> None: + def start(self) -> None: if self._task: return @@ -93,7 +90,7 @@ class Task(pydase.DataService, Generic[P, R]): logger.info("Starting task %s", self._func_name) if inspect.iscoroutinefunction(self._bound_func): - res: Coroutine[None, None, R] = self._bound_func(*args, **kwargs) + res: Coroutine[None, None, R] = self._bound_func() self._task = asyncio.create_task(res) self._task.add_done_callback(task_done_callback) self._status = TaskStatus.RUNNING @@ -107,9 +104,9 @@ class Task(pydase.DataService, Generic[P, R]): # containing the function if instance and self._bound_func is not None: - async def bound_func(*args: P.args, **kwargs: P.kwargs) -> R | None: + async def bound_func() -> R | None: if not is_bound_method(self._func): - return await self._func(instance, *args, **kwargs) + return await self._func(instance) return None self._bound_func = bound_func From 2a1aff589db43b935a774e09bee2ba88e8287ab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 10:21:25 +0200 Subject: [PATCH 15/41] properly binding task method --- src/pydase/task/task.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 30c7ca1..e9d6653 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -102,12 +102,6 @@ class Task(pydase.DataService, Generic[R]): def __get__(self, instance: Any, owner: Any) -> Self: # need to use this descriptor to bind the function to the instance of the class # containing the function - if instance and self._bound_func is not None: - - async def bound_func() -> R | None: - if not is_bound_method(self._func): - return await self._func(instance) - return None - - self._bound_func = bound_func + if instance and self._bound_func is None: + self._bound_func = self._func.__get__(instance, owner) return self From 083fab0a2924a98d82368fe7270eaadc4378c799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 10:40:09 +0200 Subject: [PATCH 16/41] Carefully setting up asyncio event loop --- src/pydase/client/client.py | 8 +++++++- src/pydase/server/server.py | 11 +++++++---- src/pydase/task/task.py | 6 ++++++ src/pydase/utils/helpers.py | 7 +++++++ 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/pydase/client/client.py b/src/pydase/client/client.py index 7371ab0..6a82514 100644 --- a/src/pydase/client/client.py +++ b/src/pydase/client/client.py @@ -8,6 +8,7 @@ import socketio # type: ignore import pydase.components from pydase.client.proxy_loader import ProxyClassMixin, ProxyLoader +from pydase.utils.helpers import current_event_loop_exists from pydase.utils.serialization.deserializer import loads from pydase.utils.serialization.types import SerializedDataService, SerializedObject @@ -74,6 +75,7 @@ class ProxyClass(ProxyClassMixin, pydase.components.DeviceConnection): self, sio_client: socketio.AsyncClient, loop: asyncio.AbstractEventLoop ) -> None: super().__init__() + pydase.components.DeviceConnection.__init__(self) self._initialise(sio_client=sio_client, loop=loop) @@ -107,7 +109,11 @@ class Client: ): self._url = url self._sio = socketio.AsyncClient() - self._loop = asyncio.new_event_loop() + if not current_event_loop_exists(): + self._loop = asyncio.new_event_loop() + asyncio.set_event_loop(self._loop) + else: + self._loop = asyncio.get_event_loop() self.proxy = ProxyClass(sio_client=self._sio, loop=self._loop) """A proxy object representing the remote service, facilitating interaction as if it were local.""" diff --git a/src/pydase/server/server.py b/src/pydase/server/server.py index 9c701d7..b7c0c08 100644 --- a/src/pydase/server/server.py +++ b/src/pydase/server/server.py @@ -13,6 +13,7 @@ from pydase.config import ServiceConfig from pydase.data_service.data_service_observer import DataServiceObserver from pydase.data_service.state_manager import StateManager from pydase.server.web_server import WebServer +from pydase.utils.helpers import current_event_loop_exists HANDLED_SIGNALS = ( signal.SIGINT, # Unix signal 2. Sent by Ctrl+C. @@ -156,13 +157,17 @@ class Server: self._web_port = web_port self._enable_web = enable_web self._kwargs = kwargs - self._loop: asyncio.AbstractEventLoop self._additional_servers = additional_servers self.should_exit = False self.servers: dict[str, asyncio.Future[Any]] = {} self._state_manager = StateManager(self._service, filename) self._observer = DataServiceObserver(self._state_manager) self._state_manager.load_state() + if not current_event_loop_exists(): + self._loop = asyncio.new_event_loop() + asyncio.set_event_loop(self._loop) + else: + self._loop = asyncio.get_event_loop() def run(self) -> None: """ @@ -170,7 +175,7 @@ class Server: This method should be called to start the server after it's been instantiated. """ - asyncio.run(self.serve()) + self._loop.run_until_complete(self.serve()) async def serve(self) -> None: process_id = os.getpid() @@ -186,10 +191,8 @@ class Server: logger.info("Finished server process [%s]", process_id) async def startup(self) -> None: - self._loop = asyncio.get_running_loop() self._loop.set_exception_handler(self.custom_exception_handler) self.install_signal_handlers() - self._service._task_manager.start_autostart_tasks() for server in self._additional_servers: addin_server = server["server"]( diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index e9d6653..7809a52 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -13,6 +13,7 @@ from typing import ( from typing_extensions import TypeIs import pydase +from pydase.utils.helpers import current_event_loop_exists logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) @@ -42,6 +43,11 @@ class Task(pydase.DataService, Generic[R]): autostart: bool = False, ) -> None: super().__init__() + if not current_event_loop_exists(): + self._loop = asyncio.new_event_loop() + asyncio.set_event_loop(self._loop) + else: + self._loop = asyncio.get_event_loop() self._func_name = func.__name__ self._bound_func: Callable[[], Coroutine[None, None, R | None]] | None = None if is_bound_method(func): diff --git a/src/pydase/utils/helpers.py b/src/pydase/utils/helpers.py index 3c5269f..3c22c6c 100644 --- a/src/pydase/utils/helpers.py +++ b/src/pydase/utils/helpers.py @@ -201,3 +201,10 @@ def function_has_arguments(func: Callable[..., Any]) -> bool: def is_descriptor(obj: object) -> bool: """Check if an object is a descriptor.""" return any(hasattr(obj, method) for method in ("__get__", "__set__", "__delete__")) + + +def current_event_loop_exists() -> bool: + """Check if an event loop has been set.""" + import asyncio + + return asyncio.get_event_loop_policy()._local._loop is not None # type: ignore From 85d6229aa65482425f22d50bfc1e030dac7d63ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 10:41:09 +0200 Subject: [PATCH 17/41] updates DataService import to avoid circular import --- src/pydase/task/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 7809a52..6651f54 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -12,7 +12,7 @@ from typing import ( from typing_extensions import TypeIs -import pydase +import pydase.data_service.data_service from pydase.utils.helpers import current_event_loop_exists logging.basicConfig(level=logging.DEBUG) @@ -34,7 +34,7 @@ class TaskStatus(Enum): NOT_RUNNING = "not_running" -class Task(pydase.DataService, Generic[R]): +class Task(pydase.data_service.data_service.DataService, Generic[R]): def __init__( self, func: Callable[[Any], Coroutine[None, None, R | None]] From 15322b742d449f4b4c0d65defc2a07cc697e5707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 10:57:19 +0200 Subject: [PATCH 18/41] using explicit loop to create task even if loop is not running yet --- src/pydase/task/task.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 6651f54..dff5da5 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -55,7 +55,7 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): self._bound_func = func else: self._func = func - self._task: asyncio.Task[R] | None = None + self._task: asyncio.Task[R | None] | None = None self._status = TaskStatus.NOT_RUNNING self._result: R | None = None if autostart: @@ -69,7 +69,7 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): if self._task: return - def task_done_callback(task: asyncio.Task[R]) -> None: + def task_done_callback(task: asyncio.Task[R | None]) -> None: """Handles tasks that have finished. Removes a task from the tasks dictionary, calls the defined @@ -94,12 +94,17 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): self._result = task.result() - logger.info("Starting task %s", self._func_name) - if inspect.iscoroutinefunction(self._bound_func): - res: Coroutine[None, None, R] = self._bound_func() - self._task = asyncio.create_task(res) - self._task.add_done_callback(task_done_callback) - self._status = TaskStatus.RUNNING + async def run_task() -> R | None: + if inspect.iscoroutinefunction(self._bound_func): + logger.info("Starting task %r", self._func_name) + self._status = TaskStatus.RUNNING + res: Coroutine[None, None, R] = self._bound_func() + return await res + return None + + logger.info("Creating task %r", self._func_name) + self._task = self._loop.create_task(run_task()) + self._task.add_done_callback(task_done_callback) def stop(self) -> None: if self._task: From 12c0c9763da8a1cfd29e9cbbcb6ac530cd5dcb35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 11:11:44 +0200 Subject: [PATCH 19/41] delay task setup until called from class instance containing the task --- src/pydase/task/task.py | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index dff5da5..85b8d12 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -43,13 +43,10 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): autostart: bool = False, ) -> None: super().__init__() - if not current_event_loop_exists(): - self._loop = asyncio.new_event_loop() - asyncio.set_event_loop(self._loop) - else: - self._loop = asyncio.get_event_loop() + self._autostart = autostart self._func_name = func.__name__ self._bound_func: Callable[[], Coroutine[None, None, R | None]] | None = None + self._set_up = False if is_bound_method(func): self._func = func self._bound_func = func @@ -58,8 +55,6 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): self._task: asyncio.Task[R | None] | None = None self._status = TaskStatus.NOT_RUNNING self._result: R | None = None - if autostart: - self.start() @property def status(self) -> TaskStatus: @@ -111,8 +106,25 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): self._task.cancel() def __get__(self, instance: Any, owner: Any) -> Self: - # need to use this descriptor to bind the function to the instance of the class - # containing the function - if instance and self._bound_func is None: + """Descriptor method used to correctly setup the task. + + This descriptor method is called by the class instance containing the task. + We need to use this descriptor to bind the task function to that class instance. + + As the __init__ function is called when a function is decorated with + @pydase.task.task, we should delay some of the setup until this descriptor + function is called. + """ + + if instance and not self._set_up: + if not current_event_loop_exists(): + self._loop = asyncio.new_event_loop() + asyncio.set_event_loop(self._loop) + else: + self._loop = asyncio.get_event_loop() self._bound_func = self._func.__get__(instance, owner) + self._set_up = True + + if self._autostart: + self.start() return self From 09fae019852a7807066647dfaf68f5b311501550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 11:17:36 +0200 Subject: [PATCH 20/41] adds warning when _bound_func has not been bound yet This might arise when calling the start method of a task which is part of a class that has not been instantiated yet. --- src/pydase/task/task.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 85b8d12..5b768d6 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -70,10 +70,7 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): Removes a task from the tasks dictionary, calls the defined callbacks, and logs and re-raises exceptions.""" - # removing the finished task from the tasks i self._task = None - - # emit the notification that the task was stopped self._status = TaskStatus.NOT_RUNNING exception = task.exception() @@ -95,6 +92,9 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): self._status = TaskStatus.RUNNING res: Coroutine[None, None, R] = self._bound_func() return await res + logger.warning( + "Cannot start task %r. Function has not been bound yet", self._func_name + ) return None logger.info("Creating task %r", self._func_name) From be3011c56548c242c9f8cf1f0c515be4bcf6d775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 11:18:27 +0200 Subject: [PATCH 21/41] adapt device connection component to use @task decorator --- src/pydase/components/device_connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pydase/components/device_connection.py b/src/pydase/components/device_connection.py index cf98a62..b7b648c 100644 --- a/src/pydase/components/device_connection.py +++ b/src/pydase/components/device_connection.py @@ -1,6 +1,7 @@ import asyncio import pydase.data_service +import pydase.task class DeviceConnection(pydase.data_service.DataService): @@ -52,7 +53,6 @@ class DeviceConnection(pydase.data_service.DataService): def __init__(self) -> None: super().__init__() self._connected = False - self._autostart_tasks["_handle_connection"] = () # type: ignore self._reconnection_wait_time = 10.0 def connect(self) -> None: @@ -70,6 +70,7 @@ class DeviceConnection(pydase.data_service.DataService): """ return self._connected + @pydase.task.task(autostart=True) async def _handle_connection(self) -> None: """Automatically tries reconnecting to the device if it is not connected. This method leverages the `connect` method and the `connected` property to From 0d6d312f68ae82d0a6712d77e67093e2ded9dc00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 11:22:07 +0200 Subject: [PATCH 22/41] chore: fixes type hints for python 3.10 --- src/pydase/task/task.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 5b768d6..7e0790f 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -1,17 +1,22 @@ import asyncio import inspect import logging +import sys from collections.abc import Callable, Coroutine from enum import Enum from typing import ( Any, Generic, - Self, TypeVar, ) from typing_extensions import TypeIs +if sys.version_info < (3, 11): + from typing_extensions import Self +else: + from typing import Self + import pydase.data_service.data_service from pydase.utils.helpers import current_event_loop_exists From 96cc7b31b45f195ebdd59ea4de1e91864666021b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 11:29:49 +0200 Subject: [PATCH 23/41] updates documentation --- src/pydase/task/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 7e0790f..d471ccb 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -72,8 +72,8 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): def task_done_callback(task: asyncio.Task[R | None]) -> None: """Handles tasks that have finished. - Removes a task from the tasks dictionary, calls the defined - callbacks, and logs and re-raises exceptions.""" + Update task status, calls the defined callbacks, and logs and re-raises + exceptions.""" self._task = None self._status = TaskStatus.NOT_RUNNING From c0e5a77d6f05ed7a258fd8159a870a5a1ac41bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 6 Aug 2024 11:32:12 +0200 Subject: [PATCH 24/41] simplifies @task decorator (updates types), moves task logic into Task's run_task() --- src/pydase/task/decorator.py | 23 ++++++++++------------- src/pydase/task/task.py | 6 +++++- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/pydase/task/decorator.py b/src/pydase/task/decorator.py index a1d9a70..cce84c9 100644 --- a/src/pydase/task/decorator.py +++ b/src/pydase/task/decorator.py @@ -1,5 +1,3 @@ -import asyncio -import functools import logging from collections.abc import Callable, Coroutine from typing import Any, TypeVar @@ -13,18 +11,17 @@ R = TypeVar("R") def task( *, autostart: bool = False -) -> Callable[[Callable[[Any], Coroutine[None, None, R]]], Task[R]]: +) -> Callable[ + [ + Callable[[Any], Coroutine[None, None, R]] + | Callable[[], Coroutine[None, None, R]] + ], + Task[R], +]: def decorator( - func: Callable[[Any], Coroutine[None, None, R]], + func: Callable[[Any], Coroutine[None, None, R]] + | Callable[[], Coroutine[None, None, R]], ) -> Task[R]: - @functools.wraps(func) - async def wrapper(self: Any) -> R | None: - try: - return await func(self) - except asyncio.CancelledError: - logger.info("Task '%s' was cancelled", func.__name__) - return None - - return Task(wrapper, autostart=autostart) + return Task(func, autostart=autostart) return decorator diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index d471ccb..ba14473 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -96,7 +96,11 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): logger.info("Starting task %r", self._func_name) self._status = TaskStatus.RUNNING res: Coroutine[None, None, R] = self._bound_func() - return await res + try: + return await res + except asyncio.CancelledError: + logger.info("Task '%s' was cancelled", self._func_name) + return None logger.warning( "Cannot start task %r. Function has not been bound yet", self._func_name ) From fa35fa53e2d30eeedde32768acc263ddad6591c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 19 Aug 2024 16:47:15 +0200 Subject: [PATCH 25/41] removes TaskManager --- .../data_service/abstract_data_service.py | 10 +- src/pydase/data_service/data_service.py | 6 - src/pydase/data_service/task_manager.py | 225 ------------------ src/pydase/utils/helpers.py | 2 - src/pydase/utils/serialization/serializer.py | 2 +- 5 files changed, 2 insertions(+), 243 deletions(-) delete mode 100644 src/pydase/data_service/task_manager.py diff --git a/src/pydase/data_service/abstract_data_service.py b/src/pydase/data_service/abstract_data_service.py index c85ed2f..d46c11c 100644 --- a/src/pydase/data_service/abstract_data_service.py +++ b/src/pydase/data_service/abstract_data_service.py @@ -1,15 +1,7 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any - from pydase.observer_pattern.observable.observable import Observable -if TYPE_CHECKING: - from pydase.data_service.data_service import DataService - from pydase.data_service.task_manager import TaskManager - class AbstractDataService(Observable): - __root__: DataService - _task_manager: TaskManager - _autostart_tasks: dict[str, tuple[Any]] + pass diff --git a/src/pydase/data_service/data_service.py b/src/pydase/data_service/data_service.py index b5c818a..538f5ff 100644 --- a/src/pydase/data_service/data_service.py +++ b/src/pydase/data_service/data_service.py @@ -5,7 +5,6 @@ from typing import Any import pydase.units as u from pydase.data_service.abstract_data_service import AbstractDataService -from pydase.data_service.task_manager import TaskManager from pydase.observer_pattern.observable.observable import ( Observable, ) @@ -24,11 +23,6 @@ logger = logging.getLogger(__name__) class DataService(AbstractDataService): def __init__(self) -> None: super().__init__() - self._task_manager = TaskManager(self) - - if not hasattr(self, "_autostart_tasks"): - self._autostart_tasks = {} - self.__check_instance_classes() def __setattr__(self, __name: str, __value: Any) -> None: diff --git a/src/pydase/data_service/task_manager.py b/src/pydase/data_service/task_manager.py deleted file mode 100644 index af5d6b1..0000000 --- a/src/pydase/data_service/task_manager.py +++ /dev/null @@ -1,225 +0,0 @@ -from __future__ import annotations - -import asyncio -import inspect -import logging -from enum import Enum -from typing import TYPE_CHECKING, Any - -from pydase.data_service.abstract_data_service import AbstractDataService -from pydase.utils.helpers import ( - function_has_arguments, - get_class_and_instance_attributes, - is_property_attribute, -) - -if TYPE_CHECKING: - from collections.abc import Callable - - from .data_service import DataService - -logger = logging.getLogger(__name__) - - -class TaskStatus(Enum): - RUNNING = "running" - - -class TaskManager: - """ - The TaskManager class is a utility designed to manage asynchronous tasks. It - provides functionality for starting, stopping, and tracking these tasks. The class - is primarily used by the DataService class to manage its tasks. - - A task in TaskManager is any asynchronous function. To add a task, you simply need - to define an async function within your class that extends TaskManager. For example: - - ```python - class MyService(DataService): - async def my_task(self): - # Your task implementation here - pass - ``` - - With the above definition, TaskManager automatically creates `start_my_task` and - `stop_my_task` methods that can be used to control the task. - - TaskManager also supports auto-starting tasks. If there are tasks that should start - running as soon as an instance of your class is created, you can define them in - `self._autostart_tasks` in your class constructor (__init__ method). Here's how: - - ```python - class MyService(DataService): - def __init__(self): - self._autostart_tasks = { - "my_task": (*args) # Replace with actual arguments - } - self.wait_time = 1 - super().__init__() - - async def my_task(self, *args): - while True: - # Your task implementation here - await asyncio.sleep(self.wait_time) - ``` - - In the above example, `my_task` will start running as soon as - `_start_autostart_tasks` is called which is done when the DataService instance is - passed to the `pydase.Server` class. - - The responsibilities of the TaskManager class are: - - - Track all running tasks: Keeps track of all the tasks that are currently running. - This allows for monitoring of task statuses and for making sure tasks do not - overlap. - - Provide the ability to start and stop tasks: Automatically creates methods to - start and stop each task. - - Emit notifications when the status of a task changes: Has a built-in mechanism for - emitting notifications when a task starts or stops. This is used to update the user - interfaces, but can also be used to write logs, etc. - """ - - def __init__(self, service: DataService) -> None: - self.service = service - - self.tasks: dict[str, asyncio.Task[None]] = {} - """A dictionary to keep track of running tasks. The keys are the names of the - tasks and the values are TaskDict instances which include the task itself and - its kwargs. - """ - - self._set_start_and_stop_for_async_methods() - - @property - def _loop(self) -> asyncio.AbstractEventLoop: - return asyncio.get_running_loop() - - def _set_start_and_stop_for_async_methods(self) -> None: - for name in dir(self.service): - # circumvents calling properties - if is_property_attribute(self.service, name): - continue - - method = getattr(self.service, name) - if inspect.iscoroutinefunction(method): - if function_has_arguments(method): - logger.info( - "Async function %a is defined with at least one argument. If " - "you want to use it as a task, remove the argument(s) from the " - "function definition.", - method.__name__, - ) - continue - - # create start and stop methods for each coroutine - setattr( - self.service, f"start_{name}", self._make_start_task(name, method) - ) - setattr(self.service, f"stop_{name}", self._make_stop_task(name)) - - def _initiate_task_startup(self) -> None: - if self.service._autostart_tasks is not None: - for service_name, args in self.service._autostart_tasks.items(): - start_method = getattr(self.service, f"start_{service_name}", None) - if start_method is not None and callable(start_method): - start_method(*args) - else: - logger.warning( - "No start method found for service '%s'", service_name - ) - - def start_autostart_tasks(self) -> None: - self._initiate_task_startup() - attrs = get_class_and_instance_attributes(self.service) - - for attr_value in attrs.values(): - if isinstance(attr_value, AbstractDataService): - attr_value._task_manager.start_autostart_tasks() - elif isinstance(attr_value, list): - for item in attr_value: - if isinstance(item, AbstractDataService): - item._task_manager.start_autostart_tasks() - - def _make_stop_task(self, name: str) -> Callable[..., Any]: - """ - Factory function to create a 'stop_task' function for a running task. - - The generated function cancels the associated asyncio task using 'name' for - identification, ensuring proper cleanup. Avoids closure and late binding issues. - - Args: - name (str): The name of the coroutine task, used for its identification. - """ - - def stop_task() -> None: - # cancel the task - task = self.tasks.get(name, None) - if task is not None: - self._loop.call_soon_threadsafe(task.cancel) - - return stop_task - - def _make_start_task( - self, name: str, method: Callable[..., Any] - ) -> Callable[..., Any]: - """ - Factory function to create a 'start_task' function for a coroutine. - - The generated function starts the coroutine as an asyncio task, handling - registration and monitoring. - It uses 'name' and 'method' to avoid the closure and late binding issue. - - Args: - name (str): The name of the coroutine, used for task management. - method (callable): The coroutine to be turned into an asyncio task. - """ - - def start_task() -> None: - def task_done_callback(task: asyncio.Task[None], name: str) -> None: - """Handles tasks that have finished. - - Removes a task from the tasks dictionary, calls the defined - callbacks, and logs and re-raises exceptions.""" - - # removing the finished task from the tasks i - self.tasks.pop(name, None) - - # emit the notification that the task was stopped - self.service._notify_changed(name, None) - - exception = task.exception() - if exception is not None: - # Handle the exception, or you can re-raise it. - logger.error( - "Task '%s' encountered an exception: %s: %s", - name, - type(exception).__name__, - exception, - ) - raise exception - - async def task() -> None: - try: - await method() - except asyncio.CancelledError: - logger.info("Task '%s' was cancelled", name) - - if not self.tasks.get(name): - # creating the task and adding the task_done_callback which checks - # if an exception has occured during the task execution - task_object = self._loop.create_task(task()) - task_object.add_done_callback( - lambda task: task_done_callback(task, name) - ) - - # Store the task and its arguments in the '__tasks' dictionary. The - # key is the name of the method, and the value is a dictionary - # containing the task object and the updated keyword arguments. - self.tasks[name] = task_object - - # emit the notification that the task was started - self.service._notify_changed(name, TaskStatus.RUNNING) - else: - logger.error("Task '%s' is already running!", name) - - return start_task diff --git a/src/pydase/utils/helpers.py b/src/pydase/utils/helpers.py index 3c22c6c..35ca594 100644 --- a/src/pydase/utils/helpers.py +++ b/src/pydase/utils/helpers.py @@ -114,8 +114,6 @@ def get_class_and_instance_attributes(obj: object) -> dict[str, Any]: If an attribute exists at both the instance and class level,the value from the instance attribute takes precedence. - The __root__ object is removed as this will lead to endless recursion in the for - loops. """ return dict(chain(type(obj).__dict__.items(), obj.__dict__.items())) diff --git a/src/pydase/utils/serialization/serializer.py b/src/pydase/utils/serialization/serializer.py index 6e8bdda..5d3a972 100644 --- a/src/pydase/utils/serialization/serializer.py +++ b/src/pydase/utils/serialization/serializer.py @@ -9,7 +9,7 @@ from typing import TYPE_CHECKING, Any, Literal, cast import pydase.units as u from pydase.data_service.abstract_data_service import AbstractDataService -from pydase.data_service.task_manager import TaskStatus +from pydase.task.task import TaskStatus from pydase.utils.decorators import render_in_frontend from pydase.utils.helpers import ( get_attribute_doc, From d1d2ac26143c66b20e8e5ffaf2b8056131f01d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 19 Aug 2024 17:21:14 +0200 Subject: [PATCH 26/41] fixing circular import --- src/pydase/components/device_connection.py | 4 ++-- src/pydase/task/__init__.py | 3 --- src/pydase/task/task.py | 8 ++------ src/pydase/task/task_status.py | 6 ++++++ src/pydase/utils/serialization/serializer.py | 6 +----- 5 files changed, 11 insertions(+), 16 deletions(-) create mode 100644 src/pydase/task/task_status.py diff --git a/src/pydase/components/device_connection.py b/src/pydase/components/device_connection.py index b7b648c..7816b80 100644 --- a/src/pydase/components/device_connection.py +++ b/src/pydase/components/device_connection.py @@ -1,7 +1,7 @@ import asyncio import pydase.data_service -import pydase.task +import pydase.task.decorator class DeviceConnection(pydase.data_service.DataService): @@ -70,7 +70,7 @@ class DeviceConnection(pydase.data_service.DataService): """ return self._connected - @pydase.task.task(autostart=True) + @pydase.task.decorator.task(autostart=True) async def _handle_connection(self) -> None: """Automatically tries reconnecting to the device if it is not connected. This method leverages the `connect` method and the `connected` property to diff --git a/src/pydase/task/__init__.py b/src/pydase/task/__init__.py index 69c7c2f..e69de29 100644 --- a/src/pydase/task/__init__.py +++ b/src/pydase/task/__init__.py @@ -1,3 +0,0 @@ -from pydase.task.decorator import task - -__all__ = ["task"] diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index ba14473..7f3ecac 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -3,7 +3,6 @@ import inspect import logging import sys from collections.abc import Callable, Coroutine -from enum import Enum from typing import ( Any, Generic, @@ -12,6 +11,8 @@ from typing import ( from typing_extensions import TypeIs +from pydase.task.task_status import TaskStatus + if sys.version_info < (3, 11): from typing_extensions import Self else: @@ -34,11 +35,6 @@ def is_bound_method( return inspect.ismethod(method) -class TaskStatus(Enum): - RUNNING = "running" - NOT_RUNNING = "not_running" - - class Task(pydase.data_service.data_service.DataService, Generic[R]): def __init__( self, diff --git a/src/pydase/task/task_status.py b/src/pydase/task/task_status.py new file mode 100644 index 0000000..9ddd3d2 --- /dev/null +++ b/src/pydase/task/task_status.py @@ -0,0 +1,6 @@ +import enum + + +class TaskStatus(enum.Enum): + RUNNING = "running" + NOT_RUNNING = "not_running" diff --git a/src/pydase/utils/serialization/serializer.py b/src/pydase/utils/serialization/serializer.py index 5d3a972..bb6c0d6 100644 --- a/src/pydase/utils/serialization/serializer.py +++ b/src/pydase/utils/serialization/serializer.py @@ -9,7 +9,7 @@ from typing import TYPE_CHECKING, Any, Literal, cast import pydase.units as u from pydase.data_service.abstract_data_service import AbstractDataService -from pydase.task.task import TaskStatus +from pydase.task.task_status import TaskStatus from pydase.utils.decorators import render_in_frontend from pydase.utils.helpers import ( get_attribute_doc, @@ -310,10 +310,6 @@ class Serializer: path = f"{access_path}.{key}" if access_path else key serialized_object = cls.serialize_object(val, access_path=path) - # If there's a running task for this method - if serialized_object["type"] == "method" and key in obj._task_manager.tasks: - serialized_object["value"] = TaskStatus.RUNNING.name - value[key] = serialized_object # If the DataService attribute is a property From 416b9ee81580875589e24cb0084b7aa5db150e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 20 Aug 2024 08:29:00 +0200 Subject: [PATCH 27/41] removes part of serializer for serializing start and stop methods of async methods --- src/pydase/utils/serialization/serializer.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/pydase/utils/serialization/serializer.py b/src/pydase/utils/serialization/serializer.py index bb6c0d6..048f455 100644 --- a/src/pydase/utils/serialization/serializer.py +++ b/src/pydase/utils/serialization/serializer.py @@ -295,16 +295,6 @@ class Serializer: if key.startswith("_"): continue # Skip attributes that start with underscore - # Skip keys that start with "start_" or "stop_" and end with an async - # method name - if key.startswith(("start_", "stop_")) and key.split("_", 1)[1] in { - name - for name, _ in inspect.getmembers( - obj, predicate=inspect.iscoroutinefunction - ) - }: - continue - val = getattr(obj, key) path = f"{access_path}.{key}" if access_path else key From bfa0acedab38fb525de83753dcb32ed8664828c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Fri, 13 Sep 2024 12:37:18 +0200 Subject: [PATCH 28/41] moves autostart from Task to separate autostart submodule --- src/pydase/task/autostart.py | 15 +++++++++++++++ src/pydase/task/task.py | 9 ++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 src/pydase/task/autostart.py diff --git a/src/pydase/task/autostart.py b/src/pydase/task/autostart.py new file mode 100644 index 0000000..075ce3c --- /dev/null +++ b/src/pydase/task/autostart.py @@ -0,0 +1,15 @@ +import pydase.data_service.data_service +import pydase.task.task +from pydase.utils.helpers import is_property_attribute + + +def autostart_service_tasks( + service: pydase.data_service.data_service.DataService, +) -> None: + for attr in dir(service): + if not is_property_attribute(service, attr): # prevent eval of property attrs + val = getattr(service, attr) + if isinstance(val, pydase.task.task.Task) and val.autostart: + val.start() + elif isinstance(val, pydase.DataService): + autostart_service_tasks(val) diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 7f3ecac..21c863d 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -57,6 +57,12 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): self._status = TaskStatus.NOT_RUNNING self._result: R | None = None + @property + def autostart(self) -> bool: + """Defines if the task should be started automatically when the `pydase.Server` + starts.""" + return self._autostart + @property def status(self) -> TaskStatus: return self._status @@ -129,7 +135,4 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): self._loop = asyncio.get_event_loop() self._bound_func = self._func.__get__(instance, owner) self._set_up = True - - if self._autostart: - self.start() return self From 71adc8bea27f5033522e629c3ebea5d914d8dd40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Fri, 13 Sep 2024 12:37:29 +0200 Subject: [PATCH 29/41] adds autostart to server --- src/pydase/server/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pydase/server/server.py b/src/pydase/server/server.py index b7c0c08..7f8d6ce 100644 --- a/src/pydase/server/server.py +++ b/src/pydase/server/server.py @@ -13,6 +13,7 @@ from pydase.config import ServiceConfig from pydase.data_service.data_service_observer import DataServiceObserver from pydase.data_service.state_manager import StateManager from pydase.server.web_server import WebServer +from pydase.task.autostart import autostart_service_tasks from pydase.utils.helpers import current_event_loop_exists HANDLED_SIGNALS = ( @@ -163,6 +164,7 @@ class Server: self._state_manager = StateManager(self._service, filename) self._observer = DataServiceObserver(self._state_manager) self._state_manager.load_state() + autostart_service_tasks(self._service) if not current_event_loop_exists(): self._loop = asyncio.new_event_loop() asyncio.set_event_loop(self._loop) From 2e31ebb7d947aef854b31cae65bfd96d1aff4a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Fri, 13 Sep 2024 12:59:37 +0200 Subject: [PATCH 30/41] fixes or removes task-related tests --- tests/data_service/test_data_service.py | 20 +-- tests/data_service/test_data_service_cache.py | 33 ----- tests/data_service/test_task_manager.py | 135 ------------------ tests/utils/serialization/test_serializer.py | 9 +- 4 files changed, 9 insertions(+), 188 deletions(-) delete mode 100644 tests/data_service/test_task_manager.py diff --git a/tests/data_service/test_data_service.py b/tests/data_service/test_data_service.py index 9ee9120..47b5475 100644 --- a/tests/data_service/test_data_service.py +++ b/tests/data_service/test_data_service.py @@ -36,8 +36,7 @@ def test_unexpected_type_change_warning(caplog: LogCaptureFixture) -> None: def test_basic_inheritance_warning(caplog: LogCaptureFixture) -> None: - class SubService(DataService): - ... + class SubService(DataService): ... class SomeEnum(Enum): HI = 0 @@ -57,11 +56,9 @@ def test_basic_inheritance_warning(caplog: LogCaptureFixture) -> None: def name(self) -> str: return self._name - def some_method(self) -> None: - ... + def some_method(self) -> None: ... - async def some_task(self) -> None: - ... + async def some_task(self) -> None: ... ServiceClass() @@ -129,17 +126,12 @@ def test_exposing_methods(caplog: LogCaptureFixture) -> None: return "some method" class ClassWithTask(pydase.DataService): - async def some_task(self, sleep_time: int) -> None: - pass + @frontend + def some_method(self) -> str: + return "some method" ClassWithTask() - assert ( - "Async function 'some_task' is defined with at least one argument. If you want " - "to use it as a task, remove the argument(s) from the function definition." - in caplog.text - ) - def test_dynamically_added_attribute(caplog: LogCaptureFixture) -> None: class MyService(DataService): diff --git a/tests/data_service/test_data_service_cache.py b/tests/data_service/test_data_service_cache.py index 8e85403..c33fc8c 100644 --- a/tests/data_service/test_data_service_cache.py +++ b/tests/data_service/test_data_service_cache.py @@ -1,7 +1,6 @@ import logging import pydase -import pytest from pydase.data_service.data_service_observer import DataServiceObserver from pydase.data_service.state_manager import StateManager @@ -33,35 +32,3 @@ def test_nested_attributes_cache_callback() -> None: ] == "Ciao" ) - - -@pytest.mark.asyncio(scope="function") -async def test_task_status_update() -> None: - class ServiceClass(pydase.DataService): - name = "World" - - async def my_method(self) -> None: - pass - - service_instance = ServiceClass() - state_manager = StateManager(service_instance) - DataServiceObserver(state_manager) - - assert ( - state_manager.cache_manager.get_value_dict_from_cache("my_method")["type"] - == "method" - ) - assert ( - state_manager.cache_manager.get_value_dict_from_cache("my_method")["value"] - is None - ) - - service_instance.start_my_method() # type: ignore - assert ( - state_manager.cache_manager.get_value_dict_from_cache("my_method")["type"] - == "method" - ) - assert ( - state_manager.cache_manager.get_value_dict_from_cache("my_method")["value"] - == "RUNNING" - ) diff --git a/tests/data_service/test_task_manager.py b/tests/data_service/test_task_manager.py deleted file mode 100644 index 7a1a682..0000000 --- a/tests/data_service/test_task_manager.py +++ /dev/null @@ -1,135 +0,0 @@ -import asyncio -import logging - -import pydase -import pytest -from pydase.data_service.data_service_observer import DataServiceObserver -from pydase.data_service.state_manager import StateManager -from pytest import LogCaptureFixture - -logger = logging.getLogger("pydase") - - -@pytest.mark.asyncio(scope="function") -async def test_autostart_task_callback(caplog: LogCaptureFixture) -> None: - class MyService(pydase.DataService): - def __init__(self) -> None: - super().__init__() - self._autostart_tasks = { # type: ignore - "my_task": (), # type: ignore - "my_other_task": (), # type: ignore - } - - async def my_task(self) -> None: - logger.info("Triggered task.") - - async def my_other_task(self) -> None: - logger.info("Triggered other task.") - - # Your test code here - service_instance = MyService() - state_manager = StateManager(service_instance) - DataServiceObserver(state_manager) - service_instance._task_manager.start_autostart_tasks() - - assert "'my_task' changed to 'TaskStatus.RUNNING'" in caplog.text - assert "'my_other_task' changed to 'TaskStatus.RUNNING'" in caplog.text - - -@pytest.mark.asyncio(scope="function") -async def test_DataService_subclass_autostart_task_callback( - caplog: LogCaptureFixture, -) -> None: - class MySubService(pydase.DataService): - def __init__(self) -> None: - super().__init__() - self._autostart_tasks = { # type: ignore - "my_task": (), - "my_other_task": (), - } - - async def my_task(self) -> None: - logger.info("Triggered task.") - - async def my_other_task(self) -> None: - logger.info("Triggered other task.") - - class MyService(pydase.DataService): - sub_service = MySubService() - - service_instance = MyService() - state_manager = StateManager(service_instance) - DataServiceObserver(state_manager) - service_instance._task_manager.start_autostart_tasks() - - assert "'sub_service.my_task' changed to 'TaskStatus.RUNNING'" in caplog.text - assert "'sub_service.my_other_task' changed to 'TaskStatus.RUNNING'" in caplog.text - - -@pytest.mark.asyncio(scope="function") -async def test_DataService_subclass_list_autostart_task_callback( - caplog: LogCaptureFixture, -) -> None: - class MySubService(pydase.DataService): - def __init__(self) -> None: - super().__init__() - self._autostart_tasks = { # type: ignore - "my_task": (), - "my_other_task": (), - } - - async def my_task(self) -> None: - logger.info("Triggered task.") - - async def my_other_task(self) -> None: - logger.info("Triggered other task.") - - class MyService(pydase.DataService): - sub_services_list = [MySubService() for i in range(2)] - - service_instance = MyService() - state_manager = StateManager(service_instance) - DataServiceObserver(state_manager) - service_instance._task_manager.start_autostart_tasks() - - assert ( - "'sub_services_list[0].my_task' changed to 'TaskStatus.RUNNING'" in caplog.text - ) - assert ( - "'sub_services_list[0].my_other_task' changed to 'TaskStatus.RUNNING'" - in caplog.text - ) - assert ( - "'sub_services_list[1].my_task' changed to 'TaskStatus.RUNNING'" in caplog.text - ) - assert ( - "'sub_services_list[1].my_other_task' changed to 'TaskStatus.RUNNING'" - in caplog.text - ) - - -@pytest.mark.asyncio(scope="function") -async def test_start_and_stop_task_methods(caplog: LogCaptureFixture) -> None: - class MyService(pydase.DataService): - def __init__(self) -> None: - super().__init__() - - async def my_task(self) -> None: - while True: - logger.debug("Logging message") - await asyncio.sleep(0.1) - - # Your test code here - service_instance = MyService() - state_manager = StateManager(service_instance) - DataServiceObserver(state_manager) - service_instance.start_my_task() - await asyncio.sleep(0.01) - - assert "'my_task' changed to 'TaskStatus.RUNNING'" in caplog.text - assert "Logging message" in caplog.text - caplog.clear() - - service_instance.stop_my_task() - await asyncio.sleep(0.01) - assert "Task 'my_task' was cancelled" in caplog.text diff --git a/tests/utils/serialization/test_serializer.py b/tests/utils/serialization/test_serializer.py index 90612af..6c1ab81 100644 --- a/tests/utils/serialization/test_serializer.py +++ b/tests/utils/serialization/test_serializer.py @@ -1,4 +1,3 @@ -import asyncio import enum from datetime import datetime from enum import Enum @@ -8,7 +7,7 @@ import pydase import pydase.units as u import pytest from pydase.components.coloured_enum import ColouredEnum -from pydase.data_service.task_manager import TaskStatus +from pydase.task.task_status import TaskStatus from pydase.utils.decorators import frontend from pydase.utils.serialization.serializer import ( SerializationPathError, @@ -214,11 +213,9 @@ async def test_method_serialization() -> None: return "some method" async def some_task(self) -> None: - while True: - await asyncio.sleep(10) + pass instance = ClassWithMethod() - instance.start_some_task() # type: ignore assert dump(instance)["value"] == { "some_method": { @@ -234,7 +231,7 @@ async def test_method_serialization() -> None: "some_task": { "full_access_path": "some_task", "type": "method", - "value": TaskStatus.RUNNING.name, + "value": None, "readonly": True, "doc": None, "async": True, From e422d627af895e2944b826dd37529f6e64f1c924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Fri, 13 Sep 2024 13:04:59 +0200 Subject: [PATCH 31/41] adds docstring to autostart method --- src/pydase/task/autostart.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pydase/task/autostart.py b/src/pydase/task/autostart.py index 075ce3c..4804033 100644 --- a/src/pydase/task/autostart.py +++ b/src/pydase/task/autostart.py @@ -6,6 +6,12 @@ from pydase.utils.helpers import is_property_attribute def autostart_service_tasks( service: pydase.data_service.data_service.DataService, ) -> None: + """Starts the service tasks defined with the `autostart` keyword argument. + + This method goes through the attributes of the passed service and its nested + `pydase.DataService` instances and calls the start method on autostart-tasks. + """ + for attr in dir(service): if not is_property_attribute(service, attr): # prevent eval of property attrs val = getattr(service, attr) From e88965b69d0621d17789895b1cd57b0d07dfd473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Fri, 13 Sep 2024 12:39:33 +0200 Subject: [PATCH 32/41] fixes device connection test --- tests/components/test_device_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/test_device_connection.py b/tests/components/test_device_connection.py index 3f5e92c..c05aee3 100644 --- a/tests/components/test_device_connection.py +++ b/tests/components/test_device_connection.py @@ -3,6 +3,7 @@ import asyncio import pydase import pydase.components.device_connection import pytest +from pydase.task.autostart import autostart_service_tasks from pytest import LogCaptureFixture @@ -19,10 +20,9 @@ async def test_reconnection(caplog: LogCaptureFixture) -> None: self._connected = True service_instance = MyService() + autostart_service_tasks(service_instance) assert service_instance._connected is False - service_instance._task_manager.start_autostart_tasks() - await asyncio.sleep(0.01) assert service_instance._connected is True From 62f28f79db3f2fe96156a75037980c105df25d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 16 Sep 2024 07:53:20 +0200 Subject: [PATCH 33/41] adds list and dictionary entries to task autostart --- src/pydase/task/autostart.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pydase/task/autostart.py b/src/pydase/task/autostart.py index 4804033..8f7344e 100644 --- a/src/pydase/task/autostart.py +++ b/src/pydase/task/autostart.py @@ -19,3 +19,9 @@ def autostart_service_tasks( val.start() elif isinstance(val, pydase.DataService): autostart_service_tasks(val) + elif isinstance(val, list): + for entry in val: + autostart_service_tasks(entry) + elif isinstance(val, dict): + for entry in val.values(): + autostart_service_tasks(entry) From 32e36d49625e9108a776792f4ac5ec0017a28a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 16 Sep 2024 07:28:17 +0200 Subject: [PATCH 34/41] adds task tests --- tests/task/test_task.py | 122 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 tests/task/test_task.py diff --git a/tests/task/test_task.py b/tests/task/test_task.py new file mode 100644 index 0000000..de21dbf --- /dev/null +++ b/tests/task/test_task.py @@ -0,0 +1,122 @@ +import asyncio +import logging + +import pydase +import pytest +from pydase.data_service.data_service_observer import DataServiceObserver +from pydase.data_service.state_manager import StateManager +from pydase.task.autostart import autostart_service_tasks +from pydase.task.decorator import task +from pydase.task.task_status import TaskStatus +from pytest import LogCaptureFixture + +logger = logging.getLogger("pydase") + + +@pytest.mark.asyncio(scope="function") +async def test_start_and_stop_task(caplog: LogCaptureFixture) -> None: + class MyService(pydase.DataService): + @task() + async def my_task(self) -> None: + while True: + logger.debug("Logging message") + await asyncio.sleep(0.01) + + # Your test code here + service_instance = MyService() + state_manager = StateManager(service_instance) + DataServiceObserver(state_manager) + service_instance.my_task.start() + await asyncio.sleep(0.1) + + assert "'my_task.status' changed to 'TaskStatus.RUNNING'" in caplog.text + assert "Logging message" in caplog.text + caplog.clear() + + service_instance.my_task.stop() + await asyncio.sleep(0.1) + assert "Task 'my_task' was cancelled" in caplog.text + + +@pytest.mark.asyncio(scope="function") +async def test_autostart_task(caplog: LogCaptureFixture) -> None: + class MyService(pydase.DataService): + @task(autostart=True) + async def my_task(self) -> None: + logger.info("Triggered task.") + + # Your test code here + service_instance = MyService() + state_manager = StateManager(service_instance) + DataServiceObserver(state_manager) + + autostart_service_tasks(service_instance) + + await asyncio.sleep(0.1) + + assert "'my_task.status' changed to 'TaskStatus.RUNNING'" in caplog.text + + +@pytest.mark.asyncio(scope="function") +async def test_nested_list_autostart_task( + caplog: LogCaptureFixture, +) -> None: + class MySubService(pydase.DataService): + @task(autostart=True) + async def my_task(self) -> None: + logger.info("Triggered task.") + + class MyService(pydase.DataService): + sub_services_list = [MySubService() for i in range(2)] + + service_instance = MyService() + state_manager = StateManager(service_instance) + DataServiceObserver(state_manager) + autostart_service_tasks(service_instance) + + await asyncio.sleep(0.1) + + assert ( + "'sub_services_list[0].my_task.status' changed to 'TaskStatus.RUNNING'" + in caplog.text + ) + assert ( + "'sub_services_list[1].my_task.status' changed to 'TaskStatus.RUNNING'" + in caplog.text + ) + + +@pytest.mark.asyncio(scope="function") +async def test_nested_dict_autostart_task( + caplog: LogCaptureFixture, +) -> None: + class MySubService(pydase.DataService): + @task(autostart=True) + async def my_task(self) -> None: + logger.info("Triggered task.") + while True: + await asyncio.sleep(1) + + class MyService(pydase.DataService): + sub_services_dict = {"first": MySubService(), "second": MySubService()} + + service_instance = MyService() + state_manager = StateManager(service_instance) + DataServiceObserver(state_manager) + + autostart_service_tasks(service_instance) + + await asyncio.sleep(0.1) + + assert ( + service_instance.sub_services_dict["first"].my_task.status == TaskStatus.RUNNING + ) + + assert ( + "'sub_services_dict[\"first\"].my_task.status' changed to 'TaskStatus.RUNNING'" + in caplog.text + ) + assert ( + "'sub_services_dict[\"second\"].my_task.status' changed to 'TaskStatus.RUNNING'" + in caplog.text + ) From 9b04dcd41eda98358e769fdd80e9c6f55b945a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 16 Sep 2024 13:46:04 +0200 Subject: [PATCH 35/41] frontend: ass Task component --- frontend/src/components/GenericComponent.tsx | 12 ++++ frontend/src/components/TaskComponent.tsx | 75 ++++++++++++++++++++ frontend/src/types/SerializedObject.ts | 7 +- 3 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 frontend/src/components/TaskComponent.tsx diff --git a/frontend/src/components/GenericComponent.tsx b/frontend/src/components/GenericComponent.tsx index 67e442e..95211ad 100644 --- a/frontend/src/components/GenericComponent.tsx +++ b/frontend/src/components/GenericComponent.tsx @@ -17,6 +17,7 @@ import { updateValue } from "../socket"; import { DictComponent } from "./DictComponent"; import { parseFullAccessPath } from "../utils/stateUtils"; import { SerializedEnum, SerializedObject } from "../types/SerializedObject"; +import { TaskComponent, TaskStatus } from "./TaskComponent"; interface GenericComponentProps { attribute: SerializedObject; @@ -182,6 +183,17 @@ export const GenericComponent = React.memo( id={id} /> ); + } else if (attribute.type == "Task") { + return ( + + ); } else if (attribute.type === "DataService") { return ( void; + displayName: string; + id: string; +} + +export const TaskComponent = React.memo((props: TaskProps) => { + const { fullAccessPath, docString, status, addNotification, displayName, id } = props; + + const renderCount = useRenderCount(); + const formRef = useRef(null); + const [spinning, setSpinning] = useState(false); + + useEffect(() => { + let message: string; + + if (status === "RUNNING") { + message = `${fullAccessPath} was started.`; + } else { + message = `${fullAccessPath} was stopped.`; + } + + addNotification(message); + setSpinning(false); + }, [status]); + + const execute = async (event: React.FormEvent) => { + event.preventDefault(); + + const method_name = status == "RUNNING" ? "stop" : "start"; + + const accessPath = [fullAccessPath, method_name] + .filter((element) => element) + .join("."); + setSpinning(true); + runMethod(accessPath); + }; + + return ( +
+ {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
} +
+ + + {displayName} + + + + +
+
+ ); +}); + +TaskComponent.displayName = "TaskComponent"; diff --git a/frontend/src/types/SerializedObject.ts b/frontend/src/types/SerializedObject.ts index 8dec4f4..cd940c4 100644 --- a/frontend/src/types/SerializedObject.ts +++ b/frontend/src/types/SerializedObject.ts @@ -77,7 +77,12 @@ type SerializedException = SerializedObjectBase & { type: "Exception"; }; -type DataServiceTypes = "DataService" | "Image" | "NumberSlider" | "DeviceConnection"; +type DataServiceTypes = + | "DataService" + | "Image" + | "NumberSlider" + | "DeviceConnection" + | "Task"; type SerializedDataService = SerializedObjectBase & { name: string; From fbdf6de63c4cec0f30b81c012ce0e0af9686f886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 16 Sep 2024 13:48:00 +0200 Subject: [PATCH 36/41] npm run build --- .../{index-D7tStNHJ.js => index-DIcxBlBr.js} | 28 +++++++++---------- src/pydase/frontend/index.html | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) rename src/pydase/frontend/assets/{index-D7tStNHJ.js => index-DIcxBlBr.js} (55%) diff --git a/src/pydase/frontend/assets/index-D7tStNHJ.js b/src/pydase/frontend/assets/index-DIcxBlBr.js similarity index 55% rename from src/pydase/frontend/assets/index-D7tStNHJ.js rename to src/pydase/frontend/assets/index-DIcxBlBr.js index dee0f31..7eeaa57 100644 --- a/src/pydase/frontend/assets/index-D7tStNHJ.js +++ b/src/pydase/frontend/assets/index-DIcxBlBr.js @@ -1,4 +1,4 @@ -function wk(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var f0={exports:{}},su={},d0={exports:{}},q={};/** +function Sk(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var p0={exports:{}},su={},h0={exports:{}},q={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function wk(e,t){for(var n=0;n=0)continue;n[r]=e[r]}return n}function Tm(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Uk(e){var t=Wk(e,"string");return typeof t=="symbol"?t:String(t)}function Wk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function k0(e,t,n){var r=h.useRef(e!==void 0),o=h.useState(t),i=o[0],s=o[1],a=e!==void 0,l=r.current;return r.current=a,!a&&l&&i!==t&&s(t),[a?e:i,h.useCallback(function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f=0)continue;n[r]=e[r]}return n}function Nm(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Wk(e){var t=Hk(e,"string");return typeof t=="symbol"?t:String(t)}function Hk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function C0(e,t,n){var r=h.useRef(e!==void 0),o=h.useState(t),i=o[0],s=o[1],a=e!==void 0,l=r.current;return r.current=a,!a&&l&&i!==t&&s(t),[a?e:i,h.useCallback(function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f>>1,Z=_[Y];if(0>>1;Yo(re,F))geo(Me,re)?(_[Y]=Me,_[ge]=F,Y=ge):(_[Y]=re,_[X]=F,Y=X);else if(geo(Me,F))_[Y]=Me,_[ge]=F,Y=ge;else break e}}return I}function o(_,I){var F=_.sortIndex-I.sortIndex;return F!==0?F:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,v=!1,g=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function E(_){if(S=!1,y(_),!g)if(n(l)!==null)g=!0,G(C);else{var I=n(u);I!==null&&V(E,I.startTime-_)}}function C(_,I){g=!1,S&&(S=!1,m(O),O=-1),v=!0;var F=f;try{for(y(I),d=n(l);d!==null&&(!(d.expirationTime>I)||_&&!A());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var Z=Y(d.expirationTime<=I);I=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),y(I)}else r(l);d=n(l)}if(d!==null)var ve=!0;else{var X=n(u);X!==null&&V(E,X.startTime-I),ve=!1}return ve}finally{d=null,f=F,v=!1}}var x=!1,b=null,O=-1,T=5,$=-1;function A(){return!(e.unstable_now()-$_||125<_||(T=0<_?Math.floor(1e3/_):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var F=f;f=I;try{return _()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var F=f;f=_;try{return I()}finally{f=F}},e.unstable_scheduleCallback=function(_,I,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0Y?(_.sortIndex=F,t(u,_),n(l)===null&&_===n(u)&&(S?(m(O),O=-1):S=!0,V(E,F-Y))):(_.sortIndex=Z,t(l,_),g||v||(g=!0,G(C))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var I=f;return function(){var F=f;f=I;try{return _.apply(this,arguments)}finally{f=F}}}})(A0);N0.exports=A0;var sb=N0.exports;/** + */(function(e){function t(_,I){var F=_.length;_.push(I);e:for(;0>>1,Z=_[Y];if(0>>1;Yo(re,F))geo(Me,re)?(_[Y]=Me,_[ge]=F,Y=ge):(_[Y]=re,_[X]=F,Y=X);else if(geo(Me,F))_[Y]=Me,_[ge]=F,Y=ge;else break e}}return I}function o(_,I){var F=_.sortIndex-I.sortIndex;return F!==0?F:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,g=!1,w=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function E(_){if(S=!1,y(_),!w)if(n(l)!==null)w=!0,G(C);else{var I=n(u);I!==null&&V(E,I.startTime-_)}}function C(_,I){w=!1,S&&(S=!1,m(O),O=-1),g=!0;var F=f;try{for(y(I),d=n(l);d!==null&&(!(d.expirationTime>I)||_&&!A());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var Z=Y(d.expirationTime<=I);I=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),y(I)}else r(l);d=n(l)}if(d!==null)var ve=!0;else{var X=n(u);X!==null&&V(E,X.startTime-I),ve=!1}return ve}finally{d=null,f=F,g=!1}}var x=!1,b=null,O=-1,T=5,$=-1;function A(){return!(e.unstable_now()-$_||125<_||(T=0<_?Math.floor(1e3/_):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var F=f;f=I;try{return _()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var F=f;f=_;try{return I()}finally{f=F}},e.unstable_scheduleCallback=function(_,I,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0Y?(_.sortIndex=F,t(u,_),n(l)===null&&_===n(u)&&(S?(m(O),O=-1):S=!0,V(E,F-Y))):(_.sortIndex=Z,t(l,_),w||g||(w=!0,G(C))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var I=f;return function(){var F=f;f=I;try{return _.apply(this,arguments)}finally{f=F}}}})(j0);P0.exports=j0;var ab=P0.exports;/** * @license React * react-dom.production.min.js * @@ -34,21 +34,21 @@ function wk(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$f=Object.prototype.hasOwnProperty,lb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rm={},Nm={};function ub(e){return $f.call(Nm,e)?!0:$f.call(Rm,e)?!1:lb.test(e)?Nm[e]=!0:(Rm[e]=!0,!1)}function cb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fb(e,t,n,r){if(t===null||typeof t>"u"||cb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ge[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wp=/[\-:]([a-z])/g;function Sp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function xp(e,t,n,r){var o=Ge.hasOwnProperty(t)?Ge[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$f=Object.prototype.hasOwnProperty,ub=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Am={},Pm={};function cb(e){return $f.call(Pm,e)?!0:$f.call(Am,e)?!1:ub.test(e)?Pm[e]=!0:(Am[e]=!0,!1)}function fb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function db(e,t,n,r){if(t===null||typeof t>"u"||fb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ge[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wp=/[\-:]([a-z])/g;function Sp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function xp(e,t,n,r){var o=Ge.hasOwnProperty(t)?Ge[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function db(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Nf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xo:return"Fragment";case So:return"Portal";case _f:return"Profiler";case Ep:return"StrictMode";case Tf:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case L0:return(e.displayName||"Context")+".Consumer";case j0:return(e._context.displayName||"Context")+".Provider";case kp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bp:return t=e.displayName||null,t!==null?t:Nf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Nf(e(t))}catch{}}return null}function pb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nf(t);case 8:return t===Ep?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function M0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hb(e){var t=M0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ta(e){e._valueTracker||(e._valueTracker=hb(e))}function B0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=M0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Af(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function D0(e,t){t=t.checked,t!=null&&xp(e,"checked",t,!1)}function Pf(e,t){D0(e,t);var n=xr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jf(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ii=Array.isArray;function Po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function us(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mb=["Webkit","ms","Moz","O"];Object.keys(Hi).forEach(function(e){mb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hi[t]=Hi[e]})});function W0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hi.hasOwnProperty(e)&&Hi[e]?(""+t).trim():t+"px"}function H0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=W0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var yb=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mf(e,t){if(t){if(yb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Bf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Df=null;function Cp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ff=null,jo=null,Lo=null;function Mm(e){if(e=Ds(e)){if(typeof Ff!="function")throw Error(R(280));var t=e.stateNode;t&&(t=du(t),Ff(e.stateNode,e.type,t))}}function V0(e){jo?Lo?Lo.push(e):Lo=[e]:jo=e}function K0(){if(jo){var e=jo,t=Lo;if(Lo=jo=null,Mm(e),t)for(e=0;e>>=0,e===0?32:31-($b(e)/_b|0)|0}var ra=64,oa=4194304;function Mi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Mi(a):(i&=s,i!==0&&(r=Mi(i)))}else s=n&~o,s!==0?r=Mi(s):i!==0&&(r=Mi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ms(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function Ab(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ki),Km=" ",Gm=!1;function d1(e,t){switch(e){case"keyup":return sC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function p1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function lC(e,t){switch(e){case"compositionend":return p1(t);case"keypress":return t.which!==32?null:(Gm=!0,Km);case"textInput":return e=t.data,e===Km&&Gm?null:e;default:return null}}function uC(e,t){if(Eo)return e==="compositionend"||!Pp&&d1(e,t)?(e=c1(),ja=Rp=ur=null,Eo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xm(n)}}function v1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?v1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function g1(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function jp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function gC(e){var t=g1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&v1(n.ownerDocument.documentElement,n)){if(r!==null&&jp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jm(n,i);var s=Jm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ko=null,Kf=null,qi=null,Gf=!1;function Zm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gf||ko==null||ko!==fl(r)||(r=ko,"selectionStart"in r&&jp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qi&&ms(qi,r)||(qi=r,r=gl(Kf,"onSelect"),0Oo||(e.current=Zf[Oo],Zf[Oo]=null,Oo--)}function he(e,t){Oo++,Zf[Oo]=e.current,e.current=t}var Er={},et=Cr(Er),ft=Cr(!1),Ur=Er;function Ho(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return e=e.childContextTypes,e!=null}function Sl(){ye(ft),ye(et)}function sy(e,t,n){if(et.current!==Er)throw Error(R(168));he(et,t),he(ft,n)}function $1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,pb(e)||"Unknown",o));return be({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Ur=et.current,he(et,e),he(ft,ft.current),!0}function ay(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=$1(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ye(ft),ye(et),he(et,e)):ye(ft),he(ft,n)}var jn=null,pu=!1,Mc=!1;function _1(e){jn===null?jn=[e]:jn.push(e)}function RC(e){pu=!0,_1(e)}function Or(){if(!Mc&&jn!==null){Mc=!0;var e=0,t=ue;try{var n=jn;for(ue=1;e>=s,o-=s,Mn=1<<32-nn(t)+o|n<O?(T=b,b=null):T=b.sibling;var $=f(m,b,y[O],E);if($===null){b===null&&(b=T);break}e&&b&&$.alternate===null&&t(m,b),p=i($,p,O),x===null?C=$:x.sibling=$,x=$,b=T}if(O===y.length)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;OO?(T=b,b=null):T=b.sibling;var A=f(m,b,$.value,E);if(A===null){b===null&&(b=T);break}e&&b&&A.alternate===null&&t(m,b),p=i(A,p,O),x===null?C=A:x.sibling=A,x=A,b=T}if($.done)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;!$.done;O++,$=y.next())$=d(m,$.value,E),$!==null&&(p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return xe&&Nr(m,O),C}for(b=r(m,b);!$.done;O++,$=y.next())$=v(b,m,O,$.value,E),$!==null&&(e&&$.alternate!==null&&b.delete($.key===null?O:$.key),p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return e&&b.forEach(function(U){return t(m,U)}),xe&&Nr(m,O),C}function k(m,p,y,E){if(typeof y=="object"&&y!==null&&y.type===xo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ea:e:{for(var C=y.key,x=p;x!==null;){if(x.key===C){if(C=y.type,C===xo){if(x.tag===7){n(m,x.sibling),p=o(x,y.props.children),p.return=m,m=p;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nr&&cy(C)===x.type){n(m,x.sibling),p=o(x,y.props),p.ref=bi(m,x,y),p.return=m,m=p;break e}n(m,x);break}else t(m,x);x=x.sibling}y.type===xo?(p=Br(y.props.children,m.mode,E,y.key),p.return=m,m=p):(E=Ua(y.type,y.key,y.props,null,m.mode,E),E.ref=bi(m,p,y),E.return=m,m=E)}return s(m);case So:e:{for(x=y.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Vc(y,m.mode,E),p.return=m,m=p}return s(m);case nr:return x=y._init,k(m,p,x(y._payload),E)}if(Ii(y))return g(m,p,y,E);if(wi(y))return S(m,p,y,E);fa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,y),p.return=m,m=p):(n(m,p),p=Hc(y,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return k}var Ko=A1(!0),P1=A1(!1),bl=Cr(null),Cl=null,To=null,Bp=null;function Dp(){Bp=To=Cl=null}function Fp(e){var t=bl.current;ye(bl),e._currentValue=t}function nd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mo(e,t){Cl=e,Bp=To=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Bp!==e)if(e={context:e,memoizedValue:t,next:null},To===null){if(Cl===null)throw Error(R(308));To=e,Cl.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var jr=null;function zp(e){jr===null?jr=[e]:jr.push(e)}function j1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,zp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rr=!1;function Up(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function L1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,zp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}function fy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ol(e,t,n,r){var o=e.updateQueue;rr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,v=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,S=a;switch(f=t,v=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(v,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,f=typeof g=="function"?g.call(v,d,f):g,f==null)break e;d=be({},d,f);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else v={eventTime:v,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vr|=s,e.lanes=s,e.memoizedState=d}}function dy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Dc.transition;Dc.transition={};try{e(!1),t()}finally{ue=n,Dc.transition=r}}function J1(){return Ft().memoizedState}function jC(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Z1(e))ew(t,n);else if(n=j1(e,t,n,r),n!==null){var o=st();rn(n,e,r,o),tw(n,t,r)}}function LC(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Z1(e))ew(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,sn(a,s)){var l=t.interleaved;l===null?(o.next=o,zp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=j1(e,t,o,r),n!==null&&(o=st(),rn(n,e,r,o),tw(n,t,r))}}function Z1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function ew(e,t){Qi=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}var Tl={readContext:Dt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},IC={readContext:Dt,useCallback:function(e,t){return fn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:hy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,G1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=fn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=fn();return e={current:e},t.memoizedState=e},useState:py,useDebugValue:Yp,useDeferredValue:function(e){return fn().memoizedState=e},useTransition:function(){var e=py(!1),t=e[0];return e=PC.bind(null,e[1]),fn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=fn();if(xe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Fe===null)throw Error(R(349));Hr&30||D1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hy(z1.bind(null,r,i,e),[e]),r.flags|=2048,ks(9,F1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=fn(),t=Fe.identifierPrefix;if(xe){var n=Bn,r=Mn;n=(r&~(1<<32-nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xs++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ii(e):""}function pb(e){switch(e.tag){case 5:return Ii(e.type);case 16:return Ii("Lazy");case 13:return Ii("Suspense");case 19:return Ii("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Nf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xo:return"Fragment";case So:return"Portal";case _f:return"Profiler";case Ep:return"StrictMode";case Tf:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case M0:return(e.displayName||"Context")+".Consumer";case I0:return(e._context.displayName||"Context")+".Provider";case kp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bp:return t=e.displayName||null,t!==null?t:Nf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Nf(e(t))}catch{}}return null}function hb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nf(t);case 8:return t===Ep?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function D0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mb(e){var t=D0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ta(e){e._valueTracker||(e._valueTracker=mb(e))}function F0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=D0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Af(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function z0(e,t){t=t.checked,t!=null&&xp(e,"checked",t,!1)}function Pf(e,t){z0(e,t);var n=xr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Im(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jf(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mi=Array.isArray;function Po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yb=["Webkit","ms","Moz","O"];Object.keys(Vi).forEach(function(e){yb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vi[t]=Vi[e]})});function V0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vi.hasOwnProperty(e)&&Vi[e]?(""+t).trim():t+"px"}function K0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=V0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var vb=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mf(e,t){if(t){if(vb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Bf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Df=null;function Cp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ff=null,jo=null,Lo=null;function Dm(e){if(e=Fs(e)){if(typeof Ff!="function")throw Error(R(280));var t=e.stateNode;t&&(t=du(t),Ff(e.stateNode,e.type,t))}}function G0(e){jo?Lo?Lo.push(e):Lo=[e]:jo=e}function q0(){if(jo){var e=jo,t=Lo;if(Lo=jo=null,Dm(e),t)for(e=0;e>>=0,e===0?32:31-(_b(e)/Tb|0)|0}var ra=64,oa=4194304;function Bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Bi(a):(i&=s,i!==0&&(r=Bi(i)))}else s=n&~o,s!==0?r=Bi(s):i!==0&&(r=Bi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Bs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rn(t),e[t]=n}function Pb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gi),qm=" ",Qm=!1;function h1(e,t){switch(e){case"keyup":return aC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function uC(e,t){switch(e){case"compositionend":return m1(t);case"keypress":return t.which!==32?null:(Qm=!0,qm);case"textInput":return e=t.data,e===qm&&Qm?null:e;default:return null}}function cC(e,t){if(Eo)return e==="compositionend"||!Pp&&h1(e,t)?(e=d1(),ja=Rp=ur=null,Eo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Zm(n)}}function w1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?w1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S1(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function jp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wC(e){var t=S1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&w1(n.ownerDocument.documentElement,n)){if(r!==null&&jp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ey(n,i);var s=ey(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ko=null,Kf=null,Qi=null,Gf=!1;function ty(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gf||ko==null||ko!==fl(r)||(r=ko,"selectionStart"in r&&jp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qi&&ys(Qi,r)||(Qi=r,r=gl(Kf,"onSelect"),0Oo||(e.current=Zf[Oo],Zf[Oo]=null,Oo--)}function he(e,t){Oo++,Zf[Oo]=e.current,e.current=t}var Er={},tt=Cr(Er),ft=Cr(!1),Ur=Er;function Ho(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return e=e.childContextTypes,e!=null}function Sl(){ye(ft),ye(tt)}function ly(e,t,n){if(tt.current!==Er)throw Error(R(168));he(tt,t),he(ft,n)}function T1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,hb(e)||"Unknown",o));return be({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Ur=tt.current,he(tt,e),he(ft,ft.current),!0}function uy(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=T1(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ye(ft),ye(tt),he(tt,e)):ye(ft),he(ft,n)}var Ln=null,pu=!1,Mc=!1;function R1(e){Ln===null?Ln=[e]:Ln.push(e)}function NC(e){pu=!0,R1(e)}function Or(){if(!Mc&&Ln!==null){Mc=!0;var e=0,t=ue;try{var n=Ln;for(ue=1;e>=s,o-=s,Bn=1<<32-rn(t)+o|n<O?(T=b,b=null):T=b.sibling;var $=f(m,b,y[O],E);if($===null){b===null&&(b=T);break}e&&b&&$.alternate===null&&t(m,b),p=i($,p,O),x===null?C=$:x.sibling=$,x=$,b=T}if(O===y.length)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;OO?(T=b,b=null):T=b.sibling;var A=f(m,b,$.value,E);if(A===null){b===null&&(b=T);break}e&&b&&A.alternate===null&&t(m,b),p=i(A,p,O),x===null?C=A:x.sibling=A,x=A,b=T}if($.done)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;!$.done;O++,$=y.next())$=d(m,$.value,E),$!==null&&(p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return xe&&Nr(m,O),C}for(b=r(m,b);!$.done;O++,$=y.next())$=g(b,m,O,$.value,E),$!==null&&(e&&$.alternate!==null&&b.delete($.key===null?O:$.key),p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return e&&b.forEach(function(U){return t(m,U)}),xe&&Nr(m,O),C}function k(m,p,y,E){if(typeof y=="object"&&y!==null&&y.type===xo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ea:e:{for(var C=y.key,x=p;x!==null;){if(x.key===C){if(C=y.type,C===xo){if(x.tag===7){n(m,x.sibling),p=o(x,y.props.children),p.return=m,m=p;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nr&&dy(C)===x.type){n(m,x.sibling),p=o(x,y.props),p.ref=Ci(m,x,y),p.return=m,m=p;break e}n(m,x);break}else t(m,x);x=x.sibling}y.type===xo?(p=Br(y.props.children,m.mode,E,y.key),p.return=m,m=p):(E=Ua(y.type,y.key,y.props,null,m.mode,E),E.ref=Ci(m,p,y),E.return=m,m=E)}return s(m);case So:e:{for(x=y.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Vc(y,m.mode,E),p.return=m,m=p}return s(m);case nr:return x=y._init,k(m,p,x(y._payload),E)}if(Mi(y))return w(m,p,y,E);if(Si(y))return S(m,p,y,E);fa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,y),p.return=m,m=p):(n(m,p),p=Hc(y,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return k}var Ko=j1(!0),L1=j1(!1),bl=Cr(null),Cl=null,To=null,Bp=null;function Dp(){Bp=To=Cl=null}function Fp(e){var t=bl.current;ye(bl),e._currentValue=t}function nd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mo(e,t){Cl=e,Bp=To=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Bp!==e)if(e={context:e,memoizedValue:t,next:null},To===null){if(Cl===null)throw Error(R(308));To=e,Cl.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var jr=null;function zp(e){jr===null?jr=[e]:jr.push(e)}function I1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,zp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rr=!1;function Up(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function M1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,zp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}function py(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ol(e,t,n,r){var o=e.updateQueue;rr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,g=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,S=a;switch(f=t,g=n,S.tag){case 1:if(w=S.payload,typeof w=="function"){d=w.call(g,d,f);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,f=typeof w=="function"?w.call(g,d,f):w,f==null)break e;d=be({},d,f);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else g={eventTime:g,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=d):c=c.next=g,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vr|=s,e.lanes=s,e.memoizedState=d}}function hy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Dc.transition;Dc.transition={};try{e(!1),t()}finally{ue=n,Dc.transition=r}}function ew(){return Ft().memoizedState}function LC(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tw(e))nw(t,n);else if(n=I1(e,t,n,r),n!==null){var o=st();on(n,e,r,o),rw(n,t,r)}}function IC(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tw(e))nw(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ln(a,s)){var l=t.interleaved;l===null?(o.next=o,zp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=I1(e,t,o,r),n!==null&&(o=st(),on(n,e,r,o),rw(n,t,r))}}function tw(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function nw(e,t){Yi=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}var Tl={readContext:Dt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},MC={readContext:Dt,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:yy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,Q1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=LC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:my,useDebugValue:Yp,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=my(!1),t=e[0];return e=jC.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=pn();if(xe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Fe===null)throw Error(R(349));Hr&30||z1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,yy(W1.bind(null,r,i,e),[e]),r.flags|=2048,bs(9,U1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pn(),t=Fe.identifierPrefix;if(xe){var n=Dn,r=Bn;n=(r&~(1<<32-rn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Es++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[yn]=t,e[gs]=r,fw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oQo&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304)}else{if(!r)if(e=$l(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ci(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>Qo&&n!==1073741824&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=Ee.current,he(Ee,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return nh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function HC(e,t){switch(Ip(t),t.tag){case 1:return dt(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),ye(ft),ye(et),Vp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hp(t),null;case 13:if(ye(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Ee),null;case 4:return Go(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return nh(),null;case 24:return null;default:return null}}var pa=!1,Ze=!1,VC=typeof WeakSet=="function"?WeakSet:Set,L=null;function Ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function fd(e,t,n){try{n()}catch(r){$e(e,t,r)}}var Cy=!1;function KC(e,t){if(qf=yl,e=g1(),jp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qf={focusedElem:e,selectionRange:n},yl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,k=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xt(t.type,S),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){$e(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=Cy,Cy=!1,g}function Yi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&fd(t,n,i)}o=o.next}while(o!==r)}}function yu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hw(e){var t=e.alternate;t!==null&&(e.alternate=null,hw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[gs],delete t[Jf],delete t[_C],delete t[TC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mw(e){return e.tag===5||e.tag===3||e.tag===4}function Oy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wl));else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}function hd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(hd(e,t,n),e=e.sibling;e!==null;)hd(e,t,n),e=e.sibling}var He=null,Jt=!1;function er(e,t,n){for(n=n.child;n!==null;)yw(e,t,n),n=n.sibling}function yw(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:Ze||Ro(n,t);case 6:var r=He,o=Jt;He=null,er(e,t,n),He=r,Jt=o,He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?Ic(e.parentNode,n):e.nodeType===1&&Ic(e,n),ps(e)):Ic(He,n.stateNode));break;case 4:r=He,o=Jt,He=n.stateNode.containerInfo,Jt=!0,er(e,t,n),He=r,Jt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&fd(n,t,s),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!Ze&&(Ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,er(e,t,n),Ze=r):er(e,t,n);break;default:er(e,t,n)}}function $y(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new VC),t.forEach(function(r){var o=tO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qC(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Al=0,te&6)throw Error(R(331));var o=te;for(te|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l_e()-eh?Mr(e,0):Zp|=n),pt(e,t)}function bw(e,t){t===0&&(e.mode&1?(t=oa,oa<<=1,!(oa&130023424)&&(oa=4194304)):t=1);var n=st();e=Vn(e,t),e!==null&&(Ms(e,t,n),pt(e,n))}function eO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bw(e,n)}function tO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),bw(e,n)}var Cw;Cw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,UC(e,t,n);ct=!!(e.flags&131072)}else ct=!1,xe&&t.flags&1048576&&T1(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Da(e,t),e=t.pendingProps;var o=Ho(t,et.current);Mo(t,n),o=Gp(null,t,r,e,o,n);var i=qp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(i=!0,xl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Up(t),o.updater=mu,t.stateNode=o,o._reactInternals=t,od(t,r,e,n),t=ad(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Lp(t),rt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=rO(r),e=Xt(r,e),o){case 0:t=sd(null,t,r,e,n);break e;case 1:t=Ey(null,t,r,e,n);break e;case 11:t=Sy(null,t,r,e,n);break e;case 14:t=xy(null,t,r,Xt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),sd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Ey(e,t,r,o,n);case 3:e:{if(lw(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,L1(e,t),Ol(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qo(Error(R(423)),t),t=ky(e,t,r,n,o);break e}else if(r!==o){o=qo(Error(R(424)),t),t=ky(e,t,r,n,o);break e}else for(St=mr(t.stateNode.containerInfo.firstChild),xt=t,xe=!0,en=null,n=P1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===o){t=Kn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return I1(t),e===null&&td(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yf(r,o)?s=null:i!==null&&Yf(r,i)&&(t.flags|=32),aw(e,t),rt(e,t,s,n),t.child;case 6:return e===null&&td(t),null;case 13:return uw(e,t,n);case 4:return Wp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Sy(e,t,r,o,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(sn(i.value,s)){if(i.children===o.children&&!ft.current){t=Kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=zn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),nd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}rt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mo(t,n),o=Dt(o),r=r(o),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),xy(e,t,r,o,n);case 15:return iw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Da(e,t),t.tag=1,dt(r)?(e=!0,xl(t)):e=!1,Mo(t,n),nw(t,r,o),od(t,r,o,n),ad(null,t,r,!0,e,n);case 19:return cw(e,t,n);case 22:return sw(e,t,n)}throw Error(R(156,t.tag))};function Ow(e,t){return Z0(e,t)}function nO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new nO(e,t,n,r)}function oh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rO(e){if(typeof e=="function")return oh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kp)return 11;if(e===bp)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ua(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")oh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xo:return Br(n.children,o,i,t);case Ep:s=8,o|=8;break;case _f:return e=It(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Tf:return e=It(13,n,t,o),e.elementType=Tf,e.lanes=i,e;case Rf:return e=It(19,n,t,o),e.elementType=Rf,e.lanes=i,e;case I0:return gu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j0:s=10;break e;case L0:s=9;break e;case kp:s=11;break e;case bp:s=14;break e;case nr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=It(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function gu(e,t,n,r){return e=It(22,e,r,t),e.elementType=I0,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ih(e,t,n,r,o,i,s,a,l){return e=new oO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=It(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Up(i),e}function iO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rw)}catch{}}Rw(),R0.exports=Ct;var Nw=R0.exports;const Ir=si(Nw),Ly={disabled:!1},Aw=ne.createContext(null);var cO=function(t){return t.scrollTop},Di="unmounted",or="exited",Pt="entering",In="entered",Yo="exiting",Jn=function(e){Vk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=or,i.appearStatus=Pt):l=In:r.unmountOnExit||r.mountOnEnter?l=Di:l=or,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Di?{status:or}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Pt&&s!==In&&(i=Pt):(s===Pt||s===In)&&(i=Yo)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);s&&cO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Di})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ir.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||Ly.disabled){this.safeSetState({status:In},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:In},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||Ly.disabled){this.safeSetState({status:or},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yo},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:or},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Di)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=an(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ne.createElement(Aw.Provider,{value:null},typeof s=="function"?s(o,a):ne.cloneElement(ne.Children.only(s),a))},t}(ne.Component);Jn.contextType=Aw;Jn.propTypes={};function io(){}Jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:io,onEntering:io,onEntered:io,onExit:io,onExiting:io,onExited:io};Jn.UNMOUNTED=Di;Jn.EXITED=or;Jn.ENTERING=Pt;Jn.ENTERED=In;Jn.EXITING=Yo;const ku=!!(typeof window<"u"&&window.document&&window.document.createElement);var wd=!1,Sd=!1;try{var Kc={get passive(){return wd=!0},get once(){return Sd=wd=!0}};ku&&(window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,!0))}catch{}function fO(e,t,n,r){if(r&&typeof r!="boolean"&&!Sd){var o=r.once,i=r.capture,s=n;!Sd&&o&&(s=n.__once||function a(l){this.removeEventListener(t,a,i),n.call(this,l)},n.__once=s),e.addEventListener(t,s,wd?r:i)}e.addEventListener(t,n,r)}function dO(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Dn(e,t,n,r){return fO(e,t,n,r),function(){dO(e,t,n,r)}}function pO(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function hO(e){var t=Fn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function mO(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||pO(e,"transitionend",!0)},t+n),i=Dn(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function yO(e,t,n,r){n==null&&(n=hO(e)||0);var o=mO(e,n,r),i=Dn(e,"transitionend",t);return function(){o(),i()}}function Iy(e,t){const n=Fn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function uh(e,t){const n=Iy(e,"transitionDuration"),r=Iy(e,"transitionDelay"),o=yO(e,i=>{i.target===e&&(o(),t(i))},n+r)}function $i(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}function Pw(e){e.offsetHeight}const My=e=>!e||typeof e=="function"?e:t=>{e.current=t};function vO(e,t){const n=My(e),r=My(t);return o=>{n&&n(o),r&&r(o)}}function Yr(e,t){return h.useMemo(()=>vO(e,t),[e,t])}function Ll(e){return e&&"setState"in e?Ir.findDOMNode(e):e??null}const ch=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:s,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),f=Yr(d,l),v=x=>{f(Ll(x))},g=x=>b=>{x&&d.current&&x(d.current,b)},S=h.useCallback(g(e),[e]),k=h.useCallback(g(t),[t]),m=h.useCallback(g(n),[n]),p=h.useCallback(g(r),[r]),y=h.useCallback(g(o),[o]),E=h.useCallback(g(i),[i]),C=h.useCallback(g(s),[s]);return w.jsx(Jn,{ref:c,...u,onEnter:S,onEntered:m,onEntering:k,onExit:p,onExited:E,onExiting:y,addEndListener:C,nodeRef:d,children:typeof a=="function"?(x,b)=>a(x,{...b,ref:v}):ne.cloneElement(a,{ref:v})})}),gO={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function wO(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=gO[e];return r+parseInt(Fn(t,o[0]),10)+parseInt(Fn(t,o[1]),10)}const SO={[or]:"collapse",[Yo]:"collapsing",[Pt]:"collapsing",[In]:"collapse show"},bu=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:i,children:s,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:v=wO,...g},S)=>{const k=typeof a=="function"?a():a,m=h.useMemo(()=>$i(x=>{x.style[k]="0"},e),[k,e]),p=h.useMemo(()=>$i(x=>{const b=`scroll${k[0].toUpperCase()}${k.slice(1)}`;x.style[k]=`${x[b]}px`},t),[k,t]),y=h.useMemo(()=>$i(x=>{x.style[k]=null},n),[k,n]),E=h.useMemo(()=>$i(x=>{x.style[k]=`${v(k,x)}px`,Pw(x)},r),[r,v,k]),C=h.useMemo(()=>$i(x=>{x.style[k]=null},o),[k,o]);return w.jsx(ch,{ref:S,addEndListener:uh,...g,"aria-expanded":g.role?l:null,onEnter:m,onEntering:p,onEntered:y,onExit:E,onExiting:C,childRef:s.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(x,b)=>ne.cloneElement(s,{...b,className:M(i,s.props.className,SO[x],k==="width"&&"collapse-horizontal")})})});function xO(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function it(e){const t=xO(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fh=e=>h.forwardRef((t,n)=>w.jsx("div",{...t,ref:n,className:M(t.className,e)}));function By(){return h.useState(null)}function dh(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function EO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const kO=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",bO=typeof document<"u",Il=bO||kO?h.useLayoutEffect:h.useEffect,CO=["as","disabled"];function OO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function $O(e){return!e||e.trim()==="#"}function jw({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&$O(n))&&f.preventDefault(),t){f.stopPropagation();return}s==null||s(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:c,onKeyDown:d},u]}const _O=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=OO(e,CO);const[i,{tagName:s}]=jw(Object.assign({tagName:n,disabled:r},o));return w.jsx(s,Object.assign({},o,i,{ref:t}))});_O.displayName="Button";const TO={[Pt]:"show",[In]:"show"},Cs=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},a=h.useCallback((l,u)=>{Pw(l),r==null||r(l,u)},[r]);return w.jsx(ch,{ref:i,addEndListener:uh,...s,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:M("fade",e,t.props.className,TO[l],n[l])})})});Cs.displayName="Fade";const RO={"aria-label":pe.string,onClick:pe.func,variant:pe.oneOf(["white"])},Cu=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>w.jsx("button",{ref:o,type:"button",className:M("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Cu.displayName="CloseButton";Cu.propTypes=RO;const Lw=h.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:o,as:i="span",...s},a)=>{const l=z(e,"badge");return w.jsx(i,{ref:a,...s,className:M(o,l,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});Lw.displayName="Badge";const zs=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=z(t,"btn"),[c,{tagName:d}]=jw({tagName:e,disabled:i,...a}),f=d;return w.jsx(f,{...c,...a,ref:l,disabled:i,className:M(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})});zs.displayName="Button";const ph=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));ph.displayName="CardBody";const Iw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-footer"),w.jsx(n,{ref:o,className:M(e,t),...r})));Iw.displayName="CardFooter";const Mw=h.createContext(null);Mw.displayName="CardHeaderContext";const Bw=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"card-header"),s=h.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return w.jsx(Mw.Provider,{value:s,children:w.jsx(n,{ref:o,...r,className:M(t,i)})})});Bw.displayName="CardHeader";const Dw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=z(e,"card-img");return w.jsx(r,{ref:i,className:M(n?`${s}-${n}`:s,t),...o})});Dw.displayName="CardImg";const Fw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-img-overlay"),w.jsx(n,{ref:o,className:M(e,t),...r})));Fw.displayName="CardImgOverlay";const zw=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=z(t,"card-link"),w.jsx(n,{ref:o,className:M(e,t),...r})));zw.displayName="CardLink";const NO=fh("h6"),Uw=h.forwardRef(({className:e,bsPrefix:t,as:n=NO,...r},o)=>(t=z(t,"card-subtitle"),w.jsx(n,{ref:o,className:M(e,t),...r})));Uw.displayName="CardSubtitle";const Ww=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=z(t,"card-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));Ww.displayName="CardText";const AO=fh("h5"),Hw=h.forwardRef(({className:e,bsPrefix:t,as:n=AO,...r},o)=>(t=z(t,"card-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));Hw.displayName="CardTitle";const Vw=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=z(e,"card");return w.jsx(a,{ref:u,...l,className:M(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?w.jsx(ph,{children:s}):s})});Vw.displayName="Card";const Do=Object.assign(Vw,{Img:Dw,Title:Hw,Subtitle:Uw,Body:ph,Link:zw,Text:Ww,Header:Bw,Footer:Iw,ImgOverlay:Fw});function PO(e){const t=h.useRef(e);return t.current=e,t}function Kw(e){const t=PO(e);h.useEffect(()=>()=>t.current(),[])}const xd=2**31-1;function Gw(e,t,n){const r=n-Date.now();e.current=r<=xd?setTimeout(t,r):setTimeout(()=>Gw(e,t,n),xd)}function qw(){const e=dh(),t=h.useRef();return Kw(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,i=0){e()&&(n(),i<=xd?t.current=setTimeout(o,i):Gw(t,o,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function jO(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}function LO({as:e,bsPrefix:t,className:n,...r}){t=z(t,"col");const o=b0(),i=C0(),s=[],a=[];return o.forEach(l=>{const u=r[l];delete r[l];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const v=l!==i?`-${l}`:"";c&&s.push(c===!0?`${t}${v}`:`${t}${v}-${c}`),f!=null&&a.push(`order${v}-${f}`),d!=null&&a.push(`offset${v}-${d}`)}),[{...r,className:M(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}const dn=h.forwardRef((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=LO(e);return w.jsx(o,{...r,ref:t,className:M(n,!s.length&&i)})});dn.displayName="Col";const Qw=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=z(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return w.jsx(n,{ref:i,...o,className:M(r,t?`${s}${a}`:s)})});Qw.displayName="Container";var IO=Function.prototype.bind.call(Function.prototype.call,[].slice);function so(e,t){return IO(e.querySelectorAll(t))}var Dy=Object.prototype.hasOwnProperty;function Fy(e,t,n){for(n of e.keys())if(Zi(n,t))return n}function Zi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Zi(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=Fy(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=Fy(t,o),!o)||!Zi(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Dy.call(e,n)&&++r&&!Dy.call(t,n)||!(n in t)||!Zi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function MO(e){const t=dh();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ht="top",zt="bottom",Ut="right",mt="left",hh="auto",Us=[ht,zt,Ut,mt],Xo="start",Os="end",BO="clippingParents",Yw="viewport",_i="popper",DO="reference",zy=Us.reduce(function(e,t){return e.concat([t+"-"+Xo,t+"-"+Os])},[]),Xw=[].concat(Us,[hh]).reduce(function(e,t){return e.concat([t,t+"-"+Xo,t+"-"+Os])},[]),FO="beforeRead",zO="read",UO="afterRead",WO="beforeMain",HO="main",VO="afterMain",KO="beforeWrite",GO="write",qO="afterWrite",QO=[FO,zO,UO,WO,HO,VO,KO,GO,qO];function wn(e){return e.split("-")[0]}function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function Sn(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mh(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Dr=Math.max,Ml=Math.min,Jo=Math.round;function Ed(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Jw(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Zo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Sn(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var s=Gr(e)?bt(e):window,a=s.visualViewport,l=!Jw()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function yh(e){var t=Zo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Zw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Gn(e){return bt(e).getComputedStyle(e)}function YO(e){return["table","td","th"].indexOf(kr(e))>=0}function $r(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return kr(e)==="html"?e:e.assignedSlot||e.parentNode||(mh(e)?e.host:null)||$r(e)}function Uy(e){return!Sn(e)||Gn(e).position==="fixed"?null:e.offsetParent}function XO(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&Sn(e)){var r=Gn(e);if(r.position==="fixed")return null}var o=Ou(e);for(mh(o)&&(o=o.host);Sn(o)&&["html","body"].indexOf(kr(o))<0;){var i=Gn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ws(e){for(var t=bt(e),n=Uy(e);n&&YO(n)&&Gn(n).position==="static";)n=Uy(n);return n&&(kr(n)==="html"||kr(n)==="body"&&Gn(n).position==="static")?t:n||XO(e)||t}function vh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function es(e,t,n){return Dr(e,Ml(t,n))}function JO(e,t,n){var r=es(e,t,n);return r>n?n:r}function eS(){return{top:0,right:0,bottom:0,left:0}}function tS(e){return Object.assign({},eS(),e)}function nS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZO=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tS(typeof t!="number"?t:nS(t,Us))};function e2(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=wn(n.placement),l=vh(a),u=[mt,Ut].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=ZO(o.padding,n),f=yh(i),v=l==="y"?ht:mt,g=l==="y"?zt:Ut,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],k=s[l]-n.rects.reference[l],m=Ws(i),p=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=S/2-k/2,E=d[v],C=p-f[c]-d[g],x=p/2-f[c]/2+y,b=es(E,x,C),O=l;n.modifiersData[r]=(t={},t[O]=b,t.centerOffset=b-x,t)}}function t2(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Zw(t.elements.popper,o)&&(t.elements.arrow=o))}const n2={name:"arrow",enabled:!0,phase:"main",fn:e2,effect:t2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var r2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function o2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function Wy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,v=f===void 0?0:f,g=s.y,S=g===void 0?0:g,k=typeof c=="function"?c({x:v,y:S}):{x:v,y:S};v=k.x,S=k.y;var m=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),y=mt,E=ht,C=window;if(u){var x=Ws(n),b="clientHeight",O="clientWidth";if(x===bt(n)&&(x=$r(n),Gn(x).position!=="static"&&a==="absolute"&&(b="scrollHeight",O="scrollWidth")),x=x,o===ht||(o===mt||o===Ut)&&i===Os){E=zt;var T=d&&x===C&&C.visualViewport?C.visualViewport.height:x[b];S-=T-r.height,S*=l?1:-1}if(o===mt||(o===ht||o===zt)&&i===Os){y=Ut;var $=d&&x===C&&C.visualViewport?C.visualViewport.width:x[O];v-=$-r.width,v*=l?1:-1}}var A=Object.assign({position:a},u&&r2),U=c===!0?o2({x:v,y:S},bt(n)):{x:v,y:S};if(v=U.x,S=U.y,l){var B;return Object.assign({},A,(B={},B[E]=p?"0":"",B[y]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",B))}return Object.assign({},A,(t={},t[E]=p?S+"px":"",t[y]=m?v+"px":"",t.transform="",t))}function i2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:wn(t.placement),variation:ei(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const s2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:i2,data:{}};var ya={passive:!0};function a2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ya)}),a&&l.addEventListener("resize",n.update,ya),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ya)}),a&&l.removeEventListener("resize",n.update,ya)}}const l2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:a2,data:{}};var u2={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return u2[t]})}var c2={start:"end",end:"start"};function Hy(e){return e.replace(/start|end/g,function(t){return c2[t]})}function gh(e){var t=bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wh(e){return Zo($r(e)).left+gh(e).scrollLeft}function f2(e,t){var n=bt(e),r=$r(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=Jw();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+wh(e),y:l}}function d2(e){var t,n=$r(e),r=gh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wh(e),l=-r.scrollTop;return Gn(o||n).direction==="rtl"&&(a+=Dr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Sh(e){var t=Gn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function rS(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:Sn(e)&&Sh(e)?e:rS(Ou(e))}function ts(e,t){var n;t===void 0&&(t=[]);var r=rS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=bt(r),s=o?[i].concat(i.visualViewport||[],Sh(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(ts(Ou(s)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function p2(e,t){var n=Zo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Vy(e,t,n){return t===Yw?kd(f2(e,n)):Gr(t)?p2(t,n):kd(d2($r(e)))}function h2(e){var t=ts(Ou(e)),n=["absolute","fixed"].indexOf(Gn(e).position)>=0,r=n&&Sn(e)?Ws(e):e;return Gr(r)?t.filter(function(o){return Gr(o)&&Zw(o,r)&&kr(o)!=="body"}):[]}function m2(e,t,n,r){var o=t==="clippingParents"?h2(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Vy(e,u,r);return l.top=Dr(c.top,l.top),l.right=Ml(c.right,l.right),l.bottom=Ml(c.bottom,l.bottom),l.left=Dr(c.left,l.left),l},Vy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function oS(e){var t=e.reference,n=e.element,r=e.placement,o=r?wn(r):null,i=r?ei(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case ht:l={x:s,y:t.y-n.height};break;case zt:l={x:s,y:t.y+t.height};break;case Ut:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?vh(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Xo:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Os:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function $s(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?BO:a,u=n.rootBoundary,c=u===void 0?Yw:u,d=n.elementContext,f=d===void 0?_i:d,v=n.altBoundary,g=v===void 0?!1:v,S=n.padding,k=S===void 0?0:S,m=tS(typeof k!="number"?k:nS(k,Us)),p=f===_i?DO:_i,y=e.rects.popper,E=e.elements[g?p:f],C=m2(Gr(E)?E:E.contextElement||$r(e.elements.popper),l,c,s),x=Zo(e.elements.reference),b=oS({reference:x,element:y,strategy:"absolute",placement:o}),O=kd(Object.assign({},y,b)),T=f===_i?O:x,$={top:C.top-T.top+m.top,bottom:T.bottom-C.bottom+m.bottom,left:C.left-T.left+m.left,right:T.right-C.right+m.right},A=e.modifiersData.offset;if(f===_i&&A){var U=A[o];Object.keys($).forEach(function(B){var K=[Ut,zt].indexOf(B)>=0?1:-1,W=[ht,zt].indexOf(B)>=0?"y":"x";$[B]+=U[W]*K})}return $}function y2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Xw:l,c=ei(r),d=c?a?zy:zy.filter(function(g){return ei(g)===c}):Us,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var v=f.reduce(function(g,S){return g[S]=$s(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[wn(S)],g},{});return Object.keys(v).sort(function(g,S){return v[g]-v[S]})}function v2(e){if(wn(e)===hh)return[];var t=Wa(e);return[Hy(e),t,Hy(t)]}function g2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,S=n.allowedAutoPlacements,k=t.options.placement,m=wn(k),p=m===k,y=l||(p||!g?[Wa(k)]:v2(k)),E=[k].concat(y).reduce(function(X,re){return X.concat(wn(re)===hh?y2(t,{placement:re,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:S}):re)},[]),C=t.rects.reference,x=t.rects.popper,b=new Map,O=!0,T=E[0],$=0;$=0,W=K?"width":"height",G=$s(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),V=K?B?Ut:mt:B?zt:ht;C[W]>x[W]&&(V=Wa(V));var _=Wa(V),I=[];if(i&&I.push(G[U]<=0),a&&I.push(G[V]<=0,G[_]<=0),I.every(function(X){return X})){T=A,O=!1;break}b.set(A,I)}if(O)for(var F=g?3:1,Y=function(re){var ge=E.find(function(Me){var qe=b.get(Me);if(qe)return qe.slice(0,re).every(function(_t){return _t})});if(ge)return T=ge,"break"},Z=F;Z>0;Z--){var ve=Y(Z);if(ve==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const w2={name:"flip",enabled:!0,phase:"main",fn:g2,requiresIfExists:["offset"],data:{_skip:!1}};function Ky(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gy(e){return[ht,Ut,zt,mt].some(function(t){return e[t]>=0})}function S2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=$s(t,{elementContext:"reference"}),a=$s(t,{altBoundary:!0}),l=Ky(s,r),u=Ky(a,o,i),c=Gy(l),d=Gy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const x2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S2};function E2(e,t,n){var r=wn(e),o=[mt,ht].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mt,Ut].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function k2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Xw.reduce(function(c,d){return c[d]=E2(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const b2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:k2};function C2(e){var t=e.state,n=e.name;t.modifiersData[n]=oS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const O2={name:"popperOffsets",enabled:!0,phase:"read",fn:C2,data:{}};function $2(e){return e==="x"?"y":"x"}function _2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,v=f===void 0?!0:f,g=n.tetherOffset,S=g===void 0?0:g,k=$s(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=wn(t.placement),p=ei(t.placement),y=!p,E=vh(m),C=$2(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,O=t.rects.popper,T=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,$=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(x){if(i){var B,K=E==="y"?ht:mt,W=E==="y"?zt:Ut,G=E==="y"?"height":"width",V=x[E],_=V+k[K],I=V-k[W],F=v?-O[G]/2:0,Y=p===Xo?b[G]:O[G],Z=p===Xo?-O[G]:-b[G],ve=t.elements.arrow,X=v&&ve?yh(ve):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eS(),ge=re[K],Me=re[W],qe=es(0,b[G],X[G]),_t=y?b[G]/2-F-qe-ge-$.mainAxis:Y-qe-ge-$.mainAxis,_n=y?-b[G]/2+F+qe+Me+$.mainAxis:Z+qe+Me+$.mainAxis,Tn=t.elements.arrow&&Ws(t.elements.arrow),Rn=Tn?E==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,Qe=(B=A==null?void 0:A[E])!=null?B:0,de=V+_t-Qe-Rn,H=V+_n-Qe,Ue=es(v?Ml(_,de):_,V,v?Dr(I,H):I);x[E]=Ue,U[E]=Ue-V}if(a){var nt,vt=E==="x"?ht:mt,vi=E==="x"?zt:Ut,we=x[C],Gt=C==="y"?"height":"width",eo=we+k[vt],to=we-k[vi],Rr=[ht,mt].indexOf(m)!==-1,gi=(nt=A==null?void 0:A[C])!=null?nt:0,no=Rr?eo:we-b[Gt]-O[Gt]-gi+$.altAxis,Zn=Rr?we+b[Gt]+O[Gt]-gi-$.altAxis:to,N=v&&Rr?JO(no,we,Zn):es(v?no:eo,we,v?Zn:to);x[C]=N,U[C]=N-we}t.modifiersData[r]=U}}const T2={name:"preventOverflow",enabled:!0,phase:"main",fn:_2,requiresIfExists:["offset"]};function R2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function N2(e){return e===bt(e)||!Sn(e)?gh(e):R2(e)}function A2(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function P2(e,t,n){n===void 0&&(n=!1);var r=Sn(t),o=Sn(t)&&A2(t),i=$r(t),s=Zo(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kr(t)!=="body"||Sh(i))&&(a=N2(t)),Sn(t)?(l=Zo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=wh(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function j2(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function L2(e){var t=j2(e);return QO.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function I2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function M2(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qy={placement:"bottom",modifiers:[],strategy:"absolute"};function Qy(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}const U2={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},W2={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},H2=[];function V2(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:i="absolute",modifiers:s=H2}=n,a=z2(n,F2);const l=h.useRef(s),u=h.useRef(),c=h.useCallback(()=>{var k;(k=u.current)==null||k.update()},[]),d=h.useCallback(()=>{var k;(k=u.current)==null||k.forceUpdate()},[]),[f,v]=MO(h.useState({placement:o,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:k})=>{const m={},p={};Object.keys(k.elements).forEach(y=>{m[y]=k.styles[y],p[y]=k.attributes[y]}),v({state:k,styles:m,attributes:p,update:c,forceUpdate:d,placement:k.placement})}}),[c,d,v]),S=h.useMemo(()=>(Zi(l.current,s)||(l.current=s),l.current),[s]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:i,modifiers:[...S,g,U2]})},[i,o,g,r,S]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=D2(e,t,Object.assign({},a,{placement:o,strategy:i,modifiers:[...S,W2,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,v(k=>Object.assign({},k,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function _s(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var K2=function(){},G2=K2;const q2=si(G2),Yy=()=>{};function Q2(e){return e.button===0}function Y2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ha=e=>e&&("current"in e?e.current:e),Xy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function X2(e,t=Yy,{disabled:n,clickTrigger:r="click"}={}){const o=h.useRef(!1),i=h.useRef(!1),s=h.useCallback(u=>{const c=Ha(e);q2(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!c||Y2(u)||!Q2(u)||!!_s(c,u.target)||i.current,i.current=!1},[e]),a=it(u=>{const c=Ha(e);c&&_s(c,u.target)&&(i.current=!0)}),l=it(u=>{o.current||t(u)});h.useEffect(()=>{var u,c;if(n||e==null)return;const d=Is(Ha(e)),f=d.defaultView||window;let v=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,g=null;Xy[r]&&(g=Dn(d,Xy[r],a,!0));const S=Dn(d,r,s,!0),k=Dn(d,r,p=>{if(p===v){v=void 0;return}l(p)});let m=[];return"ontouchstart"in d.documentElement&&(m=[].slice.call(d.body.children).map(p=>Dn(p,"mousemove",Yy))),()=>{g==null||g(),S(),k(),m.forEach(p=>p())}},[e,n,r,s,a,l])}function J2(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Z2(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function e$({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,d,f,v;const g=J2(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:Z2(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:s?Object.assign({padding:s},(c=g.preventOverflow)==null?void 0:c.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(v=g.arrow)==null?void 0:v.options,{element:a})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const t$=h.createContext(null),n$="data-rr-ui-";function r$(e){return`${n$}${e}`}const iS=h.createContext(ku?window:void 0);iS.Provider;function xh(){return h.useContext(iS)}const sS=h.createContext(null);sS.displayName="InputGroupContext";const ci=h.createContext(null);ci.displayName="NavbarContext";pe.string,pe.bool,pe.bool,pe.bool,pe.bool;const aS=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:i=!1,...s},a)=>(e=z(e,"img"),w.jsx("img",{ref:a,...s,className:M(t,n&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",i&&`${e}-thumbnail`)})));aS.displayName="Image";const o$={type:pe.string,tooltip:pe.bool,as:pe.elementType},$u=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>w.jsx(e,{...o,ref:i,className:M(t,`${n}-${r?"tooltip":"feedback"}`)}));$u.displayName="Feedback";$u.propTypes=o$;const qn=h.createContext({}),Hs=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:i=!1,as:s="input",...a},l)=>{const{controlId:u}=h.useContext(qn);return t=z(t,"form-check-input"),w.jsx(s,{...a,ref:l,type:r,id:e||u,className:M(n,t,o&&"is-valid",i&&"is-invalid")})});Hs.displayName="FormCheckInput";const Bl=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-check-label"),w.jsx("label",{...r,ref:o,htmlFor:n||i,className:M(t,e)})});Bl.displayName="FormCheckLabel";const lS=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:o=!1,disabled:i=!1,isValid:s=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:f,title:v="",type:g="checkbox",label:S,children:k,as:m="input",...p},y)=>{t=z(t,"form-check"),n=z(n,"form-switch");const{controlId:E}=h.useContext(qn),C=h.useMemo(()=>({controlId:e||E}),[E,e]),x=!k&&S!=null&&S!==!1||jO(k,Bl),b=w.jsx(Hs,{...p,type:g==="switch"?"checkbox":g,ref:y,isValid:s,isInvalid:a,disabled:i,as:m});return w.jsx(qn.Provider,{value:C,children:w.jsx("div",{style:f,className:M(d,x&&t,r&&`${t}-inline`,o&&`${t}-reverse`,g==="switch"&&n),children:k||w.jsxs(w.Fragment,{children:[b,x&&w.jsx(Bl,{title:v,children:S}),u&&w.jsx($u,{type:c,tooltip:l,children:u})]})})})});lS.displayName="FormCheck";const Dl=Object.assign(lS,{Input:Hs,Label:Bl}),uS=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:i,isValid:s=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},f)=>{const{controlId:v}=h.useContext(qn);return e=z(e,"form-control"),w.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:o||v,className:M(i,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",a&&"is-invalid")})});uS.displayName="FormControl";const i$=Object.assign(uS,{Feedback:$u}),cS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"form-floating"),w.jsx(n,{ref:o,className:M(e,t),...r})));cS.displayName="FormFloating";const Eh=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const o=h.useMemo(()=>({controlId:e}),[e]);return w.jsx(qn.Provider,{value:o,children:w.jsx(t,{...n,ref:r})})});Eh.displayName="FormGroup";const fS=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:i,...s},a)=>{const{controlId:l}=h.useContext(qn);t=z(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=M(o,t,r&&"visually-hidden",n&&u);return i=i||l,n?w.jsx(dn,{ref:a,as:"label",className:c,htmlFor:i,...s}):w.jsx(e,{ref:a,className:c,htmlFor:i,...s})});fS.displayName="FormLabel";const dS=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-range"),w.jsx("input",{...r,type:"range",ref:o,className:M(t,e),id:n||i})});dS.displayName="FormRange";const pS=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:i=!1,id:s,...a},l)=>{const{controlId:u}=h.useContext(qn);return e=z(e,"form-select"),w.jsx("select",{...a,size:n,ref:l,className:M(r,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:s||u})});pS.displayName="FormSelect";const hS=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=z(e,"form-text"),w.jsx(n,{...o,ref:i,className:M(t,e,r&&"text-muted")})));hS.displayName="FormText";const mS=h.forwardRef((e,t)=>w.jsx(Dl,{...e,ref:t,type:"switch"}));mS.displayName="Switch";const s$=Object.assign(mS,{Input:Dl.Input,Label:Dl.Label}),yS=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=z(e,"form-floating"),w.jsxs(Eh,{ref:s,className:M(t,e),controlId:r,...i,children:[n,w.jsx("label",{htmlFor:r,children:o})]})));yS.displayName="FloatingLabel";const a$={_ref:pe.any,validated:pe.bool,as:pe.elementType},kh=h.forwardRef(({className:e,validated:t,as:n="form",...r},o)=>w.jsx(n,{...r,ref:o,className:M(e,t&&"was-validated")}));kh.displayName="Form";kh.propTypes=a$;const ot=Object.assign(kh,{Group:Eh,Control:i$,Floating:cS,Check:Dl,Switch:s$,Label:fS,Text:hS,Range:dS,Select:pS,FloatingLabel:yS}),_u=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"input-group-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));_u.displayName="InputGroupText";const l$=e=>w.jsx(_u,{children:w.jsx(Hs,{type:"checkbox",...e})}),u$=e=>w.jsx(_u,{children:w.jsx(Hs,{type:"radio",...e})}),vS=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},s)=>{e=z(e,"input-group");const a=h.useMemo(()=>({}),[]);return w.jsx(sS.Provider,{value:a,children:w.jsx(o,{ref:s,...i,className:M(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});vS.displayName="InputGroup";const Un=Object.assign(vS,{Text:_u,Radio:u$,Checkbox:l$});function Gc(e){e===void 0&&(e=Is());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function c$(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Jy=r$("modal-open");class bh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return c$(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Fn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Jy,""),Fn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Jy),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qc=(e,t)=>ku?e==null?(t||Is()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bd(e,t){const n=xh(),[r,o]=h.useState(()=>qc(e,n==null?void 0:n.document));if(!r){const i=qc(e);i&&o(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=qc(e);i!==r&&o(i)},[e,r]),r}function f$({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const i=h.useRef(null),s=h.useRef(t),a=it(n);h.useEffect(()=>{t?s.current=!0:a(i.current)},[t,a]);const l=Yr(i,e.ref),u=h.cloneElement(e,{ref:l});return t?u:o||!s.current&&r?null:u}function gS(e){return e.code==="Escape"||e.keyCode===27}function d$(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const p$=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function h$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function m$(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l}=e,u=h$(e,p$);const{major:c}=d$(),d=c>=19?l.props.ref:l.ref,f=h.useRef(null),v=Yr(f,typeof l=="function"?null:d),g=x=>b=>{x&&f.current&&x(f.current,b)},S=h.useCallback(g(t),[t]),k=h.useCallback(g(n),[n]),m=h.useCallback(g(r),[r]),p=h.useCallback(g(o),[o]),y=h.useCallback(g(i),[i]),E=h.useCallback(g(s),[s]),C=h.useCallback(g(a),[a]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:S},n&&{onEntering:k},r&&{onEntered:m},o&&{onExit:p},i&&{onExiting:y},s&&{onExited:E},a&&{addEndListener:C},{children:typeof l=="function"?(x,b)=>l(x,Object.assign({},b,{ref:v})):h.cloneElement(l,{ref:v})})}const y$=["component"];function v$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}const g$=h.forwardRef((e,t)=>{let{component:n}=e,r=v$(e,y$);const o=m$(r);return w.jsx(n,Object.assign({ref:t},o))});function w$({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),o=it(t);return Il(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Il(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function S$({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[i,s]=h.useState(!t);t&&i&&s(!1);const a=w$({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(c,d=>{throw u.in||s(!0),d})}}),l=Yr(a,e.ref);return i&&!t?null:h.cloneElement(e,{ref:l})}function Cd(e,t,n){return e?w.jsx(g$,Object.assign({},n,{component:e})):t?w.jsx(S$,Object.assign({},n,{transition:t})):w.jsx(f$,Object.assign({},n))}const x$=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function E$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}let Qc;function k$(e){return Qc||(Qc=new bh({ownerDocument:e==null?void 0:e.document})),Qc}function b$(e){const t=xh(),n=e||k$(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:h.useCallback(o=>{r.current.backdrop=o},[])})}const wS=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:v,runBackdropTransition:g,autoFocus:S=!0,enforceFocus:k=!0,restoreFocus:m=!0,restoreFocusOptions:p,renderDialog:y,renderBackdrop:E=H=>w.jsx("div",Object.assign({},H)),manager:C,container:x,onShow:b,onHide:O=()=>{},onExit:T,onExited:$,onExiting:A,onEnter:U,onEntering:B,onEntered:K}=e,W=E$(e,x$);const G=xh(),V=bd(x),_=b$(C),I=dh(),F=EO(n),[Y,Z]=h.useState(!n),ve=h.useRef(null);h.useImperativeHandle(t,()=>_,[_]),ku&&!F&&n&&(ve.current=Gc(G==null?void 0:G.document)),n&&Y&&Z(!1);const X=it(()=>{if(_.add(),_n.current=Dn(document,"keydown",qe),_t.current=Dn(document,"focus",()=>setTimeout(ge),!0),b&&b(),S){var H,Ue;const nt=Gc((H=(Ue=_.dialog)==null?void 0:Ue.ownerDocument)!=null?H:G==null?void 0:G.document);_.dialog&&nt&&!_s(_.dialog,nt)&&(ve.current=nt,_.dialog.focus())}}),re=it(()=>{if(_.remove(),_n.current==null||_n.current(),_t.current==null||_t.current(),m){var H;(H=ve.current)==null||H.focus==null||H.focus(p),ve.current=null}});h.useEffect(()=>{!n||!V||X()},[n,V,X]),h.useEffect(()=>{Y&&re()},[Y,re]),Kw(()=>{re()});const ge=it(()=>{if(!k||!I()||!_.isTopModal())return;const H=Gc(G==null?void 0:G.document);_.dialog&&H&&!_s(_.dialog,H)&&_.dialog.focus()}),Me=it(H=>{H.target===H.currentTarget&&(u==null||u(H),a===!0&&O())}),qe=it(H=>{l&&gS(H)&&_.isTopModal()&&(c==null||c(H),H.defaultPrevented||O())}),_t=h.useRef(),_n=h.useRef(),Tn=(...H)=>{Z(!0),$==null||$(...H)};if(!V)return null;const Rn=Object.assign({role:r,ref:_.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},W,{style:i,className:o,tabIndex:-1});let Qe=y?y(Rn):w.jsx("div",Object.assign({},Rn,{children:h.cloneElement(s,{role:"document"})}));Qe=Cd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:A,onExited:Tn,onEnter:U,onEntering:B,onEntered:K,children:Qe});let de=null;return a&&(de=E({ref:_.setBackdropRef,onClick:Me}),de=Cd(v,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),w.jsx(w.Fragment,{children:Ir.createPortal(w.jsxs(w.Fragment,{children:[de,Qe]}),V)})});wS.displayName="Modal";const C$=Object.assign(wS,{Manager:bh});function Od(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function O$(e,t){e.classList?e.classList.add(t):Od(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Zy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function $$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Zy(e.className,t):e.setAttribute("class",Zy(e.className&&e.className.baseVal||"",t))}const ao={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class SS extends bh{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,Fn(n,{[t]:`${parseFloat(Fn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Fn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(O$(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),so(n,ao.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();$$(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.restore(r,i)),so(n,ao.STICKY_CONTENT).forEach(i=>this.restore(o,i)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let Yc;function _$(e){return Yc||(Yc=new SS(e)),Yc}const xS=h.createContext({onHide(){}}),T$=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...i},s)=>{const a=h.useContext(xS),l=it(()=>{a==null||a.onHide(),r==null||r()});return w.jsxs("div",{ref:s,...i,children:[o,n&&w.jsx(Cu,{"aria-label":e,variant:t,onClick:l})]})}),ES=h.forwardRef(({bsPrefix:e,className:t,as:n,...r},o)=>{e=z(e,"navbar-brand");const i=n||(r.href?"a":"span");return w.jsx(i,{...r,ref:o,className:M(t,e)})});ES.displayName="NavbarBrand";const kS=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=z(t,"navbar-collapse");const o=h.useContext(ci);return w.jsx(bu,{in:!!(o&&o.expanded),...n,children:w.jsx("div",{ref:r,className:t,children:e})})});kS.displayName="NavbarCollapse";const bS=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:i,...s},a)=>{e=z(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(ci)||{},c=it(d=>{i&&i(d),l&&l()});return o==="button"&&(s.type="button"),w.jsx(o,{...s,ref:a,onClick:c,"aria-label":r,className:M(t,e,!u&&"collapsed"),children:n||w.jsx("span",{className:`${e}-icon`})})});bS.displayName="NavbarToggle";const $d=new WeakMap,ev=(e,t)=>{if(!e||!t)return;const n=$d.get(t)||new Map;$d.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function R$(e,t=typeof window>"u"?void 0:window){const n=ev(e,t),[r,o]=h.useState(()=>n?n.matches:!1);return Il(()=>{let i=ev(e,t);if(!i)return o(!1);let s=$d.get(t);const a=()=>{o(i.matches)};return i.refCount++,i.addListener(a),a(),()=>{i.removeListener(a),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),r}function N$(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function o(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function s(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((f,[v,g])=>((g==="up"||g===!0)&&(f=n(f,i(v))),(g==="down"||g===!0)&&(f=n(f,o(v))),f),""),[JSON.stringify(c)]);return R$(d,u)}return s}const A$=N$({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),CS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"offcanvas-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));CS.displayName="OffcanvasBody";const P$={[Pt]:"show",[In]:"show"},OS=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:o=!1,unmountOnExit:i=!1,appear:s=!1,...a},l)=>(e=z(e,"offcanvas"),w.jsx(ch,{ref:l,addEndListener:uh,in:r,mountOnEnter:o,unmountOnExit:i,appear:s,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:M(t,n.props.className,(u===Pt||u===Yo)&&`${e}-toggling`,P$[u])})})));OS.displayName="OffcanvasToggling";const $S=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=z(e,"offcanvas-header"),w.jsx(T$,{ref:i,...o,className:M(t,e),closeLabel:n,closeButton:r})));$S.displayName="OffcanvasHeader";const j$=fh("h5"),_S=h.forwardRef(({className:e,bsPrefix:t,as:n=j$,...r},o)=>(t=z(t,"offcanvas-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));_S.displayName="OffcanvasTitle";function L$(e){return w.jsx(OS,{...e})}function I$(e){return w.jsx(Cs,{...e})}const TS=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:o="start",responsive:i,show:s=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:v,autoFocus:g=!0,enforceFocus:S=!0,restoreFocus:k=!0,restoreFocusOptions:m,onEntered:p,onExit:y,onExiting:E,onEnter:C,onEntering:x,onExited:b,backdropClassName:O,manager:T,renderStaticNode:$=!1,...A},U)=>{const B=h.useRef();e=z(e,"offcanvas");const{onToggle:K}=h.useContext(ci)||{},[W,G]=h.useState(!1),V=A$(i||"xs","up");h.useEffect(()=>{G(i?s&&!V:s)},[s,i,V]);const _=it(()=>{K==null||K(),f==null||f()}),I=h.useMemo(()=>({onHide:_}),[_]);function F(){return T||(u?(B.current||(B.current=new SS({handleContainerOverflow:!1})),B.current):_$())}const Y=(re,...ge)=>{re&&(re.style.visibility="visible"),C==null||C(re,...ge)},Z=(re,...ge)=>{re&&(re.style.visibility=""),b==null||b(...ge)},ve=h.useCallback(re=>w.jsx("div",{...re,className:M(`${e}-backdrop`,O)}),[O,e]),X=re=>w.jsx("div",{...re,...A,className:M(t,i?`${e}-${i}`:e,`${e}-${o}`),"aria-labelledby":r,children:n});return w.jsxs(w.Fragment,{children:[!W&&(i||$)&&X({}),w.jsx(xS.Provider,{value:I,children:w.jsx(C$,{show:W,ref:U,backdrop:a,container:v,keyboard:l,autoFocus:g,enforceFocus:S&&!u,restoreFocus:k,restoreFocusOptions:m,onEscapeKeyDown:c,onShow:d,onHide:_,onEnter:Y,onEntering:x,onEntered:p,onExit:y,onExiting:E,onExited:Z,manager:F(),transition:L$,backdropTransition:I$,renderBackdrop:ve,renderDialog:X})})]})});TS.displayName="Offcanvas";const Fi=Object.assign(TS,{Body:CS,Header:$S,Title:_S}),RS=h.forwardRef((e,t)=>{const n=h.useContext(ci);return w.jsx(Fi,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});RS.displayName="NavbarOffcanvas";const NS=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"navbar-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));NS.displayName="NavbarText";const AS=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:s,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:v=!1,...g}=Hk(e,{expanded:"onToggle"}),S=z(n,"navbar"),k=h.useCallback((...y)=>{f==null||f(...y),v&&c&&(d==null||d(!1))},[f,v,c,d]);g.role===void 0&&u!=="nav"&&(g.role="navigation");let m=`${S}-expand`;typeof r=="string"&&(m=`${m}-${r}`);const p=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return w.jsx(ci.Provider,{value:p,children:w.jsx(t$.Provider,{value:k,children:w.jsx(u,{ref:t,...g,className:M(l,S,r&&m,o&&`${S}-${o}`,i&&`bg-${i}`,a&&`sticky-${a}`,s&&`fixed-${s}`)})})})});AS.displayName="Navbar";const Xc=Object.assign(AS,{Brand:ES,Collapse:kS,Offcanvas:RS,Text:NS,Toggle:bS}),M$=()=>{};function B$(e,t,{disabled:n,clickTrigger:r}={}){const o=t||M$;X2(e,o,{disabled:n,clickTrigger:r});const i=it(s=>{gS(s)&&o(s)});h.useEffect(()=>{if(n||e==null)return;const s=Is(Ha(e));let a=(s.defaultView||window).event;const l=Dn(s,"keyup",u=>{if(u===a){a=void 0;return}i(u)});return()=>{l()}},[e,n,i])}const PS=h.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:i,popperConfig:s={},transition:a,runTransition:l}=e,[u,c]=By(),[d,f]=By(),v=Yr(c,t),g=bd(e.container),S=bd(e.target),[k,m]=h.useState(!e.show),p=V2(S,u,e$({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:s}));e.show&&k&&m(!1);const y=(...A)=>{m(!0),e.onExited&&e.onExited(...A)},E=e.show||!k;if(B$(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:C,onExiting:x,onEnter:b,onEntering:O,onEntered:T}=e;let $=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:v}),{popper:p,placement:o,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return $=Cd(a,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:$,onExit:C,onExiting:x,onExited:y,onEnter:b,onEntering:O,onEntered:T}),g?Ir.createPortal($,g):null});PS.displayName="Overlay";const jS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-header"),w.jsx(n,{ref:o,className:M(e,t),...r})));jS.displayName="PopoverHeader";const Ch=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));Ch.displayName="PopoverBody";function LS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function IS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const D$=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:s,hasDoneInitialMeasure:a,popper:l,show:u,...c},d)=>{const f=z(e,"popover"),v=O0(),[g]=(t==null?void 0:t.split("-"))||[],S=LS(g,v);let k=r;return u&&!a&&(k={...r,...IS(l==null?void 0:l.strategy)}),w.jsxs("div",{ref:d,role:"tooltip",style:k,"x-placement":g,className:M(n,f,g&&`bs-popover-${S}`),...c,children:[w.jsx("div",{className:"popover-arrow",...s}),i?w.jsx(Ch,{children:o}):o]})}),F$=Object.assign(D$,{Header:jS,Body:Ch,POPPER_OFFSET:[0,8]}),MS=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:s,popper:a,show:l,...u},c)=>{e=z(e,"tooltip");const d=O0(),[f]=(t==null?void 0:t.split("-"))||[],v=LS(f,d);let g=r;return l&&!s&&(g={...r,...IS(a==null?void 0:a.strategy)}),w.jsxs("div",{ref:c,style:g,role:"tooltip","x-placement":f,className:M(n,e,`bs-tooltip-${v}`),...u,children:[w.jsx("div",{className:"tooltip-arrow",...i}),w.jsx("div",{className:`${e}-inner`,children:o})]})});MS.displayName="Tooltip";const BS=Object.assign(MS,{TOOLTIP_OFFSET:[0,6]});function z$(e){const t=h.useRef(null),n=z(void 0,"popover"),r=z(void 0,"tooltip"),o=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Od(t.current,n))return F$.POPPER_OFFSET;if(Od(t.current,r))return BS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function U$(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Ll(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Ll(o)))}const DS=h.forwardRef(({children:e,transition:t=Cs,popperConfig:n={},rootClose:r=!1,placement:o="top",show:i=!1,...s},a)=>{const l=h.useRef({}),[u,c]=h.useState(null),[d,f]=z$(s.offset),v=Yr(a,d),g=t===!0?Cs:t||void 0,S=it(k=>{c(k),n==null||n.onFirstUpdate==null||n.onFirstUpdate(k)});return Il(()=>{u&&s.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,s.target]),h.useEffect(()=>{i||c(null)},[i]),w.jsx(PS,{...s,ref:v,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:g,rootClose:r,placement:o,show:i,children:(k,{arrowProps:m,popper:p,show:y})=>{var E;U$(k,m);const C=p==null?void 0:p.placement,x=Object.assign(l.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:C,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),b=!!u;return typeof e=="function"?e({...k,placement:C,show:y,...!t&&y&&{className:"show"},popper:x,arrowProps:m,hasDoneInitialMeasure:b}):h.cloneElement(e,{...k,placement:C,arrowProps:m,popper:x,hasDoneInitialMeasure:b,className:M(e.props.className,!t&&y&&"show"),style:{...e.props.style,...k.style}})}})});DS.displayName="Overlay";function W$(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function tv(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==o)&&!_s(o,i)&&e(...t)}pe.oneOf(["click","hover","focus"]);const H$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:i=!1,onToggle:s,delay:a,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const d=h.useRef(null),f=Yr(d,n.ref),v=qw(),g=h.useRef(""),[S,k]=k0(o,i,s),m=W$(a),{onFocus:p,onBlur:y,onClick:E}=typeof n!="function"?h.Children.only(n).props:{},C=W=>{f(Ll(W))},x=h.useCallback(()=>{if(v.clear(),g.current="show",!m.show){k(!0);return}v.set(()=>{g.current==="show"&&k(!0)},m.show)},[m.show,k,v]),b=h.useCallback(()=>{if(v.clear(),g.current="hide",!m.hide){k(!1);return}v.set(()=>{g.current==="hide"&&k(!1)},m.hide)},[m.hide,k,v]),O=h.useCallback((...W)=>{x(),p==null||p(...W)},[x,p]),T=h.useCallback((...W)=>{b(),y==null||y(...W)},[b,y]),$=h.useCallback((...W)=>{k(!S),E==null||E(...W)},[E,k,S]),A=h.useCallback((...W)=>{tv(x,W,"fromElement")},[x]),U=h.useCallback((...W)=>{tv(b,W,"toElement")},[b]),B=e==null?[]:[].concat(e),K={ref:C};return B.indexOf("click")!==-1&&(K.onClick=$),B.indexOf("focus")!==-1&&(K.onFocus=O,K.onBlur=T),B.indexOf("hover")!==-1&&(K.onMouseOver=A,K.onMouseOut=U),w.jsxs(w.Fragment,{children:[typeof n=="function"?n(K):h.cloneElement(n,K),w.jsx(DS,{...c,show:S,onHide:b,flip:u,placement:l,popperConfig:r,target:d.current,children:t})]})},Fl=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"row"),s=b0(),a=C0(),l=`${i}-cols`,u=[];return s.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const v=c!==a?`-${c}`:"";f!=null&&u.push(`${l}${v}-${f}`)}),w.jsx(n,{ref:o,...r,className:M(t,i,...u)})});Fl.displayName="Row";const FS=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{e=z(e,"spinner");const l=`${e}-${n}`;return w.jsx(o,{ref:a,...s,className:M(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})});FS.displayName="Spinner";const V$={[Pt]:"showing",[Yo]:"showing show"},zS=h.forwardRef((e,t)=>w.jsx(Cs,{...e,ref:t,transitionClasses:V$}));zS.displayName="ToastFade";const US=h.createContext({onClose(){}}),WS=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:o,children:i,...s},a)=>{e=z(e,"toast-header");const l=h.useContext(US),u=it(c=>{l==null||l.onClose==null||l.onClose(c)});return w.jsxs("div",{ref:a,...s,className:M(e,o),children:[i,r&&w.jsx(Cu,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});WS.displayName="ToastHeader";const HS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"toast-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));HS.displayName="ToastBody";const VS=h.forwardRef(({bsPrefix:e,className:t,transition:n=zS,show:r=!0,animation:o=!0,delay:i=5e3,autohide:s=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:v,bg:g,...S},k)=>{e=z(e,"toast");const m=h.useRef(i),p=h.useRef(a);h.useEffect(()=>{m.current=i,p.current=a},[i,a]);const y=qw(),E=!!(s&&r),C=h.useCallback(()=>{E&&(p.current==null||p.current())},[E]);h.useEffect(()=>{y.set(C,m.current)},[y,C]);const x=h.useMemo(()=>({onClose:a}),[a]),b=!!(n&&o),O=w.jsx("div",{...S,ref:k,className:M(e,t,g&&`bg-${g}`,!b&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return w.jsx(US.Provider,{value:x,children:b&&n?w.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:l,onExit:u,onExiting:c,onExited:v,unmountOnExit:!0,children:O}):O})});VS.displayName="Toast";const ns=Object.assign(VS,{Body:HS,Header:WS}),K$={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},Oh=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:o="div",...i},s)=>(e=z(e,"toast-container"),w.jsx(o,{ref:s,...i,className:M(e,t&&K$[t],n&&`position-${n}`,r)})));Oh.displayName="ToastContainer";const G$=()=>{},$h=h.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:o,onChange:i,value:s,disabled:a,id:l,inputRef:u,...c},d)=>(e=z(e,"btn-check"),w.jsxs(w.Fragment,{children:[w.jsx("input",{className:e,name:t,type:o,value:s,ref:u,autoComplete:"off",checked:!!r,disabled:!!a,onChange:i||G$,id:l}),w.jsx(zs,{...c,ref:d,className:M(n,a&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:l})]})));$h.displayName="ToggleButton";const bn=Object.create(null);bn.open="0";bn.close="1";bn.ping="2";bn.pong="3";bn.message="4";bn.upgrade="5";bn.noop="6";const Va=Object.create(null);Object.keys(bn).forEach(e=>{Va[bn[e]]=e});const _d={type:"error",data:"parser error"},KS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",GS=typeof ArrayBuffer=="function",qS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,_h=({type:e,data:t},n,r)=>KS&&t instanceof Blob?n?r(t):nv(t,r):GS&&(t instanceof ArrayBuffer||qS(t))?n?r(t):nv(new Blob([t]),r):r(bn[e]+(t||"")),nv=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function rv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jc;function q$(e,t){if(KS&&e.data instanceof Blob)return e.data.arrayBuffer().then(rv).then(t);if(GS&&(e.data instanceof ArrayBuffer||qS(e.data)))return t(rv(e.data));_h(e,!1,n=>{Jc||(Jc=new TextEncoder),t(Jc.encode(n))})}const ov="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},Y$=typeof ArrayBuffer=="function",Th=(e,t)=>{if(typeof e!="string")return{type:"message",data:QS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:X$(e.substring(1),t)}:Va[n]?e.length>1?{type:Va[n],data:e.substring(1)}:{type:Va[n]}:_d},X$=(e,t)=>{if(Y$){const n=Q$(e);return QS(n,t)}else return{base64:!0,data:e}},QS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},YS="",J$=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{_h(i,!1,a=>{r[s]=a,++o===n&&t(r.join(YS))})})},Z$=(e,t)=>{const n=e.split(YS),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Zc;function va(e){return e.reduce((t,n)=>t+n.length,0)}function ga(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(_d);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(va(n)e){a.enqueue(_d);break}}}})}const XS=4;function je(e){if(e)return n_(e)}function n_(e){for(var t in je.prototype)e[t]=je.prototype[t];return e}je.prototype.on=je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};je.prototype.off=je.prototype.removeListener=je.prototype.removeAllListeners=je.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const r_=jt.setTimeout,o_=jt.clearTimeout;function Tu(e,t){t.useNativeTimers?(e.setTimeoutFn=r_.bind(jt),e.clearTimeoutFn=o_.bind(jt)):(e.setTimeoutFn=jt.setTimeout.bind(jt),e.clearTimeoutFn=jt.clearTimeout.bind(jt))}const i_=1.33;function s_(e){return typeof e=="string"?a_(e):Math.ceil((e.byteLength||e.size)*i_)}function a_(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function l_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function u_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function ex(){const e=av(+new Date);return e!==sv?(iv=0,sv=e):e+"."+av(iv++)}for(;wa{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Z$(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,J$(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=ex()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new xn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class xn extends je{constructor(t,n){super(),Tu(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=JS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new nx(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=xn.requestsCount++,xn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=p_,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete xn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}xn.requestsCount=0;xn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",lv);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,lv,!1)}}function lv(){for(let e in xn.requests)xn.requests.hasOwnProperty(e)&&xn.requests[e].abort()}const Nh=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Sa=jt.WebSocket||jt.MozWebSocket,uv=!0,y_="arraybuffer",cv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class v_ extends Rh{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=cv?{}:JS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=uv&&!cv?n?new Sa(t,n):new Sa(t):new Sa(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{uv&&this.ws.send(i)}catch{}o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=ex()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Sa}}class g_ extends Rh{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=t_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=e_();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const w_={websocket:v_,webtransport:g_,polling:m_},S_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,x_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rd(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=S_.exec(e||""),i={},s=14;for(;s--;)i[x_[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=E_(i,i.path),i.queryKey=k_(i,i.query),i}function E_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function k_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let rx=class vo extends je{constructor(t,n={}){super(),this.binaryType=y_,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Rd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Rd(n.host).host),Tu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=u_(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=XS,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new w_[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;vo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",vo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ox=Object.prototype.toString,$_=typeof Blob=="function"||typeof Blob<"u"&&ox.call(Blob)==="[object BlobConstructor]",__=typeof File=="function"||typeof File<"u"&&ox.call(File)==="[object FileConstructor]";function Ah(e){return C_&&(e instanceof ArrayBuffer||O_(e))||$_&&e instanceof Blob||__&&e instanceof File}function Ka(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:J.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}fi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};fi.prototype.reset=function(){this.attempts=0};fi.prototype.setMin=function(e){this.ms=e};fi.prototype.setMax=function(e){this.max=e};fi.prototype.setJitter=function(e){this.jitter=e};class Pd extends je{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Tu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new fi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||L_;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new rx(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Zt(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Zt(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Zt(t,"ping",this.onping.bind(this)),Zt(t,"data",this.ondata.bind(this)),Zt(t,"error",this.onerror.bind(this)),Zt(t,"close",this.onclose.bind(this)),Zt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Nh(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new ix(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ti={};function Ga(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=b_(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ti[o]&&i in Ti[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Pd(r,t):(Ti[o]||(Ti[o]=new Pd(r,t)),l=Ti[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ga,{Manager:Pd,Socket:ix,io:Ga,connect:Ga});const sx=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},M_=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&sx(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},B_=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const a=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=sx(s,a)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},Ui=window.location.hostname,Wi=window.location.port,D_=`ws://${Ui}:${Wi}/`,Ln=Ga(D_,{path:"/ws/socket.io",transports:["websocket"]}),F_=(e,t)=>{t?Ln.emit("update_value",{access_path:e.full_access_path,value:e},t):Ln.emit("update_value",{access_path:e.full_access_path,value:e})},ax=(e,t=[],n={},r)=>{const o=M_(t),i=B_(n);Ln.emit("trigger_method",{access_path:e,args:o,kwargs:i})},lx=ne.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return w.jsx(Oh,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?w.jsxs(ns,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[w.jsxs(ns.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[w.jsx("strong",{className:"me-auto",children:o.levelname}),w.jsx("small",{children:o.timeStamp})]}),w.jsx(ns.Body,{children:o.message})]},o.id):null)})});lx.displayName="Notifications";const jd=ne.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:a}=o();return w.jsx(Oh,{position:"bottom-center",className:"toastContainer",children:w.jsx(ns,{show:t,onClose:r,delay:a,autohide:a!==void 0,bg:s,children:w.jsxs(ns.Body,{className:"d-flex justify-content-between",children:[i,w.jsx(zs,{variant:"close",size:"sm",onClick:r})]})})})});jd.displayName="ConnectionToast";function ux(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function z_(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function U_(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(pv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=pv(),e[t];throw new Error(`Key not found: ${t}`)}}function dv(e,t,n=!1){const r=z_(t);try{return U_(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function W_(e,t,n){const r=ux(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let l=0;l{const{docString:t}=e;if(!t)return null;const n=w.jsx(BS,{id:"tooltip",children:t});return w.jsx(H$,{placement:"bottom",overlay:n,children:w.jsx(Lw,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});ln.displayName="DocStringComponent";function Cn(){const e=h.useRef(0);return h.useEffect(()=>{e.current+=1}),e.current}const cx=ne.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn(),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{s({type:"bool",value:c,full_access_path:n,readonly:r,doc:o})};return w.jsxs("div",{className:"component buttonComponent",id:l,children:[!1,w.jsxs($h,{id:`toggle-check-${l}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:a,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[a,w.jsx(ln,{docString:o})]})]})});cx.displayName="ButtonComponent";const H_=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let a=0;s?a=Math.pow(10,o+1-n):a=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?a:-a)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},K_=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{if(e==="."&&t.includes("."))return{value:t,selectionStart:n};let o=t;return r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1}},zl=ne.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:a,addNotification:l,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,v]=h.useState(null),[g,S]=h.useState(n.toString());Cn();const k=p=>{const{key:y,target:E}=p,C=E;if(y==="F1"||y==="F5"||y==="F12"||y==="Tab"||y==="ArrowRight"||y==="ArrowLeft")return;p.preventDefault();const{value:x}=C,b=C.selectionEnd??0;let O=C.selectionStart??0,T=x;if(p.ctrlKey&&y==="a"){C.setSelectionRange(0,x.length);return}else if(y==="-")if(O===0&&!x.startsWith("-"))T="-"+x,O++;else if(x.startsWith("-")&&O===1)T=x.substring(1),O--;else return;else if(y>="0"&&y<="9")({value:T,selectionStart:O}=hv(y,x,O,b));else if(y==="."&&(o==="float"||o==="Quantity"))({value:T,selectionStart:O}=hv(y,x,O,b));else if(y==="ArrowUp"||y==="ArrowDown")({value:T,selectionStart:O}=H_(y,x,O));else if(y==="Backspace")({value:T,selectionStart:O}=V_(x,O,b));else if(y==="Delete")({value:T,selectionStart:O}=K_(x,O,b));else if(y==="Enter"&&!s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($);return}else return;if(s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($)}S(T),v(O)},m=()=>{if(!s){let p;o==="Quantity"?p={type:"Quantity",value:{magnitude:Number(g),unit:a},full_access_path:t,readonly:r,doc:i}:p={type:o,value:Number(g),full_access_path:t,readonly:r,doc:i},u(p)}};return h.useEffect(()=>{const p=o==="int"?parseInt(g):parseFloat(g);n!==p&&S(n.toString());let y=`${t} changed to ${e.value}`;a===void 0?y+=".":y+=` ${a}.`,l(y)},[n]),h.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),w.jsxs("div",{className:"component numberComponent",id:d,children:[!1,w.jsxs(Un,{children:[c&&w.jsxs(Un.Text,{children:[c,w.jsx(ln,{docString:i})]}),w.jsx(ot.Control,{type:"text",value:g,disabled:r,onChange:()=>{},name:d,onKeyDown:k,onBlur:m,className:s&&!r?"instantUpdate":""}),a&&w.jsx(Un.Text,{children:a})]})]})});zl.displayName="NumberComponent";const Ts={black:"#000",white:"#fff"},lo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},uo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},co={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},fo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},po={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ri={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},G_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Rs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ve(di,--yt):0,ti--,Ae===10&&(ti=1,Nu--),Ae}function Et(){return Ae=yt2||As(Ae)>3?"":" "}function fT(e,t){for(;--t&&Et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Vs(e,qa()+(t<6&&En()==32&&Et()==32))}function Id(e){for(;Et();)switch(Ae){case e:return yt;case 34:case 39:e!==34&&e!==39&&Id(Ae);break;case 40:e===41&&Id(e);break;case 92:Et();break}return yt}function dT(e,t){for(;Et()&&e+Ae!==57;)if(e+Ae===84&&En()===47)break;return"/*"+Vs(t,yt-1)+"*"+Ru(e===47?e:Et())}function pT(e){for(;!As(En());)Et();return Vs(e,yt)}function hT(e){return vx(Ya("",null,null,null,[""],e=yx(e),0,[0],e))}function Ya(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,v=0,g=0,S=1,k=1,m=1,p=0,y="",E=o,C=i,x=r,b=y;k;)switch(g=p,p=Et()){case 40:if(g!=108&&Ve(b,d-1)==58){Ld(b+=ae(Qa(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:b+=Qa(p);break;case 9:case 10:case 13:case 32:b+=cT(g);break;case 92:b+=fT(qa()-1,7);continue;case 47:switch(En()){case 42:case 47:xa(mT(dT(Et(),qa()),t,n),l);break;default:b+="/"}break;case 123*S:a[u++]=pn(b)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:m==-1&&(b=ae(b,/\f/g,"")),v>0&&pn(b)-d&&xa(v>32?yv(b+";",r,n,d-1):yv(ae(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(xa(x=mv(b,t,n,u,c,o,a,y,E=[],C=[],d),i),p===123)if(c===0)Ya(b,t,x,x,E,i,d,a,C);else switch(f===99&&Ve(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ya(e,x,x,r&&xa(mv(e,x,x,0,0,o,a,y,o,E=[],d),C),o,C,d,a,r?E:C);break;default:Ya(b,x,x,x,[""],C,0,a,C)}}u=c=v=0,S=m=1,y=b="",d=s;break;case 58:d=1+pn(b),v=g;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&uT()==125)continue}switch(b+=Ru(p),p*S){case 38:m=c>0?1:(b+="\f",-1);break;case 44:a[u++]=(pn(b)-1)*m,m=1;break;case 64:En()===45&&(b+=Qa(Et())),f=En(),c=d=pn(y=b+=pT(qa())),p++;break;case 45:g===45&&pn(b)==2&&(S=0)}}return i}function mv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],v=Mh(f),g=0,S=0,k=0;g0?f[m]+" "+p:ae(p,/&\f/g,f[m])))&&(l[k++]=y);return Au(e,t,n,o===0?Lh:a,l,u,c)}function mT(e,t,n){return Au(e,t,n,dx,Ru(lT()),Ns(e,2,-2),0)}function yv(e,t,n,r){return Au(e,t,n,Ih,Ns(e,0,r),Ns(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Mh(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Ul+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?gx(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,pn(e)-3-(~Ld(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ve(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var bT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ih:t.return=gx(t.value,t.length);break;case px:return Fo([Ni(t,{value:ae(t.value,"@","@"+se)})],o);case Lh:if(t.length)return aT(t.props,function(i){switch(sT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Ni(t,{props:[ae(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Fo([Ni(t,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},CT=[bT],wx=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||CT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),m=1;m<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gn]=t,e[ws]=r,pw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oQo&&(t.flags|=128,r=!0,Oi(i,!1),t.lanes=4194304)}else{if(!r)if(e=$l(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>Qo&&n!==1073741824&&(t.flags|=128,r=!0,Oi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=Ee.current,he(Ee,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return nh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function VC(e,t){switch(Ip(t),t.tag){case 1:return dt(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),ye(ft),ye(tt),Vp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hp(t),null;case 13:if(ye(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Ee),null;case 4:return Go(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return nh(),null;case 24:return null;default:return null}}var pa=!1,et=!1,KC=typeof WeakSet=="function"?WeakSet:Set,L=null;function Ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function fd(e,t,n){try{n()}catch(r){$e(e,t,r)}}var $y=!1;function GC(e,t){if(qf=yl,e=S1(),jp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(g=d.firstChild)!==null;)f=d,d=g;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(g=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qf={focusedElem:e,selectionRange:n},yl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,k=w.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Jt(t.type,S),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){$e(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return w=$y,$y=!1,w}function Xi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&fd(t,n,i)}o=o.next}while(o!==r)}}function yu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yw(e){var t=e.alternate;t!==null&&(e.alternate=null,yw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gn],delete t[ws],delete t[Jf],delete t[TC],delete t[RC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vw(e){return e.tag===5||e.tag===3||e.tag===4}function _y(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wl));else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}function hd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(hd(e,t,n),e=e.sibling;e!==null;)hd(e,t,n),e=e.sibling}var He=null,Zt=!1;function er(e,t,n){for(n=n.child;n!==null;)gw(e,t,n),n=n.sibling}function gw(e,t,n){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:et||Ro(n,t);case 6:var r=He,o=Zt;He=null,er(e,t,n),He=r,Zt=o,He!==null&&(Zt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Zt?(e=He,n=n.stateNode,e.nodeType===8?Ic(e.parentNode,n):e.nodeType===1&&Ic(e,n),hs(e)):Ic(He,n.stateNode));break;case 4:r=He,o=Zt,He=n.stateNode.containerInfo,Zt=!0,er(e,t,n),He=r,Zt=o;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&fd(n,t,s),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!et&&(Ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,er(e,t,n),et=r):er(e,t,n);break;default:er(e,t,n)}}function Ty(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new KC),t.forEach(function(r){var o=nO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*QC(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Al=0,ne&6)throw Error(R(331));var o=ne;for(ne|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l_e()-eh?Mr(e,0):Zp|=n),pt(e,t)}function Ow(e,t){t===0&&(e.mode&1?(t=oa,oa<<=1,!(oa&130023424)&&(oa=4194304)):t=1);var n=st();e=Vn(e,t),e!==null&&(Bs(e,t,n),pt(e,n))}function tO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ow(e,n)}function nO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Ow(e,n)}var $w;$w=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,WC(e,t,n);ct=!!(e.flags&131072)}else ct=!1,xe&&t.flags&1048576&&N1(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Da(e,t),e=t.pendingProps;var o=Ho(t,tt.current);Mo(t,n),o=Gp(null,t,r,e,o,n);var i=qp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(i=!0,xl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Up(t),o.updater=mu,t.stateNode=o,o._reactInternals=t,od(t,r,e,n),t=ad(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Lp(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=oO(r),e=Jt(r,e),o){case 0:t=sd(null,t,r,e,n);break e;case 1:t=by(null,t,r,e,n);break e;case 11:t=Ey(null,t,r,e,n);break e;case 14:t=ky(null,t,r,Jt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),sd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),by(e,t,r,o,n);case 3:e:{if(cw(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,M1(e,t),Ol(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qo(Error(R(423)),t),t=Cy(e,t,r,n,o);break e}else if(r!==o){o=qo(Error(R(424)),t),t=Cy(e,t,r,n,o);break e}else for(St=mr(t.stateNode.containerInfo.firstChild),xt=t,xe=!0,tn=null,n=L1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===o){t=Kn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return B1(t),e===null&&td(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yf(r,o)?s=null:i!==null&&Yf(r,i)&&(t.flags|=32),uw(e,t),ot(e,t,s,n),t.child;case 6:return e===null&&td(t),null;case 13:return fw(e,t,n);case 4:return Wp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Ey(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(ln(i.value,s)){if(i.children===o.children&&!ft.current){t=Kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Un(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),nd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mo(t,n),o=Dt(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=Jt(r,t.pendingProps),o=Jt(r.type,o),ky(e,t,r,o,n);case 15:return aw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Da(e,t),t.tag=1,dt(r)?(e=!0,xl(t)):e=!1,Mo(t,n),ow(t,r,o),od(t,r,o,n),ad(null,t,r,!0,e,n);case 19:return dw(e,t,n);case 22:return lw(e,t,n)}throw Error(R(156,t.tag))};function _w(e,t){return t1(e,t)}function rO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new rO(e,t,n,r)}function oh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oO(e){if(typeof e=="function")return oh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kp)return 11;if(e===bp)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ua(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")oh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xo:return Br(n.children,o,i,t);case Ep:s=8,o|=8;break;case _f:return e=It(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Tf:return e=It(13,n,t,o),e.elementType=Tf,e.lanes=i,e;case Rf:return e=It(19,n,t,o),e.elementType=Rf,e.lanes=i,e;case B0:return gu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case I0:s=10;break e;case M0:s=9;break e;case kp:s=11;break e;case bp:s=14;break e;case nr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=It(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function gu(e,t,n,r){return e=It(22,e,r,t),e.elementType=B0,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ih(e,t,n,r,o,i,s,a,l){return e=new iO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=It(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Up(i),e}function sO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Aw)}catch{}}Aw(),A0.exports=Ct;var Pw=A0.exports;const Ir=si(Pw),My={disabled:!1},jw=te.createContext(null);var fO=function(t){return t.scrollTop},Fi="unmounted",or="exited",Pt="entering",Mn="entered",Yo="exiting",Jn=function(e){Kk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=or,i.appearStatus=Pt):l=Mn:r.unmountOnExit||r.mountOnEnter?l=Fi:l=or,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Fi?{status:or}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Pt&&s!==Mn&&(i=Pt):(s===Pt||s===Mn)&&(i=Yo)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);s&&fO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Fi})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ir.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||My.disabled){this.safeSetState({status:Mn},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:Mn},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||My.disabled){this.safeSetState({status:or},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yo},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:or},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Fi)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=un(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return te.createElement(jw.Provider,{value:null},typeof s=="function"?s(o,a):te.cloneElement(te.Children.only(s),a))},t}(te.Component);Jn.contextType=jw;Jn.propTypes={};function io(){}Jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:io,onEntering:io,onEntered:io,onExit:io,onExiting:io,onExited:io};Jn.UNMOUNTED=Fi;Jn.EXITED=or;Jn.ENTERING=Pt;Jn.ENTERED=Mn;Jn.EXITING=Yo;const ku=!!(typeof window<"u"&&window.document&&window.document.createElement);var wd=!1,Sd=!1;try{var Kc={get passive(){return wd=!0},get once(){return Sd=wd=!0}};ku&&(window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,!0))}catch{}function dO(e,t,n,r){if(r&&typeof r!="boolean"&&!Sd){var o=r.once,i=r.capture,s=n;!Sd&&o&&(s=n.__once||function a(l){this.removeEventListener(t,a,i),n.call(this,l)},n.__once=s),e.addEventListener(t,s,wd?r:i)}e.addEventListener(t,n,r)}function pO(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Fn(e,t,n,r){return dO(e,t,n,r),function(){pO(e,t,n,r)}}function hO(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function mO(e){var t=zn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function yO(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||hO(e,"transitionend",!0)},t+n),i=Fn(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function vO(e,t,n,r){n==null&&(n=mO(e)||0);var o=yO(e,n,r),i=Fn(e,"transitionend",t);return function(){o(),i()}}function By(e,t){const n=zn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function uh(e,t){const n=By(e,"transitionDuration"),r=By(e,"transitionDelay"),o=vO(e,i=>{i.target===e&&(o(),t(i))},n+r)}function _i(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}function Lw(e){e.offsetHeight}const Dy=e=>!e||typeof e=="function"?e:t=>{e.current=t};function gO(e,t){const n=Dy(e),r=Dy(t);return o=>{n&&n(o),r&&r(o)}}function Yr(e,t){return h.useMemo(()=>gO(e,t),[e,t])}function Ll(e){return e&&"setState"in e?Ir.findDOMNode(e):e??null}const ch=te.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:s,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),f=Yr(d,l),g=x=>{f(Ll(x))},w=x=>b=>{x&&d.current&&x(d.current,b)},S=h.useCallback(w(e),[e]),k=h.useCallback(w(t),[t]),m=h.useCallback(w(n),[n]),p=h.useCallback(w(r),[r]),y=h.useCallback(w(o),[o]),E=h.useCallback(w(i),[i]),C=h.useCallback(w(s),[s]);return v.jsx(Jn,{ref:c,...u,onEnter:S,onEntered:m,onEntering:k,onExit:p,onExited:E,onExiting:y,addEndListener:C,nodeRef:d,children:typeof a=="function"?(x,b)=>a(x,{...b,ref:g}):te.cloneElement(a,{ref:g})})}),wO={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function SO(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=wO[e];return r+parseInt(zn(t,o[0]),10)+parseInt(zn(t,o[1]),10)}const xO={[or]:"collapse",[Yo]:"collapsing",[Pt]:"collapsing",[Mn]:"collapse show"},bu=te.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:i,children:s,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:g=SO,...w},S)=>{const k=typeof a=="function"?a():a,m=h.useMemo(()=>_i(x=>{x.style[k]="0"},e),[k,e]),p=h.useMemo(()=>_i(x=>{const b=`scroll${k[0].toUpperCase()}${k.slice(1)}`;x.style[k]=`${x[b]}px`},t),[k,t]),y=h.useMemo(()=>_i(x=>{x.style[k]=null},n),[k,n]),E=h.useMemo(()=>_i(x=>{x.style[k]=`${g(k,x)}px`,Lw(x)},r),[r,g,k]),C=h.useMemo(()=>_i(x=>{x.style[k]=null},o),[k,o]);return v.jsx(ch,{ref:S,addEndListener:uh,...w,"aria-expanded":w.role?l:null,onEnter:m,onEntering:p,onEntered:y,onExit:E,onExiting:C,childRef:s.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(x,b)=>te.cloneElement(s,{...b,className:M(i,s.props.className,xO[x],k==="width"&&"collapse-horizontal")})})});function EO(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function it(e){const t=EO(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fh=e=>h.forwardRef((t,n)=>v.jsx("div",{...t,ref:n,className:M(t.className,e)}));function Fy(){return h.useState(null)}function dh(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function kO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const bO=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",CO=typeof document<"u",Il=CO||bO?h.useLayoutEffect:h.useEffect,OO=["as","disabled"];function $O(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function _O(e){return!e||e.trim()==="#"}function Iw({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&_O(n))&&f.preventDefault(),t){f.stopPropagation();return}s==null||s(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:c,onKeyDown:d},u]}const TO=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=$O(e,OO);const[i,{tagName:s}]=Iw(Object.assign({tagName:n,disabled:r},o));return v.jsx(s,Object.assign({},o,i,{ref:t}))});TO.displayName="Button";const RO={[Pt]:"show",[Mn]:"show"},Os=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},a=h.useCallback((l,u)=>{Lw(l),r==null||r(l,u)},[r]);return v.jsx(ch,{ref:i,addEndListener:uh,...s,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:M("fade",e,t.props.className,RO[l],n[l])})})});Os.displayName="Fade";const NO={"aria-label":pe.string,onClick:pe.func,variant:pe.oneOf(["white"])},Cu=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>v.jsx("button",{ref:o,type:"button",className:M("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Cu.displayName="CloseButton";Cu.propTypes=NO;const Mw=h.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:o,as:i="span",...s},a)=>{const l=z(e,"badge");return v.jsx(i,{ref:a,...s,className:M(o,l,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});Mw.displayName="Badge";const ci=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=z(t,"btn"),[c,{tagName:d}]=Iw({tagName:e,disabled:i,...a}),f=d;return v.jsx(f,{...c,...a,ref:l,disabled:i,className:M(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})});ci.displayName="Button";const ph=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-body"),v.jsx(n,{ref:o,className:M(e,t),...r})));ph.displayName="CardBody";const Bw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-footer"),v.jsx(n,{ref:o,className:M(e,t),...r})));Bw.displayName="CardFooter";const Dw=h.createContext(null);Dw.displayName="CardHeaderContext";const Fw=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"card-header"),s=h.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return v.jsx(Dw.Provider,{value:s,children:v.jsx(n,{ref:o,...r,className:M(t,i)})})});Fw.displayName="CardHeader";const zw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=z(e,"card-img");return v.jsx(r,{ref:i,className:M(n?`${s}-${n}`:s,t),...o})});zw.displayName="CardImg";const Uw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-img-overlay"),v.jsx(n,{ref:o,className:M(e,t),...r})));Uw.displayName="CardImgOverlay";const Ww=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=z(t,"card-link"),v.jsx(n,{ref:o,className:M(e,t),...r})));Ww.displayName="CardLink";const AO=fh("h6"),Hw=h.forwardRef(({className:e,bsPrefix:t,as:n=AO,...r},o)=>(t=z(t,"card-subtitle"),v.jsx(n,{ref:o,className:M(e,t),...r})));Hw.displayName="CardSubtitle";const Vw=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=z(t,"card-text"),v.jsx(n,{ref:o,className:M(e,t),...r})));Vw.displayName="CardText";const PO=fh("h5"),Kw=h.forwardRef(({className:e,bsPrefix:t,as:n=PO,...r},o)=>(t=z(t,"card-title"),v.jsx(n,{ref:o,className:M(e,t),...r})));Kw.displayName="CardTitle";const Gw=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=z(e,"card");return v.jsx(a,{ref:u,...l,className:M(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?v.jsx(ph,{children:s}):s})});Gw.displayName="Card";const Do=Object.assign(Gw,{Img:zw,Title:Kw,Subtitle:Hw,Body:ph,Link:Ww,Text:Vw,Header:Fw,Footer:Bw,ImgOverlay:Uw});function jO(e){const t=h.useRef(e);return t.current=e,t}function qw(e){const t=jO(e);h.useEffect(()=>()=>t.current(),[])}const xd=2**31-1;function Qw(e,t,n){const r=n-Date.now();e.current=r<=xd?setTimeout(t,r):setTimeout(()=>Qw(e,t,n),xd)}function Yw(){const e=dh(),t=h.useRef();return qw(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,i=0){e()&&(n(),i<=xd?t.current=setTimeout(o,i):Qw(t,o,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function LO(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}function IO({as:e,bsPrefix:t,className:n,...r}){t=z(t,"col");const o=O0(),i=$0(),s=[],a=[];return o.forEach(l=>{const u=r[l];delete r[l];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const g=l!==i?`-${l}`:"";c&&s.push(c===!0?`${t}${g}`:`${t}${g}-${c}`),f!=null&&a.push(`order${g}-${f}`),d!=null&&a.push(`offset${g}-${d}`)}),[{...r,className:M(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}const hn=h.forwardRef((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=IO(e);return v.jsx(o,{...r,ref:t,className:M(n,!s.length&&i)})});hn.displayName="Col";const Xw=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=z(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return v.jsx(n,{ref:i,...o,className:M(r,t?`${s}${a}`:s)})});Xw.displayName="Container";var MO=Function.prototype.bind.call(Function.prototype.call,[].slice);function so(e,t){return MO(e.querySelectorAll(t))}var zy=Object.prototype.hasOwnProperty;function Uy(e,t,n){for(n of e.keys())if(es(n,t))return n}function es(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&es(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=Uy(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=Uy(t,o),!o)||!es(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(zy.call(e,n)&&++r&&!zy.call(t,n)||!(n in t)||!es(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function BO(e){const t=dh();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ht="top",zt="bottom",Ut="right",mt="left",hh="auto",Us=[ht,zt,Ut,mt],Xo="start",$s="end",DO="clippingParents",Jw="viewport",Ti="popper",FO="reference",Wy=Us.reduce(function(e,t){return e.concat([t+"-"+Xo,t+"-"+$s])},[]),Zw=[].concat(Us,[hh]).reduce(function(e,t){return e.concat([t,t+"-"+Xo,t+"-"+$s])},[]),zO="beforeRead",UO="read",WO="afterRead",HO="beforeMain",VO="main",KO="afterMain",GO="beforeWrite",qO="write",QO="afterWrite",YO=[zO,UO,WO,HO,VO,KO,GO,qO,QO];function xn(e){return e.split("-")[0]}function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mh(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Dr=Math.max,Ml=Math.min,Jo=Math.round;function Ed(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function eS(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Zo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&En(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var s=Gr(e)?bt(e):window,a=s.visualViewport,l=!eS()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function yh(e){var t=Zo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function tS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Gn(e){return bt(e).getComputedStyle(e)}function XO(e){return["table","td","th"].indexOf(kr(e))>=0}function $r(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return kr(e)==="html"?e:e.assignedSlot||e.parentNode||(mh(e)?e.host:null)||$r(e)}function Hy(e){return!En(e)||Gn(e).position==="fixed"?null:e.offsetParent}function JO(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&En(e)){var r=Gn(e);if(r.position==="fixed")return null}var o=Ou(e);for(mh(o)&&(o=o.host);En(o)&&["html","body"].indexOf(kr(o))<0;){var i=Gn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ws(e){for(var t=bt(e),n=Hy(e);n&&XO(n)&&Gn(n).position==="static";)n=Hy(n);return n&&(kr(n)==="html"||kr(n)==="body"&&Gn(n).position==="static")?t:n||JO(e)||t}function vh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ts(e,t,n){return Dr(e,Ml(t,n))}function ZO(e,t,n){var r=ts(e,t,n);return r>n?n:r}function nS(){return{top:0,right:0,bottom:0,left:0}}function rS(e){return Object.assign({},nS(),e)}function oS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var e2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,rS(typeof t!="number"?t:oS(t,Us))};function t2(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=xn(n.placement),l=vh(a),u=[mt,Ut].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=e2(o.padding,n),f=yh(i),g=l==="y"?ht:mt,w=l==="y"?zt:Ut,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],k=s[l]-n.rects.reference[l],m=Ws(i),p=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=S/2-k/2,E=d[g],C=p-f[c]-d[w],x=p/2-f[c]/2+y,b=ts(E,x,C),O=l;n.modifiersData[r]=(t={},t[O]=b,t.centerOffset=b-x,t)}}function n2(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||tS(t.elements.popper,o)&&(t.elements.arrow=o))}const r2={name:"arrow",enabled:!0,phase:"main",fn:t2,effect:n2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var o2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function Vy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,g=f===void 0?0:f,w=s.y,S=w===void 0?0:w,k=typeof c=="function"?c({x:g,y:S}):{x:g,y:S};g=k.x,S=k.y;var m=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),y=mt,E=ht,C=window;if(u){var x=Ws(n),b="clientHeight",O="clientWidth";if(x===bt(n)&&(x=$r(n),Gn(x).position!=="static"&&a==="absolute"&&(b="scrollHeight",O="scrollWidth")),x=x,o===ht||(o===mt||o===Ut)&&i===$s){E=zt;var T=d&&x===C&&C.visualViewport?C.visualViewport.height:x[b];S-=T-r.height,S*=l?1:-1}if(o===mt||(o===ht||o===zt)&&i===$s){y=Ut;var $=d&&x===C&&C.visualViewport?C.visualViewport.width:x[O];g-=$-r.width,g*=l?1:-1}}var A=Object.assign({position:a},u&&o2),U=c===!0?i2({x:g,y:S},bt(n)):{x:g,y:S};if(g=U.x,S=U.y,l){var B;return Object.assign({},A,(B={},B[E]=p?"0":"",B[y]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",B))}return Object.assign({},A,(t={},t[E]=p?S+"px":"",t[y]=m?g+"px":"",t.transform="",t))}function s2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:xn(t.placement),variation:ei(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Vy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const a2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s2,data:{}};var ya={passive:!0};function l2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ya)}),a&&l.addEventListener("resize",n.update,ya),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ya)}),a&&l.removeEventListener("resize",n.update,ya)}}const u2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:l2,data:{}};var c2={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return c2[t]})}var f2={start:"end",end:"start"};function Ky(e){return e.replace(/start|end/g,function(t){return f2[t]})}function gh(e){var t=bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wh(e){return Zo($r(e)).left+gh(e).scrollLeft}function d2(e,t){var n=bt(e),r=$r(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=eS();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+wh(e),y:l}}function p2(e){var t,n=$r(e),r=gh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wh(e),l=-r.scrollTop;return Gn(o||n).direction==="rtl"&&(a+=Dr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Sh(e){var t=Gn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function iS(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:En(e)&&Sh(e)?e:iS(Ou(e))}function ns(e,t){var n;t===void 0&&(t=[]);var r=iS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=bt(r),s=o?[i].concat(i.visualViewport||[],Sh(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(ns(Ou(s)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function h2(e,t){var n=Zo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Gy(e,t,n){return t===Jw?kd(d2(e,n)):Gr(t)?h2(t,n):kd(p2($r(e)))}function m2(e){var t=ns(Ou(e)),n=["absolute","fixed"].indexOf(Gn(e).position)>=0,r=n&&En(e)?Ws(e):e;return Gr(r)?t.filter(function(o){return Gr(o)&&tS(o,r)&&kr(o)!=="body"}):[]}function y2(e,t,n,r){var o=t==="clippingParents"?m2(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Gy(e,u,r);return l.top=Dr(c.top,l.top),l.right=Ml(c.right,l.right),l.bottom=Ml(c.bottom,l.bottom),l.left=Dr(c.left,l.left),l},Gy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function sS(e){var t=e.reference,n=e.element,r=e.placement,o=r?xn(r):null,i=r?ei(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case ht:l={x:s,y:t.y-n.height};break;case zt:l={x:s,y:t.y+t.height};break;case Ut:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?vh(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Xo:l[u]=l[u]-(t[c]/2-n[c]/2);break;case $s:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function _s(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?DO:a,u=n.rootBoundary,c=u===void 0?Jw:u,d=n.elementContext,f=d===void 0?Ti:d,g=n.altBoundary,w=g===void 0?!1:g,S=n.padding,k=S===void 0?0:S,m=rS(typeof k!="number"?k:oS(k,Us)),p=f===Ti?FO:Ti,y=e.rects.popper,E=e.elements[w?p:f],C=y2(Gr(E)?E:E.contextElement||$r(e.elements.popper),l,c,s),x=Zo(e.elements.reference),b=sS({reference:x,element:y,strategy:"absolute",placement:o}),O=kd(Object.assign({},y,b)),T=f===Ti?O:x,$={top:C.top-T.top+m.top,bottom:T.bottom-C.bottom+m.bottom,left:C.left-T.left+m.left,right:T.right-C.right+m.right},A=e.modifiersData.offset;if(f===Ti&&A){var U=A[o];Object.keys($).forEach(function(B){var K=[Ut,zt].indexOf(B)>=0?1:-1,W=[ht,zt].indexOf(B)>=0?"y":"x";$[B]+=U[W]*K})}return $}function v2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Zw:l,c=ei(r),d=c?a?Wy:Wy.filter(function(w){return ei(w)===c}):Us,f=d.filter(function(w){return u.indexOf(w)>=0});f.length===0&&(f=d);var g=f.reduce(function(w,S){return w[S]=_s(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[xn(S)],w},{});return Object.keys(g).sort(function(w,S){return g[w]-g[S]})}function g2(e){if(xn(e)===hh)return[];var t=Wa(e);return[Ky(e),t,Ky(t)]}function w2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,w=g===void 0?!0:g,S=n.allowedAutoPlacements,k=t.options.placement,m=xn(k),p=m===k,y=l||(p||!w?[Wa(k)]:g2(k)),E=[k].concat(y).reduce(function(X,re){return X.concat(xn(re)===hh?v2(t,{placement:re,boundary:c,rootBoundary:d,padding:u,flipVariations:w,allowedAutoPlacements:S}):re)},[]),C=t.rects.reference,x=t.rects.popper,b=new Map,O=!0,T=E[0],$=0;$=0,W=K?"width":"height",G=_s(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),V=K?B?Ut:mt:B?zt:ht;C[W]>x[W]&&(V=Wa(V));var _=Wa(V),I=[];if(i&&I.push(G[U]<=0),a&&I.push(G[V]<=0,G[_]<=0),I.every(function(X){return X})){T=A,O=!1;break}b.set(A,I)}if(O)for(var F=w?3:1,Y=function(re){var ge=E.find(function(Me){var qe=b.get(Me);if(qe)return qe.slice(0,re).every(function(_t){return _t})});if(ge)return T=ge,"break"},Z=F;Z>0;Z--){var ve=Y(Z);if(ve==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const S2={name:"flip",enabled:!0,phase:"main",fn:w2,requiresIfExists:["offset"],data:{_skip:!1}};function qy(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qy(e){return[ht,Ut,zt,mt].some(function(t){return e[t]>=0})}function x2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=_s(t,{elementContext:"reference"}),a=_s(t,{altBoundary:!0}),l=qy(s,r),u=qy(a,o,i),c=Qy(l),d=Qy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const E2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x2};function k2(e,t,n){var r=xn(e),o=[mt,ht].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mt,Ut].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function b2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Zw.reduce(function(c,d){return c[d]=k2(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const C2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:b2};function O2(e){var t=e.state,n=e.name;t.modifiersData[n]=sS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $2={name:"popperOffsets",enabled:!0,phase:"read",fn:O2,data:{}};function _2(e){return e==="x"?"y":"x"}function T2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,g=f===void 0?!0:f,w=n.tetherOffset,S=w===void 0?0:w,k=_s(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=xn(t.placement),p=ei(t.placement),y=!p,E=vh(m),C=_2(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,O=t.rects.popper,T=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,$=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(x){if(i){var B,K=E==="y"?ht:mt,W=E==="y"?zt:Ut,G=E==="y"?"height":"width",V=x[E],_=V+k[K],I=V-k[W],F=g?-O[G]/2:0,Y=p===Xo?b[G]:O[G],Z=p===Xo?-O[G]:-b[G],ve=t.elements.arrow,X=g&&ve?yh(ve):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nS(),ge=re[K],Me=re[W],qe=ts(0,b[G],X[G]),_t=y?b[G]/2-F-qe-ge-$.mainAxis:Y-qe-ge-$.mainAxis,Tn=y?-b[G]/2+F+qe+Me+$.mainAxis:Z+qe+Me+$.mainAxis,Rn=t.elements.arrow&&Ws(t.elements.arrow),Nn=Rn?E==="y"?Rn.clientTop||0:Rn.clientLeft||0:0,Qe=(B=A==null?void 0:A[E])!=null?B:0,de=V+_t-Qe-Nn,H=V+Tn-Qe,Ue=ts(g?Ml(_,de):_,V,g?Dr(I,H):I);x[E]=Ue,U[E]=Ue-V}if(a){var rt,vt=E==="x"?ht:mt,gi=E==="x"?zt:Ut,we=x[C],qt=C==="y"?"height":"width",eo=we+k[vt],to=we-k[gi],Rr=[ht,mt].indexOf(m)!==-1,wi=(rt=A==null?void 0:A[C])!=null?rt:0,no=Rr?eo:we-b[qt]-O[qt]-wi+$.altAxis,Zn=Rr?we+b[qt]+O[qt]-wi-$.altAxis:to,N=g&&Rr?ZO(no,we,Zn):ts(g?no:eo,we,g?Zn:to);x[C]=N,U[C]=N-we}t.modifiersData[r]=U}}const R2={name:"preventOverflow",enabled:!0,phase:"main",fn:T2,requiresIfExists:["offset"]};function N2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function A2(e){return e===bt(e)||!En(e)?gh(e):N2(e)}function P2(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function j2(e,t,n){n===void 0&&(n=!1);var r=En(t),o=En(t)&&P2(t),i=$r(t),s=Zo(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kr(t)!=="body"||Sh(i))&&(a=A2(t)),En(t)?(l=Zo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=wh(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function L2(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function I2(e){var t=L2(e);return YO.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function M2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function B2(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Yy={placement:"bottom",modifiers:[],strategy:"absolute"};function Xy(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}const W2={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},H2={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},V2=[];function K2(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:i="absolute",modifiers:s=V2}=n,a=U2(n,z2);const l=h.useRef(s),u=h.useRef(),c=h.useCallback(()=>{var k;(k=u.current)==null||k.update()},[]),d=h.useCallback(()=>{var k;(k=u.current)==null||k.forceUpdate()},[]),[f,g]=BO(h.useState({placement:o,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),w=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:k})=>{const m={},p={};Object.keys(k.elements).forEach(y=>{m[y]=k.styles[y],p[y]=k.attributes[y]}),g({state:k,styles:m,attributes:p,update:c,forceUpdate:d,placement:k.placement})}}),[c,d,g]),S=h.useMemo(()=>(es(l.current,s)||(l.current=s),l.current),[s]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:i,modifiers:[...S,w,W2]})},[i,o,w,r,S]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=F2(e,t,Object.assign({},a,{placement:o,strategy:i,modifiers:[...S,H2,w]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,g(k=>Object.assign({},k,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function Ts(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var G2=function(){},q2=G2;const Q2=si(q2),Jy=()=>{};function Y2(e){return e.button===0}function X2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ha=e=>e&&("current"in e?e.current:e),Zy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function J2(e,t=Jy,{disabled:n,clickTrigger:r="click"}={}){const o=h.useRef(!1),i=h.useRef(!1),s=h.useCallback(u=>{const c=Ha(e);Q2(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!c||X2(u)||!Y2(u)||!!Ts(c,u.target)||i.current,i.current=!1},[e]),a=it(u=>{const c=Ha(e);c&&Ts(c,u.target)&&(i.current=!0)}),l=it(u=>{o.current||t(u)});h.useEffect(()=>{var u,c;if(n||e==null)return;const d=Ms(Ha(e)),f=d.defaultView||window;let g=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,w=null;Zy[r]&&(w=Fn(d,Zy[r],a,!0));const S=Fn(d,r,s,!0),k=Fn(d,r,p=>{if(p===g){g=void 0;return}l(p)});let m=[];return"ontouchstart"in d.documentElement&&(m=[].slice.call(d.body.children).map(p=>Fn(p,"mousemove",Jy))),()=>{w==null||w(),S(),k(),m.forEach(p=>p())}},[e,n,r,s,a,l])}function Z2(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function e$(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function t$({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,d,f,g;const w=Z2(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:e$(Object.assign({},w,{eventListeners:{enabled:t,options:(u=w.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},w.preventOverflow,{options:s?Object.assign({padding:s},(c=w.preventOverflow)==null?void 0:c.options):(d=w.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(f=w.offset)==null?void 0:f.options)},arrow:Object.assign({},w.arrow,{enabled:!!a,options:Object.assign({},(g=w.arrow)==null?void 0:g.options,{element:a})}),flip:Object.assign({enabled:!!r},w.flip)}))})}const n$=h.createContext(null),r$="data-rr-ui-";function o$(e){return`${r$}${e}`}const aS=h.createContext(ku?window:void 0);aS.Provider;function xh(){return h.useContext(aS)}const lS=h.createContext(null);lS.displayName="InputGroupContext";const fi=h.createContext(null);fi.displayName="NavbarContext";pe.string,pe.bool,pe.bool,pe.bool,pe.bool;const uS=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:i=!1,...s},a)=>(e=z(e,"img"),v.jsx("img",{ref:a,...s,className:M(t,n&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",i&&`${e}-thumbnail`)})));uS.displayName="Image";const i$={type:pe.string,tooltip:pe.bool,as:pe.elementType},$u=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>v.jsx(e,{...o,ref:i,className:M(t,`${n}-${r?"tooltip":"feedback"}`)}));$u.displayName="Feedback";$u.propTypes=i$;const qn=h.createContext({}),Hs=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:i=!1,as:s="input",...a},l)=>{const{controlId:u}=h.useContext(qn);return t=z(t,"form-check-input"),v.jsx(s,{...a,ref:l,type:r,id:e||u,className:M(n,t,o&&"is-valid",i&&"is-invalid")})});Hs.displayName="FormCheckInput";const Bl=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-check-label"),v.jsx("label",{...r,ref:o,htmlFor:n||i,className:M(t,e)})});Bl.displayName="FormCheckLabel";const cS=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:o=!1,disabled:i=!1,isValid:s=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:f,title:g="",type:w="checkbox",label:S,children:k,as:m="input",...p},y)=>{t=z(t,"form-check"),n=z(n,"form-switch");const{controlId:E}=h.useContext(qn),C=h.useMemo(()=>({controlId:e||E}),[E,e]),x=!k&&S!=null&&S!==!1||LO(k,Bl),b=v.jsx(Hs,{...p,type:w==="switch"?"checkbox":w,ref:y,isValid:s,isInvalid:a,disabled:i,as:m});return v.jsx(qn.Provider,{value:C,children:v.jsx("div",{style:f,className:M(d,x&&t,r&&`${t}-inline`,o&&`${t}-reverse`,w==="switch"&&n),children:k||v.jsxs(v.Fragment,{children:[b,x&&v.jsx(Bl,{title:g,children:S}),u&&v.jsx($u,{type:c,tooltip:l,children:u})]})})})});cS.displayName="FormCheck";const Dl=Object.assign(cS,{Input:Hs,Label:Bl}),fS=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:i,isValid:s=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},f)=>{const{controlId:g}=h.useContext(qn);return e=z(e,"form-control"),v.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:o||g,className:M(i,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",a&&"is-invalid")})});fS.displayName="FormControl";const s$=Object.assign(fS,{Feedback:$u}),dS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"form-floating"),v.jsx(n,{ref:o,className:M(e,t),...r})));dS.displayName="FormFloating";const Eh=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const o=h.useMemo(()=>({controlId:e}),[e]);return v.jsx(qn.Provider,{value:o,children:v.jsx(t,{...n,ref:r})})});Eh.displayName="FormGroup";const pS=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:i,...s},a)=>{const{controlId:l}=h.useContext(qn);t=z(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=M(o,t,r&&"visually-hidden",n&&u);return i=i||l,n?v.jsx(hn,{ref:a,as:"label",className:c,htmlFor:i,...s}):v.jsx(e,{ref:a,className:c,htmlFor:i,...s})});pS.displayName="FormLabel";const hS=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-range"),v.jsx("input",{...r,type:"range",ref:o,className:M(t,e),id:n||i})});hS.displayName="FormRange";const mS=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:i=!1,id:s,...a},l)=>{const{controlId:u}=h.useContext(qn);return e=z(e,"form-select"),v.jsx("select",{...a,size:n,ref:l,className:M(r,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:s||u})});mS.displayName="FormSelect";const yS=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=z(e,"form-text"),v.jsx(n,{...o,ref:i,className:M(t,e,r&&"text-muted")})));yS.displayName="FormText";const vS=h.forwardRef((e,t)=>v.jsx(Dl,{...e,ref:t,type:"switch"}));vS.displayName="Switch";const a$=Object.assign(vS,{Input:Dl.Input,Label:Dl.Label}),gS=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=z(e,"form-floating"),v.jsxs(Eh,{ref:s,className:M(t,e),controlId:r,...i,children:[n,v.jsx("label",{htmlFor:r,children:o})]})));gS.displayName="FloatingLabel";const l$={_ref:pe.any,validated:pe.bool,as:pe.elementType},kh=h.forwardRef(({className:e,validated:t,as:n="form",...r},o)=>v.jsx(n,{...r,ref:o,className:M(e,t&&"was-validated")}));kh.displayName="Form";kh.propTypes=l$;const Ze=Object.assign(kh,{Group:Eh,Control:s$,Floating:dS,Check:Dl,Switch:a$,Label:pS,Text:yS,Range:hS,Select:mS,FloatingLabel:gS}),_u=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"input-group-text"),v.jsx(n,{ref:o,className:M(e,t),...r})));_u.displayName="InputGroupText";const u$=e=>v.jsx(_u,{children:v.jsx(Hs,{type:"checkbox",...e})}),c$=e=>v.jsx(_u,{children:v.jsx(Hs,{type:"radio",...e})}),wS=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},s)=>{e=z(e,"input-group");const a=h.useMemo(()=>({}),[]);return v.jsx(lS.Provider,{value:a,children:v.jsx(o,{ref:s,...i,className:M(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});wS.displayName="InputGroup";const sn=Object.assign(wS,{Text:_u,Radio:c$,Checkbox:u$});function Gc(e){e===void 0&&(e=Ms());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function f$(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const ev=o$("modal-open");class bh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return f$(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(zn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(ev,""),zn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(ev),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qc=(e,t)=>ku?e==null?(t||Ms()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bd(e,t){const n=xh(),[r,o]=h.useState(()=>qc(e,n==null?void 0:n.document));if(!r){const i=qc(e);i&&o(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=qc(e);i!==r&&o(i)},[e,r]),r}function d$({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const i=h.useRef(null),s=h.useRef(t),a=it(n);h.useEffect(()=>{t?s.current=!0:a(i.current)},[t,a]);const l=Yr(i,e.ref),u=h.cloneElement(e,{ref:l});return t?u:o||!s.current&&r?null:u}function SS(e){return e.code==="Escape"||e.keyCode===27}function p$(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const h$=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function m$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function y$(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l}=e,u=m$(e,h$);const{major:c}=p$(),d=c>=19?l.props.ref:l.ref,f=h.useRef(null),g=Yr(f,typeof l=="function"?null:d),w=x=>b=>{x&&f.current&&x(f.current,b)},S=h.useCallback(w(t),[t]),k=h.useCallback(w(n),[n]),m=h.useCallback(w(r),[r]),p=h.useCallback(w(o),[o]),y=h.useCallback(w(i),[i]),E=h.useCallback(w(s),[s]),C=h.useCallback(w(a),[a]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:S},n&&{onEntering:k},r&&{onEntered:m},o&&{onExit:p},i&&{onExiting:y},s&&{onExited:E},a&&{addEndListener:C},{children:typeof l=="function"?(x,b)=>l(x,Object.assign({},b,{ref:g})):h.cloneElement(l,{ref:g})})}const v$=["component"];function g$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}const w$=h.forwardRef((e,t)=>{let{component:n}=e,r=g$(e,v$);const o=y$(r);return v.jsx(n,Object.assign({ref:t},o))});function S$({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),o=it(t);return Il(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Il(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function x$({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[i,s]=h.useState(!t);t&&i&&s(!1);const a=S$({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(c,d=>{throw u.in||s(!0),d})}}),l=Yr(a,e.ref);return i&&!t?null:h.cloneElement(e,{ref:l})}function Cd(e,t,n){return e?v.jsx(w$,Object.assign({},n,{component:e})):t?v.jsx(x$,Object.assign({},n,{transition:t})):v.jsx(d$,Object.assign({},n))}const E$=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function k$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}let Qc;function b$(e){return Qc||(Qc=new bh({ownerDocument:e==null?void 0:e.document})),Qc}function C$(e){const t=xh(),n=e||b$(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:h.useCallback(o=>{r.current.backdrop=o},[])})}const xS=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:g,runBackdropTransition:w,autoFocus:S=!0,enforceFocus:k=!0,restoreFocus:m=!0,restoreFocusOptions:p,renderDialog:y,renderBackdrop:E=H=>v.jsx("div",Object.assign({},H)),manager:C,container:x,onShow:b,onHide:O=()=>{},onExit:T,onExited:$,onExiting:A,onEnter:U,onEntering:B,onEntered:K}=e,W=k$(e,E$);const G=xh(),V=bd(x),_=C$(C),I=dh(),F=kO(n),[Y,Z]=h.useState(!n),ve=h.useRef(null);h.useImperativeHandle(t,()=>_,[_]),ku&&!F&&n&&(ve.current=Gc(G==null?void 0:G.document)),n&&Y&&Z(!1);const X=it(()=>{if(_.add(),Tn.current=Fn(document,"keydown",qe),_t.current=Fn(document,"focus",()=>setTimeout(ge),!0),b&&b(),S){var H,Ue;const rt=Gc((H=(Ue=_.dialog)==null?void 0:Ue.ownerDocument)!=null?H:G==null?void 0:G.document);_.dialog&&rt&&!Ts(_.dialog,rt)&&(ve.current=rt,_.dialog.focus())}}),re=it(()=>{if(_.remove(),Tn.current==null||Tn.current(),_t.current==null||_t.current(),m){var H;(H=ve.current)==null||H.focus==null||H.focus(p),ve.current=null}});h.useEffect(()=>{!n||!V||X()},[n,V,X]),h.useEffect(()=>{Y&&re()},[Y,re]),qw(()=>{re()});const ge=it(()=>{if(!k||!I()||!_.isTopModal())return;const H=Gc(G==null?void 0:G.document);_.dialog&&H&&!Ts(_.dialog,H)&&_.dialog.focus()}),Me=it(H=>{H.target===H.currentTarget&&(u==null||u(H),a===!0&&O())}),qe=it(H=>{l&&SS(H)&&_.isTopModal()&&(c==null||c(H),H.defaultPrevented||O())}),_t=h.useRef(),Tn=h.useRef(),Rn=(...H)=>{Z(!0),$==null||$(...H)};if(!V)return null;const Nn=Object.assign({role:r,ref:_.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},W,{style:i,className:o,tabIndex:-1});let Qe=y?y(Nn):v.jsx("div",Object.assign({},Nn,{children:h.cloneElement(s,{role:"document"})}));Qe=Cd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:A,onExited:Rn,onEnter:U,onEntering:B,onEntered:K,children:Qe});let de=null;return a&&(de=E({ref:_.setBackdropRef,onClick:Me}),de=Cd(g,w,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),v.jsx(v.Fragment,{children:Ir.createPortal(v.jsxs(v.Fragment,{children:[de,Qe]}),V)})});xS.displayName="Modal";const O$=Object.assign(xS,{Manager:bh});function Od(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function $$(e,t){e.classList?e.classList.add(t):Od(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function tv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function _$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=tv(e.className,t):e.setAttribute("class",tv(e.className&&e.className.baseVal||"",t))}const ao={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class ES extends bh{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,zn(n,{[t]:`${parseFloat(zn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],zn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if($$(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),so(n,ao.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();_$(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.restore(r,i)),so(n,ao.STICKY_CONTENT).forEach(i=>this.restore(o,i)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let Yc;function T$(e){return Yc||(Yc=new ES(e)),Yc}const kS=h.createContext({onHide(){}}),R$=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...i},s)=>{const a=h.useContext(kS),l=it(()=>{a==null||a.onHide(),r==null||r()});return v.jsxs("div",{ref:s,...i,children:[o,n&&v.jsx(Cu,{"aria-label":e,variant:t,onClick:l})]})}),bS=h.forwardRef(({bsPrefix:e,className:t,as:n,...r},o)=>{e=z(e,"navbar-brand");const i=n||(r.href?"a":"span");return v.jsx(i,{...r,ref:o,className:M(t,e)})});bS.displayName="NavbarBrand";const CS=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=z(t,"navbar-collapse");const o=h.useContext(fi);return v.jsx(bu,{in:!!(o&&o.expanded),...n,children:v.jsx("div",{ref:r,className:t,children:e})})});CS.displayName="NavbarCollapse";const OS=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:i,...s},a)=>{e=z(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(fi)||{},c=it(d=>{i&&i(d),l&&l()});return o==="button"&&(s.type="button"),v.jsx(o,{...s,ref:a,onClick:c,"aria-label":r,className:M(t,e,!u&&"collapsed"),children:n||v.jsx("span",{className:`${e}-icon`})})});OS.displayName="NavbarToggle";const $d=new WeakMap,nv=(e,t)=>{if(!e||!t)return;const n=$d.get(t)||new Map;$d.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function N$(e,t=typeof window>"u"?void 0:window){const n=nv(e,t),[r,o]=h.useState(()=>n?n.matches:!1);return Il(()=>{let i=nv(e,t);if(!i)return o(!1);let s=$d.get(t);const a=()=>{o(i.matches)};return i.refCount++,i.addListener(a),a(),()=>{i.removeListener(a),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),r}function A$(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function o(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function s(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((f,[g,w])=>((w==="up"||w===!0)&&(f=n(f,i(g))),(w==="down"||w===!0)&&(f=n(f,o(g))),f),""),[JSON.stringify(c)]);return N$(d,u)}return s}const P$=A$({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),$S=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"offcanvas-body"),v.jsx(n,{ref:o,className:M(e,t),...r})));$S.displayName="OffcanvasBody";const j$={[Pt]:"show",[Mn]:"show"},_S=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:o=!1,unmountOnExit:i=!1,appear:s=!1,...a},l)=>(e=z(e,"offcanvas"),v.jsx(ch,{ref:l,addEndListener:uh,in:r,mountOnEnter:o,unmountOnExit:i,appear:s,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:M(t,n.props.className,(u===Pt||u===Yo)&&`${e}-toggling`,j$[u])})})));_S.displayName="OffcanvasToggling";const TS=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=z(e,"offcanvas-header"),v.jsx(R$,{ref:i,...o,className:M(t,e),closeLabel:n,closeButton:r})));TS.displayName="OffcanvasHeader";const L$=fh("h5"),RS=h.forwardRef(({className:e,bsPrefix:t,as:n=L$,...r},o)=>(t=z(t,"offcanvas-title"),v.jsx(n,{ref:o,className:M(e,t),...r})));RS.displayName="OffcanvasTitle";function I$(e){return v.jsx(_S,{...e})}function M$(e){return v.jsx(Os,{...e})}const NS=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:o="start",responsive:i,show:s=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:g,autoFocus:w=!0,enforceFocus:S=!0,restoreFocus:k=!0,restoreFocusOptions:m,onEntered:p,onExit:y,onExiting:E,onEnter:C,onEntering:x,onExited:b,backdropClassName:O,manager:T,renderStaticNode:$=!1,...A},U)=>{const B=h.useRef();e=z(e,"offcanvas");const{onToggle:K}=h.useContext(fi)||{},[W,G]=h.useState(!1),V=P$(i||"xs","up");h.useEffect(()=>{G(i?s&&!V:s)},[s,i,V]);const _=it(()=>{K==null||K(),f==null||f()}),I=h.useMemo(()=>({onHide:_}),[_]);function F(){return T||(u?(B.current||(B.current=new ES({handleContainerOverflow:!1})),B.current):T$())}const Y=(re,...ge)=>{re&&(re.style.visibility="visible"),C==null||C(re,...ge)},Z=(re,...ge)=>{re&&(re.style.visibility=""),b==null||b(...ge)},ve=h.useCallback(re=>v.jsx("div",{...re,className:M(`${e}-backdrop`,O)}),[O,e]),X=re=>v.jsx("div",{...re,...A,className:M(t,i?`${e}-${i}`:e,`${e}-${o}`),"aria-labelledby":r,children:n});return v.jsxs(v.Fragment,{children:[!W&&(i||$)&&X({}),v.jsx(kS.Provider,{value:I,children:v.jsx(O$,{show:W,ref:U,backdrop:a,container:g,keyboard:l,autoFocus:w,enforceFocus:S&&!u,restoreFocus:k,restoreFocusOptions:m,onEscapeKeyDown:c,onShow:d,onHide:_,onEnter:Y,onEntering:x,onEntered:p,onExit:y,onExiting:E,onExited:Z,manager:F(),transition:I$,backdropTransition:M$,renderBackdrop:ve,renderDialog:X})})]})});NS.displayName="Offcanvas";const zi=Object.assign(NS,{Body:$S,Header:TS,Title:RS}),AS=h.forwardRef((e,t)=>{const n=h.useContext(fi);return v.jsx(zi,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});AS.displayName="NavbarOffcanvas";const PS=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"navbar-text"),v.jsx(n,{ref:o,className:M(e,t),...r})));PS.displayName="NavbarText";const jS=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:s,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:g=!1,...w}=Vk(e,{expanded:"onToggle"}),S=z(n,"navbar"),k=h.useCallback((...y)=>{f==null||f(...y),g&&c&&(d==null||d(!1))},[f,g,c,d]);w.role===void 0&&u!=="nav"&&(w.role="navigation");let m=`${S}-expand`;typeof r=="string"&&(m=`${m}-${r}`);const p=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return v.jsx(fi.Provider,{value:p,children:v.jsx(n$.Provider,{value:k,children:v.jsx(u,{ref:t,...w,className:M(l,S,r&&m,o&&`${S}-${o}`,i&&`bg-${i}`,a&&`sticky-${a}`,s&&`fixed-${s}`)})})})});jS.displayName="Navbar";const Xc=Object.assign(jS,{Brand:bS,Collapse:CS,Offcanvas:AS,Text:PS,Toggle:OS}),B$=()=>{};function D$(e,t,{disabled:n,clickTrigger:r}={}){const o=t||B$;J2(e,o,{disabled:n,clickTrigger:r});const i=it(s=>{SS(s)&&o(s)});h.useEffect(()=>{if(n||e==null)return;const s=Ms(Ha(e));let a=(s.defaultView||window).event;const l=Fn(s,"keyup",u=>{if(u===a){a=void 0;return}i(u)});return()=>{l()}},[e,n,i])}const LS=h.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:i,popperConfig:s={},transition:a,runTransition:l}=e,[u,c]=Fy(),[d,f]=Fy(),g=Yr(c,t),w=bd(e.container),S=bd(e.target),[k,m]=h.useState(!e.show),p=K2(S,u,t$({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:s}));e.show&&k&&m(!1);const y=(...A)=>{m(!0),e.onExited&&e.onExited(...A)},E=e.show||!k;if(D$(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:C,onExiting:x,onEnter:b,onEntering:O,onEntered:T}=e;let $=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:g}),{popper:p,placement:o,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return $=Cd(a,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:$,onExit:C,onExiting:x,onExited:y,onEnter:b,onEntering:O,onEntered:T}),w?Ir.createPortal($,w):null});LS.displayName="Overlay";const IS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-header"),v.jsx(n,{ref:o,className:M(e,t),...r})));IS.displayName="PopoverHeader";const Ch=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-body"),v.jsx(n,{ref:o,className:M(e,t),...r})));Ch.displayName="PopoverBody";function MS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function BS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const F$=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:s,hasDoneInitialMeasure:a,popper:l,show:u,...c},d)=>{const f=z(e,"popover"),g=_0(),[w]=(t==null?void 0:t.split("-"))||[],S=MS(w,g);let k=r;return u&&!a&&(k={...r,...BS(l==null?void 0:l.strategy)}),v.jsxs("div",{ref:d,role:"tooltip",style:k,"x-placement":w,className:M(n,f,w&&`bs-popover-${S}`),...c,children:[v.jsx("div",{className:"popover-arrow",...s}),i?v.jsx(Ch,{children:o}):o]})}),z$=Object.assign(F$,{Header:IS,Body:Ch,POPPER_OFFSET:[0,8]}),DS=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:s,popper:a,show:l,...u},c)=>{e=z(e,"tooltip");const d=_0(),[f]=(t==null?void 0:t.split("-"))||[],g=MS(f,d);let w=r;return l&&!s&&(w={...r,...BS(a==null?void 0:a.strategy)}),v.jsxs("div",{ref:c,style:w,role:"tooltip","x-placement":f,className:M(n,e,`bs-tooltip-${g}`),...u,children:[v.jsx("div",{className:"tooltip-arrow",...i}),v.jsx("div",{className:`${e}-inner`,children:o})]})});DS.displayName="Tooltip";const FS=Object.assign(DS,{TOOLTIP_OFFSET:[0,6]});function U$(e){const t=h.useRef(null),n=z(void 0,"popover"),r=z(void 0,"tooltip"),o=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Od(t.current,n))return z$.POPPER_OFFSET;if(Od(t.current,r))return FS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function W$(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Ll(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Ll(o)))}const zS=h.forwardRef(({children:e,transition:t=Os,popperConfig:n={},rootClose:r=!1,placement:o="top",show:i=!1,...s},a)=>{const l=h.useRef({}),[u,c]=h.useState(null),[d,f]=U$(s.offset),g=Yr(a,d),w=t===!0?Os:t||void 0,S=it(k=>{c(k),n==null||n.onFirstUpdate==null||n.onFirstUpdate(k)});return Il(()=>{u&&s.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,s.target]),h.useEffect(()=>{i||c(null)},[i]),v.jsx(LS,{...s,ref:g,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:w,rootClose:r,placement:o,show:i,children:(k,{arrowProps:m,popper:p,show:y})=>{var E;W$(k,m);const C=p==null?void 0:p.placement,x=Object.assign(l.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:C,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),b=!!u;return typeof e=="function"?e({...k,placement:C,show:y,...!t&&y&&{className:"show"},popper:x,arrowProps:m,hasDoneInitialMeasure:b}):h.cloneElement(e,{...k,placement:C,arrowProps:m,popper:x,hasDoneInitialMeasure:b,className:M(e.props.className,!t&&y&&"show"),style:{...e.props.style,...k.style}})}})});zS.displayName="Overlay";function H$(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function rv(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==o)&&!Ts(o,i)&&e(...t)}pe.oneOf(["click","hover","focus"]);const V$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:i=!1,onToggle:s,delay:a,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const d=h.useRef(null),f=Yr(d,n.ref),g=Yw(),w=h.useRef(""),[S,k]=C0(o,i,s),m=H$(a),{onFocus:p,onBlur:y,onClick:E}=typeof n!="function"?h.Children.only(n).props:{},C=W=>{f(Ll(W))},x=h.useCallback(()=>{if(g.clear(),w.current="show",!m.show){k(!0);return}g.set(()=>{w.current==="show"&&k(!0)},m.show)},[m.show,k,g]),b=h.useCallback(()=>{if(g.clear(),w.current="hide",!m.hide){k(!1);return}g.set(()=>{w.current==="hide"&&k(!1)},m.hide)},[m.hide,k,g]),O=h.useCallback((...W)=>{x(),p==null||p(...W)},[x,p]),T=h.useCallback((...W)=>{b(),y==null||y(...W)},[b,y]),$=h.useCallback((...W)=>{k(!S),E==null||E(...W)},[E,k,S]),A=h.useCallback((...W)=>{rv(x,W,"fromElement")},[x]),U=h.useCallback((...W)=>{rv(b,W,"toElement")},[b]),B=e==null?[]:[].concat(e),K={ref:C};return B.indexOf("click")!==-1&&(K.onClick=$),B.indexOf("focus")!==-1&&(K.onFocus=O,K.onBlur=T),B.indexOf("hover")!==-1&&(K.onMouseOver=A,K.onMouseOut=U),v.jsxs(v.Fragment,{children:[typeof n=="function"?n(K):h.cloneElement(n,K),v.jsx(zS,{...c,show:S,onHide:b,flip:u,placement:l,popperConfig:r,target:d.current,children:t})]})},Fl=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"row"),s=O0(),a=$0(),l=`${i}-cols`,u=[];return s.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const g=c!==a?`-${c}`:"";f!=null&&u.push(`${l}${g}-${f}`)}),v.jsx(n,{ref:o,...r,className:M(t,i,...u)})});Fl.displayName="Row";const Oh=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{e=z(e,"spinner");const l=`${e}-${n}`;return v.jsx(o,{ref:a,...s,className:M(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})});Oh.displayName="Spinner";const K$={[Pt]:"showing",[Yo]:"showing show"},US=h.forwardRef((e,t)=>v.jsx(Os,{...e,ref:t,transitionClasses:K$}));US.displayName="ToastFade";const WS=h.createContext({onClose(){}}),HS=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:o,children:i,...s},a)=>{e=z(e,"toast-header");const l=h.useContext(WS),u=it(c=>{l==null||l.onClose==null||l.onClose(c)});return v.jsxs("div",{ref:a,...s,className:M(e,o),children:[i,r&&v.jsx(Cu,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});HS.displayName="ToastHeader";const VS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"toast-body"),v.jsx(n,{ref:o,className:M(e,t),...r})));VS.displayName="ToastBody";const KS=h.forwardRef(({bsPrefix:e,className:t,transition:n=US,show:r=!0,animation:o=!0,delay:i=5e3,autohide:s=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:g,bg:w,...S},k)=>{e=z(e,"toast");const m=h.useRef(i),p=h.useRef(a);h.useEffect(()=>{m.current=i,p.current=a},[i,a]);const y=Yw(),E=!!(s&&r),C=h.useCallback(()=>{E&&(p.current==null||p.current())},[E]);h.useEffect(()=>{y.set(C,m.current)},[y,C]);const x=h.useMemo(()=>({onClose:a}),[a]),b=!!(n&&o),O=v.jsx("div",{...S,ref:k,className:M(e,t,w&&`bg-${w}`,!b&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return v.jsx(WS.Provider,{value:x,children:b&&n?v.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:l,onExit:u,onExiting:c,onExited:g,unmountOnExit:!0,children:O}):O})});KS.displayName="Toast";const rs=Object.assign(KS,{Body:VS,Header:HS}),G$={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},$h=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:o="div",...i},s)=>(e=z(e,"toast-container"),v.jsx(o,{ref:s,...i,className:M(e,t&&G$[t],n&&`position-${n}`,r)})));$h.displayName="ToastContainer";const q$=()=>{},_h=h.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:o,onChange:i,value:s,disabled:a,id:l,inputRef:u,...c},d)=>(e=z(e,"btn-check"),v.jsxs(v.Fragment,{children:[v.jsx("input",{className:e,name:t,type:o,value:s,ref:u,autoComplete:"off",checked:!!r,disabled:!!a,onChange:i||q$,id:l}),v.jsx(ci,{...c,ref:d,className:M(n,a&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:l})]})));_h.displayName="ToggleButton";const On=Object.create(null);On.open="0";On.close="1";On.ping="2";On.pong="3";On.message="4";On.upgrade="5";On.noop="6";const Va=Object.create(null);Object.keys(On).forEach(e=>{Va[On[e]]=e});const _d={type:"error",data:"parser error"},GS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",qS=typeof ArrayBuffer=="function",QS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Th=({type:e,data:t},n,r)=>GS&&t instanceof Blob?n?r(t):ov(t,r):qS&&(t instanceof ArrayBuffer||QS(t))?n?r(t):ov(new Blob([t]),r):r(On[e]+(t||"")),ov=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function iv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jc;function Q$(e,t){if(GS&&e.data instanceof Blob)return e.data.arrayBuffer().then(iv).then(t);if(qS&&(e.data instanceof ArrayBuffer||QS(e.data)))return t(iv(e.data));Th(e,!1,n=>{Jc||(Jc=new TextEncoder),t(Jc.encode(n))})}const sv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ui=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},X$=typeof ArrayBuffer=="function",Rh=(e,t)=>{if(typeof e!="string")return{type:"message",data:YS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:J$(e.substring(1),t)}:Va[n]?e.length>1?{type:Va[n],data:e.substring(1)}:{type:Va[n]}:_d},J$=(e,t)=>{if(X$){const n=Y$(e);return YS(n,t)}else return{base64:!0,data:e}},YS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},XS="",Z$=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{Th(i,!1,a=>{r[s]=a,++o===n&&t(r.join(XS))})})},e_=(e,t)=>{const n=e.split(XS),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Zc;function va(e){return e.reduce((t,n)=>t+n.length,0)}function ga(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(_d);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(va(n)e){a.enqueue(_d);break}}}})}const JS=4;function je(e){if(e)return r_(e)}function r_(e){for(var t in je.prototype)e[t]=je.prototype[t];return e}je.prototype.on=je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};je.prototype.off=je.prototype.removeListener=je.prototype.removeAllListeners=je.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const o_=jt.setTimeout,i_=jt.clearTimeout;function Tu(e,t){t.useNativeTimers?(e.setTimeoutFn=o_.bind(jt),e.clearTimeoutFn=i_.bind(jt)):(e.setTimeoutFn=jt.setTimeout.bind(jt),e.clearTimeoutFn=jt.clearTimeout.bind(jt))}const s_=1.33;function a_(e){return typeof e=="string"?l_(e):Math.ceil((e.byteLength||e.size)*s_)}function l_(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function u_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function c_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function tx(){const e=uv(+new Date);return e!==lv?(av=0,lv=e):e+"."+uv(av++)}for(;wa{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};e_(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Z$(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=tx()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new kn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class kn extends je{constructor(t,n){super(),Tu(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=ZS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new rx(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=kn.requestsCount++,kn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=h_,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete kn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}kn.requestsCount=0;kn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",cv);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,cv,!1)}}function cv(){for(let e in kn.requests)kn.requests.hasOwnProperty(e)&&kn.requests[e].abort()}const Ah=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Sa=jt.WebSocket||jt.MozWebSocket,fv=!0,v_="arraybuffer",dv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class g_ extends Nh{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=dv?{}:ZS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=fv&&!dv?n?new Sa(t,n):new Sa(t):new Sa(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{fv&&this.ws.send(i)}catch{}o&&Ah(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=tx()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Sa}}class w_ extends Nh{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=n_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=t_();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Ah(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const S_={websocket:g_,webtransport:w_,polling:y_},x_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,E_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rd(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=x_.exec(e||""),i={},s=14;for(;s--;)i[E_[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=k_(i,i.path),i.queryKey=b_(i,i.query),i}function k_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function b_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let ox=class vo extends je{constructor(t,n={}){super(),this.binaryType=v_,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Rd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Rd(n.host).host),Tu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=c_(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=JS,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new S_[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;vo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",vo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ix=Object.prototype.toString,__=typeof Blob=="function"||typeof Blob<"u"&&ix.call(Blob)==="[object BlobConstructor]",T_=typeof File=="function"||typeof File<"u"&&ix.call(File)==="[object FileConstructor]";function Ph(e){return O_&&(e instanceof ArrayBuffer||$_(e))||__&&e instanceof Blob||T_&&e instanceof File}function Ka(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:J.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}di.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};di.prototype.reset=function(){this.attempts=0};di.prototype.setMin=function(e){this.ms=e};di.prototype.setMax=function(e){this.max=e};di.prototype.setJitter=function(e){this.jitter=e};class Pd extends je{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Tu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new di({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||I_;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new ox(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=en(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=en(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(en(t,"ping",this.onping.bind(this)),en(t,"data",this.ondata.bind(this)),en(t,"error",this.onerror.bind(this)),en(t,"close",this.onclose.bind(this)),en(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ah(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new sx(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ri={};function Ga(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=C_(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ri[o]&&i in Ri[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Pd(r,t):(Ri[o]||(Ri[o]=new Pd(r,t)),l=Ri[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ga,{Manager:Pd,Socket:sx,io:Ga,connect:Ga});const ax=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},B_=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&ax(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},D_=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const a=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=ax(s,a)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},Wi=window.location.hostname,Hi=window.location.port,F_=`ws://${Wi}:${Hi}/`,In=Ga(F_,{path:"/ws/socket.io",transports:["websocket"]}),z_=(e,t)=>{t?In.emit("update_value",{access_path:e.full_access_path,value:e},t):In.emit("update_value",{access_path:e.full_access_path,value:e})},Lh=(e,t=[],n={},r)=>{const o=B_(t),i=D_(n);In.emit("trigger_method",{access_path:e,args:o,kwargs:i})},lx=te.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return v.jsx($h,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?v.jsxs(rs,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[v.jsxs(rs.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[v.jsx("strong",{className:"me-auto",children:o.levelname}),v.jsx("small",{children:o.timeStamp})]}),v.jsx(rs.Body,{children:o.message})]},o.id):null)})});lx.displayName="Notifications";const jd=te.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:a}=o();return v.jsx($h,{position:"bottom-center",className:"toastContainer",children:v.jsx(rs,{show:t,onClose:r,delay:a,autohide:a!==void 0,bg:s,children:v.jsxs(rs.Body,{className:"d-flex justify-content-between",children:[i,v.jsx(ci,{variant:"close",size:"sm",onClick:r})]})})})});jd.displayName="ConnectionToast";function ux(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function U_(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function W_(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(mv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=mv(),e[t];throw new Error(`Key not found: ${t}`)}}function hv(e,t,n=!1){const r=U_(t);try{return W_(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function H_(e,t,n){const r=ux(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let l=0;l{const{docString:t}=e;if(!t)return null;const n=v.jsx(FS,{id:"tooltip",children:t});return v.jsx(V$,{placement:"bottom",overlay:n,children:v.jsx(Mw,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});Ht.displayName="DocStringComponent";function cn(){const e=h.useRef(0);return h.useEffect(()=>{e.current+=1}),e.current}const cx=te.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;cn(),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{s({type:"bool",value:c,full_access_path:n,readonly:r,doc:o})};return v.jsxs("div",{className:"component buttonComponent",id:l,children:[!1,v.jsxs(_h,{id:`toggle-check-${l}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:a,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[a,v.jsx(Ht,{docString:o})]})]})});cx.displayName="ButtonComponent";const V_=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let a=0;s?a=Math.pow(10,o+1-n):a=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?a:-a)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},G_=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{if(e==="."&&t.includes("."))return{value:t,selectionStart:n};let o=t;return r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1}},zl=te.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:a,addNotification:l,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,g]=h.useState(null),[w,S]=h.useState(n.toString());cn();const k=p=>{const{key:y,target:E}=p,C=E;if(y==="F1"||y==="F5"||y==="F12"||y==="Tab"||y==="ArrowRight"||y==="ArrowLeft")return;p.preventDefault();const{value:x}=C,b=C.selectionEnd??0;let O=C.selectionStart??0,T=x;if(p.ctrlKey&&y==="a"){C.setSelectionRange(0,x.length);return}else if(y==="-")if(O===0&&!x.startsWith("-"))T="-"+x,O++;else if(x.startsWith("-")&&O===1)T=x.substring(1),O--;else return;else if(y>="0"&&y<="9")({value:T,selectionStart:O}=yv(y,x,O,b));else if(y==="."&&(o==="float"||o==="Quantity"))({value:T,selectionStart:O}=yv(y,x,O,b));else if(y==="ArrowUp"||y==="ArrowDown")({value:T,selectionStart:O}=V_(y,x,O));else if(y==="Backspace")({value:T,selectionStart:O}=K_(x,O,b));else if(y==="Delete")({value:T,selectionStart:O}=G_(x,O,b));else if(y==="Enter"&&!s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($);return}else return;if(s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($)}S(T),g(O)},m=()=>{if(!s){let p;o==="Quantity"?p={type:"Quantity",value:{magnitude:Number(w),unit:a},full_access_path:t,readonly:r,doc:i}:p={type:o,value:Number(w),full_access_path:t,readonly:r,doc:i},u(p)}};return h.useEffect(()=>{const p=o==="int"?parseInt(w):parseFloat(w);n!==p&&S(n.toString());let y=`${t} changed to ${e.value}`;a===void 0?y+=".":y+=` ${a}.`,l(y)},[n]),h.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),v.jsxs("div",{className:"component numberComponent",id:d,children:[!1,v.jsxs(sn,{children:[c&&v.jsxs(sn.Text,{children:[c,v.jsx(Ht,{docString:i})]}),v.jsx(Ze.Control,{type:"text",value:w,disabled:r,onChange:()=>{},name:d,onKeyDown:k,onBlur:m,className:s&&!r?"instantUpdate":""}),a&&v.jsx(sn.Text,{children:a})]})]})});zl.displayName="NumberComponent";const Rs={black:"#000",white:"#fff"},lo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},uo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},co={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},fo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},po={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ni={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},q_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ns(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ve(pi,--yt):0,ti--,Ae===10&&(ti=1,Nu--),Ae}function Et(){return Ae=yt2||Ps(Ae)>3?"":" "}function dT(e,t){for(;--t&&Et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Vs(e,qa()+(t<6&&bn()==32&&Et()==32))}function Id(e){for(;Et();)switch(Ae){case e:return yt;case 34:case 39:e!==34&&e!==39&&Id(Ae);break;case 40:e===41&&Id(e);break;case 92:Et();break}return yt}function pT(e,t){for(;Et()&&e+Ae!==57;)if(e+Ae===84&&bn()===47)break;return"/*"+Vs(t,yt-1)+"*"+Ru(e===47?e:Et())}function hT(e){for(;!Ps(bn());)Et();return Vs(e,yt)}function mT(e){return vx(Ya("",null,null,null,[""],e=yx(e),0,[0],e))}function Ya(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,g=0,w=0,S=1,k=1,m=1,p=0,y="",E=o,C=i,x=r,b=y;k;)switch(w=p,p=Et()){case 40:if(w!=108&&Ve(b,d-1)==58){Ld(b+=ae(Qa(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:b+=Qa(p);break;case 9:case 10:case 13:case 32:b+=fT(w);break;case 92:b+=dT(qa()-1,7);continue;case 47:switch(bn()){case 42:case 47:xa(yT(pT(Et(),qa()),t,n),l);break;default:b+="/"}break;case 123*S:a[u++]=mn(b)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:m==-1&&(b=ae(b,/\f/g,"")),g>0&&mn(b)-d&&xa(g>32?gv(b+";",r,n,d-1):gv(ae(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(xa(x=vv(b,t,n,u,c,o,a,y,E=[],C=[],d),i),p===123)if(c===0)Ya(b,t,x,x,E,i,d,a,C);else switch(f===99&&Ve(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ya(e,x,x,r&&xa(vv(e,x,x,0,0,o,a,y,o,E=[],d),C),o,C,d,a,r?E:C);break;default:Ya(b,x,x,x,[""],C,0,a,C)}}u=c=g=0,S=m=1,y=b="",d=s;break;case 58:d=1+mn(b),g=w;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&cT()==125)continue}switch(b+=Ru(p),p*S){case 38:m=c>0?1:(b+="\f",-1);break;case 44:a[u++]=(mn(b)-1)*m,m=1;break;case 64:bn()===45&&(b+=Qa(Et())),f=bn(),c=d=mn(y=b+=hT(qa())),p++;break;case 45:w===45&&mn(b)==2&&(S=0)}}return i}function vv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],g=Dh(f),w=0,S=0,k=0;w0?f[m]+" "+p:ae(p,/&\f/g,f[m])))&&(l[k++]=y);return Au(e,t,n,o===0?Mh:a,l,u,c)}function yT(e,t,n){return Au(e,t,n,dx,Ru(uT()),As(e,2,-2),0)}function gv(e,t,n,r){return Au(e,t,n,Bh,As(e,0,r),As(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Dh(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Ul+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?gx(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,mn(e)-3-(~Ld(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ve(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var CT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Bh:t.return=gx(t.value,t.length);break;case px:return Fo([Ai(t,{value:ae(t.value,"@","@"+se)})],o);case Mh:if(t.length)return lT(t.props,function(i){switch(aT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Ai(t,{props:[ae(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Fo([Ai(t,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Ai(t,{props:[ae(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ai(t,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},OT=[CT],wx=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||OT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var MT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BT=/[A-Z]|^ms/g,DT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ox=function(t){return t.charCodeAt(1)===45},gv=function(t){return t!=null&&typeof t!="boolean"},ef=fx(function(e){return Ox(e)?e:e.replace(BT,"-$&").toLowerCase()}),wv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(DT,function(r,o,i){return hn={name:o,styles:i,next:hn},o})}return MT[t]!==1&&!Ox(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ps(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hn={name:n.name,styles:n.styles,next:hn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hn={name:r.name,styles:r.styles,next:hn},r=r.next;var o=n.styles+";";return o}return FT(e,t,n)}case"function":{if(e!==void 0){var i=hn,s=n(e);return hn=i,Ps(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function FT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?KT:GT},bv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},qT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return bx(n,r,o),UT(function(){return Cx(n,r,o)}),null},QT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=bv(t,n,r),l=a||kv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,v=1;vt(JT(o)?n:o):t;return w.jsx(HT,{styles:r})}function eR(e,t){return Md(e,t)}const tR=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},nR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ZT,StyledEngineProvider:XT,ThemeContext:Uh,css:Nx,default:eR,internal_processStyles:tR,keyframes:VT},Symbol.toStringTag,{value:"Module"}));function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ax(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ax(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?Ax(t[o]):t[o]:r[o]=t[o]}),r}const rR=Object.freeze(Object.defineProperty({__proto__:null,default:kn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),oR=["values","unit","step"],iR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Px(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=an(e,oR),i=iR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Wh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Cv;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Cv;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Wh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function aR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function lR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tn(e){if(typeof e!="string")throw new Error(Rs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const uR=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));function Wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Wl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Wu(l,r)||{};return Qn(s,a,d=>{let f=Wl(u,o,d);return d===f&&typeof d=="string"&&(f=Wl(u,o,`${t}${d==="default"?"":tn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function cR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const fR={m:"margin",p:"padding"},dR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ov={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pR=cR(e=>{if(e.length>2)if(Ov[e])e=Ov[e];else return[e];const[t,n]=e.split(""),r=fR[t],o=dR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Hh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Hh,...Vh];function Ks(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function jx(e){return Ks(e,"spacing",8)}function Gs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function hR(e,t){return n=>e.reduce((r,o)=>(r[o]=Gs(t,n),r),{})}function mR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=pR(n),i=hR(o,r),s=e[n];return Qn(e,s,i)}function Lx(e,t){const n=jx(e.theme);return Object.keys(e).map(r=>mR(e,t,r,n)).reduce(rs,{})}function Ce(e){return Lx(e,Hh)}Ce.propTypes={};Ce.filterProps=Hh;function Oe(e){return Lx(e,Vh)}Oe.propTypes={};Oe.filterProps=Vh;function yR(e=8){if(e.mui)return e;const t=jx({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Hu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?rs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const vR=Ht("border",Lt),gR=Ht("borderTop",Lt),wR=Ht("borderRight",Lt),SR=Ht("borderBottom",Lt),xR=Ht("borderLeft",Lt),ER=Ht("borderColor"),kR=Ht("borderTopColor"),bR=Ht("borderRightColor"),CR=Ht("borderBottomColor"),OR=Ht("borderLeftColor"),$R=Ht("outline",Lt),_R=Ht("outlineColor"),Vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ks(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gs(t,r)});return Qn(e,e.borderRadius,n)}return null};Vu.propTypes={};Vu.filterProps=["borderRadius"];Hu(vR,gR,wR,SR,xR,ER,kR,bR,CR,OR,Vu,$R,_R);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({gap:Gs(t,r)});return Qn(e,e.gap,n)}return null};Ku.propTypes={};Ku.filterProps=["gap"];const Gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({columnGap:Gs(t,r)});return Qn(e,e.columnGap,n)}return null};Gu.propTypes={};Gu.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({rowGap:Gs(t,r)});return Qn(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const TR=Te({prop:"gridColumn"}),RR=Te({prop:"gridRow"}),NR=Te({prop:"gridAutoFlow"}),AR=Te({prop:"gridAutoColumns"}),PR=Te({prop:"gridAutoRows"}),jR=Te({prop:"gridTemplateColumns"}),LR=Te({prop:"gridTemplateRows"}),IR=Te({prop:"gridTemplateAreas"}),MR=Te({prop:"gridArea"});Hu(Ku,Gu,qu,TR,RR,NR,AR,PR,jR,LR,IR,MR);function zo(e,t){return t==="grey"?t:e}const BR=Te({prop:"color",themeKey:"palette",transform:zo}),DR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),FR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Hu(BR,DR,FR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const zR=Te({prop:"width",transform:wt}),Kh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Wh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:wt(n)}};return Qn(e,e.maxWidth,t)}return null};Kh.filterProps=["maxWidth"];const UR=Te({prop:"minWidth",transform:wt}),WR=Te({prop:"height",transform:wt}),HR=Te({prop:"maxHeight",transform:wt}),VR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const KR=Te({prop:"boxSizing"});Hu(zR,Kh,UR,WR,HR,VR,KR);const GR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ku},rowGap:{style:qu},columnGap:{style:Gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:Kh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},qs=GR;function qR(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function QR(e,t){return typeof e=="function"?e(t):e}function Ix(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wu(o,u)||{};return d?d(s):Qn(s,r,g=>{let S=Wl(f,c,g);return g===S&&typeof g=="string"&&(S=Wl(f,c,`${n}${g==="default"?"":tn(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:qs;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=aR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(v=>{const g=QR(u[v],i);if(g!=null)if(typeof g=="object")if(s[v])f=rs(f,e(v,g,i,s));else{const S=Qn({theme:i},g,k=>({[v]:k}));qR(S,g)?f[v]=t({sx:g,theme:i}):f=rs(f,S)}else f=rs(f,e(v,g,i,s))}),lR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Mx=Ix();Mx.filterProps=["sx"];const Gh=Mx;function Bx(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const YR=["breakpoints","palette","spacing","shape"];function Dx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=an(e,YR),a=Px(n),l=yR(o);let u=kn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},sR,i)},s);return u.applyStyles=Bx,u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Gh({sx:d,theme:this})},u}const XR=Object.freeze(Object.defineProperty({__proto__:null,default:Dx,private_createBreakpoints:Px,unstable_applyStyles:Bx},Symbol.toStringTag,{value:"Module"})),JR=["sx"],ZR=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:qs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function eN(e){const{sx:t}=e,n=an(e,JR),{systemProps:r,otherProps:o}=ZR(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const tN=Object.freeze(Object.defineProperty({__proto__:null,default:Gh,extendSxProp:eN,unstable_createStyleFunctionSx:Ix,unstable_defaultSxConfig:qs},Symbol.toStringTag,{value:"Module"})),$v=e=>e,nN=()=>{let e=$v;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$v}}},rN=nN();function Fx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=zx(e,o,n)}),r}var Ux={exports:{}},fe={};/** + */var ze=typeof Symbol=="function"&&Symbol.for,Fh=ze?Symbol.for("react.element"):60103,zh=ze?Symbol.for("react.portal"):60106,Pu=ze?Symbol.for("react.fragment"):60107,ju=ze?Symbol.for("react.strict_mode"):60108,Lu=ze?Symbol.for("react.profiler"):60114,Iu=ze?Symbol.for("react.provider"):60109,Mu=ze?Symbol.for("react.context"):60110,Uh=ze?Symbol.for("react.async_mode"):60111,Bu=ze?Symbol.for("react.concurrent_mode"):60111,Du=ze?Symbol.for("react.forward_ref"):60112,Fu=ze?Symbol.for("react.suspense"):60113,$T=ze?Symbol.for("react.suspense_list"):60120,zu=ze?Symbol.for("react.memo"):60115,Uu=ze?Symbol.for("react.lazy"):60116,_T=ze?Symbol.for("react.block"):60121,TT=ze?Symbol.for("react.fundamental"):60117,RT=ze?Symbol.for("react.responder"):60118,NT=ze?Symbol.for("react.scope"):60119;function $t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Fh:switch(e=e.type,e){case Uh:case Bu:case Pu:case Lu:case ju:case Fu:return e;default:switch(e=e&&e.$$typeof,e){case Mu:case Du:case Uu:case zu:case Iu:return e;default:return t}}case zh:return t}}}function xx(e){return $t(e)===Bu}ce.AsyncMode=Uh;ce.ConcurrentMode=Bu;ce.ContextConsumer=Mu;ce.ContextProvider=Iu;ce.Element=Fh;ce.ForwardRef=Du;ce.Fragment=Pu;ce.Lazy=Uu;ce.Memo=zu;ce.Portal=zh;ce.Profiler=Lu;ce.StrictMode=ju;ce.Suspense=Fu;ce.isAsyncMode=function(e){return xx(e)||$t(e)===Uh};ce.isConcurrentMode=xx;ce.isContextConsumer=function(e){return $t(e)===Mu};ce.isContextProvider=function(e){return $t(e)===Iu};ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fh};ce.isForwardRef=function(e){return $t(e)===Du};ce.isFragment=function(e){return $t(e)===Pu};ce.isLazy=function(e){return $t(e)===Uu};ce.isMemo=function(e){return $t(e)===zu};ce.isPortal=function(e){return $t(e)===zh};ce.isProfiler=function(e){return $t(e)===Lu};ce.isStrictMode=function(e){return $t(e)===ju};ce.isSuspense=function(e){return $t(e)===Fu};ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pu||e===Bu||e===Lu||e===ju||e===Fu||e===$T||typeof e=="object"&&e!==null&&(e.$$typeof===Uu||e.$$typeof===zu||e.$$typeof===Iu||e.$$typeof===Mu||e.$$typeof===Du||e.$$typeof===TT||e.$$typeof===RT||e.$$typeof===NT||e.$$typeof===_T)};ce.typeOf=$t;Sx.exports=ce;var AT=Sx.exports,Ex=AT,PT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kx={};kx[Ex.ForwardRef]=PT;kx[Ex.Memo]=jT;var LT=!0;function IT(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var bx=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||LT===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Cx=function(t,n,r){bx(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function MT(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},DT=/[A-Z]|^ms/g,FT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ox=function(t){return t.charCodeAt(1)===45},Sv=function(t){return t!=null&&typeof t!="boolean"},ef=fx(function(e){return Ox(e)?e:e.replace(DT,"-$&").toLowerCase()}),xv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(FT,function(r,o,i){return yn={name:o,styles:i,next:yn},o})}return BT[t]!==1&&!Ox(t)&&typeof n=="number"&&n!==0?n+"px":n};function js(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return yn={name:n.name,styles:n.styles,next:yn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)yn={name:r.name,styles:r.styles,next:yn},r=r.next;var o=n.styles+";";return o}return zT(e,t,n)}case"function":{if(e!==void 0){var i=yn,s=n(e);return yn=i,js(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function zT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?GT:qT},Ov=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},QT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return bx(n,r,o),WT(function(){return Cx(n,r,o)}),null},YT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Ov(t,n,r),l=a||Cv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,g=1;gt(ZT(o)?n:o):t;return v.jsx(VT,{styles:r})}function tR(e,t){return Md(e,t)}const nR=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},rR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:eR,StyledEngineProvider:JT,ThemeContext:Hh,css:Nx,default:tR,internal_processStyles:nR,keyframes:KT},Symbol.toStringTag,{value:"Module"}));function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ax(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ax(e[n])}),t}function Cn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=Cn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?Ax(t[o]):t[o]:r[o]=t[o]}),r}const oR=Object.freeze(Object.defineProperty({__proto__:null,default:Cn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),iR=["values","unit","step"],sR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Px(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=un(e,iR),i=sR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,g){const w=s.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(w!==-1&&typeof t[s[w]]=="number"?t[s[w]]:g)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Vh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||$v;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||$v;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Vh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function lR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function uR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function nn(e){if(typeof e!="string")throw new Error(Ns(7));return e.charAt(0).toUpperCase()+e.slice(1)}const cR=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"}));function Wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Wl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Wu(l,r)||{};return Qn(s,a,d=>{let f=Wl(u,o,d);return d===f&&typeof d=="string"&&(f=Wl(u,o,`${t}${d==="default"?"":nn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function fR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const dR={m:"margin",p:"padding"},pR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_v={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hR=fR(e=>{if(e.length>2)if(_v[e])e=_v[e];else return[e];const[t,n]=e.split(""),r=dR[t],o=pR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Kh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Kh,...Gh];function Ks(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function jx(e){return Ks(e,"spacing",8)}function Gs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function mR(e,t){return n=>e.reduce((r,o)=>(r[o]=Gs(t,n),r),{})}function yR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=hR(n),i=mR(o,r),s=e[n];return Qn(e,s,i)}function Lx(e,t){const n=jx(e.theme);return Object.keys(e).map(r=>yR(e,t,r,n)).reduce(os,{})}function Ce(e){return Lx(e,Kh)}Ce.propTypes={};Ce.filterProps=Kh;function Oe(e){return Lx(e,Gh)}Oe.propTypes={};Oe.filterProps=Gh;function vR(e=8){if(e.mui)return e;const t=jx({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Hu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?os(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Vt(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const gR=Vt("border",Lt),wR=Vt("borderTop",Lt),SR=Vt("borderRight",Lt),xR=Vt("borderBottom",Lt),ER=Vt("borderLeft",Lt),kR=Vt("borderColor"),bR=Vt("borderTopColor"),CR=Vt("borderRightColor"),OR=Vt("borderBottomColor"),$R=Vt("borderLeftColor"),_R=Vt("outline",Lt),TR=Vt("outlineColor"),Vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ks(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gs(t,r)});return Qn(e,e.borderRadius,n)}return null};Vu.propTypes={};Vu.filterProps=["borderRadius"];Hu(gR,wR,SR,xR,ER,kR,bR,CR,OR,$R,Vu,_R,TR);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({gap:Gs(t,r)});return Qn(e,e.gap,n)}return null};Ku.propTypes={};Ku.filterProps=["gap"];const Gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({columnGap:Gs(t,r)});return Qn(e,e.columnGap,n)}return null};Gu.propTypes={};Gu.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({rowGap:Gs(t,r)});return Qn(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const RR=Te({prop:"gridColumn"}),NR=Te({prop:"gridRow"}),AR=Te({prop:"gridAutoFlow"}),PR=Te({prop:"gridAutoColumns"}),jR=Te({prop:"gridAutoRows"}),LR=Te({prop:"gridTemplateColumns"}),IR=Te({prop:"gridTemplateRows"}),MR=Te({prop:"gridTemplateAreas"}),BR=Te({prop:"gridArea"});Hu(Ku,Gu,qu,RR,NR,AR,PR,jR,LR,IR,MR,BR);function zo(e,t){return t==="grey"?t:e}const DR=Te({prop:"color",themeKey:"palette",transform:zo}),FR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),zR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Hu(DR,FR,zR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const UR=Te({prop:"width",transform:wt}),qh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Vh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:wt(n)}};return Qn(e,e.maxWidth,t)}return null};qh.filterProps=["maxWidth"];const WR=Te({prop:"minWidth",transform:wt}),HR=Te({prop:"height",transform:wt}),VR=Te({prop:"maxHeight",transform:wt}),KR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const GR=Te({prop:"boxSizing"});Hu(UR,qh,WR,HR,VR,KR,GR);const qR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ku},rowGap:{style:qu},columnGap:{style:Gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:qh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},qs=qR;function QR(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function YR(e,t){return typeof e=="function"?e(t):e}function Ix(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wu(o,u)||{};return d?d(s):Qn(s,r,w=>{let S=Wl(f,c,w);return w===S&&typeof w=="string"&&(S=Wl(f,c,`${n}${w==="default"?"":nn(w)}`,w)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:qs;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=lR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(g=>{const w=YR(u[g],i);if(w!=null)if(typeof w=="object")if(s[g])f=os(f,e(g,w,i,s));else{const S=Qn({theme:i},w,k=>({[g]:k}));QR(S,w)?f[g]=t({sx:w,theme:i}):f=os(f,S)}else f=os(f,e(g,w,i,s))}),uR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Mx=Ix();Mx.filterProps=["sx"];const Qh=Mx;function Bx(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const XR=["breakpoints","palette","spacing","shape"];function Dx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=un(e,XR),a=Px(n),l=vR(o);let u=Cn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},aR,i)},s);return u.applyStyles=Bx,u=t.reduce((c,d)=>Cn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Qh({sx:d,theme:this})},u}const JR=Object.freeze(Object.defineProperty({__proto__:null,default:Dx,private_createBreakpoints:Px,unstable_applyStyles:Bx},Symbol.toStringTag,{value:"Module"})),ZR=["sx"],eN=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:qs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function tN(e){const{sx:t}=e,n=un(e,ZR),{systemProps:r,otherProps:o}=eN(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const nN=Object.freeze(Object.defineProperty({__proto__:null,default:Qh,extendSxProp:tN,unstable_createStyleFunctionSx:Ix,unstable_defaultSxConfig:qs},Symbol.toStringTag,{value:"Module"})),Tv=e=>e,rN=()=>{let e=Tv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Tv}}},oN=rN();function Fx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=zx(e,o,n)}),r}var Ux={exports:{}},fe={};/** * @license React * react-is.production.min.js * @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var qh=Symbol.for("react.element"),Qh=Symbol.for("react.portal"),Qu=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),sN=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),nc=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),aN=Symbol.for("react.offscreen"),Wx;Wx=Symbol.for("react.module.reference");function Vt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qh:switch(e=e.type,e){case Qu:case Xu:case Yu:case tc:case nc:return e;default:switch(e=e&&e.$$typeof,e){case sN:case Zu:case ec:case oc:case rc:case Ju:return e;default:return t}}case Qh:return t}}}fe.ContextConsumer=Zu;fe.ContextProvider=Ju;fe.Element=qh;fe.ForwardRef=ec;fe.Fragment=Qu;fe.Lazy=oc;fe.Memo=rc;fe.Portal=Qh;fe.Profiler=Xu;fe.StrictMode=Yu;fe.Suspense=tc;fe.SuspenseList=nc;fe.isAsyncMode=function(){return!1};fe.isConcurrentMode=function(){return!1};fe.isContextConsumer=function(e){return Vt(e)===Zu};fe.isContextProvider=function(e){return Vt(e)===Ju};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qh};fe.isForwardRef=function(e){return Vt(e)===ec};fe.isFragment=function(e){return Vt(e)===Qu};fe.isLazy=function(e){return Vt(e)===oc};fe.isMemo=function(e){return Vt(e)===rc};fe.isPortal=function(e){return Vt(e)===Qh};fe.isProfiler=function(e){return Vt(e)===Xu};fe.isStrictMode=function(e){return Vt(e)===Yu};fe.isSuspense=function(e){return Vt(e)===tc};fe.isSuspenseList=function(e){return Vt(e)===nc};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===Xu||e===Yu||e===tc||e===nc||e===aN||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===Wx||e.getModuleId!==void 0)};fe.typeOf=Vt;Ux.exports=fe;var _v=Ux.exports;const lN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hx(e){const t=`${e}`.match(lN);return t&&t[1]||""}function Vx(e,t=""){return e.displayName||e.name||Hx(e)||t}function Tv(e,t,n){const r=Vx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function uN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case _v.ForwardRef:return Tv(e,e.render,"ForwardRef");case _v.Memo:return Tv(e,e.type,"memo");default:return}}}const cN=Object.freeze(Object.defineProperty({__proto__:null,default:uN,getFunctionName:Hx},Symbol.toStringTag,{value:"Module"}));function Dd(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Dd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Kx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const fN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Xa(e){return e&&e.ownerDocument||document}function dN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function pN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function nf(e){const t=h.useRef(e);return Kx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Fd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{dN(n,t)})},e)}class Yh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Yh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let ic=!0,zd=!1;const hN=new Yh,mN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function yN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&mN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function vN(e){e.metaKey||e.altKey||e.ctrlKey||(ic=!0)}function rf(){ic=!1}function gN(){this.visibilityState==="hidden"&&zd&&(ic=!0)}function wN(e){e.addEventListener("keydown",vN,!0),e.addEventListener("mousedown",rf,!0),e.addEventListener("pointerdown",rf,!0),e.addEventListener("touchstart",rf,!0),e.addEventListener("visibilitychange",gN,!0)}function SN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ic||yN(t)}function xN(){const e=h.useCallback(o=>{o!=null&&wN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(zd=!0,hN.start(100,()=>{zd=!1}),t.current=!1,!0):!1}function r(o){return SN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const EN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function kN(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const bN=h.createContext(),CN=()=>{const e=h.useContext(bN);return e??!1},ON=h.createContext(void 0);function $N(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function _N({props:e,name:t}){const n=h.useContext(ON);return $N({props:e,name:t,theme:{components:n}})}function TN(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Gx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Gx);var qx=Gx.exports;const RN=Yn(q_),NN=Yn(fN);var Qx=qx;Object.defineProperty(Re,"__esModule",{value:!0});var Rv=Re.alpha=Zx;Re.blend=UN;Re.colorChannel=void 0;var Ud=Re.darken=Jh;Re.decomposeColor=Wt;Re.emphasize=eE;var AN=Re.getContrastRatio=MN;Re.getLuminance=Hl;Re.hexToRgb=Yx;Re.hslToRgb=Jx;var Wd=Re.lighten=Zh;Re.private_safeAlpha=BN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=DN;Re.private_safeEmphasize=zN;Re.private_safeLighten=FN;Re.recomposeColor=pi;Re.rgbToHex=IN;var Nv=Qx(RN),PN=Qx(NN);function Xh(e,t=0,n=1){return(0,PN.default)(e,t,n)}function Yx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function jN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Yx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Nv.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Nv.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Xx=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=Xx;const LN=(e,t)=>{try{return Xx(e)}catch{return e}};Re.private_safeColorChannel=LN;function pi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function IN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>jN(r===3?Math.round(255*n):n)).join("")}`}function Jx(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),pi({type:a,values:l})}function Hl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(Jx(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function MN(e,t){const n=Hl(e),r=Hl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Zx(e,t){return e=Wt(e),t=Xh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function BN(e,t,n){try{return Zx(e,t)}catch{return e}}function Jh(e,t){if(e=Wt(e),t=Xh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pi(e)}function DN(e,t,n){try{return Jh(e,t)}catch{return e}}function Zh(e,t){if(e=Wt(e),t=Xh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pi(e)}function FN(e,t,n){try{return Zh(e,t)}catch{return e}}function eE(e,t=.15){return Hl(e)>.5?Jh(e,t):Zh(e,t)}function zN(e,t,n){try{return eE(e,t)}catch{return e}}function UN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return pi({type:"rgb",values:a})}const WN=["mode","contrastThreshold","tonalOffset"],Av={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ts.white,default:Ts.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},of={text:{primary:Ts.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ts.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Pv(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wd(e.main,o):t==="dark"&&(e.dark=Ud(e.main,i)))}function HN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function VN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function KN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function GN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function qN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function QN(e="light"){return e==="dark"?{main:Ri[400],light:Ri[300],dark:Ri[700]}:{main:"#ed6c02",light:Ri[500],dark:Ri[900]}}function YN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=an(e,WN),i=e.primary||HN(t),s=e.secondary||VN(t),a=e.error||KN(t),l=e.info||GN(t),u=e.success||qN(t),c=e.warning||QN(t);function d(S){return AN(S,of.text.primary)>=n?of.text.primary:Av.text.primary}const f=({color:S,name:k,mainShade:m=500,lightShade:p=300,darkShade:y=700})=>{if(S=j({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(Rs(11,k?` (${k})`:"",m));if(typeof S.main!="string")throw new Error(Rs(12,k?` (${k})`:"",JSON.stringify(S.main)));return Pv(S,"light",p,r),Pv(S,"dark",y,r),S.contrastText||(S.contrastText=d(S.main)),S},v={dark:of,light:Av};return kn(j({common:j({},Ts),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:G_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),o)}const XN=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function JN(e){return Math.round(e*1e5)/1e5}const jv={textTransform:"uppercase"},Lv='"Roboto", "Helvetica", "Arial", sans-serif';function ZN(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Lv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=an(n,XN),v=o/14,g=d||(m=>`${m/u*v}rem`),S=(m,p,y,E,C)=>j({fontFamily:r,fontWeight:m,fontSize:g(p),lineHeight:y},r===Lv?{letterSpacing:`${JN(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,jv),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,jv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn(j({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const eA=.2,tA=.14,nA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${eA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${nA})`].join(",")}const rA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],oA=["duration","easing","delay"],iA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},sA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Iv(e){return`${Math.round(e)}ms`}function aA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function lA(e){const t=j({},iA,e.easing),n=j({},sA,e.duration);return j({getAutoHeightDuration:aA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return an(i,oA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Iv(s)} ${a} ${typeof l=="string"?l:Iv(l)}`).join(",")}},e,{easing:t,duration:n})}const uA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},cA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function fA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=an(e,cA);if(e.vars)throw new Error(Rs(18));const a=YN(r),l=Dx(e);let u=kn(l,{mixins:TN(l.breakpoints,n),palette:a,shadows:rA.slice(),typography:ZN(a,i),transitions:lA(o),zIndex:j({},uA)});return u=kn(u,s),u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Gh({sx:d,theme:this})},u}const dA=fA();var Qs={},sf={exports:{}},Mv;function pA(){return Mv||(Mv=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sf)),sf.exports}const hA=Yn(nR),mA=Yn(rR),yA=Yn(uR),vA=Yn(cN),gA=Yn(XR),wA=Yn(tN);var hi=qx;Object.defineProperty(Qs,"__esModule",{value:!0});var SA=Qs.default=PA;Qs.shouldForwardProp=Ja;Qs.systemDefaultTheme=void 0;var Rt=hi(Rx()),Hd=hi(pA()),Bv=$A(hA),xA=mA;hi(yA);hi(vA);var EA=hi(gA),kA=hi(wA);const bA=["ownerState"],CA=["variants"],OA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(tE=function(r){return r?n:t})(e)}function $A(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=tE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function _A(e){return Object.keys(e).length===0}function TA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const RA=Qs.systemDefaultTheme=(0,EA.default)(),NA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ea({defaultTheme:e,theme:t,themeId:n}){return _A(t)?e:t[n]||t}function AA(e){return e?(t,n)=>n[e]:null}function Za(e,t){let{ownerState:n}=t,r=(0,Hd.default)(t,bA);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Za(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Hd.default)(o,CA);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function PA(e={}){const{themeId:t,defaultTheme:n=RA,rootShouldForwardProp:r=Ja,slotShouldForwardProp:o=Ja}=e,i=s=>(0,kA.default)((0,Rt.default)({},s,{theme:Ea((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Bv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=AA(NA(u))}=a,v=(0,Hd.default)(a,OA),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,m=Ja;u==="Root"||u==="root"?m=r:u?m=o:TA(s)&&(m=void 0);const p=(0,Bv.default)(s,(0,Rt.default)({shouldForwardProp:m,label:k},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,xA.isPlainObject)(C)?x=>Za(C,(0,Rt.default)({},x,{theme:Ea({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=y(C);const O=x?x.map(y):[];l&&f&&O.push(A=>{const U=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Za(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!g&&O.push(A=>{var U;const B=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Za({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function em(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jA=e=>em(e)&&e!=="classes",Xr=SA({themeId:Q_,defaultTheme:dA,rootShouldForwardProp:jA});function LA(e){return _N(e)}function os(e){return typeof e=="string"}function IA(e,t,n){return e===void 0||os(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function MA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function el(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function BA(e,t,n){return typeof e=="function"?e(t,n):e}function Dv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function DA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return v.length>0&&(S.className=v),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const s=el(j({},o,r)),a=Dv(r),l=Dv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const FA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=an(e,FA),a=i?{}:BA(r,o),{props:l,internalRef:u}=DA(j({},s,{externalSlotProps:a})),c=Fd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return IA(n,j({},l,{ref:c}),o)}const zA=2;function nE(e,t){return e-t}function Fv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},KA=e=>e;let Oa;function Uv(){return Oa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Oa=CSS.supports("touch-action","none"):Oa=!0),Oa}function GA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:g=KA,step:S=1,shiftStep:k=10,tabIndex:m,value:p}=e,y=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=pN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(nE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=xN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Fd(Y,X),ge=Fd(v,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const qt=V[V.length-1];ee>qt?ee=qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};Kx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Tn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Rn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:qt}=D.getBoundingClientRect();let un;Qe.indexOf("vertical")===0?un=(ee-N.y)/ie:un=(N.x-qt)/oe,Qe.indexOf("-reverse")!==-1&&(un=1-un);let le;if(le=UA(un,l,a),S)le=HA(le,S,l);else{const ro=Fv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Rn.current:Tt=Fv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=zv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Rn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=nf(N=>{const P=ka(N,y);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ba({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>zA&&T(!0),B&&!Ca(D,A)&&B(N,D,oe)}),Ue=nf(N=>{const P=ka(N,y);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),y.current=void 0,vt()}),nt=nf(N=>{if(r)return;Uv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(y.current=P.identifier);const D=ka(N,y);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ba({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!Ca(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Xa(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Xa(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",nt,{passive:Uv()}),()=>{N.removeEventListener("touchstart",nt),vt()}},[vt,nt]),h.useEffect(()=>{r&&vt()},[r,vt]);const vi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=ka(P,y);if(oe!==!1){const{newValue:ee,activeIndex:qt}=de({finger:oe});ba({sliderRef:X,activeIndex:qt,setActive:C}),U(ee),B&&!Ca(ee,A)&&B(P,ee,qt)}$.current=0;const ie=Xa(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Vl(K?W[0]:l,l,a),Gt=Vl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=el(N),D={onMouseDown:vi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:VA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=el(N),oe={onChange:Tn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:_n(D||{})},ie=j({},D,oe);return j({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(a),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},EN,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=el(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:Gt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const qA=e=>!e||!os(e);function QA(e){return zx("MuiSlider",e)}const Mt=iN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),YA=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function XA(e){const{children:t,className:n,value:r}=e,o=YA(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},w.jsxs(h.Fragment,{children:[t.props.children,w.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:r})})})]})):null}const JA=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Wv(e){return e}const ZA=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tn(n.color)}`],n.size!=="medium"&&t[`size${tn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),eP=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),tP=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Wd(e.palette[n].main,.62),borderColor:Wd(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Ud(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Ud(e.palette[n].main,.5)})))}))]}}),nP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tn(n.color)}`],n.size!=="medium"&&t[`thumbSize${tn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Rv(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Rv(e.palette[n].main,.16)}`})}}))]}}),rP=Xr(XA,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),oP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>em(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),iP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>em(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),sP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${tn(a)}`,l&&`size${tn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${tn(l)}`,a&&`thumbColor${tn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return kN(u,QA,s)},aP=({children:e})=>e,lP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,v,g,S,k,m,p,y,E,C,x,b,O,T,$;const A=LA({props:t,name:"MuiSlider"}),U=CN(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:_n=10,size:Tn="medium",step:Rn=1,scale:Qe=Wv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:nt="off",valueLabelFormat:vt=Wv}=A,vi=an(A,JA),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Tn,step:Rn,shiftStep:_n,scale:Qe,track:Ue,valueLabelDisplay:nt,valueLabelFormat:vt}),{axisProps:Gt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:gi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:qt,getThumbStyle:un}=GA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=sP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:ZA,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:eP,xm=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:tP,Em=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:nP,km=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:rP,cc=(v=(g=H==null?void 0:H.mark)!=null?g:V.Mark)!=null?v:oP,fc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:iP,bm=(m=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?m:"input",dc=(y=de==null?void 0:de.root)!=null?y:_.root,ck=(E=de==null?void 0:de.rail)!=null?E:_.rail,pc=(C=de==null?void 0:de.track)!=null?C:_.track,hc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,mc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,fk=(O=de==null?void 0:de.mark)!=null?O:_.mark,dk=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,pk=($=de==null?void 0:de.input)!=null?$:_.input,hk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:dc,externalForwardedProps:vi,additionalProps:j({},qA(Tt)&&{as:G}),ownerState:j({},we,dc==null?void 0:dc.ownerState),className:[le.root,Y]}),mk=tr({elementType:ro,externalSlotProps:ck,ownerState:we,className:le.rail}),yk=tr({elementType:xm,externalSlotProps:pc,additionalProps:{style:j({},Gt[Zn].offset(ee),Gt[Zn].leap(qt))},ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.track}),yc=tr({elementType:Em,getSlotProps:Rr,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.thumb}),vk=tr({elementType:km,externalSlotProps:mc,ownerState:j({},we,mc==null?void 0:mc.ownerState),className:le.valueLabel}),vc=tr({elementType:cc,externalSlotProps:fk,ownerState:we,className:le.mark}),gc=tr({elementType:fc,externalSlotProps:dk,ownerState:we,className:le.markLabel}),gk=tr({elementType:bm,getSlotProps:to,externalSlotProps:pk,ownerState:we});return w.jsxs(Tt,j({},hk,{children:[w.jsx(ro,j({},mk)),w.jsx(xm,j({},yk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const wc=Vl(Ne.value,qe,Me),Xs=Gt[Zn].offset(wc);let Nn;return Ue===!1?Nn=ie.indexOf(Ne.value)!==-1:Nn=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),w.jsxs(h.Fragment,{children:[w.jsx(cc,j({"data-index":We},vc,!os(cc)&&{markActive:Nn},{style:j({},Xs,vc.style),className:Sr(vc.className,Nn&&le.markActive)})),Ne.label!=null?w.jsx(fc,j({"aria-hidden":!0,"data-index":We},gc,!os(fc)&&{markLabelActive:Nn},{style:j({},Xs,gc.style),className:Sr(le.markLabel,gc.className,Nn&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const wc=Vl(Ne,qe,Me),Xs=Gt[Zn].offset(wc),Nn=nt==="off"?aP:km;return w.jsx(Nn,j({},!os(Nn)&&{valueLabelFormat:vt,valueLabelDisplay:nt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:gi===We||no===We||nt==="on",disabled:ve},vk,{children:w.jsx(Em,j({"data-index":We},yc,{className:Sr(le.thumb,yc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Xs,un(We),yc.style),children:w.jsx(bm,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},gk))}))}),We)})]}))});var Hv=Object.prototype.toString,rE=function(t){var n=Hv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Hv.call(t.callee)==="[object Function]"),r},af,Vv;function uP(){if(Vv)return af;Vv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=rE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var v=f.constructor;return v&&v.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",S=n.call(v)==="[object Function]",k=r(v),m=g&&n.call(v)==="[object String]",p=[];if(!g&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var y=s&&S;if(m&&v.length>0&&!t.call(v,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":NP,"%eval%":eval,"%EvalError%":AP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":sE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":PP,"%ReferenceError%":jP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":IP,"%TypedArray%":BP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":LP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var DP=Be(Be(e));zr["%Error.prototype%"]=DP}var FP=function e(t){var n;if(t==="%AsyncFunction%")n=uf("async function () {}");else if(t==="%GeneratorFunction%")n=uf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=uf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},Yv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ys=rm,Kl=iE,zP=Ys.call(Function.call,Array.prototype.concat),UP=Ys.call(Function.apply,Array.prototype.splice),Xv=Ys.call(Function.call,String.prototype.replace),Gl=Ys.call(Function.call,String.prototype.slice),WP=Ys.call(Function.call,RegExp.prototype.exec),HP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,VP=/\\(\\)?/g,KP=function(t){var n=Gl(t,0,1),r=Gl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return Xv(t,HP,function(i,s,a,l){o[o.length]=a?Xv(l,VP,"$1"):s||i}),o},GP=function(t,n){var r=t,o;if(Kl(Yv,r)&&(o=Yv[r],r="%"+o[0]+"%"),Kl(zr,r)){var i=zr[r];if(i===wo&&(i=FP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},On=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(WP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=KP(t),o=r.length>0?r[0]:"",i=GP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],UP(r,zP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Kl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},qP=On,nl=qP("%Object.defineProperty%",!0)||!1;if(nl)try{nl({},"a",{value:1})}catch{nl=!1}var om=nl,QP=On,rl=QP("%Object.getOwnPropertyDescriptor%",!0);if(rl)try{rl([],"length")}catch{rl=null}var im=rl,Jv=om,YP=oE,mo=_r,Zv=im,sm=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Zv&&Zv(t,n);if(Jv)Jv(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new YP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vd=om,aE=function(){return!!Vd};aE.hasArrayLengthDefineBug=function(){if(!Vd)return null;try{return Vd([],"length",{value:1}).length!==1}catch{return!0}};var am=aE,XP=tm,JP=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ZP=Object.prototype.toString,e3=Array.prototype.concat,eg=sm,t3=function(e){return typeof e=="function"&&ZP.call(e)==="[object Function]"},lE=am(),n3=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!t3(r)||!r())return}lE?eg(e,t,n,!0):eg(e,t,n)},uE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=XP(t);JP&&(r=e3.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||i3(n)!==n)throw new rg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&ng){var s=ng(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(o3?tg(t,"length",n,!0,!0):tg(t,"length",n)),t};(function(e){var t=rm,n=On,r=s3,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=om,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var v=a(t,s,arguments);return r(v,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(cE);var mi=cE.exports,fE=On,dE=mi,a3=dE(fE("String.prototype.indexOf")),Kt=function(t,n){var r=fE(t,!!n);return typeof r=="function"&&a3(t,".prototype.")>-1?dE(r):r},l3=tm,pE=sc(),hE=Kt,og=Object,u3=hE("Array.prototype.push"),ig=hE("Object.prototype.propertyIsEnumerable"),c3=pE?Object.getOwnPropertySymbols:null,mE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=og(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||C3)&&(b3?sg(t,"name",n,!0,!0):sg(t,"name",n)),t},_3=$3,T3=_r,R3=Object,wE=_3(function(){if(this==null||this!==R3(this))throw new T3("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),N3=wE,A3=Jr.supportsDescriptors,P3=Object.getOwnPropertyDescriptor,SE=function(){if(A3&&/a/mig.flags==="gim"){var t=P3(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return N3},j3=Jr.supportsDescriptors,L3=SE,I3=Object.getOwnPropertyDescriptor,M3=Object.defineProperty,B3=TypeError,ag=Object.getPrototypeOf,D3=/a/,F3=function(){if(!j3||!ag)throw new B3("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=L3(),n=ag(D3),r=I3(n,"flags");return(!r||r.get!==t)&&M3(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},z3=Jr,U3=mi,W3=wE,xE=SE,H3=F3,EE=U3(xE());z3(EE,{getPolyfill:xE,implementation:W3,shim:H3});var V3=EE,ol={exports:{}},K3=sc,Zr=function(){return K3()&&!!Symbol.toStringTag},G3=Zr(),q3=Kt,Kd=q3("Object.prototype.toString"),ac=function(t){return G3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Kd(t)==="[object Arguments]"},kE=function(t){return ac(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kd(t)!=="[object Array]"&&Kd(t.callee)==="[object Function]"},Q3=function(){return ac(arguments)}();ac.isLegacyArguments=kE;var bE=Q3?ac:kE;const Y3={},X3=Object.freeze(Object.defineProperty({__proto__:null,default:Y3},Symbol.toStringTag,{value:"Module"})),J3=Yn(X3);var lm=typeof Map=="function"&&Map.prototype,df=Object.getOwnPropertyDescriptor&&lm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=lm&&df&&typeof df.get=="function"?df.get:null,lg=lm&&Map.prototype.forEach,um=typeof Set=="function"&&Set.prototype,pf=Object.getOwnPropertyDescriptor&&um?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=um&&pf&&typeof pf.get=="function"?pf.get:null,ug=um&&Set.prototype.forEach,Z3=typeof WeakMap=="function"&&WeakMap.prototype,ss=Z3?WeakMap.prototype.has:null,ej=typeof WeakSet=="function"&&WeakSet.prototype,as=ej?WeakSet.prototype.has:null,tj=typeof WeakRef=="function"&&WeakRef.prototype,cg=tj?WeakRef.prototype.deref:null,nj=Boolean.prototype.valueOf,rj=Object.prototype.toString,oj=Function.prototype.toString,ij=String.prototype.match,cm=String.prototype.slice,fr=String.prototype.replace,sj=String.prototype.toUpperCase,fg=String.prototype.toLowerCase,CE=RegExp.prototype.test,dg=Array.prototype.concat,mn=Array.prototype.join,aj=Array.prototype.slice,pg=Math.floor,Gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hf=Object.getOwnPropertySymbols,qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,OE=Object.prototype.propertyIsEnumerable,hg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||CE.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-pg(-e):pg(e);if(r!==e){var o=String(r),i=cm.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var Qd=J3,yg=Qd.custom,vg=_E(yg)?yg:null,lj=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return RE(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?mg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?mg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yd(t)?"[Array]":"[Object]";var d=Oj(i,r);if(typeof o>"u")o=[];else if(TE(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=aj.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!gg(t)){var v=vj(t),g=$a(t,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+mn.call(g,", ")+" }":"")}if(_E(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qd.call(t);return typeof t=="object"&&!ri?Ai(S):S}if(kj(t)){for(var k="<"+fg.call(String(t.nodeName)),m=t.attributes||[],p=0;p",k}if(Yd(t)){if(t.length===0)return"[]";var y=$a(t,f);return d&&!Cj(y)?"["+Xd(y,d)+"]":"[ "+mn.call(y,", ")+" ]"}if(fj(t)){var E=$a(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!OE.call(t,"cause")?"{ ["+String(t)+"] "+mn.call(dg.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(vg&&typeof t[vg]=="function"&&Qd)return Qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(gj(t)){var C=[];return lg&&lg.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),wg("Map",ql.call(t),C,d)}if(xj(t)){var x=[];return ug&&ug.call(t,function(B){x.push(f(B,t))}),wg("Set",Ql.call(t),x,d)}if(wj(t))return mf("WeakMap");if(Ej(t))return mf("WeakSet");if(Sj(t))return mf("WeakRef");if(pj(t))return Ai(f(Number(t)));if(mj(t))return Ai(f(Gd.call(t)));if(hj(t))return Ai(nj.call(t));if(dj(t))return Ai(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof cl<"u"&&t===cl)return"{ [object globalThis] }";if(!cj(t)&&!gg(t)){var b=$a(t,f),O=hg?hg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&tt&&Object(t)===t&&tt in t?cm.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+mn.call(dg.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Xd(b,d)+"}":U+"{ "+mn.call(b,", ")+" }"}return String(t)};function $E(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function uj(e){return fr.call(String(e),/"/g,""")}function Yd(e){return Tr(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function cj(e){return Tr(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function gg(e){return Tr(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function fj(e){return Tr(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function dj(e){return Tr(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function pj(e){return Tr(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function hj(e){return Tr(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function _E(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qd)return!1;try{return qd.call(e),!0}catch{}return!1}function mj(e){if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}var yj=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return yj.call(e,t)}function Tr(e){return rj.call(e)}function vj(e){if(e.name)return e.name;var t=ij.call(oj.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function TE(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return RE(cm.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,bj);return $E(o,"single",t)}function bj(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+sj.call(t.toString(16))}function Ai(e){return"Object("+e+")"}function mf(e){return e+" { ? }"}function wg(e,t,n,r){var o=r?Xd(n,r):mn.call(n,", ");return e+" ("+t+") {"+o+"}"}function Cj(e){for(var t=0;t=0)return!1;return!0}function Oj(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=mn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:mn.call(Array(t+1),n)}}function Xd(e,t){if(e.length===0)return"";var n=` -`+t.prev+t.base;return n+mn.call(e,","+n)+` -`+t.prev}function $a(e,t){var n=Yd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=$g(t,n);if(o<55296||o>56319)return n+1;var i=$g(t,n+1);return i<56320||i>57343?n+1:n+2},vf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},_g=function(t,n){if(Yj(t)||kg(t))return vf(t);if(Xj(t)){var r=0;return{next:function(){var i=t4(t,r),s=e4(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Jj&&!Zj)ol.exports=function(t){if(t!=null)return _g(t,!0)};else{var n4=IE,r4=BE,Tg=Yt("Map.prototype.forEach",!0),Rg=Yt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Ng=Yt("Map.prototype.iterator",!0),Ag=Yt("Set.prototype.iterator",!0);var Pg=Yt("Map.prototype.@@iterator",!0)||Yt("Map.prototype._es6-shim iterator_",!0),jg=Yt("Set.prototype.@@iterator",!0)||Yt("Set.prototype._es6-shim iterator_",!0),o4=function(t){if(n4(t)){if(Ng)return bg(Ng(t));if(Pg)return Pg(t);if(Tg){var n=[];return Tg(t,function(o,i){Og(n,[i,o])}),vf(n)}}if(r4(t)){if(Ag)return bg(Ag(t));if(jg)return jg(t);if(Rg){var r=[];return Rg(t,function(o){Og(r,o)}),vf(r)}}};ol.exports=function(t){return o4(t)||_g(t)}}}var i4=ol.exports,Lg=function(e){return e!==e},DE=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||Lg(t)&&Lg(n))},s4=DE,FE=function(){return typeof Object.is=="function"?Object.is:s4},a4=FE,l4=Jr,u4=function(){var t=a4();return l4(Object,{is:t},{is:function(){return Object.is!==t}}),t},c4=Jr,f4=mi,d4=DE,zE=FE,p4=u4,UE=f4(zE(),Object);c4(UE,{getPolyfill:zE,implementation:d4,shim:p4});var h4=UE,m4=mi,WE=Kt,y4=On,Jd=y4("%ArrayBuffer%",!0),il=WE("ArrayBuffer.prototype.byteLength",!0),v4=WE("Object.prototype.toString"),Ig=!!Jd&&!il&&new Jd(0).slice,Mg=!!Ig&&m4(Ig),HE=il||Mg?function(t){if(!t||typeof t!="object")return!1;try{return il?il(t):Mg(t,0),!0}catch{return!1}}:Jd?function(t){return v4(t)==="[object ArrayBuffer]"}:function(t){return!1},g4=Date.prototype.getDay,w4=function(t){try{return g4.call(t),!0}catch{return!1}},S4=Object.prototype.toString,x4="[object Date]",E4=Zr(),k4=function(t){return typeof t!="object"||t===null?!1:E4?w4(t):S4.call(t)===x4},Zd=Kt,VE=Zr(),KE,GE,ep,tp;if(VE){KE=Zd("Object.prototype.hasOwnProperty"),GE=Zd("RegExp.prototype.exec"),ep={};var gf=function(){throw ep};tp={toString:gf,valueOf:gf},typeof Symbol.toPrimitive=="symbol"&&(tp[Symbol.toPrimitive]=gf)}var b4=Zd("Object.prototype.toString"),C4=Object.getOwnPropertyDescriptor,O4="[object RegExp]",$4=VE?function(t){if(!t||typeof t!="object")return!1;var n=C4(t,"lastIndex"),r=n&&KE(n,"value");if(!r)return!1;try{GE(t,tp)}catch(o){return o===ep}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:b4(t)===O4},_4=Kt,Bg=_4("SharedArrayBuffer.prototype.byteLength",!0),T4=Bg?function(t){if(!t||typeof t!="object")return!1;try{return Bg(t),!0}catch{return!1}}:function(t){return!1},R4=Number.prototype.toString,N4=function(t){try{return R4.call(t),!0}catch{return!1}},A4=Object.prototype.toString,P4="[object Number]",j4=Zr(),L4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:j4?N4(t):A4.call(t)===P4},qE=Kt,I4=qE("Boolean.prototype.toString"),M4=qE("Object.prototype.toString"),B4=function(t){try{return I4(t),!0}catch{return!1}},D4="[object Boolean]",F4=Zr(),z4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:F4&&Symbol.toStringTag in t?B4(t):M4(t)===D4},np={exports:{}},U4=Object.prototype.toString,W4=nm();if(W4){var H4=Symbol.prototype.toString,V4=/^Symbol\(.*\)$/,K4=function(t){return typeof t.valueOf()!="symbol"?!1:V4.test(H4.call(t))};np.exports=function(t){if(typeof t=="symbol")return!0;if(U4.call(t)!=="[object Symbol]")return!1;try{return K4(t)}catch{return!1}}}else np.exports=function(t){return!1};var G4=np.exports,rp={exports:{}},Dg=typeof BigInt<"u"&&BigInt,q4=function(){return typeof Dg=="function"&&typeof BigInt=="function"&&typeof Dg(42)=="bigint"&&typeof BigInt(42)=="bigint"},Q4=q4();if(Q4){var Y4=BigInt.prototype.valueOf,X4=function(t){try{return Y4.call(t),!0}catch{}return!1};rp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:X4(t)}}else rp.exports=function(t){return!1};var J4=rp.exports,Z4=jE,e5=L4,t5=z4,n5=G4,r5=J4,o5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(Z4(t))return"String";if(e5(t))return"Number";if(t5(t))return"Boolean";if(n5(t))return"Symbol";if(r5(t))return"BigInt"},Jl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Fg=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zl;Jl||(Zl=function(t){return!1});var op=Jl?Jl.prototype.has:null,wf=Fg?Fg.prototype.has:null;!Zl&&!op&&(Zl=function(t){return!1});var i5=Zl||function(t){if(!t||typeof t!="object")return!1;try{if(op.call(t,op),wf)try{wf.call(t,wf)}catch{return!0}return t instanceof Jl}catch{}return!1},ip={exports:{}},s5=On,QE=Kt,a5=s5("%WeakSet%",!0),Sf=QE("WeakSet.prototype.has",!0);if(Sf){var xf=QE("WeakMap.prototype.has",!0);ip.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Sf(t,Sf),xf)try{xf(t,xf)}catch{return!0}return t instanceof a5}catch{}return!1}}else ip.exports=function(t){return!1};var l5=ip.exports,u5=IE,c5=BE,f5=i5,d5=l5,p5=function(t){if(t&&typeof t=="object"){if(u5(t))return"Map";if(c5(t))return"Set";if(f5(t))return"WeakMap";if(d5(t))return"WeakSet"}return!1},YE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,sp,sl;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{sp=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ao(function(){throw 42},null,sp)}catch(e){e!==sl&&(Ao=null)}else Ao=null;var h5=/^\s*class\b/,ap=function(t){try{var n=YE.call(t);return h5.test(n)}catch{return!1}},Ef=function(t){try{return ap(t)?!1:(YE.call(t),!0)}catch{return!1}},al=Object.prototype.toString,m5="[object Object]",y5="[object Function]",v5="[object GeneratorFunction]",g5="[object HTMLAllCollection]",w5="[object HTML document.all class]",S5="[object HTMLCollection]",x5=typeof Symbol=="function"&&!!Symbol.toStringTag,E5=!(0 in[,]),lp=function(){return!1};if(typeof document=="object"){var k5=document.all;al.call(k5)===al.call(document.all)&&(lp=function(t){if((E5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=al.call(t);return(n===g5||n===w5||n===S5||n===m5)&&t("")==null}catch{}return!1})}var b5=Ao?function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,sp)}catch(n){if(n!==sl)return!1}return!ap(t)&&Ef(t)}:function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(x5)return Ef(t);if(ap(t))return!1;var n=al.call(t);return n!==y5&&n!==v5&&!/^\[object HTML/.test(n)?!1:Ef(t)},C5=b5,O5=Object.prototype.toString,XE=Object.prototype.hasOwnProperty,$5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),O5.call(t)==="[object Array]"?$5(t,n,o):typeof t=="string"?_5(t,n,o):T5(t,n,o)},N5=R5,A5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],kf=A5,P5=typeof globalThis>"u"?cl:globalThis,j5=function(){for(var t=[],n=0;n"u"?cl:globalThis,up=L5(),ym=mm("String.prototype.slice"),bf=Object.getPrototypeOf,M5=mm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:D5(t)}return ll?B5(t):null},z5=Kt,Wg=z5("ArrayBuffer.prototype.byteLength",!0),U5=HE,W5=function(t){return U5(t)?Wg?Wg(t):t.byteLength:NaN},ZE=x3,$n=Kt,Hg=V3,H5=On,oi=i4,V5=AE,Vg=h4,Kg=bE,Gg=PE,qg=HE,Qg=k4,Yg=$4,Xg=T4,Jg=tm,Zg=o5,e0=p5,t0=F5,n0=W5,r0=$n("SharedArrayBuffer.prototype.byteLength",!0),o0=$n("Date.prototype.getTime"),Cf=Object.getPrototypeOf,i0=$n("Object.prototype.toString"),nu=H5("%Set%",!0),cp=$n("Map.prototype.has",!0),ru=$n("Map.prototype.get",!0),s0=$n("Map.prototype.size",!0),ou=$n("Set.prototype.add",!0),ek=$n("Set.prototype.delete",!0),iu=$n("Set.prototype.has",!0),ul=$n("Set.prototype.size",!0);function a0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(on(t,i.value,n,r))return ek(e,i.value),!0;return!1}function tk(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function K5(e,t,n,r,o,i){var s=tk(n);if(s!=null)return s;var a=ru(t,s),l=ZE({},o,{strict:!1});return typeof a>"u"&&!cp(t,s)||!on(r,a,l,i)?!1:!cp(e,s)&&on(r,a,l,i)}function G5(e,t,n){var r=tk(n);return r??(iu(t,r)&&!iu(e,r))}function l0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,on(n,l,o,i)&&on(r,ru(t,l),o,i))return ek(e,l),!0;return!1}function on(e,t,n,r){var o=n||{};if(o.strict?Vg(e,t):e===t)return!0;var i=Zg(e),s=Zg(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Vg(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),Y5(e,t,o,r)}function u0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function q5(e,t,n,r){if(ul(e)!==ul(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new nu),ou(l,s.value);else if(!iu(t,s.value)){if(n.strict||!G5(e,t,s.value))return!1;l||(l=new nu),ou(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!a0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!iu(e,a.value)&&!a0(l,a.value,n.strict,r))return!1;return ul(l)===0}return!0}function Q5(e,t,n,r){if(s0(e)!==s0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new nu),ou(l,u);else if(d=ru(t,u),typeof d>"u"&&!cp(t,u)||!on(c,d,n,r)){if(n.strict||!K5(e,t,u,c,n,r))return!1;l||(l=new nu),ou(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!l0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!on(ru(e,u),d,n,r))&&!l0(l,e,u,d,ZE({},n,{strict:!1}),r))return!1;return ul(l)===0}return!0}function Y5(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||i0(e)!==i0(t)||Kg(e)!==Kg(t))return!1;var s=Gg(e),a=Gg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=Yg(e),d=Yg(t);if(c!==d||(c||d)&&(e.source!==t.source||Hg(e)!==Hg(t)))return!1;var f=Qg(e),v=Qg(t);if(f!==v||(f||v)&&o0(e)!==o0(t)||n.strict&&Cf&&Cf(e)!==Cf(t))return!1;var g=t0(e),S=t0(t);if(g!==S)return!1;if(g||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!on(e[i],t[i],n,r))return!1;var O=e0(e),T=e0(t);return O!==T?!1:O==="Set"||T==="Set"?q5(e,t,n,r):O==="Map"?Q5(e,t,n,r):!0}var X5=function(t,n,r){return on(t,n,r,V5())};const J5=si(X5),vm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!J5(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ra=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},nk=ne.memo(e=>{Cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:v}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const g=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,m,p]=Ra(o),[y,E]=Ra(i),[C,x]=Ra(s),[b,O]=Ra(a);return w.jsxs("div",{className:"component sliderComponent",id:v,children:[!1,w.jsxs(Fl,{children:[w.jsx(dn,{xs:"auto",xl:"auto",children:w.jsxs(Un.Text,{children:[f,w.jsx(ln,{docString:l})]})}),w.jsx(dn,{xs:"5",xl:!0,children:w.jsx(lP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:k,onChange:(T,$)=>g(T,$),min:y,max:C,step:b,marks:[{value:y,label:`${y}`},{value:C,label:`${C}`}]})}),w.jsx(dn,{xs:"3",xl:!0,children:w.jsx(zl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:m,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:v+"-value"})}),w.jsx(dn,{xs:"auto",children:w.jsx($h,{id:`button-${v}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[w.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),w.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),w.jsx(bu,{in:t,children:w.jsx(ot.Group,{children:w.jsxs(Fl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Min Value"}),w.jsx(ot.Control,{type:"number",value:y,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Max Value"}),w.jsx(ot.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Step Size"}),w.jsx(ot.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},vm);nk.displayName="SliderComponent";const rk=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return Cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),w.jsxs("div",{className:"component enumComponent",id:r,children:[!1,w.jsx(Fl,{children:w.jsxs(dn,{className:"d-flex align-items-center",children:[w.jsxs(Un.Text,{children:[n,w.jsx(ln,{docString:a})]}),l?w.jsx(ot.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):w.jsx(ot.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>w.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},vm);rk.displayName="EnumComponent";const gm=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;Cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),ax(t),a()};return w.jsxs("div",{className:"component methodComponent",id:i,children:[!1,w.jsx(ot,{onSubmit:l,ref:s,children:w.jsxs(zs,{className:"component",variant:"primary",type:"submit",children:[`${o} `,w.jsx(ln,{docString:n})]})})]})},vm);gm.displayName="MethodComponent";const ok=ne.memo(e=>{const{fullAccessPath:t,docString:n,value:r,addNotification:o,displayName:i,id:s}=e;if(!e.render)return null;Cn();const a=h.useRef(null),[l,u]=h.useState(!1),c=t.split(".").at(-1),d=t.slice(0,-(c.length+1));h.useEffect(()=>{let v;r===null?v=`${t} task was stopped.`:v=`${t} was started.`,o(v),u(!1)},[e.value]);const f=async v=>{v.preventDefault();let g;r!=null?g=`stop_${c}`:g=`start_${c}`;const S=[d,g].filter(k=>k).join(".");u(!0),ax(S)};return w.jsxs("div",{className:"component asyncMethodComponent",id:s,children:[!1,w.jsx(ot,{onSubmit:f,ref:a,children:w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[i,w.jsx(ln,{docString:n})]}),w.jsx(zs,{id:`button-${s}`,type:"submit",children:l?w.jsx(FS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});ok.displayName="AsyncMethodComponent";const ik=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=g=>{c(g.target.value),o&&s({type:"str",value:g.target.value,full_access_path:t,readonly:n,doc:r})},f=g=>{g.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),g.preventDefault())},v=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return w.jsxs("div",{className:"component stringComponent",id:l,children:[!1,w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[a,w.jsx(ln,{docString:r})]}),w.jsx(ot.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:v,className:o&&!n?"instantUpdate":""})]})]})});ik.displayName="StringComponent";function wm(e){const t=h.useContext(jh),n=o=>{var i;return((i=t[o])==null?void 0:i.displayOrder)??Number.MAX_SAFE_INTEGER};let r;return Array.isArray(e)?r=[...e].sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)):r=Object.values(e).sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)),r}const sk=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=wm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});sk.displayName="ListComponent";var Z5=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=eL(e,Z5);return ne.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var nL=["color","size","title","className"];function dp(){return dp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var uc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=rL(e,nL);return ne.createElement("svg",dp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});uc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};uc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};function pp(e,t){const[n,r]=h.useState(()=>{const o=localStorage.getItem(e);return o?JSON.parse(o):t});return h.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const Sm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=pp(`dataServiceComponent-${o}-open`,!0),a=wm(e);return r!==""?w.jsx("div",{className:"component dataServiceComponent",id:o,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:i,children:w.jsx(Do.Body,{children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})})]})}):w.jsx("div",{className:"component dataServiceComponent",id:o,children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})});Sm.displayName="DataServiceComponent";const ak=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return w.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&w.jsxs("div",{className:"overlayContent",children:[w.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),w.jsx(gm,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),w.jsx(Sm,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});ak.displayName="DeviceConnectionComponent";const lk=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;Cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),w.jsx("div",{className:"component imageComponent",id:a,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,w.jsx(ln,{docString:r}),l?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:l,children:w.jsxs(Do.Body,{children:[!1,o===""&&n===""?w.jsx("p",{children:"No image set in the backend."}):w.jsx(aS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});lk.displayName="ImageComponent";function iL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const uk=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=wm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});uk.displayName="DictComponent";const sL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},aL=e=>{const t=[],n=ux(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return sL(t)};function yo(e,t=()=>{}){F_(e,t)}const ii=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=iL(r),i=h.useContext(jh);let s=aL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?w.jsx(cx,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?w.jsx(zl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?w.jsx(zl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?w.jsx(nk,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?w.jsx(rk,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?e.async?w.jsx(ok,{fullAccessPath:r,docString:e.doc,value:e.value,addNotification:n,displayName:s,id:o,render:e.frontend_render}):w.jsx(gm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?w.jsx(ik,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="DataService"?w.jsx(Sm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?w.jsx(ak,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?w.jsx(sk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?w.jsx(uk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?w.jsx(lk,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):w.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const lL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:W_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},uL=()=>{const[e,t]=h.useReducer(lL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=pp("isInstantUpdate",!1),[l,u]=h.useState(!1),[c,d]=pp("showNotification",!1),[f,v]=h.useState([]),[g,S]=h.useState("connecting");h.useEffect(()=>(fetch(`http://${Ui}:${Wi}/custom.css`).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`http://${Ui}:${Wi}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),Ln.on("connect",()=>{fetch(`http://${Ui}:${Wi}/service-properties`).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`http://${Ui}:${Wi}/web-settings`).then(x=>x.json()).then(x=>i(x)),S("connected")}),Ln.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),Ln.on("notify",E),Ln.on("log",C),()=>{Ln.off("notify",E),Ln.off("log",C)}),[]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();v($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),m=x=>{v(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),y=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?w.jsxs(w.Fragment,{children:[w.jsx(Xc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:w.jsxs(Qw,{fluid:!0,children:[w.jsx(Xc.Brand,{children:n}),w.jsx(Xc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),w.jsx(lx,{showNotification:c,notifications:f,removeNotificationById:m}),w.jsxs(Fi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[w.jsx(Fi.Header,{closeButton:!0,children:w.jsx(Fi.Title,{children:"Settings"})}),w.jsxs(Fi.Body,{children:[w.jsx(ot.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),w.jsx(ot.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),w.jsx("div",{className:"App navbarOffset",children:w.jsx(jh.Provider,{value:o,children:w.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),w.jsx(jd,{connectionStatus:g})]}):w.jsx(jd,{connectionStatus:g})};var hp={},c0=Nw;hp.createRoot=c0.createRoot,hp.hydrateRoot=c0.hydrateRoot;hp.createRoot(document.getElementById("root")).render(w.jsx(ne.StrictMode,{children:w.jsx(uL,{})})); + */var Yh=Symbol.for("react.element"),Xh=Symbol.for("react.portal"),Qu=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),aN=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),nc=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),lN=Symbol.for("react.offscreen"),Wx;Wx=Symbol.for("react.module.reference");function Kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yh:switch(e=e.type,e){case Qu:case Xu:case Yu:case tc:case nc:return e;default:switch(e=e&&e.$$typeof,e){case aN:case Zu:case ec:case oc:case rc:case Ju:return e;default:return t}}case Xh:return t}}}fe.ContextConsumer=Zu;fe.ContextProvider=Ju;fe.Element=Yh;fe.ForwardRef=ec;fe.Fragment=Qu;fe.Lazy=oc;fe.Memo=rc;fe.Portal=Xh;fe.Profiler=Xu;fe.StrictMode=Yu;fe.Suspense=tc;fe.SuspenseList=nc;fe.isAsyncMode=function(){return!1};fe.isConcurrentMode=function(){return!1};fe.isContextConsumer=function(e){return Kt(e)===Zu};fe.isContextProvider=function(e){return Kt(e)===Ju};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yh};fe.isForwardRef=function(e){return Kt(e)===ec};fe.isFragment=function(e){return Kt(e)===Qu};fe.isLazy=function(e){return Kt(e)===oc};fe.isMemo=function(e){return Kt(e)===rc};fe.isPortal=function(e){return Kt(e)===Xh};fe.isProfiler=function(e){return Kt(e)===Xu};fe.isStrictMode=function(e){return Kt(e)===Yu};fe.isSuspense=function(e){return Kt(e)===tc};fe.isSuspenseList=function(e){return Kt(e)===nc};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===Xu||e===Yu||e===tc||e===nc||e===lN||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===Wx||e.getModuleId!==void 0)};fe.typeOf=Kt;Ux.exports=fe;var Rv=Ux.exports;const uN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hx(e){const t=`${e}`.match(uN);return t&&t[1]||""}function Vx(e,t=""){return e.displayName||e.name||Hx(e)||t}function Nv(e,t,n){const r=Vx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function cN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Rv.ForwardRef:return Nv(e,e.render,"ForwardRef");case Rv.Memo:return Nv(e,e.type,"memo");default:return}}}const fN=Object.freeze(Object.defineProperty({__proto__:null,default:cN,getFunctionName:Hx},Symbol.toStringTag,{value:"Module"}));function Dd(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Dd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Kx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const dN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Xa(e){return e&&e.ownerDocument||document}function pN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function hN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function nf(e){const t=h.useRef(e);return Kx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Fd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{pN(n,t)})},e)}class Jh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Jh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let ic=!0,zd=!1;const mN=new Jh,yN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function vN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&yN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gN(e){e.metaKey||e.altKey||e.ctrlKey||(ic=!0)}function rf(){ic=!1}function wN(){this.visibilityState==="hidden"&&zd&&(ic=!0)}function SN(e){e.addEventListener("keydown",gN,!0),e.addEventListener("mousedown",rf,!0),e.addEventListener("pointerdown",rf,!0),e.addEventListener("touchstart",rf,!0),e.addEventListener("visibilitychange",wN,!0)}function xN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ic||vN(t)}function EN(){const e=h.useCallback(o=>{o!=null&&SN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(zd=!0,mN.start(100,()=>{zd=!1}),t.current=!1,!0):!1}function r(o){return xN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const kN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function bN(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const CN=h.createContext(),ON=()=>{const e=h.useContext(CN);return e??!1},$N=h.createContext(void 0);function _N(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function TN({props:e,name:t}){const n=h.useContext($N);return _N({props:e,name:t,theme:{components:n}})}function RN(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Gx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Gx);var qx=Gx.exports;const NN=Yn(Q_),AN=Yn(dN);var Qx=qx;Object.defineProperty(Re,"__esModule",{value:!0});var Av=Re.alpha=Zx;Re.blend=WN;Re.colorChannel=void 0;var Ud=Re.darken=em;Re.decomposeColor=Wt;Re.emphasize=eE;var PN=Re.getContrastRatio=BN;Re.getLuminance=Hl;Re.hexToRgb=Yx;Re.hslToRgb=Jx;var Wd=Re.lighten=tm;Re.private_safeAlpha=DN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=FN;Re.private_safeEmphasize=UN;Re.private_safeLighten=zN;Re.recomposeColor=hi;Re.rgbToHex=MN;var Pv=Qx(NN),jN=Qx(AN);function Zh(e,t=0,n=1){return(0,jN.default)(e,t,n)}function Yx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function LN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Yx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Pv.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Pv.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Xx=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=Xx;const IN=(e,t)=>{try{return Xx(e)}catch{return e}};Re.private_safeColorChannel=IN;function hi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function MN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>LN(r===3?Math.round(255*n):n)).join("")}`}function Jx(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),hi({type:a,values:l})}function Hl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(Jx(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function BN(e,t){const n=Hl(e),r=Hl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Zx(e,t){return e=Wt(e),t=Zh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hi(e)}function DN(e,t,n){try{return Zx(e,t)}catch{return e}}function em(e,t){if(e=Wt(e),t=Zh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return hi(e)}function FN(e,t,n){try{return em(e,t)}catch{return e}}function tm(e,t){if(e=Wt(e),t=Zh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return hi(e)}function zN(e,t,n){try{return tm(e,t)}catch{return e}}function eE(e,t=.15){return Hl(e)>.5?em(e,t):tm(e,t)}function UN(e,t,n){try{return eE(e,t)}catch{return e}}function WN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return hi({type:"rgb",values:a})}const HN=["mode","contrastThreshold","tonalOffset"],jv={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Rs.white,default:Rs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},of={text:{primary:Rs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Rs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Lv(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wd(e.main,o):t==="dark"&&(e.dark=Ud(e.main,i)))}function VN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function KN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function GN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function qN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function QN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function YN(e="light"){return e==="dark"?{main:Ni[400],light:Ni[300],dark:Ni[700]}:{main:"#ed6c02",light:Ni[500],dark:Ni[900]}}function XN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=un(e,HN),i=e.primary||VN(t),s=e.secondary||KN(t),a=e.error||GN(t),l=e.info||qN(t),u=e.success||QN(t),c=e.warning||YN(t);function d(S){return PN(S,of.text.primary)>=n?of.text.primary:jv.text.primary}const f=({color:S,name:k,mainShade:m=500,lightShade:p=300,darkShade:y=700})=>{if(S=j({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(Ns(11,k?` (${k})`:"",m));if(typeof S.main!="string")throw new Error(Ns(12,k?` (${k})`:"",JSON.stringify(S.main)));return Lv(S,"light",p,r),Lv(S,"dark",y,r),S.contrastText||(S.contrastText=d(S.main)),S},g={dark:of,light:jv};return Cn(j({common:j({},Rs),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:q_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},g[t]),o)}const JN=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function ZN(e){return Math.round(e*1e5)/1e5}const Iv={textTransform:"uppercase"},Mv='"Roboto", "Helvetica", "Arial", sans-serif';function eA(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Mv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=un(n,JN),g=o/14,w=d||(m=>`${m/u*g}rem`),S=(m,p,y,E,C)=>j({fontFamily:r,fontWeight:m,fontSize:w(p),lineHeight:y},r===Mv?{letterSpacing:`${ZN(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,Iv),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,Iv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Cn(j({htmlFontSize:u,pxToRem:w,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const tA=.2,nA=.14,rA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${tA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${nA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${rA})`].join(",")}const oA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],iA=["duration","easing","delay"],sA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},aA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bv(e){return`${Math.round(e)}ms`}function lA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function uA(e){const t=j({},sA,e.easing),n=j({},aA,e.duration);return j({getAutoHeightDuration:lA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return un(i,iA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Bv(s)} ${a} ${typeof l=="string"?l:Bv(l)}`).join(",")}},e,{easing:t,duration:n})}const cA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},fA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=un(e,fA);if(e.vars)throw new Error(Ns(18));const a=XN(r),l=Dx(e);let u=Cn(l,{mixins:RN(l.breakpoints,n),palette:a,shadows:oA.slice(),typography:eA(a,i),transitions:uA(o),zIndex:j({},cA)});return u=Cn(u,s),u=t.reduce((c,d)=>Cn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Qh({sx:d,theme:this})},u}const pA=dA();var Qs={},sf={exports:{}},Dv;function hA(){return Dv||(Dv=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sf)),sf.exports}const mA=Yn(rR),yA=Yn(oR),vA=Yn(cR),gA=Yn(fN),wA=Yn(JR),SA=Yn(nN);var mi=qx;Object.defineProperty(Qs,"__esModule",{value:!0});var xA=Qs.default=jA;Qs.shouldForwardProp=Ja;Qs.systemDefaultTheme=void 0;var Rt=mi(Rx()),Hd=mi(hA()),Fv=_A(mA),EA=yA;mi(vA);mi(gA);var kA=mi(wA),bA=mi(SA);const CA=["ownerState"],OA=["variants"],$A=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(tE=function(r){return r?n:t})(e)}function _A(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=tE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function TA(e){return Object.keys(e).length===0}function RA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const NA=Qs.systemDefaultTheme=(0,kA.default)(),AA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ea({defaultTheme:e,theme:t,themeId:n}){return TA(t)?e:t[n]||t}function PA(e){return e?(t,n)=>n[e]:null}function Za(e,t){let{ownerState:n}=t,r=(0,Hd.default)(t,CA);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Za(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Hd.default)(o,OA);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function jA(e={}){const{themeId:t,defaultTheme:n=NA,rootShouldForwardProp:r=Ja,slotShouldForwardProp:o=Ja}=e,i=s=>(0,bA.default)((0,Rt.default)({},s,{theme:Ea((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Fv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=PA(AA(u))}=a,g=(0,Hd.default)(a,$A),w=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,m=Ja;u==="Root"||u==="root"?m=r:u?m=o:RA(s)&&(m=void 0);const p=(0,Fv.default)(s,(0,Rt.default)({shouldForwardProp:m,label:k},g)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,EA.isPlainObject)(C)?x=>Za(C,(0,Rt.default)({},x,{theme:Ea({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=y(C);const O=x?x.map(y):[];l&&f&&O.push(A=>{const U=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Za(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!w&&O.push(A=>{var U;const B=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Za({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function nm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const LA=e=>nm(e)&&e!=="classes",Xr=xA({themeId:Y_,defaultTheme:pA,rootShouldForwardProp:LA});function IA(e){return TN(e)}function is(e){return typeof e=="string"}function MA(e,t,n){return e===void 0||is(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function BA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function el(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function DA(e,t,n){return typeof e=="function"?e(t,n):e}function zv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function FA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),w=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return g.length>0&&(S.className=g),Object.keys(w).length>0&&(S.style=w),{props:S,internalRef:void 0}}const s=el(j({},o,r)),a=zv(r),l=zv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const zA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=un(e,zA),a=i?{}:DA(r,o),{props:l,internalRef:u}=FA(j({},s,{externalSlotProps:a})),c=Fd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return MA(n,j({},l,{ref:c}),o)}const UA=2;function nE(e,t){return e-t}function Uv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},GA=e=>e;let Oa;function Hv(){return Oa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Oa=CSS.supports("touch-action","none"):Oa=!0),Oa}function qA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:g,scale:w=GA,step:S=1,shiftStep:k=10,tabIndex:m,value:p}=e,y=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=hN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(nE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=EN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Fd(Y,X),ge=Fd(g,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const Qt=V[V.length-1];ee>Qt?ee=Qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};Kx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Rn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Nn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:Qt}=D.getBoundingClientRect();let fn;Qe.indexOf("vertical")===0?fn=(ee-N.y)/ie:fn=(N.x-Qt)/oe,Qe.indexOf("-reverse")!==-1&&(fn=1-fn);let le;if(le=WA(fn,l,a),S)le=VA(le,S,l);else{const ro=Uv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Nn.current:Tt=Uv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=Wv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Nn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=nf(N=>{const P=ka(N,y);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ba({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>UA&&T(!0),B&&!Ca(D,A)&&B(N,D,oe)}),Ue=nf(N=>{const P=ka(N,y);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),y.current=void 0,vt()}),rt=nf(N=>{if(r)return;Hv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(y.current=P.identifier);const D=ka(N,y);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ba({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!Ca(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Xa(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Xa(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",rt,{passive:Hv()}),()=>{N.removeEventListener("touchstart",rt),vt()}},[vt,rt]),h.useEffect(()=>{r&&vt()},[r,vt]);const gi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=ka(P,y);if(oe!==!1){const{newValue:ee,activeIndex:Qt}=de({finger:oe});ba({sliderRef:X,activeIndex:Qt,setActive:C}),U(ee),B&&!Ca(ee,A)&&B(P,ee,Qt)}$.current=0;const ie=Xa(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Vl(K?W[0]:l,l,a),qt=Vl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=el(N),D={onMouseDown:gi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:KA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=el(N),oe={onChange:Rn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:Tn(D||{})},ie=j({},D,oe);return j({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":w(a),"aria-valuemin":w(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},kN,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=el(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:qt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const QA=e=>!e||!is(e);function YA(e){return zx("MuiSlider",e)}const Mt=sN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),XA=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function JA(e){const{children:t,className:n,value:r}=e,o=XA(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},v.jsxs(h.Fragment,{children:[t.props.children,v.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:v.jsx("span",{className:o.circle,children:v.jsx("span",{className:o.label,children:r})})})]})):null}const ZA=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Vv(e){return e}const eP=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nn(n.color)}`],n.size!=="medium"&&t[`size${nn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),tP=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),nP=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Wd(e.palette[n].main,.62),borderColor:Wd(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Ud(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Ud(e.palette[n].main,.5)})))}))]}}),rP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${nn(n.color)}`],n.size!=="medium"&&t[`thumbSize${nn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Av(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Av(e.palette[n].main,.16)}`})}}))]}}),oP=Xr(JA,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),iP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>nm(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),sP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>nm(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),aP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${nn(a)}`,l&&`size${nn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${nn(l)}`,a&&`thumbColor${nn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return bN(u,YA,s)},lP=({children:e})=>e,uP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,g,w,S,k,m,p,y,E,C,x,b,O,T,$;const A=IA({props:t,name:"MuiSlider"}),U=ON(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:Tn=10,size:Rn="medium",step:Nn=1,scale:Qe=Vv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:rt="off",valueLabelFormat:vt=Vv}=A,gi=un(A,ZA),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Rn,step:Nn,shiftStep:Tn,scale:Qe,track:Ue,valueLabelDisplay:rt,valueLabelFormat:vt}),{axisProps:qt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:wi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:Qt,getThumbStyle:fn}=qA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=aP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:eP,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:tP,km=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:nP,bm=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:rP,Cm=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:oP,cc=(g=(w=H==null?void 0:H.mark)!=null?w:V.Mark)!=null?g:iP,fc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:sP,Om=(m=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?m:"input",dc=(y=de==null?void 0:de.root)!=null?y:_.root,fk=(E=de==null?void 0:de.rail)!=null?E:_.rail,pc=(C=de==null?void 0:de.track)!=null?C:_.track,hc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,mc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,dk=(O=de==null?void 0:de.mark)!=null?O:_.mark,pk=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,hk=($=de==null?void 0:de.input)!=null?$:_.input,mk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:dc,externalForwardedProps:gi,additionalProps:j({},QA(Tt)&&{as:G}),ownerState:j({},we,dc==null?void 0:dc.ownerState),className:[le.root,Y]}),yk=tr({elementType:ro,externalSlotProps:fk,ownerState:we,className:le.rail}),vk=tr({elementType:km,externalSlotProps:pc,additionalProps:{style:j({},qt[Zn].offset(ee),qt[Zn].leap(Qt))},ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.track}),yc=tr({elementType:bm,getSlotProps:Rr,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.thumb}),gk=tr({elementType:Cm,externalSlotProps:mc,ownerState:j({},we,mc==null?void 0:mc.ownerState),className:le.valueLabel}),vc=tr({elementType:cc,externalSlotProps:dk,ownerState:we,className:le.mark}),gc=tr({elementType:fc,externalSlotProps:pk,ownerState:we,className:le.markLabel}),wk=tr({elementType:Om,getSlotProps:to,externalSlotProps:hk,ownerState:we});return v.jsxs(Tt,j({},mk,{children:[v.jsx(ro,j({},yk)),v.jsx(km,j({},vk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const wc=Vl(Ne.value,qe,Me),Xs=qt[Zn].offset(wc);let An;return Ue===!1?An=ie.indexOf(Ne.value)!==-1:An=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),v.jsxs(h.Fragment,{children:[v.jsx(cc,j({"data-index":We},vc,!is(cc)&&{markActive:An},{style:j({},Xs,vc.style),className:Sr(vc.className,An&&le.markActive)})),Ne.label!=null?v.jsx(fc,j({"aria-hidden":!0,"data-index":We},gc,!is(fc)&&{markLabelActive:An},{style:j({},Xs,gc.style),className:Sr(le.markLabel,gc.className,An&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const wc=Vl(Ne,qe,Me),Xs=qt[Zn].offset(wc),An=rt==="off"?lP:Cm;return v.jsx(An,j({},!is(An)&&{valueLabelFormat:vt,valueLabelDisplay:rt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:wi===We||no===We||rt==="on",disabled:ve},gk,{children:v.jsx(bm,j({"data-index":We},yc,{className:Sr(le.thumb,yc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Xs,fn(We),yc.style),children:v.jsx(Om,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},wk))}))}),We)})]}))});var Kv=Object.prototype.toString,rE=function(t){var n=Kv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kv.call(t.callee)==="[object Function]"),r},af,Gv;function cP(){if(Gv)return af;Gv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=rE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var g=f.constructor;return g&&g.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(g){var w=g!==null&&typeof g=="object",S=n.call(g)==="[object Function]",k=r(g),m=w&&n.call(g)==="[object String]",p=[];if(!w&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var y=s&&S;if(m&&g.length>0&&!t.call(g,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":AP,"%eval%":eval,"%EvalError%":PP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":sE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":jP,"%ReferenceError%":LP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":MP,"%TypedArray%":DP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":IP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var FP=Be(Be(e));zr["%Error.prototype%"]=FP}var zP=function e(t){var n;if(t==="%AsyncFunction%")n=uf("async function () {}");else if(t==="%GeneratorFunction%")n=uf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=uf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},Jv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ys=im,Kl=iE,UP=Ys.call(Function.call,Array.prototype.concat),WP=Ys.call(Function.apply,Array.prototype.splice),Zv=Ys.call(Function.call,String.prototype.replace),Gl=Ys.call(Function.call,String.prototype.slice),HP=Ys.call(Function.call,RegExp.prototype.exec),VP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,KP=/\\(\\)?/g,GP=function(t){var n=Gl(t,0,1),r=Gl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return Zv(t,VP,function(i,s,a,l){o[o.length]=a?Zv(l,KP,"$1"):s||i}),o},qP=function(t,n){var r=t,o;if(Kl(Jv,r)&&(o=Jv[r],r="%"+o[0]+"%"),Kl(zr,r)){var i=zr[r];if(i===wo&&(i=zP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},$n=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(HP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=GP(t),o=r.length>0?r[0]:"",i=qP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],WP(r,UP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Kl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},QP=$n,nl=QP("%Object.defineProperty%",!0)||!1;if(nl)try{nl({},"a",{value:1})}catch{nl=!1}var sm=nl,YP=$n,rl=YP("%Object.getOwnPropertyDescriptor%",!0);if(rl)try{rl([],"length")}catch{rl=null}var am=rl,eg=sm,XP=oE,mo=_r,tg=am,lm=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!tg&&tg(t,n);if(eg)eg(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new XP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vd=sm,aE=function(){return!!Vd};aE.hasArrayLengthDefineBug=function(){if(!Vd)return null;try{return Vd([],"length",{value:1}).length!==1}catch{return!0}};var um=aE,JP=rm,ZP=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ej=Object.prototype.toString,tj=Array.prototype.concat,ng=lm,nj=function(e){return typeof e=="function"&&ej.call(e)==="[object Function]"},lE=um(),rj=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!nj(r)||!r())return}lE?ng(e,t,n,!0):ng(e,t,n)},uE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=JP(t);ZP&&(r=tj.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||sj(n)!==n)throw new ig("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&og){var s=og(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(ij?rg(t,"length",n,!0,!0):rg(t,"length",n)),t};(function(e){var t=im,n=$n,r=aj,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=sm,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var g=a(t,s,arguments);return r(g,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(cE);var yi=cE.exports,fE=$n,dE=yi,lj=dE(fE("String.prototype.indexOf")),Gt=function(t,n){var r=fE(t,!!n);return typeof r=="function"&&lj(t,".prototype.")>-1?dE(r):r},uj=rm,pE=sc(),hE=Gt,sg=Object,cj=hE("Array.prototype.push"),ag=hE("Object.prototype.propertyIsEnumerable"),fj=pE?Object.getOwnPropertySymbols:null,mE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=sg(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||Oj)&&(Cj?lg(t,"name",n,!0,!0):lg(t,"name",n)),t},Tj=_j,Rj=_r,Nj=Object,wE=Tj(function(){if(this==null||this!==Nj(this))throw new Rj("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),Aj=wE,Pj=Jr.supportsDescriptors,jj=Object.getOwnPropertyDescriptor,SE=function(){if(Pj&&/a/mig.flags==="gim"){var t=jj(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return Aj},Lj=Jr.supportsDescriptors,Ij=SE,Mj=Object.getOwnPropertyDescriptor,Bj=Object.defineProperty,Dj=TypeError,ug=Object.getPrototypeOf,Fj=/a/,zj=function(){if(!Lj||!ug)throw new Dj("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=Ij(),n=ug(Fj),r=Mj(n,"flags");return(!r||r.get!==t)&&Bj(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},Uj=Jr,Wj=yi,Hj=wE,xE=SE,Vj=zj,EE=Wj(xE());Uj(EE,{getPolyfill:xE,implementation:Hj,shim:Vj});var Kj=EE,ol={exports:{}},Gj=sc,Zr=function(){return Gj()&&!!Symbol.toStringTag},qj=Zr(),Qj=Gt,Kd=Qj("Object.prototype.toString"),ac=function(t){return qj&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Kd(t)==="[object Arguments]"},kE=function(t){return ac(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kd(t)!=="[object Array]"&&Kd(t.callee)==="[object Function]"},Yj=function(){return ac(arguments)}();ac.isLegacyArguments=kE;var bE=Yj?ac:kE;const Xj={},Jj=Object.freeze(Object.defineProperty({__proto__:null,default:Xj},Symbol.toStringTag,{value:"Module"})),Zj=Yn(Jj);var cm=typeof Map=="function"&&Map.prototype,df=Object.getOwnPropertyDescriptor&&cm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=cm&&df&&typeof df.get=="function"?df.get:null,cg=cm&&Map.prototype.forEach,fm=typeof Set=="function"&&Set.prototype,pf=Object.getOwnPropertyDescriptor&&fm?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=fm&&pf&&typeof pf.get=="function"?pf.get:null,fg=fm&&Set.prototype.forEach,e3=typeof WeakMap=="function"&&WeakMap.prototype,as=e3?WeakMap.prototype.has:null,t3=typeof WeakSet=="function"&&WeakSet.prototype,ls=t3?WeakSet.prototype.has:null,n3=typeof WeakRef=="function"&&WeakRef.prototype,dg=n3?WeakRef.prototype.deref:null,r3=Boolean.prototype.valueOf,o3=Object.prototype.toString,i3=Function.prototype.toString,s3=String.prototype.match,dm=String.prototype.slice,fr=String.prototype.replace,a3=String.prototype.toUpperCase,pg=String.prototype.toLowerCase,CE=RegExp.prototype.test,hg=Array.prototype.concat,vn=Array.prototype.join,l3=Array.prototype.slice,mg=Math.floor,Gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hf=Object.getOwnPropertySymbols,qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",nt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,OE=Object.prototype.propertyIsEnumerable,yg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function vg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||CE.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-mg(-e):mg(e);if(r!==e){var o=String(r),i=dm.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var Qd=Zj,gg=Qd.custom,wg=_E(gg)?gg:null,u3=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return RE(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?vg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?vg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yd(t)?"[Array]":"[Object]";var d=$3(i,r);if(typeof o>"u")o=[];else if(TE(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=l3.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!Sg(t)){var g=g3(t),w=$a(t,f);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(w.length>0?" { "+vn.call(w,", ")+" }":"")}if(_E(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qd.call(t);return typeof t=="object"&&!ri?Pi(S):S}if(b3(t)){for(var k="<"+pg.call(String(t.nodeName)),m=t.attributes||[],p=0;p",k}if(Yd(t)){if(t.length===0)return"[]";var y=$a(t,f);return d&&!O3(y)?"["+Xd(y,d)+"]":"[ "+vn.call(y,", ")+" ]"}if(d3(t)){var E=$a(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!OE.call(t,"cause")?"{ ["+String(t)+"] "+vn.call(hg.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+vn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(wg&&typeof t[wg]=="function"&&Qd)return Qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(w3(t)){var C=[];return cg&&cg.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),xg("Map",ql.call(t),C,d)}if(E3(t)){var x=[];return fg&&fg.call(t,function(B){x.push(f(B,t))}),xg("Set",Ql.call(t),x,d)}if(S3(t))return mf("WeakMap");if(k3(t))return mf("WeakSet");if(x3(t))return mf("WeakRef");if(h3(t))return Pi(f(Number(t)));if(y3(t))return Pi(f(Gd.call(t)));if(m3(t))return Pi(r3.call(t));if(p3(t))return Pi(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof cl<"u"&&t===cl)return"{ [object globalThis] }";if(!f3(t)&&!Sg(t)){var b=$a(t,f),O=yg?yg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&nt&&Object(t)===t&&nt in t?dm.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+vn.call(hg.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Xd(b,d)+"}":U+"{ "+vn.call(b,", ")+" }"}return String(t)};function $E(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function c3(e){return fr.call(String(e),/"/g,""")}function Yd(e){return Tr(e)==="[object Array]"&&(!nt||!(typeof e=="object"&&nt in e))}function f3(e){return Tr(e)==="[object Date]"&&(!nt||!(typeof e=="object"&&nt in e))}function Sg(e){return Tr(e)==="[object RegExp]"&&(!nt||!(typeof e=="object"&&nt in e))}function d3(e){return Tr(e)==="[object Error]"&&(!nt||!(typeof e=="object"&&nt in e))}function p3(e){return Tr(e)==="[object String]"&&(!nt||!(typeof e=="object"&&nt in e))}function h3(e){return Tr(e)==="[object Number]"&&(!nt||!(typeof e=="object"&&nt in e))}function m3(e){return Tr(e)==="[object Boolean]"&&(!nt||!(typeof e=="object"&&nt in e))}function _E(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qd)return!1;try{return qd.call(e),!0}catch{}return!1}function y3(e){if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}var v3=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return v3.call(e,t)}function Tr(e){return o3.call(e)}function g3(e){if(e.name)return e.name;var t=s3.call(i3.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function TE(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return RE(dm.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,C3);return $E(o,"single",t)}function C3(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+a3.call(t.toString(16))}function Pi(e){return"Object("+e+")"}function mf(e){return e+" { ? }"}function xg(e,t,n,r){var o=r?Xd(n,r):vn.call(n,", ");return e+" ("+t+") {"+o+"}"}function O3(e){for(var t=0;t=0)return!1;return!0}function $3(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=vn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:vn.call(Array(t+1),n)}}function Xd(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+vn.call(e,","+n)+` +`+t.prev}function $a(e,t){var n=Yd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=Tg(t,n);if(o<55296||o>56319)return n+1;var i=Tg(t,n+1);return i<56320||i>57343?n+1:n+2},vf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},Rg=function(t,n){if(X3(t)||Cg(t))return vf(t);if(J3(t)){var r=0;return{next:function(){var i=n4(t,r),s=t4(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Z3&&!e4)ol.exports=function(t){if(t!=null)return Rg(t,!0)};else{var r4=IE,o4=BE,Ng=Xt("Map.prototype.forEach",!0),Ag=Xt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Pg=Xt("Map.prototype.iterator",!0),jg=Xt("Set.prototype.iterator",!0);var Lg=Xt("Map.prototype.@@iterator",!0)||Xt("Map.prototype._es6-shim iterator_",!0),Ig=Xt("Set.prototype.@@iterator",!0)||Xt("Set.prototype._es6-shim iterator_",!0),i4=function(t){if(r4(t)){if(Pg)return Og(Pg(t));if(Lg)return Lg(t);if(Ng){var n=[];return Ng(t,function(o,i){_g(n,[i,o])}),vf(n)}}if(o4(t)){if(jg)return Og(jg(t));if(Ig)return Ig(t);if(Ag){var r=[];return Ag(t,function(o){_g(r,o)}),vf(r)}}};ol.exports=function(t){return i4(t)||Rg(t)}}}var s4=ol.exports,Mg=function(e){return e!==e},DE=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||Mg(t)&&Mg(n))},a4=DE,FE=function(){return typeof Object.is=="function"?Object.is:a4},l4=FE,u4=Jr,c4=function(){var t=l4();return u4(Object,{is:t},{is:function(){return Object.is!==t}}),t},f4=Jr,d4=yi,p4=DE,zE=FE,h4=c4,UE=d4(zE(),Object);f4(UE,{getPolyfill:zE,implementation:p4,shim:h4});var m4=UE,y4=yi,WE=Gt,v4=$n,Jd=v4("%ArrayBuffer%",!0),il=WE("ArrayBuffer.prototype.byteLength",!0),g4=WE("Object.prototype.toString"),Bg=!!Jd&&!il&&new Jd(0).slice,Dg=!!Bg&&y4(Bg),HE=il||Dg?function(t){if(!t||typeof t!="object")return!1;try{return il?il(t):Dg(t,0),!0}catch{return!1}}:Jd?function(t){return g4(t)==="[object ArrayBuffer]"}:function(t){return!1},w4=Date.prototype.getDay,S4=function(t){try{return w4.call(t),!0}catch{return!1}},x4=Object.prototype.toString,E4="[object Date]",k4=Zr(),b4=function(t){return typeof t!="object"||t===null?!1:k4?S4(t):x4.call(t)===E4},Zd=Gt,VE=Zr(),KE,GE,ep,tp;if(VE){KE=Zd("Object.prototype.hasOwnProperty"),GE=Zd("RegExp.prototype.exec"),ep={};var gf=function(){throw ep};tp={toString:gf,valueOf:gf},typeof Symbol.toPrimitive=="symbol"&&(tp[Symbol.toPrimitive]=gf)}var C4=Zd("Object.prototype.toString"),O4=Object.getOwnPropertyDescriptor,$4="[object RegExp]",_4=VE?function(t){if(!t||typeof t!="object")return!1;var n=O4(t,"lastIndex"),r=n&&KE(n,"value");if(!r)return!1;try{GE(t,tp)}catch(o){return o===ep}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:C4(t)===$4},T4=Gt,Fg=T4("SharedArrayBuffer.prototype.byteLength",!0),R4=Fg?function(t){if(!t||typeof t!="object")return!1;try{return Fg(t),!0}catch{return!1}}:function(t){return!1},N4=Number.prototype.toString,A4=function(t){try{return N4.call(t),!0}catch{return!1}},P4=Object.prototype.toString,j4="[object Number]",L4=Zr(),I4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:L4?A4(t):P4.call(t)===j4},qE=Gt,M4=qE("Boolean.prototype.toString"),B4=qE("Object.prototype.toString"),D4=function(t){try{return M4(t),!0}catch{return!1}},F4="[object Boolean]",z4=Zr(),U4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:z4&&Symbol.toStringTag in t?D4(t):B4(t)===F4},np={exports:{}},W4=Object.prototype.toString,H4=om();if(H4){var V4=Symbol.prototype.toString,K4=/^Symbol\(.*\)$/,G4=function(t){return typeof t.valueOf()!="symbol"?!1:K4.test(V4.call(t))};np.exports=function(t){if(typeof t=="symbol")return!0;if(W4.call(t)!=="[object Symbol]")return!1;try{return G4(t)}catch{return!1}}}else np.exports=function(t){return!1};var q4=np.exports,rp={exports:{}},zg=typeof BigInt<"u"&&BigInt,Q4=function(){return typeof zg=="function"&&typeof BigInt=="function"&&typeof zg(42)=="bigint"&&typeof BigInt(42)=="bigint"},Y4=Q4();if(Y4){var X4=BigInt.prototype.valueOf,J4=function(t){try{return X4.call(t),!0}catch{}return!1};rp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:J4(t)}}else rp.exports=function(t){return!1};var Z4=rp.exports,e5=jE,t5=I4,n5=U4,r5=q4,o5=Z4,i5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(e5(t))return"String";if(t5(t))return"Number";if(n5(t))return"Boolean";if(r5(t))return"Symbol";if(o5(t))return"BigInt"},Jl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Ug=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zl;Jl||(Zl=function(t){return!1});var op=Jl?Jl.prototype.has:null,wf=Ug?Ug.prototype.has:null;!Zl&&!op&&(Zl=function(t){return!1});var s5=Zl||function(t){if(!t||typeof t!="object")return!1;try{if(op.call(t,op),wf)try{wf.call(t,wf)}catch{return!0}return t instanceof Jl}catch{}return!1},ip={exports:{}},a5=$n,QE=Gt,l5=a5("%WeakSet%",!0),Sf=QE("WeakSet.prototype.has",!0);if(Sf){var xf=QE("WeakMap.prototype.has",!0);ip.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Sf(t,Sf),xf)try{xf(t,xf)}catch{return!0}return t instanceof l5}catch{}return!1}}else ip.exports=function(t){return!1};var u5=ip.exports,c5=IE,f5=BE,d5=s5,p5=u5,h5=function(t){if(t&&typeof t=="object"){if(c5(t))return"Map";if(f5(t))return"Set";if(d5(t))return"WeakMap";if(p5(t))return"WeakSet"}return!1},YE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,sp,sl;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{sp=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ao(function(){throw 42},null,sp)}catch(e){e!==sl&&(Ao=null)}else Ao=null;var m5=/^\s*class\b/,ap=function(t){try{var n=YE.call(t);return m5.test(n)}catch{return!1}},Ef=function(t){try{return ap(t)?!1:(YE.call(t),!0)}catch{return!1}},al=Object.prototype.toString,y5="[object Object]",v5="[object Function]",g5="[object GeneratorFunction]",w5="[object HTMLAllCollection]",S5="[object HTML document.all class]",x5="[object HTMLCollection]",E5=typeof Symbol=="function"&&!!Symbol.toStringTag,k5=!(0 in[,]),lp=function(){return!1};if(typeof document=="object"){var b5=document.all;al.call(b5)===al.call(document.all)&&(lp=function(t){if((k5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=al.call(t);return(n===w5||n===S5||n===x5||n===y5)&&t("")==null}catch{}return!1})}var C5=Ao?function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,sp)}catch(n){if(n!==sl)return!1}return!ap(t)&&Ef(t)}:function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(E5)return Ef(t);if(ap(t))return!1;var n=al.call(t);return n!==v5&&n!==g5&&!/^\[object HTML/.test(n)?!1:Ef(t)},O5=C5,$5=Object.prototype.toString,XE=Object.prototype.hasOwnProperty,_5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),$5.call(t)==="[object Array]"?_5(t,n,o):typeof t=="string"?T5(t,n,o):R5(t,n,o)},A5=N5,P5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],kf=P5,j5=typeof globalThis>"u"?cl:globalThis,L5=function(){for(var t=[],n=0;n"u"?cl:globalThis,up=I5(),gm=vm("String.prototype.slice"),bf=Object.getPrototypeOf,B5=vm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:F5(t)}return ll?D5(t):null},U5=Gt,Vg=U5("ArrayBuffer.prototype.byteLength",!0),W5=HE,H5=function(t){return W5(t)?Vg?Vg(t):t.byteLength:NaN},ZE=Ej,_n=Gt,Kg=Kj,V5=$n,oi=s4,K5=AE,Gg=m4,qg=bE,Qg=PE,Yg=HE,Xg=b4,Jg=_4,Zg=R4,e0=rm,t0=i5,n0=h5,r0=z5,o0=H5,i0=_n("SharedArrayBuffer.prototype.byteLength",!0),s0=_n("Date.prototype.getTime"),Cf=Object.getPrototypeOf,a0=_n("Object.prototype.toString"),nu=V5("%Set%",!0),cp=_n("Map.prototype.has",!0),ru=_n("Map.prototype.get",!0),l0=_n("Map.prototype.size",!0),ou=_n("Set.prototype.add",!0),ek=_n("Set.prototype.delete",!0),iu=_n("Set.prototype.has",!0),ul=_n("Set.prototype.size",!0);function u0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(an(t,i.value,n,r))return ek(e,i.value),!0;return!1}function tk(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function G5(e,t,n,r,o,i){var s=tk(n);if(s!=null)return s;var a=ru(t,s),l=ZE({},o,{strict:!1});return typeof a>"u"&&!cp(t,s)||!an(r,a,l,i)?!1:!cp(e,s)&&an(r,a,l,i)}function q5(e,t,n){var r=tk(n);return r??(iu(t,r)&&!iu(e,r))}function c0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,an(n,l,o,i)&&an(r,ru(t,l),o,i))return ek(e,l),!0;return!1}function an(e,t,n,r){var o=n||{};if(o.strict?Gg(e,t):e===t)return!0;var i=t0(e),s=t0(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Gg(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),X5(e,t,o,r)}function f0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function Q5(e,t,n,r){if(ul(e)!==ul(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new nu),ou(l,s.value);else if(!iu(t,s.value)){if(n.strict||!q5(e,t,s.value))return!1;l||(l=new nu),ou(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!u0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!iu(e,a.value)&&!u0(l,a.value,n.strict,r))return!1;return ul(l)===0}return!0}function Y5(e,t,n,r){if(l0(e)!==l0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new nu),ou(l,u);else if(d=ru(t,u),typeof d>"u"&&!cp(t,u)||!an(c,d,n,r)){if(n.strict||!G5(e,t,u,c,n,r))return!1;l||(l=new nu),ou(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!c0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!an(ru(e,u),d,n,r))&&!c0(l,e,u,d,ZE({},n,{strict:!1}),r))return!1;return ul(l)===0}return!0}function X5(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||a0(e)!==a0(t)||qg(e)!==qg(t))return!1;var s=Qg(e),a=Qg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=Jg(e),d=Jg(t);if(c!==d||(c||d)&&(e.source!==t.source||Kg(e)!==Kg(t)))return!1;var f=Xg(e),g=Xg(t);if(f!==g||(f||g)&&s0(e)!==s0(t)||n.strict&&Cf&&Cf(e)!==Cf(t))return!1;var w=r0(e),S=r0(t);if(w!==S)return!1;if(w||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!an(e[i],t[i],n,r))return!1;var O=n0(e),T=n0(t);return O!==T?!1:O==="Set"||T==="Set"?Q5(e,t,n,r):O==="Map"?Y5(e,t,n,r):!0}var J5=function(t,n,r){return an(t,n,r,K5())};const Z5=si(J5),wm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!Z5(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ra=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},nk=te.memo(e=>{cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:g}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const w=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,m,p]=Ra(o),[y,E]=Ra(i),[C,x]=Ra(s),[b,O]=Ra(a);return v.jsxs("div",{className:"component sliderComponent",id:g,children:[!1,v.jsxs(Fl,{children:[v.jsx(hn,{xs:"auto",xl:"auto",children:v.jsxs(sn.Text,{children:[f,v.jsx(Ht,{docString:l})]})}),v.jsx(hn,{xs:"5",xl:!0,children:v.jsx(uP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:k,onChange:(T,$)=>w(T,$),min:y,max:C,step:b,marks:[{value:y,label:`${y}`},{value:C,label:`${C}`}]})}),v.jsx(hn,{xs:"3",xl:!0,children:v.jsx(zl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:m,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:g+"-value"})}),v.jsx(hn,{xs:"auto",children:v.jsx(_h,{id:`button-${g}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[v.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),v.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),v.jsx(bu,{in:t,children:v.jsx(Ze.Group,{children:v.jsxs(Fl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[v.jsxs(hn,{xs:"auto",children:[v.jsx(Ze.Label,{children:"Min Value"}),v.jsx(Ze.Control,{type:"number",value:y,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),v.jsxs(hn,{xs:"auto",children:[v.jsx(Ze.Label,{children:"Max Value"}),v.jsx(Ze.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),v.jsxs(hn,{xs:"auto",children:[v.jsx(Ze.Label,{children:"Step Size"}),v.jsx(Ze.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},wm);nk.displayName="SliderComponent";const rk=te.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),v.jsxs("div",{className:"component enumComponent",id:r,children:[!1,v.jsx(Fl,{children:v.jsxs(hn,{className:"d-flex align-items-center",children:[v.jsxs(sn.Text,{children:[n,v.jsx(Ht,{docString:a})]}),l?v.jsx(Ze.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):v.jsx(Ze.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>v.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},wm);rk.displayName="EnumComponent";const Sm=te.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),Lh(t),a()};return v.jsxs("div",{className:"component methodComponent",id:i,children:[!1,v.jsx(Ze,{onSubmit:l,ref:s,children:v.jsxs(ci,{className:"component",variant:"primary",type:"submit",children:[`${o} `,v.jsx(Ht,{docString:n})]})})]})},wm);Sm.displayName="MethodComponent";const ok=te.memo(e=>{const{fullAccessPath:t,docString:n,value:r,addNotification:o,displayName:i,id:s}=e;if(!e.render)return null;cn();const a=h.useRef(null),[l,u]=h.useState(!1),c=t.split(".").at(-1),d=t.slice(0,-(c.length+1));h.useEffect(()=>{let g;r===null?g=`${t} task was stopped.`:g=`${t} was started.`,o(g),u(!1)},[e.value]);const f=async g=>{g.preventDefault();let w;r!=null?w=`stop_${c}`:w=`start_${c}`;const S=[d,w].filter(k=>k).join(".");u(!0),Lh(S)};return v.jsxs("div",{className:"component asyncMethodComponent",id:s,children:[!1,v.jsx(Ze,{onSubmit:f,ref:a,children:v.jsxs(sn,{children:[v.jsxs(sn.Text,{children:[i,v.jsx(Ht,{docString:n})]}),v.jsx(ci,{id:`button-${s}`,type:"submit",children:l?v.jsx(Oh,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});ok.displayName="AsyncMethodComponent";const ik=te.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=w=>{c(w.target.value),o&&s({type:"str",value:w.target.value,full_access_path:t,readonly:n,doc:r})},f=w=>{w.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),w.preventDefault())},g=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return v.jsxs("div",{className:"component stringComponent",id:l,children:[!1,v.jsxs(sn,{children:[v.jsxs(sn.Text,{children:[a,v.jsx(Ht,{docString:r})]}),v.jsx(Ze.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:g,className:o&&!n?"instantUpdate":""})]})]})});ik.displayName="StringComponent";function xm(e){const t=h.useContext(Ih),n=o=>{var i;return((i=t[o])==null?void 0:i.displayOrder)??Number.MAX_SAFE_INTEGER};let r;return Array.isArray(e)?r=[...e].sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)):r=Object.values(e).sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)),r}const sk=te.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=xm(e.value);return cn(),v.jsxs("div",{className:"listComponent",id:o,children:[!1,v.jsx(Ht,{docString:t}),i.map(s=>v.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});sk.displayName="ListComponent";var eL=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=tL(e,eL);return te.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?te.createElement("title",null,o):null,te.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var rL=["color","size","title","className"];function dp(){return dp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var uc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=oL(e,rL);return te.createElement("svg",dp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?te.createElement("title",null,o):null,te.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});uc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};uc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};function pp(e,t){const[n,r]=h.useState(()=>{const o=localStorage.getItem(e);return o?JSON.parse(o):t});return h.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const Em=te.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=pp(`dataServiceComponent-${o}-open`,!0),a=xm(e);return r!==""?v.jsx("div",{className:"component dataServiceComponent",id:o,children:v.jsxs(Do,{children:[v.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?v.jsx(lc,{}):v.jsx(uc,{})]}),v.jsx(bu,{in:i,children:v.jsx(Do.Body,{children:a.map(l=>v.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})})]})}):v.jsx("div",{className:"component dataServiceComponent",id:o,children:a.map(l=>v.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})});Em.displayName="DataServiceComponent";const ak=te.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return v.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&v.jsxs("div",{className:"overlayContent",children:[v.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),v.jsx(Sm,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),v.jsx(Em,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});ak.displayName="DeviceConnectionComponent";const lk=te.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),v.jsx("div",{className:"component imageComponent",id:a,children:v.jsxs(Do,{children:[v.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,v.jsx(Ht,{docString:r}),l?v.jsx(lc,{}):v.jsx(uc,{})]}),v.jsx(bu,{in:l,children:v.jsxs(Do.Body,{children:[!1,o===""&&n===""?v.jsx("p",{children:"No image set in the backend."}):v.jsx(uS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});lk.displayName="ImageComponent";function sL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const uk=te.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=xm(e.value);return cn(),v.jsxs("div",{className:"listComponent",id:o,children:[!1,v.jsx(Ht,{docString:t}),i.map(s=>v.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});uk.displayName="DictComponent";const ck=te.memo(e=>{const{fullAccessPath:t,docString:n,status:r,addNotification:o,displayName:i,id:s}=e;cn();const a=h.useRef(null),[l,u]=h.useState(!1);h.useEffect(()=>{let d;r==="RUNNING"?d=`${t} was started.`:d=`${t} was stopped.`,o(d),u(!1)},[r]);const c=async d=>{d.preventDefault();const f=r=="RUNNING"?"stop":"start",g=[t,f].filter(w=>w).join(".");u(!0),Lh(g)};return v.jsxs("div",{className:"component taskComponent",id:s,children:[!1,v.jsx(Ze,{onSubmit:c,ref:a,children:v.jsxs(sn,{children:[v.jsxs(sn.Text,{children:[i,v.jsx(Ht,{docString:n})]}),v.jsx(ci,{id:`button-${s}`,type:"submit",children:l?v.jsx(Oh,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});ck.displayName="TaskComponent";const aL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},lL=e=>{const t=[],n=ux(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return aL(t)};function yo(e,t=()=>{}){z_(e,t)}const ii=te.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=sL(r),i=h.useContext(Ih);let s=lL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?v.jsx(cx,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?v.jsx(zl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?v.jsx(zl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?v.jsx(nk,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?v.jsx(rk,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?e.async?v.jsx(ok,{fullAccessPath:r,docString:e.doc,value:e.value,addNotification:n,displayName:s,id:o,render:e.frontend_render}):v.jsx(Sm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?v.jsx(ik,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type=="Task"?v.jsx(ck,{fullAccessPath:r,docString:e.doc,status:e.value.status.value,addNotification:n,displayName:s,id:o}):e.type==="DataService"?v.jsx(Em,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?v.jsx(ak,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?v.jsx(sk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?v.jsx(uk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?v.jsx(lk,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):v.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const uL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:H_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},cL=()=>{const[e,t]=h.useReducer(uL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=pp("isInstantUpdate",!1),[l,u]=h.useState(!1),[c,d]=pp("showNotification",!1),[f,g]=h.useState([]),[w,S]=h.useState("connecting");h.useEffect(()=>(fetch(`http://${Wi}:${Hi}/custom.css`).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`http://${Wi}:${Hi}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),In.on("connect",()=>{fetch(`http://${Wi}:${Hi}/service-properties`).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`http://${Wi}:${Hi}/web-settings`).then(x=>x.json()).then(x=>i(x)),S("connected")}),In.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),In.on("notify",E),In.on("log",C),()=>{In.off("notify",E),In.off("log",C)}),[]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();g($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),m=x=>{g(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),y=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?v.jsxs(v.Fragment,{children:[v.jsx(Xc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:v.jsxs(Xw,{fluid:!0,children:[v.jsx(Xc.Brand,{children:n}),v.jsx(Xc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),v.jsx(lx,{showNotification:c,notifications:f,removeNotificationById:m}),v.jsxs(zi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[v.jsx(zi.Header,{closeButton:!0,children:v.jsx(zi.Title,{children:"Settings"})}),v.jsxs(zi.Body,{children:[v.jsx(Ze.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),v.jsx(Ze.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),v.jsx("div",{className:"App navbarOffset",children:v.jsx(Ih.Provider,{value:o,children:v.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),v.jsx(jd,{connectionStatus:w})]}):v.jsx(jd,{connectionStatus:w})};var hp={},d0=Pw;hp.createRoot=d0.createRoot,hp.hydrateRoot=d0.hydrateRoot;hp.createRoot(document.getElementById("root")).render(v.jsx(te.StrictMode,{children:v.jsx(cL,{})})); diff --git a/src/pydase/frontend/index.html b/src/pydase/frontend/index.html index d6197af..858355d 100644 --- a/src/pydase/frontend/index.html +++ b/src/pydase/frontend/index.html @@ -6,7 +6,7 @@ - + From 78964be506d189324fa45a0f13307a5832df1525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 16 Sep 2024 13:46:56 +0200 Subject: [PATCH 37/41] adds serialization and deserialization support for task objects --- src/pydase/client/proxy_loader.py | 2 +- src/pydase/utils/helpers.py | 6 ++++++ src/pydase/utils/serialization/deserializer.py | 16 +++++++++------- src/pydase/utils/serialization/serializer.py | 5 +++++ src/pydase/utils/serialization/types.py | 4 +++- 5 files changed, 24 insertions(+), 9 deletions(-) diff --git a/src/pydase/client/proxy_loader.py b/src/pydase/client/proxy_loader.py index 29a26df..af4e7d2 100644 --- a/src/pydase/client/proxy_loader.py +++ b/src/pydase/client/proxy_loader.py @@ -351,7 +351,7 @@ class ProxyLoader: ) -> Any: # Custom types like Components or DataService classes component_class = cast( - type, Deserializer.get_component_class(serialized_object["type"]) + type, Deserializer.get_service_base_class(serialized_object["type"]) ) class_bases = ( ProxyClassMixin, diff --git a/src/pydase/utils/helpers.py b/src/pydase/utils/helpers.py index 35ca594..3f2f545 100644 --- a/src/pydase/utils/helpers.py +++ b/src/pydase/utils/helpers.py @@ -160,6 +160,12 @@ def get_object_attr_from_path(target_obj: Any, path: str) -> Any: return get_object_by_path_parts(target_obj, path_parts) +def get_task_class() -> type: + from pydase.task.task import Task + + return Task + + def get_component_classes() -> list[type]: """ Returns references to the component classes in a list. diff --git a/src/pydase/utils/serialization/deserializer.py b/src/pydase/utils/serialization/deserializer.py index c3a67aa..253bdf3 100644 --- a/src/pydase/utils/serialization/deserializer.py +++ b/src/pydase/utils/serialization/deserializer.py @@ -6,7 +6,9 @@ from typing import TYPE_CHECKING, Any, NoReturn, cast import pydase import pydase.components import pydase.units as u -from pydase.utils.helpers import get_component_classes +from pydase.utils.helpers import ( + get_component_classes, +) from pydase.utils.serialization.types import ( SerializedDatetime, SerializedException, @@ -49,9 +51,9 @@ class Deserializer: return handler(serialized_object) # Custom types like Components or DataService classes - component_class = cls.get_component_class(serialized_object["type"]) - if component_class: - return cls.deserialize_component_type(serialized_object, component_class) + service_base_class = cls.get_service_base_class(serialized_object["type"]) + if service_base_class: + return cls.deserialize_data_service(serialized_object, service_base_class) return None @@ -110,11 +112,11 @@ class Deserializer: raise exception(serialized_object["value"]) @staticmethod - def get_component_class(type_name: str | None) -> type | None: + def get_service_base_class(type_name: str | None) -> type | None: for component_class in get_component_classes(): if type_name == component_class.__name__: return component_class - if type_name == "DataService": + if type_name in ("DataService", "Task"): import pydase return pydase.DataService @@ -137,7 +139,7 @@ class Deserializer: return property(get, set) @classmethod - def deserialize_component_type( + def deserialize_data_service( cls, serialized_object: SerializedObject, base_class: type ) -> Any: def create_proxy_class(serialized_object: SerializedObject) -> type: diff --git a/src/pydase/utils/serialization/serializer.py b/src/pydase/utils/serialization/serializer.py index 048f455..b3d5028 100644 --- a/src/pydase/utils/serialization/serializer.py +++ b/src/pydase/utils/serialization/serializer.py @@ -15,6 +15,7 @@ from pydase.utils.helpers import ( get_attribute_doc, get_component_classes, get_data_service_class_reference, + get_task_class, is_property_attribute, parse_full_access_path, parse_serialized_key, @@ -281,6 +282,10 @@ class Serializer: if component_base_cls: obj_type = component_base_cls.__name__ # type: ignore + elif isinstance(obj, get_task_class()): + # Check if obj is a pydase task + obj_type = "Task" + # Get the set of DataService class attributes data_service_attr_set = set(dir(get_data_service_class_reference())) # Get the set of the object attributes diff --git a/src/pydase/utils/serialization/types.py b/src/pydase/utils/serialization/types.py index ab25580..b998afc 100644 --- a/src/pydase/utils/serialization/types.py +++ b/src/pydase/utils/serialization/types.py @@ -98,7 +98,9 @@ class SerializedException(SerializedObjectBase): type: Literal["Exception"] -DataServiceTypes = Literal["DataService", "Image", "NumberSlider", "DeviceConnection"] +DataServiceTypes = Literal[ + "DataService", "Image", "NumberSlider", "DeviceConnection", "Task" +] class SerializedDataService(SerializedObjectBase): From 2f5a640c4c029d852520433a88c1ddc261e125a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 16 Sep 2024 14:17:20 +0200 Subject: [PATCH 38/41] chore: refactored task autostart --- src/pydase/task/autostart.py | 40 +++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/src/pydase/task/autostart.py b/src/pydase/task/autostart.py index 8f7344e..b29a92b 100644 --- a/src/pydase/task/autostart.py +++ b/src/pydase/task/autostart.py @@ -1,5 +1,8 @@ +from typing import Any + import pydase.data_service.data_service import pydase.task.task +from pydase.task.task_status import TaskStatus from pydase.utils.helpers import is_property_attribute @@ -13,15 +16,28 @@ def autostart_service_tasks( """ for attr in dir(service): - if not is_property_attribute(service, attr): # prevent eval of property attrs - val = getattr(service, attr) - if isinstance(val, pydase.task.task.Task) and val.autostart: - val.start() - elif isinstance(val, pydase.DataService): - autostart_service_tasks(val) - elif isinstance(val, list): - for entry in val: - autostart_service_tasks(entry) - elif isinstance(val, dict): - for entry in val.values(): - autostart_service_tasks(entry) + if is_property_attribute(service, attr): # prevent eval of property attrs + continue + + val = getattr(service, attr) + if ( + isinstance(val, pydase.task.task.Task) + and val.autostart + and val.status == TaskStatus.NOT_RUNNING + ): + val.start() + else: + autostart_nested_service_tasks(val) + + +def autostart_nested_service_tasks( + service: pydase.data_service.data_service.DataService | list[Any] | dict[Any, Any], +) -> None: + if isinstance(service, pydase.DataService): + autostart_service_tasks(service) + elif isinstance(service, list): + for entry in service: + autostart_service_tasks(entry) + elif isinstance(service, dict): + for entry in service.values(): + autostart_service_tasks(entry) From 0450bb1570836fbd505480ed86c7e97b39d99c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 16 Sep 2024 14:18:10 +0200 Subject: [PATCH 39/41] updates version to v0.10.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f1aad74..8132223 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pydase" -version = "0.9.1" +version = "0.10.0" description = "A flexible and robust Python library for creating, managing, and interacting with data services, with built-in support for web and RPC servers, and customizable features for diverse use cases." authors = ["Mose Mueller "] readme = "README.md" From 0c95b5e3cba97c12366abfadb5d1fff20856e194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 16 Sep 2024 14:22:29 +0200 Subject: [PATCH 40/41] frontend: removes AsyncMethodComponent (replaced by Task) --- .../src/components/AsyncMethodComponent.tsx | 91 ------------------- frontend/src/components/GenericComponent.tsx | 35 ++----- .../{index-DIcxBlBr.js => index-DI9re3au.js} | 28 +++--- src/pydase/frontend/index.html | 2 +- 4 files changed, 25 insertions(+), 131 deletions(-) delete mode 100644 frontend/src/components/AsyncMethodComponent.tsx rename src/pydase/frontend/assets/{index-DIcxBlBr.js => index-DI9re3au.js} (55%) diff --git a/frontend/src/components/AsyncMethodComponent.tsx b/frontend/src/components/AsyncMethodComponent.tsx deleted file mode 100644 index c02139e..0000000 --- a/frontend/src/components/AsyncMethodComponent.tsx +++ /dev/null @@ -1,91 +0,0 @@ -import React, { useEffect, useRef, useState } from "react"; -import { runMethod } from "../socket"; -import { Form, Button, InputGroup, Spinner } from "react-bootstrap"; -import { DocStringComponent } from "./DocStringComponent"; -import { LevelName } from "./NotificationsComponent"; -import useRenderCount from "../hooks/useRenderCount"; - -interface AsyncMethodProps { - fullAccessPath: string; - value: "RUNNING" | null; - docString: string | null; - hideOutput?: boolean; - addNotification: (message: string, levelname?: LevelName) => void; - displayName: string; - id: string; - render: boolean; -} - -export const AsyncMethodComponent = React.memo((props: AsyncMethodProps) => { - const { - fullAccessPath, - docString, - value: runningTask, - addNotification, - displayName, - id, - } = props; - - // Conditional rendering based on the 'render' prop. - if (!props.render) { - return null; - } - - const renderCount = useRenderCount(); - const formRef = useRef(null); - const [spinning, setSpinning] = useState(false); - const name = fullAccessPath.split(".").at(-1)!; - const parentPath = fullAccessPath.slice(0, -(name.length + 1)); - - useEffect(() => { - let message: string; - - if (runningTask === null) { - message = `${fullAccessPath} task was stopped.`; - } else { - message = `${fullAccessPath} was started.`; - } - addNotification(message); - setSpinning(false); - }, [props.value]); - - const execute = async (event: React.FormEvent) => { - event.preventDefault(); - let method_name: string; - - if (runningTask !== undefined && runningTask !== null) { - method_name = `stop_${name}`; - } else { - method_name = `start_${name}`; - } - - const accessPath = [parentPath, method_name].filter((element) => element).join("."); - setSpinning(true); - runMethod(accessPath); - }; - - return ( -
- {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
} -
- - - {displayName} - - - - -
-
- ); -}); - -AsyncMethodComponent.displayName = "AsyncMethodComponent"; diff --git a/frontend/src/components/GenericComponent.tsx b/frontend/src/components/GenericComponent.tsx index 95211ad..31d3cba 100644 --- a/frontend/src/components/GenericComponent.tsx +++ b/frontend/src/components/GenericComponent.tsx @@ -4,7 +4,6 @@ import { NumberComponent, NumberObject } from "./NumberComponent"; import { SliderComponent } from "./SliderComponent"; import { EnumComponent } from "./EnumComponent"; import { MethodComponent } from "./MethodComponent"; -import { AsyncMethodComponent } from "./AsyncMethodComponent"; import { StringComponent } from "./StringComponent"; import { ListComponent } from "./ListComponent"; import { DataServiceComponent, DataServiceJSON } from "./DataServiceComponent"; @@ -145,30 +144,16 @@ export const GenericComponent = React.memo( /> ); } else if (attribute.type === "method") { - if (!attribute.async) { - return ( - - ); - } else { - return ( - - ); - } + return ( + + ); } else if (attribute.type === "str") { return ( r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var p0={exports:{}},su={},h0={exports:{}},q={};/** +function wk(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var f0={exports:{}},su={},d0={exports:{}},q={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Sk(e,t){for(var n=0;n=0)continue;n[r]=e[r]}return n}function Nm(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Wk(e){var t=Hk(e,"string");return typeof t=="symbol"?t:String(t)}function Hk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function C0(e,t,n){var r=h.useRef(e!==void 0),o=h.useState(t),i=o[0],s=o[1],a=e!==void 0,l=r.current;return r.current=a,!a&&l&&i!==t&&s(t),[a?e:i,h.useCallback(function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f=0)continue;n[r]=e[r]}return n}function Tm(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Uk(e){var t=Wk(e,"string");return typeof t=="symbol"?t:String(t)}function Wk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function k0(e,t,n){var r=h.useRef(e!==void 0),o=h.useState(t),i=o[0],s=o[1],a=e!==void 0,l=r.current;return r.current=a,!a&&l&&i!==t&&s(t),[a?e:i,h.useCallback(function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f>>1,Z=_[Y];if(0>>1;Yo(re,F))geo(Me,re)?(_[Y]=Me,_[ge]=F,Y=ge):(_[Y]=re,_[X]=F,Y=X);else if(geo(Me,F))_[Y]=Me,_[ge]=F,Y=ge;else break e}}return I}function o(_,I){var F=_.sortIndex-I.sortIndex;return F!==0?F:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,g=!1,w=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function E(_){if(S=!1,y(_),!w)if(n(l)!==null)w=!0,G(C);else{var I=n(u);I!==null&&V(E,I.startTime-_)}}function C(_,I){w=!1,S&&(S=!1,m(O),O=-1),g=!0;var F=f;try{for(y(I),d=n(l);d!==null&&(!(d.expirationTime>I)||_&&!A());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var Z=Y(d.expirationTime<=I);I=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),y(I)}else r(l);d=n(l)}if(d!==null)var ve=!0;else{var X=n(u);X!==null&&V(E,X.startTime-I),ve=!1}return ve}finally{d=null,f=F,g=!1}}var x=!1,b=null,O=-1,T=5,$=-1;function A(){return!(e.unstable_now()-$_||125<_||(T=0<_?Math.floor(1e3/_):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var F=f;f=I;try{return _()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var F=f;f=_;try{return I()}finally{f=F}},e.unstable_scheduleCallback=function(_,I,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0Y?(_.sortIndex=F,t(u,_),n(l)===null&&_===n(u)&&(S?(m(O),O=-1):S=!0,V(E,F-Y))):(_.sortIndex=Z,t(l,_),w||g||(w=!0,G(C))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var I=f;return function(){var F=f;f=I;try{return _.apply(this,arguments)}finally{f=F}}}})(j0);P0.exports=j0;var ab=P0.exports;/** + */(function(e){function t(_,I){var F=_.length;_.push(I);e:for(;0>>1,Z=_[Y];if(0>>1;Yo(re,F))geo(Me,re)?(_[Y]=Me,_[ge]=F,Y=ge):(_[Y]=re,_[X]=F,Y=X);else if(geo(Me,F))_[Y]=Me,_[ge]=F,Y=ge;else break e}}return I}function o(_,I){var F=_.sortIndex-I.sortIndex;return F!==0?F:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,v=!1,g=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function E(_){if(S=!1,y(_),!g)if(n(l)!==null)g=!0,G(C);else{var I=n(u);I!==null&&V(E,I.startTime-_)}}function C(_,I){g=!1,S&&(S=!1,m(O),O=-1),v=!0;var F=f;try{for(y(I),d=n(l);d!==null&&(!(d.expirationTime>I)||_&&!A());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var Z=Y(d.expirationTime<=I);I=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),y(I)}else r(l);d=n(l)}if(d!==null)var ve=!0;else{var X=n(u);X!==null&&V(E,X.startTime-I),ve=!1}return ve}finally{d=null,f=F,v=!1}}var x=!1,b=null,O=-1,T=5,$=-1;function A(){return!(e.unstable_now()-$_||125<_||(T=0<_?Math.floor(1e3/_):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var F=f;f=I;try{return _()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var F=f;f=_;try{return I()}finally{f=F}},e.unstable_scheduleCallback=function(_,I,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0Y?(_.sortIndex=F,t(u,_),n(l)===null&&_===n(u)&&(S?(m(O),O=-1):S=!0,V(E,F-Y))):(_.sortIndex=Z,t(l,_),g||v||(g=!0,G(C))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var I=f;return function(){var F=f;f=I;try{return _.apply(this,arguments)}finally{f=F}}}})(A0);N0.exports=A0;var sb=N0.exports;/** * @license React * react-dom.production.min.js * @@ -34,21 +34,21 @@ function Sk(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$f=Object.prototype.hasOwnProperty,ub=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Am={},Pm={};function cb(e){return $f.call(Pm,e)?!0:$f.call(Am,e)?!1:ub.test(e)?Pm[e]=!0:(Am[e]=!0,!1)}function fb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function db(e,t,n,r){if(t===null||typeof t>"u"||fb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ge[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wp=/[\-:]([a-z])/g;function Sp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function xp(e,t,n,r){var o=Ge.hasOwnProperty(t)?Ge[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$f=Object.prototype.hasOwnProperty,lb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rm={},Nm={};function ub(e){return $f.call(Nm,e)?!0:$f.call(Rm,e)?!1:lb.test(e)?Nm[e]=!0:(Rm[e]=!0,!1)}function cb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fb(e,t,n,r){if(t===null||typeof t>"u"||cb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ge[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wp=/[\-:]([a-z])/g;function Sp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wp,Sp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function xp(e,t,n,r){var o=Ge.hasOwnProperty(t)?Ge[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ii(e):""}function pb(e){switch(e.tag){case 5:return Ii(e.type);case 16:return Ii("Lazy");case 13:return Ii("Suspense");case 19:return Ii("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Nf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xo:return"Fragment";case So:return"Portal";case _f:return"Profiler";case Ep:return"StrictMode";case Tf:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case M0:return(e.displayName||"Context")+".Consumer";case I0:return(e._context.displayName||"Context")+".Provider";case kp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bp:return t=e.displayName||null,t!==null?t:Nf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Nf(e(t))}catch{}}return null}function hb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nf(t);case 8:return t===Ep?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function D0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mb(e){var t=D0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ta(e){e._valueTracker||(e._valueTracker=mb(e))}function F0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=D0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Af(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function z0(e,t){t=t.checked,t!=null&&xp(e,"checked",t,!1)}function Pf(e,t){z0(e,t);var n=xr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Im(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jf(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mi=Array.isArray;function Po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yb=["Webkit","ms","Moz","O"];Object.keys(Vi).forEach(function(e){yb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vi[t]=Vi[e]})});function V0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vi.hasOwnProperty(e)&&Vi[e]?(""+t).trim():t+"px"}function K0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=V0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var vb=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mf(e,t){if(t){if(vb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Bf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Df=null;function Cp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ff=null,jo=null,Lo=null;function Dm(e){if(e=Fs(e)){if(typeof Ff!="function")throw Error(R(280));var t=e.stateNode;t&&(t=du(t),Ff(e.stateNode,e.type,t))}}function G0(e){jo?Lo?Lo.push(e):Lo=[e]:jo=e}function q0(){if(jo){var e=jo,t=Lo;if(Lo=jo=null,Dm(e),t)for(e=0;e>>=0,e===0?32:31-(_b(e)/Tb|0)|0}var ra=64,oa=4194304;function Bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Bi(a):(i&=s,i!==0&&(r=Bi(i)))}else s=n&~o,s!==0?r=Bi(s):i!==0&&(r=Bi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Bs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rn(t),e[t]=n}function Pb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gi),qm=" ",Qm=!1;function h1(e,t){switch(e){case"keyup":return aC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function uC(e,t){switch(e){case"compositionend":return m1(t);case"keypress":return t.which!==32?null:(Qm=!0,qm);case"textInput":return e=t.data,e===qm&&Qm?null:e;default:return null}}function cC(e,t){if(Eo)return e==="compositionend"||!Pp&&h1(e,t)?(e=d1(),ja=Rp=ur=null,Eo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Zm(n)}}function w1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?w1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S1(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function jp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wC(e){var t=S1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&w1(n.ownerDocument.documentElement,n)){if(r!==null&&jp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ey(n,i);var s=ey(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ko=null,Kf=null,Qi=null,Gf=!1;function ty(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gf||ko==null||ko!==fl(r)||(r=ko,"selectionStart"in r&&jp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qi&&ys(Qi,r)||(Qi=r,r=gl(Kf,"onSelect"),0Oo||(e.current=Zf[Oo],Zf[Oo]=null,Oo--)}function he(e,t){Oo++,Zf[Oo]=e.current,e.current=t}var Er={},tt=Cr(Er),ft=Cr(!1),Ur=Er;function Ho(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return e=e.childContextTypes,e!=null}function Sl(){ye(ft),ye(tt)}function ly(e,t,n){if(tt.current!==Er)throw Error(R(168));he(tt,t),he(ft,n)}function T1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,hb(e)||"Unknown",o));return be({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Ur=tt.current,he(tt,e),he(ft,ft.current),!0}function uy(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=T1(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ye(ft),ye(tt),he(tt,e)):ye(ft),he(ft,n)}var Ln=null,pu=!1,Mc=!1;function R1(e){Ln===null?Ln=[e]:Ln.push(e)}function NC(e){pu=!0,R1(e)}function Or(){if(!Mc&&Ln!==null){Mc=!0;var e=0,t=ue;try{var n=Ln;for(ue=1;e>=s,o-=s,Bn=1<<32-rn(t)+o|n<O?(T=b,b=null):T=b.sibling;var $=f(m,b,y[O],E);if($===null){b===null&&(b=T);break}e&&b&&$.alternate===null&&t(m,b),p=i($,p,O),x===null?C=$:x.sibling=$,x=$,b=T}if(O===y.length)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;OO?(T=b,b=null):T=b.sibling;var A=f(m,b,$.value,E);if(A===null){b===null&&(b=T);break}e&&b&&A.alternate===null&&t(m,b),p=i(A,p,O),x===null?C=A:x.sibling=A,x=A,b=T}if($.done)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;!$.done;O++,$=y.next())$=d(m,$.value,E),$!==null&&(p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return xe&&Nr(m,O),C}for(b=r(m,b);!$.done;O++,$=y.next())$=g(b,m,O,$.value,E),$!==null&&(e&&$.alternate!==null&&b.delete($.key===null?O:$.key),p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return e&&b.forEach(function(U){return t(m,U)}),xe&&Nr(m,O),C}function k(m,p,y,E){if(typeof y=="object"&&y!==null&&y.type===xo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ea:e:{for(var C=y.key,x=p;x!==null;){if(x.key===C){if(C=y.type,C===xo){if(x.tag===7){n(m,x.sibling),p=o(x,y.props.children),p.return=m,m=p;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nr&&dy(C)===x.type){n(m,x.sibling),p=o(x,y.props),p.ref=Ci(m,x,y),p.return=m,m=p;break e}n(m,x);break}else t(m,x);x=x.sibling}y.type===xo?(p=Br(y.props.children,m.mode,E,y.key),p.return=m,m=p):(E=Ua(y.type,y.key,y.props,null,m.mode,E),E.ref=Ci(m,p,y),E.return=m,m=E)}return s(m);case So:e:{for(x=y.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Vc(y,m.mode,E),p.return=m,m=p}return s(m);case nr:return x=y._init,k(m,p,x(y._payload),E)}if(Mi(y))return w(m,p,y,E);if(Si(y))return S(m,p,y,E);fa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,y),p.return=m,m=p):(n(m,p),p=Hc(y,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return k}var Ko=j1(!0),L1=j1(!1),bl=Cr(null),Cl=null,To=null,Bp=null;function Dp(){Bp=To=Cl=null}function Fp(e){var t=bl.current;ye(bl),e._currentValue=t}function nd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mo(e,t){Cl=e,Bp=To=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Bp!==e)if(e={context:e,memoizedValue:t,next:null},To===null){if(Cl===null)throw Error(R(308));To=e,Cl.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var jr=null;function zp(e){jr===null?jr=[e]:jr.push(e)}function I1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,zp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rr=!1;function Up(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function M1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,zp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}function py(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ol(e,t,n,r){var o=e.updateQueue;rr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,g=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,S=a;switch(f=t,g=n,S.tag){case 1:if(w=S.payload,typeof w=="function"){d=w.call(g,d,f);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,f=typeof w=="function"?w.call(g,d,f):w,f==null)break e;d=be({},d,f);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else g={eventTime:g,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=d):c=c.next=g,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vr|=s,e.lanes=s,e.memoizedState=d}}function hy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Dc.transition;Dc.transition={};try{e(!1),t()}finally{ue=n,Dc.transition=r}}function ew(){return Ft().memoizedState}function LC(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tw(e))nw(t,n);else if(n=I1(e,t,n,r),n!==null){var o=st();on(n,e,r,o),rw(n,t,r)}}function IC(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tw(e))nw(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ln(a,s)){var l=t.interleaved;l===null?(o.next=o,zp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=I1(e,t,o,r),n!==null&&(o=st(),on(n,e,r,o),rw(n,t,r))}}function tw(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function nw(e,t){Yi=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}var Tl={readContext:Dt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},MC={readContext:Dt,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:yy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,Q1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=LC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:my,useDebugValue:Yp,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=my(!1),t=e[0];return e=jC.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=pn();if(xe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Fe===null)throw Error(R(349));Hr&30||z1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,yy(W1.bind(null,r,i,e),[e]),r.flags|=2048,bs(9,U1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pn(),t=Fe.identifierPrefix;if(xe){var n=Dn,r=Bn;n=(r&~(1<<32-rn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Es++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function db(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Nf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xo:return"Fragment";case So:return"Portal";case _f:return"Profiler";case Ep:return"StrictMode";case Tf:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case L0:return(e.displayName||"Context")+".Consumer";case j0:return(e._context.displayName||"Context")+".Provider";case kp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bp:return t=e.displayName||null,t!==null?t:Nf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Nf(e(t))}catch{}}return null}function pb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nf(t);case 8:return t===Ep?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function M0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hb(e){var t=M0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ta(e){e._valueTracker||(e._valueTracker=hb(e))}function B0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=M0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Af(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function D0(e,t){t=t.checked,t!=null&&xp(e,"checked",t,!1)}function Pf(e,t){D0(e,t);var n=xr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jf(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ii=Array.isArray;function Po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function us(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mb=["Webkit","ms","Moz","O"];Object.keys(Hi).forEach(function(e){mb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hi[t]=Hi[e]})});function W0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hi.hasOwnProperty(e)&&Hi[e]?(""+t).trim():t+"px"}function H0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=W0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var yb=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mf(e,t){if(t){if(yb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Bf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Df=null;function Cp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ff=null,jo=null,Lo=null;function Mm(e){if(e=Ds(e)){if(typeof Ff!="function")throw Error(R(280));var t=e.stateNode;t&&(t=du(t),Ff(e.stateNode,e.type,t))}}function V0(e){jo?Lo?Lo.push(e):Lo=[e]:jo=e}function K0(){if(jo){var e=jo,t=Lo;if(Lo=jo=null,Mm(e),t)for(e=0;e>>=0,e===0?32:31-($b(e)/_b|0)|0}var ra=64,oa=4194304;function Mi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Mi(a):(i&=s,i!==0&&(r=Mi(i)))}else s=n&~o,s!==0?r=Mi(s):i!==0&&(r=Mi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ms(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function Ab(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ki),Km=" ",Gm=!1;function d1(e,t){switch(e){case"keyup":return sC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function p1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function lC(e,t){switch(e){case"compositionend":return p1(t);case"keypress":return t.which!==32?null:(Gm=!0,Km);case"textInput":return e=t.data,e===Km&&Gm?null:e;default:return null}}function uC(e,t){if(Eo)return e==="compositionend"||!Pp&&d1(e,t)?(e=c1(),ja=Rp=ur=null,Eo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xm(n)}}function v1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?v1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function g1(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function jp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function gC(e){var t=g1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&v1(n.ownerDocument.documentElement,n)){if(r!==null&&jp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jm(n,i);var s=Jm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ko=null,Kf=null,qi=null,Gf=!1;function Zm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gf||ko==null||ko!==fl(r)||(r=ko,"selectionStart"in r&&jp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qi&&ms(qi,r)||(qi=r,r=gl(Kf,"onSelect"),0Oo||(e.current=Zf[Oo],Zf[Oo]=null,Oo--)}function he(e,t){Oo++,Zf[Oo]=e.current,e.current=t}var Er={},et=Cr(Er),ft=Cr(!1),Ur=Er;function Ho(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return e=e.childContextTypes,e!=null}function Sl(){ye(ft),ye(et)}function sy(e,t,n){if(et.current!==Er)throw Error(R(168));he(et,t),he(ft,n)}function $1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,pb(e)||"Unknown",o));return be({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Ur=et.current,he(et,e),he(ft,ft.current),!0}function ay(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=$1(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ye(ft),ye(et),he(et,e)):ye(ft),he(ft,n)}var jn=null,pu=!1,Mc=!1;function _1(e){jn===null?jn=[e]:jn.push(e)}function RC(e){pu=!0,_1(e)}function Or(){if(!Mc&&jn!==null){Mc=!0;var e=0,t=ue;try{var n=jn;for(ue=1;e>=s,o-=s,Mn=1<<32-nn(t)+o|n<O?(T=b,b=null):T=b.sibling;var $=f(m,b,y[O],E);if($===null){b===null&&(b=T);break}e&&b&&$.alternate===null&&t(m,b),p=i($,p,O),x===null?C=$:x.sibling=$,x=$,b=T}if(O===y.length)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;OO?(T=b,b=null):T=b.sibling;var A=f(m,b,$.value,E);if(A===null){b===null&&(b=T);break}e&&b&&A.alternate===null&&t(m,b),p=i(A,p,O),x===null?C=A:x.sibling=A,x=A,b=T}if($.done)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;!$.done;O++,$=y.next())$=d(m,$.value,E),$!==null&&(p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return xe&&Nr(m,O),C}for(b=r(m,b);!$.done;O++,$=y.next())$=v(b,m,O,$.value,E),$!==null&&(e&&$.alternate!==null&&b.delete($.key===null?O:$.key),p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return e&&b.forEach(function(U){return t(m,U)}),xe&&Nr(m,O),C}function k(m,p,y,E){if(typeof y=="object"&&y!==null&&y.type===xo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ea:e:{for(var C=y.key,x=p;x!==null;){if(x.key===C){if(C=y.type,C===xo){if(x.tag===7){n(m,x.sibling),p=o(x,y.props.children),p.return=m,m=p;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nr&&cy(C)===x.type){n(m,x.sibling),p=o(x,y.props),p.ref=bi(m,x,y),p.return=m,m=p;break e}n(m,x);break}else t(m,x);x=x.sibling}y.type===xo?(p=Br(y.props.children,m.mode,E,y.key),p.return=m,m=p):(E=Ua(y.type,y.key,y.props,null,m.mode,E),E.ref=bi(m,p,y),E.return=m,m=E)}return s(m);case So:e:{for(x=y.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Vc(y,m.mode,E),p.return=m,m=p}return s(m);case nr:return x=y._init,k(m,p,x(y._payload),E)}if(Ii(y))return g(m,p,y,E);if(wi(y))return S(m,p,y,E);fa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,y),p.return=m,m=p):(n(m,p),p=Hc(y,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return k}var Ko=A1(!0),P1=A1(!1),bl=Cr(null),Cl=null,To=null,Bp=null;function Dp(){Bp=To=Cl=null}function Fp(e){var t=bl.current;ye(bl),e._currentValue=t}function nd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mo(e,t){Cl=e,Bp=To=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Bp!==e)if(e={context:e,memoizedValue:t,next:null},To===null){if(Cl===null)throw Error(R(308));To=e,Cl.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var jr=null;function zp(e){jr===null?jr=[e]:jr.push(e)}function j1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,zp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rr=!1;function Up(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function L1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,zp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}function fy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ol(e,t,n,r){var o=e.updateQueue;rr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,v=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,S=a;switch(f=t,v=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(v,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,f=typeof g=="function"?g.call(v,d,f):g,f==null)break e;d=be({},d,f);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else v={eventTime:v,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vr|=s,e.lanes=s,e.memoizedState=d}}function dy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Dc.transition;Dc.transition={};try{e(!1),t()}finally{ue=n,Dc.transition=r}}function J1(){return Ft().memoizedState}function jC(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Z1(e))ew(t,n);else if(n=j1(e,t,n,r),n!==null){var o=st();rn(n,e,r,o),tw(n,t,r)}}function LC(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Z1(e))ew(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,sn(a,s)){var l=t.interleaved;l===null?(o.next=o,zp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=j1(e,t,o,r),n!==null&&(o=st(),rn(n,e,r,o),tw(n,t,r))}}function Z1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function ew(e,t){Qi=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}var Tl={readContext:Dt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},IC={readContext:Dt,useCallback:function(e,t){return fn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:hy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,G1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=fn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=fn();return e={current:e},t.memoizedState=e},useState:py,useDebugValue:Yp,useDeferredValue:function(e){return fn().memoizedState=e},useTransition:function(){var e=py(!1),t=e[0];return e=PC.bind(null,e[1]),fn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=fn();if(xe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Fe===null)throw Error(R(349));Hr&30||D1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hy(z1.bind(null,r,i,e),[e]),r.flags|=2048,ks(9,F1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=fn(),t=Fe.identifierPrefix;if(xe){var n=Bn,r=Mn;n=(r&~(1<<32-nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gn]=t,e[ws]=r,pw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oQo&&(t.flags|=128,r=!0,Oi(i,!1),t.lanes=4194304)}else{if(!r)if(e=$l(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>Qo&&n!==1073741824&&(t.flags|=128,r=!0,Oi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=Ee.current,he(Ee,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return nh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function VC(e,t){switch(Ip(t),t.tag){case 1:return dt(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),ye(ft),ye(tt),Vp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hp(t),null;case 13:if(ye(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Ee),null;case 4:return Go(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return nh(),null;case 24:return null;default:return null}}var pa=!1,et=!1,KC=typeof WeakSet=="function"?WeakSet:Set,L=null;function Ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function fd(e,t,n){try{n()}catch(r){$e(e,t,r)}}var $y=!1;function GC(e,t){if(qf=yl,e=S1(),jp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(g=d.firstChild)!==null;)f=d,d=g;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(g=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qf={focusedElem:e,selectionRange:n},yl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,k=w.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Jt(t.type,S),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){$e(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return w=$y,$y=!1,w}function Xi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&fd(t,n,i)}o=o.next}while(o!==r)}}function yu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yw(e){var t=e.alternate;t!==null&&(e.alternate=null,yw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gn],delete t[ws],delete t[Jf],delete t[TC],delete t[RC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vw(e){return e.tag===5||e.tag===3||e.tag===4}function _y(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wl));else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}function hd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(hd(e,t,n),e=e.sibling;e!==null;)hd(e,t,n),e=e.sibling}var He=null,Zt=!1;function er(e,t,n){for(n=n.child;n!==null;)gw(e,t,n),n=n.sibling}function gw(e,t,n){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:et||Ro(n,t);case 6:var r=He,o=Zt;He=null,er(e,t,n),He=r,Zt=o,He!==null&&(Zt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Zt?(e=He,n=n.stateNode,e.nodeType===8?Ic(e.parentNode,n):e.nodeType===1&&Ic(e,n),hs(e)):Ic(He,n.stateNode));break;case 4:r=He,o=Zt,He=n.stateNode.containerInfo,Zt=!0,er(e,t,n),He=r,Zt=o;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&fd(n,t,s),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!et&&(Ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,er(e,t,n),et=r):er(e,t,n);break;default:er(e,t,n)}}function Ty(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new KC),t.forEach(function(r){var o=nO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*QC(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Al=0,ne&6)throw Error(R(331));var o=ne;for(ne|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l_e()-eh?Mr(e,0):Zp|=n),pt(e,t)}function Ow(e,t){t===0&&(e.mode&1?(t=oa,oa<<=1,!(oa&130023424)&&(oa=4194304)):t=1);var n=st();e=Vn(e,t),e!==null&&(Bs(e,t,n),pt(e,n))}function tO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ow(e,n)}function nO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Ow(e,n)}var $w;$w=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,WC(e,t,n);ct=!!(e.flags&131072)}else ct=!1,xe&&t.flags&1048576&&N1(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Da(e,t),e=t.pendingProps;var o=Ho(t,tt.current);Mo(t,n),o=Gp(null,t,r,e,o,n);var i=qp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(i=!0,xl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Up(t),o.updater=mu,t.stateNode=o,o._reactInternals=t,od(t,r,e,n),t=ad(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Lp(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=oO(r),e=Jt(r,e),o){case 0:t=sd(null,t,r,e,n);break e;case 1:t=by(null,t,r,e,n);break e;case 11:t=Ey(null,t,r,e,n);break e;case 14:t=ky(null,t,r,Jt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),sd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),by(e,t,r,o,n);case 3:e:{if(cw(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,M1(e,t),Ol(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qo(Error(R(423)),t),t=Cy(e,t,r,n,o);break e}else if(r!==o){o=qo(Error(R(424)),t),t=Cy(e,t,r,n,o);break e}else for(St=mr(t.stateNode.containerInfo.firstChild),xt=t,xe=!0,tn=null,n=L1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===o){t=Kn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return B1(t),e===null&&td(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yf(r,o)?s=null:i!==null&&Yf(r,i)&&(t.flags|=32),uw(e,t),ot(e,t,s,n),t.child;case 6:return e===null&&td(t),null;case 13:return fw(e,t,n);case 4:return Wp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Ey(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(ln(i.value,s)){if(i.children===o.children&&!ft.current){t=Kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Un(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),nd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mo(t,n),o=Dt(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=Jt(r,t.pendingProps),o=Jt(r.type,o),ky(e,t,r,o,n);case 15:return aw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Da(e,t),t.tag=1,dt(r)?(e=!0,xl(t)):e=!1,Mo(t,n),ow(t,r,o),od(t,r,o,n),ad(null,t,r,!0,e,n);case 19:return dw(e,t,n);case 22:return lw(e,t,n)}throw Error(R(156,t.tag))};function _w(e,t){return t1(e,t)}function rO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new rO(e,t,n,r)}function oh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oO(e){if(typeof e=="function")return oh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kp)return 11;if(e===bp)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ua(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")oh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xo:return Br(n.children,o,i,t);case Ep:s=8,o|=8;break;case _f:return e=It(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Tf:return e=It(13,n,t,o),e.elementType=Tf,e.lanes=i,e;case Rf:return e=It(19,n,t,o),e.elementType=Rf,e.lanes=i,e;case B0:return gu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case I0:s=10;break e;case M0:s=9;break e;case kp:s=11;break e;case bp:s=14;break e;case nr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=It(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function gu(e,t,n,r){return e=It(22,e,r,t),e.elementType=B0,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ih(e,t,n,r,o,i,s,a,l){return e=new iO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=It(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Up(i),e}function sO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Aw)}catch{}}Aw(),A0.exports=Ct;var Pw=A0.exports;const Ir=si(Pw),My={disabled:!1},jw=te.createContext(null);var fO=function(t){return t.scrollTop},Fi="unmounted",or="exited",Pt="entering",Mn="entered",Yo="exiting",Jn=function(e){Kk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=or,i.appearStatus=Pt):l=Mn:r.unmountOnExit||r.mountOnEnter?l=Fi:l=or,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Fi?{status:or}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Pt&&s!==Mn&&(i=Pt):(s===Pt||s===Mn)&&(i=Yo)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);s&&fO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Fi})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ir.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||My.disabled){this.safeSetState({status:Mn},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:Mn},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||My.disabled){this.safeSetState({status:or},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yo},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:or},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Fi)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=un(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return te.createElement(jw.Provider,{value:null},typeof s=="function"?s(o,a):te.cloneElement(te.Children.only(s),a))},t}(te.Component);Jn.contextType=jw;Jn.propTypes={};function io(){}Jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:io,onEntering:io,onEntered:io,onExit:io,onExiting:io,onExited:io};Jn.UNMOUNTED=Fi;Jn.EXITED=or;Jn.ENTERING=Pt;Jn.ENTERED=Mn;Jn.EXITING=Yo;const ku=!!(typeof window<"u"&&window.document&&window.document.createElement);var wd=!1,Sd=!1;try{var Kc={get passive(){return wd=!0},get once(){return Sd=wd=!0}};ku&&(window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,!0))}catch{}function dO(e,t,n,r){if(r&&typeof r!="boolean"&&!Sd){var o=r.once,i=r.capture,s=n;!Sd&&o&&(s=n.__once||function a(l){this.removeEventListener(t,a,i),n.call(this,l)},n.__once=s),e.addEventListener(t,s,wd?r:i)}e.addEventListener(t,n,r)}function pO(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Fn(e,t,n,r){return dO(e,t,n,r),function(){pO(e,t,n,r)}}function hO(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function mO(e){var t=zn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function yO(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||hO(e,"transitionend",!0)},t+n),i=Fn(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function vO(e,t,n,r){n==null&&(n=mO(e)||0);var o=yO(e,n,r),i=Fn(e,"transitionend",t);return function(){o(),i()}}function By(e,t){const n=zn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function uh(e,t){const n=By(e,"transitionDuration"),r=By(e,"transitionDelay"),o=vO(e,i=>{i.target===e&&(o(),t(i))},n+r)}function _i(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}function Lw(e){e.offsetHeight}const Dy=e=>!e||typeof e=="function"?e:t=>{e.current=t};function gO(e,t){const n=Dy(e),r=Dy(t);return o=>{n&&n(o),r&&r(o)}}function Yr(e,t){return h.useMemo(()=>gO(e,t),[e,t])}function Ll(e){return e&&"setState"in e?Ir.findDOMNode(e):e??null}const ch=te.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:s,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),f=Yr(d,l),g=x=>{f(Ll(x))},w=x=>b=>{x&&d.current&&x(d.current,b)},S=h.useCallback(w(e),[e]),k=h.useCallback(w(t),[t]),m=h.useCallback(w(n),[n]),p=h.useCallback(w(r),[r]),y=h.useCallback(w(o),[o]),E=h.useCallback(w(i),[i]),C=h.useCallback(w(s),[s]);return v.jsx(Jn,{ref:c,...u,onEnter:S,onEntered:m,onEntering:k,onExit:p,onExited:E,onExiting:y,addEndListener:C,nodeRef:d,children:typeof a=="function"?(x,b)=>a(x,{...b,ref:g}):te.cloneElement(a,{ref:g})})}),wO={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function SO(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=wO[e];return r+parseInt(zn(t,o[0]),10)+parseInt(zn(t,o[1]),10)}const xO={[or]:"collapse",[Yo]:"collapsing",[Pt]:"collapsing",[Mn]:"collapse show"},bu=te.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:i,children:s,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:g=SO,...w},S)=>{const k=typeof a=="function"?a():a,m=h.useMemo(()=>_i(x=>{x.style[k]="0"},e),[k,e]),p=h.useMemo(()=>_i(x=>{const b=`scroll${k[0].toUpperCase()}${k.slice(1)}`;x.style[k]=`${x[b]}px`},t),[k,t]),y=h.useMemo(()=>_i(x=>{x.style[k]=null},n),[k,n]),E=h.useMemo(()=>_i(x=>{x.style[k]=`${g(k,x)}px`,Lw(x)},r),[r,g,k]),C=h.useMemo(()=>_i(x=>{x.style[k]=null},o),[k,o]);return v.jsx(ch,{ref:S,addEndListener:uh,...w,"aria-expanded":w.role?l:null,onEnter:m,onEntering:p,onEntered:y,onExit:E,onExiting:C,childRef:s.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(x,b)=>te.cloneElement(s,{...b,className:M(i,s.props.className,xO[x],k==="width"&&"collapse-horizontal")})})});function EO(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function it(e){const t=EO(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fh=e=>h.forwardRef((t,n)=>v.jsx("div",{...t,ref:n,className:M(t.className,e)}));function Fy(){return h.useState(null)}function dh(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function kO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const bO=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",CO=typeof document<"u",Il=CO||bO?h.useLayoutEffect:h.useEffect,OO=["as","disabled"];function $O(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function _O(e){return!e||e.trim()==="#"}function Iw({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&_O(n))&&f.preventDefault(),t){f.stopPropagation();return}s==null||s(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:c,onKeyDown:d},u]}const TO=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=$O(e,OO);const[i,{tagName:s}]=Iw(Object.assign({tagName:n,disabled:r},o));return v.jsx(s,Object.assign({},o,i,{ref:t}))});TO.displayName="Button";const RO={[Pt]:"show",[Mn]:"show"},Os=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},a=h.useCallback((l,u)=>{Lw(l),r==null||r(l,u)},[r]);return v.jsx(ch,{ref:i,addEndListener:uh,...s,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:M("fade",e,t.props.className,RO[l],n[l])})})});Os.displayName="Fade";const NO={"aria-label":pe.string,onClick:pe.func,variant:pe.oneOf(["white"])},Cu=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>v.jsx("button",{ref:o,type:"button",className:M("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Cu.displayName="CloseButton";Cu.propTypes=NO;const Mw=h.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:o,as:i="span",...s},a)=>{const l=z(e,"badge");return v.jsx(i,{ref:a,...s,className:M(o,l,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});Mw.displayName="Badge";const ci=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=z(t,"btn"),[c,{tagName:d}]=Iw({tagName:e,disabled:i,...a}),f=d;return v.jsx(f,{...c,...a,ref:l,disabled:i,className:M(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})});ci.displayName="Button";const ph=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-body"),v.jsx(n,{ref:o,className:M(e,t),...r})));ph.displayName="CardBody";const Bw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-footer"),v.jsx(n,{ref:o,className:M(e,t),...r})));Bw.displayName="CardFooter";const Dw=h.createContext(null);Dw.displayName="CardHeaderContext";const Fw=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"card-header"),s=h.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return v.jsx(Dw.Provider,{value:s,children:v.jsx(n,{ref:o,...r,className:M(t,i)})})});Fw.displayName="CardHeader";const zw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=z(e,"card-img");return v.jsx(r,{ref:i,className:M(n?`${s}-${n}`:s,t),...o})});zw.displayName="CardImg";const Uw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-img-overlay"),v.jsx(n,{ref:o,className:M(e,t),...r})));Uw.displayName="CardImgOverlay";const Ww=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=z(t,"card-link"),v.jsx(n,{ref:o,className:M(e,t),...r})));Ww.displayName="CardLink";const AO=fh("h6"),Hw=h.forwardRef(({className:e,bsPrefix:t,as:n=AO,...r},o)=>(t=z(t,"card-subtitle"),v.jsx(n,{ref:o,className:M(e,t),...r})));Hw.displayName="CardSubtitle";const Vw=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=z(t,"card-text"),v.jsx(n,{ref:o,className:M(e,t),...r})));Vw.displayName="CardText";const PO=fh("h5"),Kw=h.forwardRef(({className:e,bsPrefix:t,as:n=PO,...r},o)=>(t=z(t,"card-title"),v.jsx(n,{ref:o,className:M(e,t),...r})));Kw.displayName="CardTitle";const Gw=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=z(e,"card");return v.jsx(a,{ref:u,...l,className:M(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?v.jsx(ph,{children:s}):s})});Gw.displayName="Card";const Do=Object.assign(Gw,{Img:zw,Title:Kw,Subtitle:Hw,Body:ph,Link:Ww,Text:Vw,Header:Fw,Footer:Bw,ImgOverlay:Uw});function jO(e){const t=h.useRef(e);return t.current=e,t}function qw(e){const t=jO(e);h.useEffect(()=>()=>t.current(),[])}const xd=2**31-1;function Qw(e,t,n){const r=n-Date.now();e.current=r<=xd?setTimeout(t,r):setTimeout(()=>Qw(e,t,n),xd)}function Yw(){const e=dh(),t=h.useRef();return qw(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,i=0){e()&&(n(),i<=xd?t.current=setTimeout(o,i):Qw(t,o,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function LO(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}function IO({as:e,bsPrefix:t,className:n,...r}){t=z(t,"col");const o=O0(),i=$0(),s=[],a=[];return o.forEach(l=>{const u=r[l];delete r[l];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const g=l!==i?`-${l}`:"";c&&s.push(c===!0?`${t}${g}`:`${t}${g}-${c}`),f!=null&&a.push(`order${g}-${f}`),d!=null&&a.push(`offset${g}-${d}`)}),[{...r,className:M(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}const hn=h.forwardRef((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=IO(e);return v.jsx(o,{...r,ref:t,className:M(n,!s.length&&i)})});hn.displayName="Col";const Xw=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=z(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return v.jsx(n,{ref:i,...o,className:M(r,t?`${s}${a}`:s)})});Xw.displayName="Container";var MO=Function.prototype.bind.call(Function.prototype.call,[].slice);function so(e,t){return MO(e.querySelectorAll(t))}var zy=Object.prototype.hasOwnProperty;function Uy(e,t,n){for(n of e.keys())if(es(n,t))return n}function es(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&es(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=Uy(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=Uy(t,o),!o)||!es(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(zy.call(e,n)&&++r&&!zy.call(t,n)||!(n in t)||!es(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function BO(e){const t=dh();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ht="top",zt="bottom",Ut="right",mt="left",hh="auto",Us=[ht,zt,Ut,mt],Xo="start",$s="end",DO="clippingParents",Jw="viewport",Ti="popper",FO="reference",Wy=Us.reduce(function(e,t){return e.concat([t+"-"+Xo,t+"-"+$s])},[]),Zw=[].concat(Us,[hh]).reduce(function(e,t){return e.concat([t,t+"-"+Xo,t+"-"+$s])},[]),zO="beforeRead",UO="read",WO="afterRead",HO="beforeMain",VO="main",KO="afterMain",GO="beforeWrite",qO="write",QO="afterWrite",YO=[zO,UO,WO,HO,VO,KO,GO,qO,QO];function xn(e){return e.split("-")[0]}function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mh(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Dr=Math.max,Ml=Math.min,Jo=Math.round;function Ed(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function eS(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Zo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&En(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var s=Gr(e)?bt(e):window,a=s.visualViewport,l=!eS()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function yh(e){var t=Zo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function tS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Gn(e){return bt(e).getComputedStyle(e)}function XO(e){return["table","td","th"].indexOf(kr(e))>=0}function $r(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return kr(e)==="html"?e:e.assignedSlot||e.parentNode||(mh(e)?e.host:null)||$r(e)}function Hy(e){return!En(e)||Gn(e).position==="fixed"?null:e.offsetParent}function JO(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&En(e)){var r=Gn(e);if(r.position==="fixed")return null}var o=Ou(e);for(mh(o)&&(o=o.host);En(o)&&["html","body"].indexOf(kr(o))<0;){var i=Gn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ws(e){for(var t=bt(e),n=Hy(e);n&&XO(n)&&Gn(n).position==="static";)n=Hy(n);return n&&(kr(n)==="html"||kr(n)==="body"&&Gn(n).position==="static")?t:n||JO(e)||t}function vh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ts(e,t,n){return Dr(e,Ml(t,n))}function ZO(e,t,n){var r=ts(e,t,n);return r>n?n:r}function nS(){return{top:0,right:0,bottom:0,left:0}}function rS(e){return Object.assign({},nS(),e)}function oS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var e2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,rS(typeof t!="number"?t:oS(t,Us))};function t2(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=xn(n.placement),l=vh(a),u=[mt,Ut].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=e2(o.padding,n),f=yh(i),g=l==="y"?ht:mt,w=l==="y"?zt:Ut,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],k=s[l]-n.rects.reference[l],m=Ws(i),p=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=S/2-k/2,E=d[g],C=p-f[c]-d[w],x=p/2-f[c]/2+y,b=ts(E,x,C),O=l;n.modifiersData[r]=(t={},t[O]=b,t.centerOffset=b-x,t)}}function n2(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||tS(t.elements.popper,o)&&(t.elements.arrow=o))}const r2={name:"arrow",enabled:!0,phase:"main",fn:t2,effect:n2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var o2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function Vy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,g=f===void 0?0:f,w=s.y,S=w===void 0?0:w,k=typeof c=="function"?c({x:g,y:S}):{x:g,y:S};g=k.x,S=k.y;var m=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),y=mt,E=ht,C=window;if(u){var x=Ws(n),b="clientHeight",O="clientWidth";if(x===bt(n)&&(x=$r(n),Gn(x).position!=="static"&&a==="absolute"&&(b="scrollHeight",O="scrollWidth")),x=x,o===ht||(o===mt||o===Ut)&&i===$s){E=zt;var T=d&&x===C&&C.visualViewport?C.visualViewport.height:x[b];S-=T-r.height,S*=l?1:-1}if(o===mt||(o===ht||o===zt)&&i===$s){y=Ut;var $=d&&x===C&&C.visualViewport?C.visualViewport.width:x[O];g-=$-r.width,g*=l?1:-1}}var A=Object.assign({position:a},u&&o2),U=c===!0?i2({x:g,y:S},bt(n)):{x:g,y:S};if(g=U.x,S=U.y,l){var B;return Object.assign({},A,(B={},B[E]=p?"0":"",B[y]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",B))}return Object.assign({},A,(t={},t[E]=p?S+"px":"",t[y]=m?g+"px":"",t.transform="",t))}function s2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:xn(t.placement),variation:ei(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Vy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const a2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s2,data:{}};var ya={passive:!0};function l2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ya)}),a&&l.addEventListener("resize",n.update,ya),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ya)}),a&&l.removeEventListener("resize",n.update,ya)}}const u2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:l2,data:{}};var c2={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return c2[t]})}var f2={start:"end",end:"start"};function Ky(e){return e.replace(/start|end/g,function(t){return f2[t]})}function gh(e){var t=bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wh(e){return Zo($r(e)).left+gh(e).scrollLeft}function d2(e,t){var n=bt(e),r=$r(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=eS();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+wh(e),y:l}}function p2(e){var t,n=$r(e),r=gh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wh(e),l=-r.scrollTop;return Gn(o||n).direction==="rtl"&&(a+=Dr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Sh(e){var t=Gn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function iS(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:En(e)&&Sh(e)?e:iS(Ou(e))}function ns(e,t){var n;t===void 0&&(t=[]);var r=iS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=bt(r),s=o?[i].concat(i.visualViewport||[],Sh(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(ns(Ou(s)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function h2(e,t){var n=Zo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Gy(e,t,n){return t===Jw?kd(d2(e,n)):Gr(t)?h2(t,n):kd(p2($r(e)))}function m2(e){var t=ns(Ou(e)),n=["absolute","fixed"].indexOf(Gn(e).position)>=0,r=n&&En(e)?Ws(e):e;return Gr(r)?t.filter(function(o){return Gr(o)&&tS(o,r)&&kr(o)!=="body"}):[]}function y2(e,t,n,r){var o=t==="clippingParents"?m2(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Gy(e,u,r);return l.top=Dr(c.top,l.top),l.right=Ml(c.right,l.right),l.bottom=Ml(c.bottom,l.bottom),l.left=Dr(c.left,l.left),l},Gy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function sS(e){var t=e.reference,n=e.element,r=e.placement,o=r?xn(r):null,i=r?ei(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case ht:l={x:s,y:t.y-n.height};break;case zt:l={x:s,y:t.y+t.height};break;case Ut:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?vh(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Xo:l[u]=l[u]-(t[c]/2-n[c]/2);break;case $s:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function _s(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?DO:a,u=n.rootBoundary,c=u===void 0?Jw:u,d=n.elementContext,f=d===void 0?Ti:d,g=n.altBoundary,w=g===void 0?!1:g,S=n.padding,k=S===void 0?0:S,m=rS(typeof k!="number"?k:oS(k,Us)),p=f===Ti?FO:Ti,y=e.rects.popper,E=e.elements[w?p:f],C=y2(Gr(E)?E:E.contextElement||$r(e.elements.popper),l,c,s),x=Zo(e.elements.reference),b=sS({reference:x,element:y,strategy:"absolute",placement:o}),O=kd(Object.assign({},y,b)),T=f===Ti?O:x,$={top:C.top-T.top+m.top,bottom:T.bottom-C.bottom+m.bottom,left:C.left-T.left+m.left,right:T.right-C.right+m.right},A=e.modifiersData.offset;if(f===Ti&&A){var U=A[o];Object.keys($).forEach(function(B){var K=[Ut,zt].indexOf(B)>=0?1:-1,W=[ht,zt].indexOf(B)>=0?"y":"x";$[B]+=U[W]*K})}return $}function v2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Zw:l,c=ei(r),d=c?a?Wy:Wy.filter(function(w){return ei(w)===c}):Us,f=d.filter(function(w){return u.indexOf(w)>=0});f.length===0&&(f=d);var g=f.reduce(function(w,S){return w[S]=_s(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[xn(S)],w},{});return Object.keys(g).sort(function(w,S){return g[w]-g[S]})}function g2(e){if(xn(e)===hh)return[];var t=Wa(e);return[Ky(e),t,Ky(t)]}function w2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,w=g===void 0?!0:g,S=n.allowedAutoPlacements,k=t.options.placement,m=xn(k),p=m===k,y=l||(p||!w?[Wa(k)]:g2(k)),E=[k].concat(y).reduce(function(X,re){return X.concat(xn(re)===hh?v2(t,{placement:re,boundary:c,rootBoundary:d,padding:u,flipVariations:w,allowedAutoPlacements:S}):re)},[]),C=t.rects.reference,x=t.rects.popper,b=new Map,O=!0,T=E[0],$=0;$=0,W=K?"width":"height",G=_s(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),V=K?B?Ut:mt:B?zt:ht;C[W]>x[W]&&(V=Wa(V));var _=Wa(V),I=[];if(i&&I.push(G[U]<=0),a&&I.push(G[V]<=0,G[_]<=0),I.every(function(X){return X})){T=A,O=!1;break}b.set(A,I)}if(O)for(var F=w?3:1,Y=function(re){var ge=E.find(function(Me){var qe=b.get(Me);if(qe)return qe.slice(0,re).every(function(_t){return _t})});if(ge)return T=ge,"break"},Z=F;Z>0;Z--){var ve=Y(Z);if(ve==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const S2={name:"flip",enabled:!0,phase:"main",fn:w2,requiresIfExists:["offset"],data:{_skip:!1}};function qy(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qy(e){return[ht,Ut,zt,mt].some(function(t){return e[t]>=0})}function x2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=_s(t,{elementContext:"reference"}),a=_s(t,{altBoundary:!0}),l=qy(s,r),u=qy(a,o,i),c=Qy(l),d=Qy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const E2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x2};function k2(e,t,n){var r=xn(e),o=[mt,ht].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mt,Ut].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function b2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Zw.reduce(function(c,d){return c[d]=k2(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const C2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:b2};function O2(e){var t=e.state,n=e.name;t.modifiersData[n]=sS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $2={name:"popperOffsets",enabled:!0,phase:"read",fn:O2,data:{}};function _2(e){return e==="x"?"y":"x"}function T2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,g=f===void 0?!0:f,w=n.tetherOffset,S=w===void 0?0:w,k=_s(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=xn(t.placement),p=ei(t.placement),y=!p,E=vh(m),C=_2(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,O=t.rects.popper,T=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,$=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(x){if(i){var B,K=E==="y"?ht:mt,W=E==="y"?zt:Ut,G=E==="y"?"height":"width",V=x[E],_=V+k[K],I=V-k[W],F=g?-O[G]/2:0,Y=p===Xo?b[G]:O[G],Z=p===Xo?-O[G]:-b[G],ve=t.elements.arrow,X=g&&ve?yh(ve):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nS(),ge=re[K],Me=re[W],qe=ts(0,b[G],X[G]),_t=y?b[G]/2-F-qe-ge-$.mainAxis:Y-qe-ge-$.mainAxis,Tn=y?-b[G]/2+F+qe+Me+$.mainAxis:Z+qe+Me+$.mainAxis,Rn=t.elements.arrow&&Ws(t.elements.arrow),Nn=Rn?E==="y"?Rn.clientTop||0:Rn.clientLeft||0:0,Qe=(B=A==null?void 0:A[E])!=null?B:0,de=V+_t-Qe-Nn,H=V+Tn-Qe,Ue=ts(g?Ml(_,de):_,V,g?Dr(I,H):I);x[E]=Ue,U[E]=Ue-V}if(a){var rt,vt=E==="x"?ht:mt,gi=E==="x"?zt:Ut,we=x[C],qt=C==="y"?"height":"width",eo=we+k[vt],to=we-k[gi],Rr=[ht,mt].indexOf(m)!==-1,wi=(rt=A==null?void 0:A[C])!=null?rt:0,no=Rr?eo:we-b[qt]-O[qt]-wi+$.altAxis,Zn=Rr?we+b[qt]+O[qt]-wi-$.altAxis:to,N=g&&Rr?ZO(no,we,Zn):ts(g?no:eo,we,g?Zn:to);x[C]=N,U[C]=N-we}t.modifiersData[r]=U}}const R2={name:"preventOverflow",enabled:!0,phase:"main",fn:T2,requiresIfExists:["offset"]};function N2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function A2(e){return e===bt(e)||!En(e)?gh(e):N2(e)}function P2(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function j2(e,t,n){n===void 0&&(n=!1);var r=En(t),o=En(t)&&P2(t),i=$r(t),s=Zo(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kr(t)!=="body"||Sh(i))&&(a=A2(t)),En(t)?(l=Zo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=wh(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function L2(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function I2(e){var t=L2(e);return YO.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function M2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function B2(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Yy={placement:"bottom",modifiers:[],strategy:"absolute"};function Xy(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}const W2={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},H2={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},V2=[];function K2(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:i="absolute",modifiers:s=V2}=n,a=U2(n,z2);const l=h.useRef(s),u=h.useRef(),c=h.useCallback(()=>{var k;(k=u.current)==null||k.update()},[]),d=h.useCallback(()=>{var k;(k=u.current)==null||k.forceUpdate()},[]),[f,g]=BO(h.useState({placement:o,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),w=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:k})=>{const m={},p={};Object.keys(k.elements).forEach(y=>{m[y]=k.styles[y],p[y]=k.attributes[y]}),g({state:k,styles:m,attributes:p,update:c,forceUpdate:d,placement:k.placement})}}),[c,d,g]),S=h.useMemo(()=>(es(l.current,s)||(l.current=s),l.current),[s]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:i,modifiers:[...S,w,W2]})},[i,o,w,r,S]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=F2(e,t,Object.assign({},a,{placement:o,strategy:i,modifiers:[...S,H2,w]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,g(k=>Object.assign({},k,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function Ts(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var G2=function(){},q2=G2;const Q2=si(q2),Jy=()=>{};function Y2(e){return e.button===0}function X2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ha=e=>e&&("current"in e?e.current:e),Zy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function J2(e,t=Jy,{disabled:n,clickTrigger:r="click"}={}){const o=h.useRef(!1),i=h.useRef(!1),s=h.useCallback(u=>{const c=Ha(e);Q2(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!c||X2(u)||!Y2(u)||!!Ts(c,u.target)||i.current,i.current=!1},[e]),a=it(u=>{const c=Ha(e);c&&Ts(c,u.target)&&(i.current=!0)}),l=it(u=>{o.current||t(u)});h.useEffect(()=>{var u,c;if(n||e==null)return;const d=Ms(Ha(e)),f=d.defaultView||window;let g=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,w=null;Zy[r]&&(w=Fn(d,Zy[r],a,!0));const S=Fn(d,r,s,!0),k=Fn(d,r,p=>{if(p===g){g=void 0;return}l(p)});let m=[];return"ontouchstart"in d.documentElement&&(m=[].slice.call(d.body.children).map(p=>Fn(p,"mousemove",Jy))),()=>{w==null||w(),S(),k(),m.forEach(p=>p())}},[e,n,r,s,a,l])}function Z2(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function e$(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function t$({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,d,f,g;const w=Z2(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:e$(Object.assign({},w,{eventListeners:{enabled:t,options:(u=w.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},w.preventOverflow,{options:s?Object.assign({padding:s},(c=w.preventOverflow)==null?void 0:c.options):(d=w.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(f=w.offset)==null?void 0:f.options)},arrow:Object.assign({},w.arrow,{enabled:!!a,options:Object.assign({},(g=w.arrow)==null?void 0:g.options,{element:a})}),flip:Object.assign({enabled:!!r},w.flip)}))})}const n$=h.createContext(null),r$="data-rr-ui-";function o$(e){return`${r$}${e}`}const aS=h.createContext(ku?window:void 0);aS.Provider;function xh(){return h.useContext(aS)}const lS=h.createContext(null);lS.displayName="InputGroupContext";const fi=h.createContext(null);fi.displayName="NavbarContext";pe.string,pe.bool,pe.bool,pe.bool,pe.bool;const uS=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:i=!1,...s},a)=>(e=z(e,"img"),v.jsx("img",{ref:a,...s,className:M(t,n&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",i&&`${e}-thumbnail`)})));uS.displayName="Image";const i$={type:pe.string,tooltip:pe.bool,as:pe.elementType},$u=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>v.jsx(e,{...o,ref:i,className:M(t,`${n}-${r?"tooltip":"feedback"}`)}));$u.displayName="Feedback";$u.propTypes=i$;const qn=h.createContext({}),Hs=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:i=!1,as:s="input",...a},l)=>{const{controlId:u}=h.useContext(qn);return t=z(t,"form-check-input"),v.jsx(s,{...a,ref:l,type:r,id:e||u,className:M(n,t,o&&"is-valid",i&&"is-invalid")})});Hs.displayName="FormCheckInput";const Bl=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-check-label"),v.jsx("label",{...r,ref:o,htmlFor:n||i,className:M(t,e)})});Bl.displayName="FormCheckLabel";const cS=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:o=!1,disabled:i=!1,isValid:s=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:f,title:g="",type:w="checkbox",label:S,children:k,as:m="input",...p},y)=>{t=z(t,"form-check"),n=z(n,"form-switch");const{controlId:E}=h.useContext(qn),C=h.useMemo(()=>({controlId:e||E}),[E,e]),x=!k&&S!=null&&S!==!1||LO(k,Bl),b=v.jsx(Hs,{...p,type:w==="switch"?"checkbox":w,ref:y,isValid:s,isInvalid:a,disabled:i,as:m});return v.jsx(qn.Provider,{value:C,children:v.jsx("div",{style:f,className:M(d,x&&t,r&&`${t}-inline`,o&&`${t}-reverse`,w==="switch"&&n),children:k||v.jsxs(v.Fragment,{children:[b,x&&v.jsx(Bl,{title:g,children:S}),u&&v.jsx($u,{type:c,tooltip:l,children:u})]})})})});cS.displayName="FormCheck";const Dl=Object.assign(cS,{Input:Hs,Label:Bl}),fS=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:i,isValid:s=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},f)=>{const{controlId:g}=h.useContext(qn);return e=z(e,"form-control"),v.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:o||g,className:M(i,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",a&&"is-invalid")})});fS.displayName="FormControl";const s$=Object.assign(fS,{Feedback:$u}),dS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"form-floating"),v.jsx(n,{ref:o,className:M(e,t),...r})));dS.displayName="FormFloating";const Eh=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const o=h.useMemo(()=>({controlId:e}),[e]);return v.jsx(qn.Provider,{value:o,children:v.jsx(t,{...n,ref:r})})});Eh.displayName="FormGroup";const pS=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:i,...s},a)=>{const{controlId:l}=h.useContext(qn);t=z(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=M(o,t,r&&"visually-hidden",n&&u);return i=i||l,n?v.jsx(hn,{ref:a,as:"label",className:c,htmlFor:i,...s}):v.jsx(e,{ref:a,className:c,htmlFor:i,...s})});pS.displayName="FormLabel";const hS=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-range"),v.jsx("input",{...r,type:"range",ref:o,className:M(t,e),id:n||i})});hS.displayName="FormRange";const mS=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:i=!1,id:s,...a},l)=>{const{controlId:u}=h.useContext(qn);return e=z(e,"form-select"),v.jsx("select",{...a,size:n,ref:l,className:M(r,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:s||u})});mS.displayName="FormSelect";const yS=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=z(e,"form-text"),v.jsx(n,{...o,ref:i,className:M(t,e,r&&"text-muted")})));yS.displayName="FormText";const vS=h.forwardRef((e,t)=>v.jsx(Dl,{...e,ref:t,type:"switch"}));vS.displayName="Switch";const a$=Object.assign(vS,{Input:Dl.Input,Label:Dl.Label}),gS=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=z(e,"form-floating"),v.jsxs(Eh,{ref:s,className:M(t,e),controlId:r,...i,children:[n,v.jsx("label",{htmlFor:r,children:o})]})));gS.displayName="FloatingLabel";const l$={_ref:pe.any,validated:pe.bool,as:pe.elementType},kh=h.forwardRef(({className:e,validated:t,as:n="form",...r},o)=>v.jsx(n,{...r,ref:o,className:M(e,t&&"was-validated")}));kh.displayName="Form";kh.propTypes=l$;const Ze=Object.assign(kh,{Group:Eh,Control:s$,Floating:dS,Check:Dl,Switch:a$,Label:pS,Text:yS,Range:hS,Select:mS,FloatingLabel:gS}),_u=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"input-group-text"),v.jsx(n,{ref:o,className:M(e,t),...r})));_u.displayName="InputGroupText";const u$=e=>v.jsx(_u,{children:v.jsx(Hs,{type:"checkbox",...e})}),c$=e=>v.jsx(_u,{children:v.jsx(Hs,{type:"radio",...e})}),wS=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},s)=>{e=z(e,"input-group");const a=h.useMemo(()=>({}),[]);return v.jsx(lS.Provider,{value:a,children:v.jsx(o,{ref:s,...i,className:M(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});wS.displayName="InputGroup";const sn=Object.assign(wS,{Text:_u,Radio:c$,Checkbox:u$});function Gc(e){e===void 0&&(e=Ms());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function f$(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const ev=o$("modal-open");class bh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return f$(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(zn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(ev,""),zn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(ev),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qc=(e,t)=>ku?e==null?(t||Ms()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bd(e,t){const n=xh(),[r,o]=h.useState(()=>qc(e,n==null?void 0:n.document));if(!r){const i=qc(e);i&&o(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=qc(e);i!==r&&o(i)},[e,r]),r}function d$({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const i=h.useRef(null),s=h.useRef(t),a=it(n);h.useEffect(()=>{t?s.current=!0:a(i.current)},[t,a]);const l=Yr(i,e.ref),u=h.cloneElement(e,{ref:l});return t?u:o||!s.current&&r?null:u}function SS(e){return e.code==="Escape"||e.keyCode===27}function p$(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const h$=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function m$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function y$(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l}=e,u=m$(e,h$);const{major:c}=p$(),d=c>=19?l.props.ref:l.ref,f=h.useRef(null),g=Yr(f,typeof l=="function"?null:d),w=x=>b=>{x&&f.current&&x(f.current,b)},S=h.useCallback(w(t),[t]),k=h.useCallback(w(n),[n]),m=h.useCallback(w(r),[r]),p=h.useCallback(w(o),[o]),y=h.useCallback(w(i),[i]),E=h.useCallback(w(s),[s]),C=h.useCallback(w(a),[a]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:S},n&&{onEntering:k},r&&{onEntered:m},o&&{onExit:p},i&&{onExiting:y},s&&{onExited:E},a&&{addEndListener:C},{children:typeof l=="function"?(x,b)=>l(x,Object.assign({},b,{ref:g})):h.cloneElement(l,{ref:g})})}const v$=["component"];function g$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}const w$=h.forwardRef((e,t)=>{let{component:n}=e,r=g$(e,v$);const o=y$(r);return v.jsx(n,Object.assign({ref:t},o))});function S$({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),o=it(t);return Il(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Il(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function x$({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[i,s]=h.useState(!t);t&&i&&s(!1);const a=S$({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(c,d=>{throw u.in||s(!0),d})}}),l=Yr(a,e.ref);return i&&!t?null:h.cloneElement(e,{ref:l})}function Cd(e,t,n){return e?v.jsx(w$,Object.assign({},n,{component:e})):t?v.jsx(x$,Object.assign({},n,{transition:t})):v.jsx(d$,Object.assign({},n))}const E$=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function k$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}let Qc;function b$(e){return Qc||(Qc=new bh({ownerDocument:e==null?void 0:e.document})),Qc}function C$(e){const t=xh(),n=e||b$(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:h.useCallback(o=>{r.current.backdrop=o},[])})}const xS=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:g,runBackdropTransition:w,autoFocus:S=!0,enforceFocus:k=!0,restoreFocus:m=!0,restoreFocusOptions:p,renderDialog:y,renderBackdrop:E=H=>v.jsx("div",Object.assign({},H)),manager:C,container:x,onShow:b,onHide:O=()=>{},onExit:T,onExited:$,onExiting:A,onEnter:U,onEntering:B,onEntered:K}=e,W=k$(e,E$);const G=xh(),V=bd(x),_=C$(C),I=dh(),F=kO(n),[Y,Z]=h.useState(!n),ve=h.useRef(null);h.useImperativeHandle(t,()=>_,[_]),ku&&!F&&n&&(ve.current=Gc(G==null?void 0:G.document)),n&&Y&&Z(!1);const X=it(()=>{if(_.add(),Tn.current=Fn(document,"keydown",qe),_t.current=Fn(document,"focus",()=>setTimeout(ge),!0),b&&b(),S){var H,Ue;const rt=Gc((H=(Ue=_.dialog)==null?void 0:Ue.ownerDocument)!=null?H:G==null?void 0:G.document);_.dialog&&rt&&!Ts(_.dialog,rt)&&(ve.current=rt,_.dialog.focus())}}),re=it(()=>{if(_.remove(),Tn.current==null||Tn.current(),_t.current==null||_t.current(),m){var H;(H=ve.current)==null||H.focus==null||H.focus(p),ve.current=null}});h.useEffect(()=>{!n||!V||X()},[n,V,X]),h.useEffect(()=>{Y&&re()},[Y,re]),qw(()=>{re()});const ge=it(()=>{if(!k||!I()||!_.isTopModal())return;const H=Gc(G==null?void 0:G.document);_.dialog&&H&&!Ts(_.dialog,H)&&_.dialog.focus()}),Me=it(H=>{H.target===H.currentTarget&&(u==null||u(H),a===!0&&O())}),qe=it(H=>{l&&SS(H)&&_.isTopModal()&&(c==null||c(H),H.defaultPrevented||O())}),_t=h.useRef(),Tn=h.useRef(),Rn=(...H)=>{Z(!0),$==null||$(...H)};if(!V)return null;const Nn=Object.assign({role:r,ref:_.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},W,{style:i,className:o,tabIndex:-1});let Qe=y?y(Nn):v.jsx("div",Object.assign({},Nn,{children:h.cloneElement(s,{role:"document"})}));Qe=Cd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:A,onExited:Rn,onEnter:U,onEntering:B,onEntered:K,children:Qe});let de=null;return a&&(de=E({ref:_.setBackdropRef,onClick:Me}),de=Cd(g,w,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),v.jsx(v.Fragment,{children:Ir.createPortal(v.jsxs(v.Fragment,{children:[de,Qe]}),V)})});xS.displayName="Modal";const O$=Object.assign(xS,{Manager:bh});function Od(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function $$(e,t){e.classList?e.classList.add(t):Od(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function tv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function _$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=tv(e.className,t):e.setAttribute("class",tv(e.className&&e.className.baseVal||"",t))}const ao={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class ES extends bh{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,zn(n,{[t]:`${parseFloat(zn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],zn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if($$(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),so(n,ao.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();_$(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.restore(r,i)),so(n,ao.STICKY_CONTENT).forEach(i=>this.restore(o,i)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let Yc;function T$(e){return Yc||(Yc=new ES(e)),Yc}const kS=h.createContext({onHide(){}}),R$=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...i},s)=>{const a=h.useContext(kS),l=it(()=>{a==null||a.onHide(),r==null||r()});return v.jsxs("div",{ref:s,...i,children:[o,n&&v.jsx(Cu,{"aria-label":e,variant:t,onClick:l})]})}),bS=h.forwardRef(({bsPrefix:e,className:t,as:n,...r},o)=>{e=z(e,"navbar-brand");const i=n||(r.href?"a":"span");return v.jsx(i,{...r,ref:o,className:M(t,e)})});bS.displayName="NavbarBrand";const CS=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=z(t,"navbar-collapse");const o=h.useContext(fi);return v.jsx(bu,{in:!!(o&&o.expanded),...n,children:v.jsx("div",{ref:r,className:t,children:e})})});CS.displayName="NavbarCollapse";const OS=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:i,...s},a)=>{e=z(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(fi)||{},c=it(d=>{i&&i(d),l&&l()});return o==="button"&&(s.type="button"),v.jsx(o,{...s,ref:a,onClick:c,"aria-label":r,className:M(t,e,!u&&"collapsed"),children:n||v.jsx("span",{className:`${e}-icon`})})});OS.displayName="NavbarToggle";const $d=new WeakMap,nv=(e,t)=>{if(!e||!t)return;const n=$d.get(t)||new Map;$d.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function N$(e,t=typeof window>"u"?void 0:window){const n=nv(e,t),[r,o]=h.useState(()=>n?n.matches:!1);return Il(()=>{let i=nv(e,t);if(!i)return o(!1);let s=$d.get(t);const a=()=>{o(i.matches)};return i.refCount++,i.addListener(a),a(),()=>{i.removeListener(a),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),r}function A$(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function o(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function s(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((f,[g,w])=>((w==="up"||w===!0)&&(f=n(f,i(g))),(w==="down"||w===!0)&&(f=n(f,o(g))),f),""),[JSON.stringify(c)]);return N$(d,u)}return s}const P$=A$({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),$S=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"offcanvas-body"),v.jsx(n,{ref:o,className:M(e,t),...r})));$S.displayName="OffcanvasBody";const j$={[Pt]:"show",[Mn]:"show"},_S=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:o=!1,unmountOnExit:i=!1,appear:s=!1,...a},l)=>(e=z(e,"offcanvas"),v.jsx(ch,{ref:l,addEndListener:uh,in:r,mountOnEnter:o,unmountOnExit:i,appear:s,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:M(t,n.props.className,(u===Pt||u===Yo)&&`${e}-toggling`,j$[u])})})));_S.displayName="OffcanvasToggling";const TS=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=z(e,"offcanvas-header"),v.jsx(R$,{ref:i,...o,className:M(t,e),closeLabel:n,closeButton:r})));TS.displayName="OffcanvasHeader";const L$=fh("h5"),RS=h.forwardRef(({className:e,bsPrefix:t,as:n=L$,...r},o)=>(t=z(t,"offcanvas-title"),v.jsx(n,{ref:o,className:M(e,t),...r})));RS.displayName="OffcanvasTitle";function I$(e){return v.jsx(_S,{...e})}function M$(e){return v.jsx(Os,{...e})}const NS=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:o="start",responsive:i,show:s=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:g,autoFocus:w=!0,enforceFocus:S=!0,restoreFocus:k=!0,restoreFocusOptions:m,onEntered:p,onExit:y,onExiting:E,onEnter:C,onEntering:x,onExited:b,backdropClassName:O,manager:T,renderStaticNode:$=!1,...A},U)=>{const B=h.useRef();e=z(e,"offcanvas");const{onToggle:K}=h.useContext(fi)||{},[W,G]=h.useState(!1),V=P$(i||"xs","up");h.useEffect(()=>{G(i?s&&!V:s)},[s,i,V]);const _=it(()=>{K==null||K(),f==null||f()}),I=h.useMemo(()=>({onHide:_}),[_]);function F(){return T||(u?(B.current||(B.current=new ES({handleContainerOverflow:!1})),B.current):T$())}const Y=(re,...ge)=>{re&&(re.style.visibility="visible"),C==null||C(re,...ge)},Z=(re,...ge)=>{re&&(re.style.visibility=""),b==null||b(...ge)},ve=h.useCallback(re=>v.jsx("div",{...re,className:M(`${e}-backdrop`,O)}),[O,e]),X=re=>v.jsx("div",{...re,...A,className:M(t,i?`${e}-${i}`:e,`${e}-${o}`),"aria-labelledby":r,children:n});return v.jsxs(v.Fragment,{children:[!W&&(i||$)&&X({}),v.jsx(kS.Provider,{value:I,children:v.jsx(O$,{show:W,ref:U,backdrop:a,container:g,keyboard:l,autoFocus:w,enforceFocus:S&&!u,restoreFocus:k,restoreFocusOptions:m,onEscapeKeyDown:c,onShow:d,onHide:_,onEnter:Y,onEntering:x,onEntered:p,onExit:y,onExiting:E,onExited:Z,manager:F(),transition:I$,backdropTransition:M$,renderBackdrop:ve,renderDialog:X})})]})});NS.displayName="Offcanvas";const zi=Object.assign(NS,{Body:$S,Header:TS,Title:RS}),AS=h.forwardRef((e,t)=>{const n=h.useContext(fi);return v.jsx(zi,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});AS.displayName="NavbarOffcanvas";const PS=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"navbar-text"),v.jsx(n,{ref:o,className:M(e,t),...r})));PS.displayName="NavbarText";const jS=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:s,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:g=!1,...w}=Vk(e,{expanded:"onToggle"}),S=z(n,"navbar"),k=h.useCallback((...y)=>{f==null||f(...y),g&&c&&(d==null||d(!1))},[f,g,c,d]);w.role===void 0&&u!=="nav"&&(w.role="navigation");let m=`${S}-expand`;typeof r=="string"&&(m=`${m}-${r}`);const p=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return v.jsx(fi.Provider,{value:p,children:v.jsx(n$.Provider,{value:k,children:v.jsx(u,{ref:t,...w,className:M(l,S,r&&m,o&&`${S}-${o}`,i&&`bg-${i}`,a&&`sticky-${a}`,s&&`fixed-${s}`)})})})});jS.displayName="Navbar";const Xc=Object.assign(jS,{Brand:bS,Collapse:CS,Offcanvas:AS,Text:PS,Toggle:OS}),B$=()=>{};function D$(e,t,{disabled:n,clickTrigger:r}={}){const o=t||B$;J2(e,o,{disabled:n,clickTrigger:r});const i=it(s=>{SS(s)&&o(s)});h.useEffect(()=>{if(n||e==null)return;const s=Ms(Ha(e));let a=(s.defaultView||window).event;const l=Fn(s,"keyup",u=>{if(u===a){a=void 0;return}i(u)});return()=>{l()}},[e,n,i])}const LS=h.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:i,popperConfig:s={},transition:a,runTransition:l}=e,[u,c]=Fy(),[d,f]=Fy(),g=Yr(c,t),w=bd(e.container),S=bd(e.target),[k,m]=h.useState(!e.show),p=K2(S,u,t$({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:s}));e.show&&k&&m(!1);const y=(...A)=>{m(!0),e.onExited&&e.onExited(...A)},E=e.show||!k;if(D$(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:C,onExiting:x,onEnter:b,onEntering:O,onEntered:T}=e;let $=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:g}),{popper:p,placement:o,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return $=Cd(a,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:$,onExit:C,onExiting:x,onExited:y,onEnter:b,onEntering:O,onEntered:T}),w?Ir.createPortal($,w):null});LS.displayName="Overlay";const IS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-header"),v.jsx(n,{ref:o,className:M(e,t),...r})));IS.displayName="PopoverHeader";const Ch=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-body"),v.jsx(n,{ref:o,className:M(e,t),...r})));Ch.displayName="PopoverBody";function MS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function BS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const F$=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:s,hasDoneInitialMeasure:a,popper:l,show:u,...c},d)=>{const f=z(e,"popover"),g=_0(),[w]=(t==null?void 0:t.split("-"))||[],S=MS(w,g);let k=r;return u&&!a&&(k={...r,...BS(l==null?void 0:l.strategy)}),v.jsxs("div",{ref:d,role:"tooltip",style:k,"x-placement":w,className:M(n,f,w&&`bs-popover-${S}`),...c,children:[v.jsx("div",{className:"popover-arrow",...s}),i?v.jsx(Ch,{children:o}):o]})}),z$=Object.assign(F$,{Header:IS,Body:Ch,POPPER_OFFSET:[0,8]}),DS=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:s,popper:a,show:l,...u},c)=>{e=z(e,"tooltip");const d=_0(),[f]=(t==null?void 0:t.split("-"))||[],g=MS(f,d);let w=r;return l&&!s&&(w={...r,...BS(a==null?void 0:a.strategy)}),v.jsxs("div",{ref:c,style:w,role:"tooltip","x-placement":f,className:M(n,e,`bs-tooltip-${g}`),...u,children:[v.jsx("div",{className:"tooltip-arrow",...i}),v.jsx("div",{className:`${e}-inner`,children:o})]})});DS.displayName="Tooltip";const FS=Object.assign(DS,{TOOLTIP_OFFSET:[0,6]});function U$(e){const t=h.useRef(null),n=z(void 0,"popover"),r=z(void 0,"tooltip"),o=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Od(t.current,n))return z$.POPPER_OFFSET;if(Od(t.current,r))return FS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function W$(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Ll(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Ll(o)))}const zS=h.forwardRef(({children:e,transition:t=Os,popperConfig:n={},rootClose:r=!1,placement:o="top",show:i=!1,...s},a)=>{const l=h.useRef({}),[u,c]=h.useState(null),[d,f]=U$(s.offset),g=Yr(a,d),w=t===!0?Os:t||void 0,S=it(k=>{c(k),n==null||n.onFirstUpdate==null||n.onFirstUpdate(k)});return Il(()=>{u&&s.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,s.target]),h.useEffect(()=>{i||c(null)},[i]),v.jsx(LS,{...s,ref:g,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:w,rootClose:r,placement:o,show:i,children:(k,{arrowProps:m,popper:p,show:y})=>{var E;W$(k,m);const C=p==null?void 0:p.placement,x=Object.assign(l.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:C,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),b=!!u;return typeof e=="function"?e({...k,placement:C,show:y,...!t&&y&&{className:"show"},popper:x,arrowProps:m,hasDoneInitialMeasure:b}):h.cloneElement(e,{...k,placement:C,arrowProps:m,popper:x,hasDoneInitialMeasure:b,className:M(e.props.className,!t&&y&&"show"),style:{...e.props.style,...k.style}})}})});zS.displayName="Overlay";function H$(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function rv(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==o)&&!Ts(o,i)&&e(...t)}pe.oneOf(["click","hover","focus"]);const V$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:i=!1,onToggle:s,delay:a,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const d=h.useRef(null),f=Yr(d,n.ref),g=Yw(),w=h.useRef(""),[S,k]=C0(o,i,s),m=H$(a),{onFocus:p,onBlur:y,onClick:E}=typeof n!="function"?h.Children.only(n).props:{},C=W=>{f(Ll(W))},x=h.useCallback(()=>{if(g.clear(),w.current="show",!m.show){k(!0);return}g.set(()=>{w.current==="show"&&k(!0)},m.show)},[m.show,k,g]),b=h.useCallback(()=>{if(g.clear(),w.current="hide",!m.hide){k(!1);return}g.set(()=>{w.current==="hide"&&k(!1)},m.hide)},[m.hide,k,g]),O=h.useCallback((...W)=>{x(),p==null||p(...W)},[x,p]),T=h.useCallback((...W)=>{b(),y==null||y(...W)},[b,y]),$=h.useCallback((...W)=>{k(!S),E==null||E(...W)},[E,k,S]),A=h.useCallback((...W)=>{rv(x,W,"fromElement")},[x]),U=h.useCallback((...W)=>{rv(b,W,"toElement")},[b]),B=e==null?[]:[].concat(e),K={ref:C};return B.indexOf("click")!==-1&&(K.onClick=$),B.indexOf("focus")!==-1&&(K.onFocus=O,K.onBlur=T),B.indexOf("hover")!==-1&&(K.onMouseOver=A,K.onMouseOut=U),v.jsxs(v.Fragment,{children:[typeof n=="function"?n(K):h.cloneElement(n,K),v.jsx(zS,{...c,show:S,onHide:b,flip:u,placement:l,popperConfig:r,target:d.current,children:t})]})},Fl=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"row"),s=O0(),a=$0(),l=`${i}-cols`,u=[];return s.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const g=c!==a?`-${c}`:"";f!=null&&u.push(`${l}${g}-${f}`)}),v.jsx(n,{ref:o,...r,className:M(t,i,...u)})});Fl.displayName="Row";const Oh=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{e=z(e,"spinner");const l=`${e}-${n}`;return v.jsx(o,{ref:a,...s,className:M(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})});Oh.displayName="Spinner";const K$={[Pt]:"showing",[Yo]:"showing show"},US=h.forwardRef((e,t)=>v.jsx(Os,{...e,ref:t,transitionClasses:K$}));US.displayName="ToastFade";const WS=h.createContext({onClose(){}}),HS=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:o,children:i,...s},a)=>{e=z(e,"toast-header");const l=h.useContext(WS),u=it(c=>{l==null||l.onClose==null||l.onClose(c)});return v.jsxs("div",{ref:a,...s,className:M(e,o),children:[i,r&&v.jsx(Cu,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});HS.displayName="ToastHeader";const VS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"toast-body"),v.jsx(n,{ref:o,className:M(e,t),...r})));VS.displayName="ToastBody";const KS=h.forwardRef(({bsPrefix:e,className:t,transition:n=US,show:r=!0,animation:o=!0,delay:i=5e3,autohide:s=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:g,bg:w,...S},k)=>{e=z(e,"toast");const m=h.useRef(i),p=h.useRef(a);h.useEffect(()=>{m.current=i,p.current=a},[i,a]);const y=Yw(),E=!!(s&&r),C=h.useCallback(()=>{E&&(p.current==null||p.current())},[E]);h.useEffect(()=>{y.set(C,m.current)},[y,C]);const x=h.useMemo(()=>({onClose:a}),[a]),b=!!(n&&o),O=v.jsx("div",{...S,ref:k,className:M(e,t,w&&`bg-${w}`,!b&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return v.jsx(WS.Provider,{value:x,children:b&&n?v.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:l,onExit:u,onExiting:c,onExited:g,unmountOnExit:!0,children:O}):O})});KS.displayName="Toast";const rs=Object.assign(KS,{Body:VS,Header:HS}),G$={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},$h=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:o="div",...i},s)=>(e=z(e,"toast-container"),v.jsx(o,{ref:s,...i,className:M(e,t&&G$[t],n&&`position-${n}`,r)})));$h.displayName="ToastContainer";const q$=()=>{},_h=h.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:o,onChange:i,value:s,disabled:a,id:l,inputRef:u,...c},d)=>(e=z(e,"btn-check"),v.jsxs(v.Fragment,{children:[v.jsx("input",{className:e,name:t,type:o,value:s,ref:u,autoComplete:"off",checked:!!r,disabled:!!a,onChange:i||q$,id:l}),v.jsx(ci,{...c,ref:d,className:M(n,a&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:l})]})));_h.displayName="ToggleButton";const On=Object.create(null);On.open="0";On.close="1";On.ping="2";On.pong="3";On.message="4";On.upgrade="5";On.noop="6";const Va=Object.create(null);Object.keys(On).forEach(e=>{Va[On[e]]=e});const _d={type:"error",data:"parser error"},GS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",qS=typeof ArrayBuffer=="function",QS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Th=({type:e,data:t},n,r)=>GS&&t instanceof Blob?n?r(t):ov(t,r):qS&&(t instanceof ArrayBuffer||QS(t))?n?r(t):ov(new Blob([t]),r):r(On[e]+(t||"")),ov=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function iv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jc;function Q$(e,t){if(GS&&e.data instanceof Blob)return e.data.arrayBuffer().then(iv).then(t);if(qS&&(e.data instanceof ArrayBuffer||QS(e.data)))return t(iv(e.data));Th(e,!1,n=>{Jc||(Jc=new TextEncoder),t(Jc.encode(n))})}const sv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ui=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},X$=typeof ArrayBuffer=="function",Rh=(e,t)=>{if(typeof e!="string")return{type:"message",data:YS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:J$(e.substring(1),t)}:Va[n]?e.length>1?{type:Va[n],data:e.substring(1)}:{type:Va[n]}:_d},J$=(e,t)=>{if(X$){const n=Y$(e);return YS(n,t)}else return{base64:!0,data:e}},YS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},XS="",Z$=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{Th(i,!1,a=>{r[s]=a,++o===n&&t(r.join(XS))})})},e_=(e,t)=>{const n=e.split(XS),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Zc;function va(e){return e.reduce((t,n)=>t+n.length,0)}function ga(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(_d);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(va(n)e){a.enqueue(_d);break}}}})}const JS=4;function je(e){if(e)return r_(e)}function r_(e){for(var t in je.prototype)e[t]=je.prototype[t];return e}je.prototype.on=je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};je.prototype.off=je.prototype.removeListener=je.prototype.removeAllListeners=je.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const o_=jt.setTimeout,i_=jt.clearTimeout;function Tu(e,t){t.useNativeTimers?(e.setTimeoutFn=o_.bind(jt),e.clearTimeoutFn=i_.bind(jt)):(e.setTimeoutFn=jt.setTimeout.bind(jt),e.clearTimeoutFn=jt.clearTimeout.bind(jt))}const s_=1.33;function a_(e){return typeof e=="string"?l_(e):Math.ceil((e.byteLength||e.size)*s_)}function l_(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function u_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function c_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function tx(){const e=uv(+new Date);return e!==lv?(av=0,lv=e):e+"."+uv(av++)}for(;wa{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};e_(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Z$(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=tx()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new kn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class kn extends je{constructor(t,n){super(),Tu(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=ZS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new rx(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=kn.requestsCount++,kn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=h_,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete kn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}kn.requestsCount=0;kn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",cv);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,cv,!1)}}function cv(){for(let e in kn.requests)kn.requests.hasOwnProperty(e)&&kn.requests[e].abort()}const Ah=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Sa=jt.WebSocket||jt.MozWebSocket,fv=!0,v_="arraybuffer",dv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class g_ extends Nh{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=dv?{}:ZS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=fv&&!dv?n?new Sa(t,n):new Sa(t):new Sa(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{fv&&this.ws.send(i)}catch{}o&&Ah(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=tx()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Sa}}class w_ extends Nh{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=n_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=t_();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Ah(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const S_={websocket:g_,webtransport:w_,polling:y_},x_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,E_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rd(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=x_.exec(e||""),i={},s=14;for(;s--;)i[E_[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=k_(i,i.path),i.queryKey=b_(i,i.query),i}function k_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function b_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let ox=class vo extends je{constructor(t,n={}){super(),this.binaryType=v_,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Rd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Rd(n.host).host),Tu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=c_(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=JS,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new S_[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;vo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",vo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ix=Object.prototype.toString,__=typeof Blob=="function"||typeof Blob<"u"&&ix.call(Blob)==="[object BlobConstructor]",T_=typeof File=="function"||typeof File<"u"&&ix.call(File)==="[object FileConstructor]";function Ph(e){return O_&&(e instanceof ArrayBuffer||$_(e))||__&&e instanceof Blob||T_&&e instanceof File}function Ka(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:J.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}di.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};di.prototype.reset=function(){this.attempts=0};di.prototype.setMin=function(e){this.ms=e};di.prototype.setMax=function(e){this.max=e};di.prototype.setJitter=function(e){this.jitter=e};class Pd extends je{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Tu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new di({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||I_;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new ox(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=en(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=en(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(en(t,"ping",this.onping.bind(this)),en(t,"data",this.ondata.bind(this)),en(t,"error",this.onerror.bind(this)),en(t,"close",this.onclose.bind(this)),en(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ah(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new sx(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ri={};function Ga(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=C_(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ri[o]&&i in Ri[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Pd(r,t):(Ri[o]||(Ri[o]=new Pd(r,t)),l=Ri[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ga,{Manager:Pd,Socket:sx,io:Ga,connect:Ga});const ax=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},B_=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&ax(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},D_=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const a=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=ax(s,a)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},Wi=window.location.hostname,Hi=window.location.port,F_=`ws://${Wi}:${Hi}/`,In=Ga(F_,{path:"/ws/socket.io",transports:["websocket"]}),z_=(e,t)=>{t?In.emit("update_value",{access_path:e.full_access_path,value:e},t):In.emit("update_value",{access_path:e.full_access_path,value:e})},Lh=(e,t=[],n={},r)=>{const o=B_(t),i=D_(n);In.emit("trigger_method",{access_path:e,args:o,kwargs:i})},lx=te.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return v.jsx($h,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?v.jsxs(rs,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[v.jsxs(rs.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[v.jsx("strong",{className:"me-auto",children:o.levelname}),v.jsx("small",{children:o.timeStamp})]}),v.jsx(rs.Body,{children:o.message})]},o.id):null)})});lx.displayName="Notifications";const jd=te.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:a}=o();return v.jsx($h,{position:"bottom-center",className:"toastContainer",children:v.jsx(rs,{show:t,onClose:r,delay:a,autohide:a!==void 0,bg:s,children:v.jsxs(rs.Body,{className:"d-flex justify-content-between",children:[i,v.jsx(ci,{variant:"close",size:"sm",onClick:r})]})})})});jd.displayName="ConnectionToast";function ux(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function U_(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function W_(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(mv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=mv(),e[t];throw new Error(`Key not found: ${t}`)}}function hv(e,t,n=!1){const r=U_(t);try{return W_(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function H_(e,t,n){const r=ux(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let l=0;l{const{docString:t}=e;if(!t)return null;const n=v.jsx(FS,{id:"tooltip",children:t});return v.jsx(V$,{placement:"bottom",overlay:n,children:v.jsx(Mw,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});Ht.displayName="DocStringComponent";function cn(){const e=h.useRef(0);return h.useEffect(()=>{e.current+=1}),e.current}const cx=te.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;cn(),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{s({type:"bool",value:c,full_access_path:n,readonly:r,doc:o})};return v.jsxs("div",{className:"component buttonComponent",id:l,children:[!1,v.jsxs(_h,{id:`toggle-check-${l}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:a,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[a,v.jsx(Ht,{docString:o})]})]})});cx.displayName="ButtonComponent";const V_=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let a=0;s?a=Math.pow(10,o+1-n):a=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?a:-a)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},G_=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{if(e==="."&&t.includes("."))return{value:t,selectionStart:n};let o=t;return r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1}},zl=te.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:a,addNotification:l,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,g]=h.useState(null),[w,S]=h.useState(n.toString());cn();const k=p=>{const{key:y,target:E}=p,C=E;if(y==="F1"||y==="F5"||y==="F12"||y==="Tab"||y==="ArrowRight"||y==="ArrowLeft")return;p.preventDefault();const{value:x}=C,b=C.selectionEnd??0;let O=C.selectionStart??0,T=x;if(p.ctrlKey&&y==="a"){C.setSelectionRange(0,x.length);return}else if(y==="-")if(O===0&&!x.startsWith("-"))T="-"+x,O++;else if(x.startsWith("-")&&O===1)T=x.substring(1),O--;else return;else if(y>="0"&&y<="9")({value:T,selectionStart:O}=yv(y,x,O,b));else if(y==="."&&(o==="float"||o==="Quantity"))({value:T,selectionStart:O}=yv(y,x,O,b));else if(y==="ArrowUp"||y==="ArrowDown")({value:T,selectionStart:O}=V_(y,x,O));else if(y==="Backspace")({value:T,selectionStart:O}=K_(x,O,b));else if(y==="Delete")({value:T,selectionStart:O}=G_(x,O,b));else if(y==="Enter"&&!s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($);return}else return;if(s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($)}S(T),g(O)},m=()=>{if(!s){let p;o==="Quantity"?p={type:"Quantity",value:{magnitude:Number(w),unit:a},full_access_path:t,readonly:r,doc:i}:p={type:o,value:Number(w),full_access_path:t,readonly:r,doc:i},u(p)}};return h.useEffect(()=>{const p=o==="int"?parseInt(w):parseFloat(w);n!==p&&S(n.toString());let y=`${t} changed to ${e.value}`;a===void 0?y+=".":y+=` ${a}.`,l(y)},[n]),h.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),v.jsxs("div",{className:"component numberComponent",id:d,children:[!1,v.jsxs(sn,{children:[c&&v.jsxs(sn.Text,{children:[c,v.jsx(Ht,{docString:i})]}),v.jsx(Ze.Control,{type:"text",value:w,disabled:r,onChange:()=>{},name:d,onKeyDown:k,onBlur:m,className:s&&!r?"instantUpdate":""}),a&&v.jsx(sn.Text,{children:a})]})]})});zl.displayName="NumberComponent";const Rs={black:"#000",white:"#fff"},lo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},uo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},co={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},fo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},po={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ni={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},q_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ns(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ve(pi,--yt):0,ti--,Ae===10&&(ti=1,Nu--),Ae}function Et(){return Ae=yt2||Ps(Ae)>3?"":" "}function dT(e,t){for(;--t&&Et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Vs(e,qa()+(t<6&&bn()==32&&Et()==32))}function Id(e){for(;Et();)switch(Ae){case e:return yt;case 34:case 39:e!==34&&e!==39&&Id(Ae);break;case 40:e===41&&Id(e);break;case 92:Et();break}return yt}function pT(e,t){for(;Et()&&e+Ae!==57;)if(e+Ae===84&&bn()===47)break;return"/*"+Vs(t,yt-1)+"*"+Ru(e===47?e:Et())}function hT(e){for(;!Ps(bn());)Et();return Vs(e,yt)}function mT(e){return vx(Ya("",null,null,null,[""],e=yx(e),0,[0],e))}function Ya(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,g=0,w=0,S=1,k=1,m=1,p=0,y="",E=o,C=i,x=r,b=y;k;)switch(w=p,p=Et()){case 40:if(w!=108&&Ve(b,d-1)==58){Ld(b+=ae(Qa(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:b+=Qa(p);break;case 9:case 10:case 13:case 32:b+=fT(w);break;case 92:b+=dT(qa()-1,7);continue;case 47:switch(bn()){case 42:case 47:xa(yT(pT(Et(),qa()),t,n),l);break;default:b+="/"}break;case 123*S:a[u++]=mn(b)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:m==-1&&(b=ae(b,/\f/g,"")),g>0&&mn(b)-d&&xa(g>32?gv(b+";",r,n,d-1):gv(ae(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(xa(x=vv(b,t,n,u,c,o,a,y,E=[],C=[],d),i),p===123)if(c===0)Ya(b,t,x,x,E,i,d,a,C);else switch(f===99&&Ve(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ya(e,x,x,r&&xa(vv(e,x,x,0,0,o,a,y,o,E=[],d),C),o,C,d,a,r?E:C);break;default:Ya(b,x,x,x,[""],C,0,a,C)}}u=c=g=0,S=m=1,y=b="",d=s;break;case 58:d=1+mn(b),g=w;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&cT()==125)continue}switch(b+=Ru(p),p*S){case 38:m=c>0?1:(b+="\f",-1);break;case 44:a[u++]=(mn(b)-1)*m,m=1;break;case 64:bn()===45&&(b+=Qa(Et())),f=bn(),c=d=mn(y=b+=hT(qa())),p++;break;case 45:w===45&&mn(b)==2&&(S=0)}}return i}function vv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],g=Dh(f),w=0,S=0,k=0;w0?f[m]+" "+p:ae(p,/&\f/g,f[m])))&&(l[k++]=y);return Au(e,t,n,o===0?Mh:a,l,u,c)}function yT(e,t,n){return Au(e,t,n,dx,Ru(uT()),As(e,2,-2),0)}function gv(e,t,n,r){return Au(e,t,n,Bh,As(e,0,r),As(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Dh(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Ul+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?gx(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,mn(e)-3-(~Ld(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ve(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var CT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Bh:t.return=gx(t.value,t.length);break;case px:return Fo([Ai(t,{value:ae(t.value,"@","@"+se)})],o);case Mh:if(t.length)return lT(t.props,function(i){switch(aT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Ai(t,{props:[ae(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Fo([Ai(t,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Ai(t,{props:[ae(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ai(t,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},OT=[CT],wx=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||OT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),m=1;m<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[yn]=t,e[gs]=r,fw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oQo&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304)}else{if(!r)if(e=$l(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ci(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>Qo&&n!==1073741824&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=Ee.current,he(Ee,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return nh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function HC(e,t){switch(Ip(t),t.tag){case 1:return dt(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),ye(ft),ye(et),Vp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hp(t),null;case 13:if(ye(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Ee),null;case 4:return Go(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return nh(),null;case 24:return null;default:return null}}var pa=!1,Ze=!1,VC=typeof WeakSet=="function"?WeakSet:Set,L=null;function Ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function fd(e,t,n){try{n()}catch(r){$e(e,t,r)}}var Cy=!1;function KC(e,t){if(qf=yl,e=g1(),jp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qf={focusedElem:e,selectionRange:n},yl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,k=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xt(t.type,S),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){$e(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=Cy,Cy=!1,g}function Yi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&fd(t,n,i)}o=o.next}while(o!==r)}}function yu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hw(e){var t=e.alternate;t!==null&&(e.alternate=null,hw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[gs],delete t[Jf],delete t[_C],delete t[TC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mw(e){return e.tag===5||e.tag===3||e.tag===4}function Oy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wl));else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}function hd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(hd(e,t,n),e=e.sibling;e!==null;)hd(e,t,n),e=e.sibling}var He=null,Jt=!1;function er(e,t,n){for(n=n.child;n!==null;)yw(e,t,n),n=n.sibling}function yw(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:Ze||Ro(n,t);case 6:var r=He,o=Jt;He=null,er(e,t,n),He=r,Jt=o,He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?Ic(e.parentNode,n):e.nodeType===1&&Ic(e,n),ps(e)):Ic(He,n.stateNode));break;case 4:r=He,o=Jt,He=n.stateNode.containerInfo,Jt=!0,er(e,t,n),He=r,Jt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&fd(n,t,s),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!Ze&&(Ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,er(e,t,n),Ze=r):er(e,t,n);break;default:er(e,t,n)}}function $y(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new VC),t.forEach(function(r){var o=tO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qC(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Al=0,te&6)throw Error(R(331));var o=te;for(te|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l_e()-eh?Mr(e,0):Zp|=n),pt(e,t)}function bw(e,t){t===0&&(e.mode&1?(t=oa,oa<<=1,!(oa&130023424)&&(oa=4194304)):t=1);var n=st();e=Vn(e,t),e!==null&&(Ms(e,t,n),pt(e,n))}function eO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bw(e,n)}function tO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),bw(e,n)}var Cw;Cw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,UC(e,t,n);ct=!!(e.flags&131072)}else ct=!1,xe&&t.flags&1048576&&T1(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Da(e,t),e=t.pendingProps;var o=Ho(t,et.current);Mo(t,n),o=Gp(null,t,r,e,o,n);var i=qp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(i=!0,xl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Up(t),o.updater=mu,t.stateNode=o,o._reactInternals=t,od(t,r,e,n),t=ad(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Lp(t),rt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=rO(r),e=Xt(r,e),o){case 0:t=sd(null,t,r,e,n);break e;case 1:t=Ey(null,t,r,e,n);break e;case 11:t=Sy(null,t,r,e,n);break e;case 14:t=xy(null,t,r,Xt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),sd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Ey(e,t,r,o,n);case 3:e:{if(lw(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,L1(e,t),Ol(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qo(Error(R(423)),t),t=ky(e,t,r,n,o);break e}else if(r!==o){o=qo(Error(R(424)),t),t=ky(e,t,r,n,o);break e}else for(St=mr(t.stateNode.containerInfo.firstChild),xt=t,xe=!0,en=null,n=P1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===o){t=Kn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return I1(t),e===null&&td(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yf(r,o)?s=null:i!==null&&Yf(r,i)&&(t.flags|=32),aw(e,t),rt(e,t,s,n),t.child;case 6:return e===null&&td(t),null;case 13:return uw(e,t,n);case 4:return Wp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Sy(e,t,r,o,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(sn(i.value,s)){if(i.children===o.children&&!ft.current){t=Kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=zn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),nd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}rt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mo(t,n),o=Dt(o),r=r(o),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),xy(e,t,r,o,n);case 15:return iw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Da(e,t),t.tag=1,dt(r)?(e=!0,xl(t)):e=!1,Mo(t,n),nw(t,r,o),od(t,r,o,n),ad(null,t,r,!0,e,n);case 19:return cw(e,t,n);case 22:return sw(e,t,n)}throw Error(R(156,t.tag))};function Ow(e,t){return Z0(e,t)}function nO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new nO(e,t,n,r)}function oh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rO(e){if(typeof e=="function")return oh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kp)return 11;if(e===bp)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ua(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")oh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xo:return Br(n.children,o,i,t);case Ep:s=8,o|=8;break;case _f:return e=It(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Tf:return e=It(13,n,t,o),e.elementType=Tf,e.lanes=i,e;case Rf:return e=It(19,n,t,o),e.elementType=Rf,e.lanes=i,e;case I0:return gu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j0:s=10;break e;case L0:s=9;break e;case kp:s=11;break e;case bp:s=14;break e;case nr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=It(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function gu(e,t,n,r){return e=It(22,e,r,t),e.elementType=I0,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ih(e,t,n,r,o,i,s,a,l){return e=new oO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=It(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Up(i),e}function iO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rw)}catch{}}Rw(),R0.exports=Ct;var Nw=R0.exports;const Ir=si(Nw),Ly={disabled:!1},Aw=ne.createContext(null);var cO=function(t){return t.scrollTop},Di="unmounted",or="exited",Pt="entering",In="entered",Yo="exiting",Jn=function(e){Vk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=or,i.appearStatus=Pt):l=In:r.unmountOnExit||r.mountOnEnter?l=Di:l=or,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Di?{status:or}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Pt&&s!==In&&(i=Pt):(s===Pt||s===In)&&(i=Yo)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);s&&cO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Di})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ir.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||Ly.disabled){this.safeSetState({status:In},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:In},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||Ly.disabled){this.safeSetState({status:or},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yo},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:or},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Di)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=an(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ne.createElement(Aw.Provider,{value:null},typeof s=="function"?s(o,a):ne.cloneElement(ne.Children.only(s),a))},t}(ne.Component);Jn.contextType=Aw;Jn.propTypes={};function io(){}Jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:io,onEntering:io,onEntered:io,onExit:io,onExiting:io,onExited:io};Jn.UNMOUNTED=Di;Jn.EXITED=or;Jn.ENTERING=Pt;Jn.ENTERED=In;Jn.EXITING=Yo;const ku=!!(typeof window<"u"&&window.document&&window.document.createElement);var wd=!1,Sd=!1;try{var Kc={get passive(){return wd=!0},get once(){return Sd=wd=!0}};ku&&(window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,!0))}catch{}function fO(e,t,n,r){if(r&&typeof r!="boolean"&&!Sd){var o=r.once,i=r.capture,s=n;!Sd&&o&&(s=n.__once||function a(l){this.removeEventListener(t,a,i),n.call(this,l)},n.__once=s),e.addEventListener(t,s,wd?r:i)}e.addEventListener(t,n,r)}function dO(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Dn(e,t,n,r){return fO(e,t,n,r),function(){dO(e,t,n,r)}}function pO(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function hO(e){var t=Fn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function mO(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||pO(e,"transitionend",!0)},t+n),i=Dn(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function yO(e,t,n,r){n==null&&(n=hO(e)||0);var o=mO(e,n,r),i=Dn(e,"transitionend",t);return function(){o(),i()}}function Iy(e,t){const n=Fn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function uh(e,t){const n=Iy(e,"transitionDuration"),r=Iy(e,"transitionDelay"),o=yO(e,i=>{i.target===e&&(o(),t(i))},n+r)}function $i(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}function Pw(e){e.offsetHeight}const My=e=>!e||typeof e=="function"?e:t=>{e.current=t};function vO(e,t){const n=My(e),r=My(t);return o=>{n&&n(o),r&&r(o)}}function Yr(e,t){return h.useMemo(()=>vO(e,t),[e,t])}function Ll(e){return e&&"setState"in e?Ir.findDOMNode(e):e??null}const ch=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:s,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),f=Yr(d,l),v=x=>{f(Ll(x))},g=x=>b=>{x&&d.current&&x(d.current,b)},S=h.useCallback(g(e),[e]),k=h.useCallback(g(t),[t]),m=h.useCallback(g(n),[n]),p=h.useCallback(g(r),[r]),y=h.useCallback(g(o),[o]),E=h.useCallback(g(i),[i]),C=h.useCallback(g(s),[s]);return w.jsx(Jn,{ref:c,...u,onEnter:S,onEntered:m,onEntering:k,onExit:p,onExited:E,onExiting:y,addEndListener:C,nodeRef:d,children:typeof a=="function"?(x,b)=>a(x,{...b,ref:v}):ne.cloneElement(a,{ref:v})})}),gO={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function wO(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=gO[e];return r+parseInt(Fn(t,o[0]),10)+parseInt(Fn(t,o[1]),10)}const SO={[or]:"collapse",[Yo]:"collapsing",[Pt]:"collapsing",[In]:"collapse show"},bu=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:i,children:s,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:v=wO,...g},S)=>{const k=typeof a=="function"?a():a,m=h.useMemo(()=>$i(x=>{x.style[k]="0"},e),[k,e]),p=h.useMemo(()=>$i(x=>{const b=`scroll${k[0].toUpperCase()}${k.slice(1)}`;x.style[k]=`${x[b]}px`},t),[k,t]),y=h.useMemo(()=>$i(x=>{x.style[k]=null},n),[k,n]),E=h.useMemo(()=>$i(x=>{x.style[k]=`${v(k,x)}px`,Pw(x)},r),[r,v,k]),C=h.useMemo(()=>$i(x=>{x.style[k]=null},o),[k,o]);return w.jsx(ch,{ref:S,addEndListener:uh,...g,"aria-expanded":g.role?l:null,onEnter:m,onEntering:p,onEntered:y,onExit:E,onExiting:C,childRef:s.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(x,b)=>ne.cloneElement(s,{...b,className:M(i,s.props.className,SO[x],k==="width"&&"collapse-horizontal")})})});function xO(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function it(e){const t=xO(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fh=e=>h.forwardRef((t,n)=>w.jsx("div",{...t,ref:n,className:M(t.className,e)}));function By(){return h.useState(null)}function dh(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function EO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const kO=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",bO=typeof document<"u",Il=bO||kO?h.useLayoutEffect:h.useEffect,CO=["as","disabled"];function OO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function $O(e){return!e||e.trim()==="#"}function jw({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&$O(n))&&f.preventDefault(),t){f.stopPropagation();return}s==null||s(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:c,onKeyDown:d},u]}const _O=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=OO(e,CO);const[i,{tagName:s}]=jw(Object.assign({tagName:n,disabled:r},o));return w.jsx(s,Object.assign({},o,i,{ref:t}))});_O.displayName="Button";const TO={[Pt]:"show",[In]:"show"},Cs=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},a=h.useCallback((l,u)=>{Pw(l),r==null||r(l,u)},[r]);return w.jsx(ch,{ref:i,addEndListener:uh,...s,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:M("fade",e,t.props.className,TO[l],n[l])})})});Cs.displayName="Fade";const RO={"aria-label":pe.string,onClick:pe.func,variant:pe.oneOf(["white"])},Cu=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>w.jsx("button",{ref:o,type:"button",className:M("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Cu.displayName="CloseButton";Cu.propTypes=RO;const Lw=h.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:o,as:i="span",...s},a)=>{const l=z(e,"badge");return w.jsx(i,{ref:a,...s,className:M(o,l,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});Lw.displayName="Badge";const zs=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=z(t,"btn"),[c,{tagName:d}]=jw({tagName:e,disabled:i,...a}),f=d;return w.jsx(f,{...c,...a,ref:l,disabled:i,className:M(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})});zs.displayName="Button";const ph=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));ph.displayName="CardBody";const Iw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-footer"),w.jsx(n,{ref:o,className:M(e,t),...r})));Iw.displayName="CardFooter";const Mw=h.createContext(null);Mw.displayName="CardHeaderContext";const Bw=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"card-header"),s=h.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return w.jsx(Mw.Provider,{value:s,children:w.jsx(n,{ref:o,...r,className:M(t,i)})})});Bw.displayName="CardHeader";const Dw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=z(e,"card-img");return w.jsx(r,{ref:i,className:M(n?`${s}-${n}`:s,t),...o})});Dw.displayName="CardImg";const Fw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-img-overlay"),w.jsx(n,{ref:o,className:M(e,t),...r})));Fw.displayName="CardImgOverlay";const zw=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=z(t,"card-link"),w.jsx(n,{ref:o,className:M(e,t),...r})));zw.displayName="CardLink";const NO=fh("h6"),Uw=h.forwardRef(({className:e,bsPrefix:t,as:n=NO,...r},o)=>(t=z(t,"card-subtitle"),w.jsx(n,{ref:o,className:M(e,t),...r})));Uw.displayName="CardSubtitle";const Ww=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=z(t,"card-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));Ww.displayName="CardText";const AO=fh("h5"),Hw=h.forwardRef(({className:e,bsPrefix:t,as:n=AO,...r},o)=>(t=z(t,"card-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));Hw.displayName="CardTitle";const Vw=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=z(e,"card");return w.jsx(a,{ref:u,...l,className:M(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?w.jsx(ph,{children:s}):s})});Vw.displayName="Card";const Do=Object.assign(Vw,{Img:Dw,Title:Hw,Subtitle:Uw,Body:ph,Link:zw,Text:Ww,Header:Bw,Footer:Iw,ImgOverlay:Fw});function PO(e){const t=h.useRef(e);return t.current=e,t}function Kw(e){const t=PO(e);h.useEffect(()=>()=>t.current(),[])}const xd=2**31-1;function Gw(e,t,n){const r=n-Date.now();e.current=r<=xd?setTimeout(t,r):setTimeout(()=>Gw(e,t,n),xd)}function qw(){const e=dh(),t=h.useRef();return Kw(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,i=0){e()&&(n(),i<=xd?t.current=setTimeout(o,i):Gw(t,o,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function jO(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}function LO({as:e,bsPrefix:t,className:n,...r}){t=z(t,"col");const o=b0(),i=C0(),s=[],a=[];return o.forEach(l=>{const u=r[l];delete r[l];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const v=l!==i?`-${l}`:"";c&&s.push(c===!0?`${t}${v}`:`${t}${v}-${c}`),f!=null&&a.push(`order${v}-${f}`),d!=null&&a.push(`offset${v}-${d}`)}),[{...r,className:M(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}const dn=h.forwardRef((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=LO(e);return w.jsx(o,{...r,ref:t,className:M(n,!s.length&&i)})});dn.displayName="Col";const Qw=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=z(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return w.jsx(n,{ref:i,...o,className:M(r,t?`${s}${a}`:s)})});Qw.displayName="Container";var IO=Function.prototype.bind.call(Function.prototype.call,[].slice);function so(e,t){return IO(e.querySelectorAll(t))}var Dy=Object.prototype.hasOwnProperty;function Fy(e,t,n){for(n of e.keys())if(Zi(n,t))return n}function Zi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Zi(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=Fy(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=Fy(t,o),!o)||!Zi(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Dy.call(e,n)&&++r&&!Dy.call(t,n)||!(n in t)||!Zi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function MO(e){const t=dh();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ht="top",zt="bottom",Ut="right",mt="left",hh="auto",Us=[ht,zt,Ut,mt],Xo="start",Os="end",BO="clippingParents",Yw="viewport",_i="popper",DO="reference",zy=Us.reduce(function(e,t){return e.concat([t+"-"+Xo,t+"-"+Os])},[]),Xw=[].concat(Us,[hh]).reduce(function(e,t){return e.concat([t,t+"-"+Xo,t+"-"+Os])},[]),FO="beforeRead",zO="read",UO="afterRead",WO="beforeMain",HO="main",VO="afterMain",KO="beforeWrite",GO="write",qO="afterWrite",QO=[FO,zO,UO,WO,HO,VO,KO,GO,qO];function wn(e){return e.split("-")[0]}function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function Sn(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mh(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Dr=Math.max,Ml=Math.min,Jo=Math.round;function Ed(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Jw(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Zo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Sn(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var s=Gr(e)?bt(e):window,a=s.visualViewport,l=!Jw()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function yh(e){var t=Zo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Zw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Gn(e){return bt(e).getComputedStyle(e)}function YO(e){return["table","td","th"].indexOf(kr(e))>=0}function $r(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return kr(e)==="html"?e:e.assignedSlot||e.parentNode||(mh(e)?e.host:null)||$r(e)}function Uy(e){return!Sn(e)||Gn(e).position==="fixed"?null:e.offsetParent}function XO(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&Sn(e)){var r=Gn(e);if(r.position==="fixed")return null}var o=Ou(e);for(mh(o)&&(o=o.host);Sn(o)&&["html","body"].indexOf(kr(o))<0;){var i=Gn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ws(e){for(var t=bt(e),n=Uy(e);n&&YO(n)&&Gn(n).position==="static";)n=Uy(n);return n&&(kr(n)==="html"||kr(n)==="body"&&Gn(n).position==="static")?t:n||XO(e)||t}function vh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function es(e,t,n){return Dr(e,Ml(t,n))}function JO(e,t,n){var r=es(e,t,n);return r>n?n:r}function eS(){return{top:0,right:0,bottom:0,left:0}}function tS(e){return Object.assign({},eS(),e)}function nS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZO=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tS(typeof t!="number"?t:nS(t,Us))};function e2(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=wn(n.placement),l=vh(a),u=[mt,Ut].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=ZO(o.padding,n),f=yh(i),v=l==="y"?ht:mt,g=l==="y"?zt:Ut,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],k=s[l]-n.rects.reference[l],m=Ws(i),p=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=S/2-k/2,E=d[v],C=p-f[c]-d[g],x=p/2-f[c]/2+y,b=es(E,x,C),O=l;n.modifiersData[r]=(t={},t[O]=b,t.centerOffset=b-x,t)}}function t2(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Zw(t.elements.popper,o)&&(t.elements.arrow=o))}const n2={name:"arrow",enabled:!0,phase:"main",fn:e2,effect:t2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var r2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function o2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function Wy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,v=f===void 0?0:f,g=s.y,S=g===void 0?0:g,k=typeof c=="function"?c({x:v,y:S}):{x:v,y:S};v=k.x,S=k.y;var m=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),y=mt,E=ht,C=window;if(u){var x=Ws(n),b="clientHeight",O="clientWidth";if(x===bt(n)&&(x=$r(n),Gn(x).position!=="static"&&a==="absolute"&&(b="scrollHeight",O="scrollWidth")),x=x,o===ht||(o===mt||o===Ut)&&i===Os){E=zt;var T=d&&x===C&&C.visualViewport?C.visualViewport.height:x[b];S-=T-r.height,S*=l?1:-1}if(o===mt||(o===ht||o===zt)&&i===Os){y=Ut;var $=d&&x===C&&C.visualViewport?C.visualViewport.width:x[O];v-=$-r.width,v*=l?1:-1}}var A=Object.assign({position:a},u&&r2),U=c===!0?o2({x:v,y:S},bt(n)):{x:v,y:S};if(v=U.x,S=U.y,l){var B;return Object.assign({},A,(B={},B[E]=p?"0":"",B[y]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",B))}return Object.assign({},A,(t={},t[E]=p?S+"px":"",t[y]=m?v+"px":"",t.transform="",t))}function i2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:wn(t.placement),variation:ei(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const s2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:i2,data:{}};var ya={passive:!0};function a2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ya)}),a&&l.addEventListener("resize",n.update,ya),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ya)}),a&&l.removeEventListener("resize",n.update,ya)}}const l2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:a2,data:{}};var u2={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return u2[t]})}var c2={start:"end",end:"start"};function Hy(e){return e.replace(/start|end/g,function(t){return c2[t]})}function gh(e){var t=bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wh(e){return Zo($r(e)).left+gh(e).scrollLeft}function f2(e,t){var n=bt(e),r=$r(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=Jw();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+wh(e),y:l}}function d2(e){var t,n=$r(e),r=gh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wh(e),l=-r.scrollTop;return Gn(o||n).direction==="rtl"&&(a+=Dr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Sh(e){var t=Gn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function rS(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:Sn(e)&&Sh(e)?e:rS(Ou(e))}function ts(e,t){var n;t===void 0&&(t=[]);var r=rS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=bt(r),s=o?[i].concat(i.visualViewport||[],Sh(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(ts(Ou(s)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function p2(e,t){var n=Zo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Vy(e,t,n){return t===Yw?kd(f2(e,n)):Gr(t)?p2(t,n):kd(d2($r(e)))}function h2(e){var t=ts(Ou(e)),n=["absolute","fixed"].indexOf(Gn(e).position)>=0,r=n&&Sn(e)?Ws(e):e;return Gr(r)?t.filter(function(o){return Gr(o)&&Zw(o,r)&&kr(o)!=="body"}):[]}function m2(e,t,n,r){var o=t==="clippingParents"?h2(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Vy(e,u,r);return l.top=Dr(c.top,l.top),l.right=Ml(c.right,l.right),l.bottom=Ml(c.bottom,l.bottom),l.left=Dr(c.left,l.left),l},Vy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function oS(e){var t=e.reference,n=e.element,r=e.placement,o=r?wn(r):null,i=r?ei(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case ht:l={x:s,y:t.y-n.height};break;case zt:l={x:s,y:t.y+t.height};break;case Ut:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?vh(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Xo:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Os:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function $s(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?BO:a,u=n.rootBoundary,c=u===void 0?Yw:u,d=n.elementContext,f=d===void 0?_i:d,v=n.altBoundary,g=v===void 0?!1:v,S=n.padding,k=S===void 0?0:S,m=tS(typeof k!="number"?k:nS(k,Us)),p=f===_i?DO:_i,y=e.rects.popper,E=e.elements[g?p:f],C=m2(Gr(E)?E:E.contextElement||$r(e.elements.popper),l,c,s),x=Zo(e.elements.reference),b=oS({reference:x,element:y,strategy:"absolute",placement:o}),O=kd(Object.assign({},y,b)),T=f===_i?O:x,$={top:C.top-T.top+m.top,bottom:T.bottom-C.bottom+m.bottom,left:C.left-T.left+m.left,right:T.right-C.right+m.right},A=e.modifiersData.offset;if(f===_i&&A){var U=A[o];Object.keys($).forEach(function(B){var K=[Ut,zt].indexOf(B)>=0?1:-1,W=[ht,zt].indexOf(B)>=0?"y":"x";$[B]+=U[W]*K})}return $}function y2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Xw:l,c=ei(r),d=c?a?zy:zy.filter(function(g){return ei(g)===c}):Us,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var v=f.reduce(function(g,S){return g[S]=$s(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[wn(S)],g},{});return Object.keys(v).sort(function(g,S){return v[g]-v[S]})}function v2(e){if(wn(e)===hh)return[];var t=Wa(e);return[Hy(e),t,Hy(t)]}function g2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,S=n.allowedAutoPlacements,k=t.options.placement,m=wn(k),p=m===k,y=l||(p||!g?[Wa(k)]:v2(k)),E=[k].concat(y).reduce(function(X,re){return X.concat(wn(re)===hh?y2(t,{placement:re,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:S}):re)},[]),C=t.rects.reference,x=t.rects.popper,b=new Map,O=!0,T=E[0],$=0;$=0,W=K?"width":"height",G=$s(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),V=K?B?Ut:mt:B?zt:ht;C[W]>x[W]&&(V=Wa(V));var _=Wa(V),I=[];if(i&&I.push(G[U]<=0),a&&I.push(G[V]<=0,G[_]<=0),I.every(function(X){return X})){T=A,O=!1;break}b.set(A,I)}if(O)for(var F=g?3:1,Y=function(re){var ge=E.find(function(Me){var qe=b.get(Me);if(qe)return qe.slice(0,re).every(function(_t){return _t})});if(ge)return T=ge,"break"},Z=F;Z>0;Z--){var ve=Y(Z);if(ve==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const w2={name:"flip",enabled:!0,phase:"main",fn:g2,requiresIfExists:["offset"],data:{_skip:!1}};function Ky(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gy(e){return[ht,Ut,zt,mt].some(function(t){return e[t]>=0})}function S2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=$s(t,{elementContext:"reference"}),a=$s(t,{altBoundary:!0}),l=Ky(s,r),u=Ky(a,o,i),c=Gy(l),d=Gy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const x2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S2};function E2(e,t,n){var r=wn(e),o=[mt,ht].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mt,Ut].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function k2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Xw.reduce(function(c,d){return c[d]=E2(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const b2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:k2};function C2(e){var t=e.state,n=e.name;t.modifiersData[n]=oS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const O2={name:"popperOffsets",enabled:!0,phase:"read",fn:C2,data:{}};function $2(e){return e==="x"?"y":"x"}function _2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,v=f===void 0?!0:f,g=n.tetherOffset,S=g===void 0?0:g,k=$s(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=wn(t.placement),p=ei(t.placement),y=!p,E=vh(m),C=$2(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,O=t.rects.popper,T=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,$=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(x){if(i){var B,K=E==="y"?ht:mt,W=E==="y"?zt:Ut,G=E==="y"?"height":"width",V=x[E],_=V+k[K],I=V-k[W],F=v?-O[G]/2:0,Y=p===Xo?b[G]:O[G],Z=p===Xo?-O[G]:-b[G],ve=t.elements.arrow,X=v&&ve?yh(ve):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eS(),ge=re[K],Me=re[W],qe=es(0,b[G],X[G]),_t=y?b[G]/2-F-qe-ge-$.mainAxis:Y-qe-ge-$.mainAxis,_n=y?-b[G]/2+F+qe+Me+$.mainAxis:Z+qe+Me+$.mainAxis,Tn=t.elements.arrow&&Ws(t.elements.arrow),Rn=Tn?E==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,Qe=(B=A==null?void 0:A[E])!=null?B:0,de=V+_t-Qe-Rn,H=V+_n-Qe,Ue=es(v?Ml(_,de):_,V,v?Dr(I,H):I);x[E]=Ue,U[E]=Ue-V}if(a){var nt,vt=E==="x"?ht:mt,vi=E==="x"?zt:Ut,we=x[C],Gt=C==="y"?"height":"width",eo=we+k[vt],to=we-k[vi],Rr=[ht,mt].indexOf(m)!==-1,gi=(nt=A==null?void 0:A[C])!=null?nt:0,no=Rr?eo:we-b[Gt]-O[Gt]-gi+$.altAxis,Zn=Rr?we+b[Gt]+O[Gt]-gi-$.altAxis:to,N=v&&Rr?JO(no,we,Zn):es(v?no:eo,we,v?Zn:to);x[C]=N,U[C]=N-we}t.modifiersData[r]=U}}const T2={name:"preventOverflow",enabled:!0,phase:"main",fn:_2,requiresIfExists:["offset"]};function R2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function N2(e){return e===bt(e)||!Sn(e)?gh(e):R2(e)}function A2(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function P2(e,t,n){n===void 0&&(n=!1);var r=Sn(t),o=Sn(t)&&A2(t),i=$r(t),s=Zo(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kr(t)!=="body"||Sh(i))&&(a=N2(t)),Sn(t)?(l=Zo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=wh(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function j2(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function L2(e){var t=j2(e);return QO.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function I2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function M2(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qy={placement:"bottom",modifiers:[],strategy:"absolute"};function Qy(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}const U2={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},W2={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},H2=[];function V2(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:i="absolute",modifiers:s=H2}=n,a=z2(n,F2);const l=h.useRef(s),u=h.useRef(),c=h.useCallback(()=>{var k;(k=u.current)==null||k.update()},[]),d=h.useCallback(()=>{var k;(k=u.current)==null||k.forceUpdate()},[]),[f,v]=MO(h.useState({placement:o,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:k})=>{const m={},p={};Object.keys(k.elements).forEach(y=>{m[y]=k.styles[y],p[y]=k.attributes[y]}),v({state:k,styles:m,attributes:p,update:c,forceUpdate:d,placement:k.placement})}}),[c,d,v]),S=h.useMemo(()=>(Zi(l.current,s)||(l.current=s),l.current),[s]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:i,modifiers:[...S,g,U2]})},[i,o,g,r,S]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=D2(e,t,Object.assign({},a,{placement:o,strategy:i,modifiers:[...S,W2,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,v(k=>Object.assign({},k,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function _s(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var K2=function(){},G2=K2;const q2=si(G2),Yy=()=>{};function Q2(e){return e.button===0}function Y2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ha=e=>e&&("current"in e?e.current:e),Xy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function X2(e,t=Yy,{disabled:n,clickTrigger:r="click"}={}){const o=h.useRef(!1),i=h.useRef(!1),s=h.useCallback(u=>{const c=Ha(e);q2(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!c||Y2(u)||!Q2(u)||!!_s(c,u.target)||i.current,i.current=!1},[e]),a=it(u=>{const c=Ha(e);c&&_s(c,u.target)&&(i.current=!0)}),l=it(u=>{o.current||t(u)});h.useEffect(()=>{var u,c;if(n||e==null)return;const d=Is(Ha(e)),f=d.defaultView||window;let v=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,g=null;Xy[r]&&(g=Dn(d,Xy[r],a,!0));const S=Dn(d,r,s,!0),k=Dn(d,r,p=>{if(p===v){v=void 0;return}l(p)});let m=[];return"ontouchstart"in d.documentElement&&(m=[].slice.call(d.body.children).map(p=>Dn(p,"mousemove",Yy))),()=>{g==null||g(),S(),k(),m.forEach(p=>p())}},[e,n,r,s,a,l])}function J2(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Z2(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function e$({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,d,f,v;const g=J2(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:Z2(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:s?Object.assign({padding:s},(c=g.preventOverflow)==null?void 0:c.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(v=g.arrow)==null?void 0:v.options,{element:a})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const t$=h.createContext(null),n$="data-rr-ui-";function r$(e){return`${n$}${e}`}const iS=h.createContext(ku?window:void 0);iS.Provider;function xh(){return h.useContext(iS)}const sS=h.createContext(null);sS.displayName="InputGroupContext";const ci=h.createContext(null);ci.displayName="NavbarContext";pe.string,pe.bool,pe.bool,pe.bool,pe.bool;const aS=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:i=!1,...s},a)=>(e=z(e,"img"),w.jsx("img",{ref:a,...s,className:M(t,n&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",i&&`${e}-thumbnail`)})));aS.displayName="Image";const o$={type:pe.string,tooltip:pe.bool,as:pe.elementType},$u=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>w.jsx(e,{...o,ref:i,className:M(t,`${n}-${r?"tooltip":"feedback"}`)}));$u.displayName="Feedback";$u.propTypes=o$;const qn=h.createContext({}),Hs=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:i=!1,as:s="input",...a},l)=>{const{controlId:u}=h.useContext(qn);return t=z(t,"form-check-input"),w.jsx(s,{...a,ref:l,type:r,id:e||u,className:M(n,t,o&&"is-valid",i&&"is-invalid")})});Hs.displayName="FormCheckInput";const Bl=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-check-label"),w.jsx("label",{...r,ref:o,htmlFor:n||i,className:M(t,e)})});Bl.displayName="FormCheckLabel";const lS=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:o=!1,disabled:i=!1,isValid:s=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:f,title:v="",type:g="checkbox",label:S,children:k,as:m="input",...p},y)=>{t=z(t,"form-check"),n=z(n,"form-switch");const{controlId:E}=h.useContext(qn),C=h.useMemo(()=>({controlId:e||E}),[E,e]),x=!k&&S!=null&&S!==!1||jO(k,Bl),b=w.jsx(Hs,{...p,type:g==="switch"?"checkbox":g,ref:y,isValid:s,isInvalid:a,disabled:i,as:m});return w.jsx(qn.Provider,{value:C,children:w.jsx("div",{style:f,className:M(d,x&&t,r&&`${t}-inline`,o&&`${t}-reverse`,g==="switch"&&n),children:k||w.jsxs(w.Fragment,{children:[b,x&&w.jsx(Bl,{title:v,children:S}),u&&w.jsx($u,{type:c,tooltip:l,children:u})]})})})});lS.displayName="FormCheck";const Dl=Object.assign(lS,{Input:Hs,Label:Bl}),uS=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:i,isValid:s=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},f)=>{const{controlId:v}=h.useContext(qn);return e=z(e,"form-control"),w.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:o||v,className:M(i,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",a&&"is-invalid")})});uS.displayName="FormControl";const i$=Object.assign(uS,{Feedback:$u}),cS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"form-floating"),w.jsx(n,{ref:o,className:M(e,t),...r})));cS.displayName="FormFloating";const Eh=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const o=h.useMemo(()=>({controlId:e}),[e]);return w.jsx(qn.Provider,{value:o,children:w.jsx(t,{...n,ref:r})})});Eh.displayName="FormGroup";const fS=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:i,...s},a)=>{const{controlId:l}=h.useContext(qn);t=z(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=M(o,t,r&&"visually-hidden",n&&u);return i=i||l,n?w.jsx(dn,{ref:a,as:"label",className:c,htmlFor:i,...s}):w.jsx(e,{ref:a,className:c,htmlFor:i,...s})});fS.displayName="FormLabel";const dS=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-range"),w.jsx("input",{...r,type:"range",ref:o,className:M(t,e),id:n||i})});dS.displayName="FormRange";const pS=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:i=!1,id:s,...a},l)=>{const{controlId:u}=h.useContext(qn);return e=z(e,"form-select"),w.jsx("select",{...a,size:n,ref:l,className:M(r,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:s||u})});pS.displayName="FormSelect";const hS=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=z(e,"form-text"),w.jsx(n,{...o,ref:i,className:M(t,e,r&&"text-muted")})));hS.displayName="FormText";const mS=h.forwardRef((e,t)=>w.jsx(Dl,{...e,ref:t,type:"switch"}));mS.displayName="Switch";const s$=Object.assign(mS,{Input:Dl.Input,Label:Dl.Label}),yS=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=z(e,"form-floating"),w.jsxs(Eh,{ref:s,className:M(t,e),controlId:r,...i,children:[n,w.jsx("label",{htmlFor:r,children:o})]})));yS.displayName="FloatingLabel";const a$={_ref:pe.any,validated:pe.bool,as:pe.elementType},kh=h.forwardRef(({className:e,validated:t,as:n="form",...r},o)=>w.jsx(n,{...r,ref:o,className:M(e,t&&"was-validated")}));kh.displayName="Form";kh.propTypes=a$;const ot=Object.assign(kh,{Group:Eh,Control:i$,Floating:cS,Check:Dl,Switch:s$,Label:fS,Text:hS,Range:dS,Select:pS,FloatingLabel:yS}),_u=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"input-group-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));_u.displayName="InputGroupText";const l$=e=>w.jsx(_u,{children:w.jsx(Hs,{type:"checkbox",...e})}),u$=e=>w.jsx(_u,{children:w.jsx(Hs,{type:"radio",...e})}),vS=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},s)=>{e=z(e,"input-group");const a=h.useMemo(()=>({}),[]);return w.jsx(sS.Provider,{value:a,children:w.jsx(o,{ref:s,...i,className:M(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});vS.displayName="InputGroup";const Un=Object.assign(vS,{Text:_u,Radio:u$,Checkbox:l$});function Gc(e){e===void 0&&(e=Is());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function c$(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Jy=r$("modal-open");class bh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return c$(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Fn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Jy,""),Fn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Jy),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qc=(e,t)=>ku?e==null?(t||Is()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bd(e,t){const n=xh(),[r,o]=h.useState(()=>qc(e,n==null?void 0:n.document));if(!r){const i=qc(e);i&&o(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=qc(e);i!==r&&o(i)},[e,r]),r}function f$({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const i=h.useRef(null),s=h.useRef(t),a=it(n);h.useEffect(()=>{t?s.current=!0:a(i.current)},[t,a]);const l=Yr(i,e.ref),u=h.cloneElement(e,{ref:l});return t?u:o||!s.current&&r?null:u}function gS(e){return e.code==="Escape"||e.keyCode===27}function d$(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const p$=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function h$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function m$(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l}=e,u=h$(e,p$);const{major:c}=d$(),d=c>=19?l.props.ref:l.ref,f=h.useRef(null),v=Yr(f,typeof l=="function"?null:d),g=x=>b=>{x&&f.current&&x(f.current,b)},S=h.useCallback(g(t),[t]),k=h.useCallback(g(n),[n]),m=h.useCallback(g(r),[r]),p=h.useCallback(g(o),[o]),y=h.useCallback(g(i),[i]),E=h.useCallback(g(s),[s]),C=h.useCallback(g(a),[a]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:S},n&&{onEntering:k},r&&{onEntered:m},o&&{onExit:p},i&&{onExiting:y},s&&{onExited:E},a&&{addEndListener:C},{children:typeof l=="function"?(x,b)=>l(x,Object.assign({},b,{ref:v})):h.cloneElement(l,{ref:v})})}const y$=["component"];function v$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}const g$=h.forwardRef((e,t)=>{let{component:n}=e,r=v$(e,y$);const o=m$(r);return w.jsx(n,Object.assign({ref:t},o))});function w$({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),o=it(t);return Il(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Il(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function S$({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[i,s]=h.useState(!t);t&&i&&s(!1);const a=w$({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(c,d=>{throw u.in||s(!0),d})}}),l=Yr(a,e.ref);return i&&!t?null:h.cloneElement(e,{ref:l})}function Cd(e,t,n){return e?w.jsx(g$,Object.assign({},n,{component:e})):t?w.jsx(S$,Object.assign({},n,{transition:t})):w.jsx(f$,Object.assign({},n))}const x$=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function E$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}let Qc;function k$(e){return Qc||(Qc=new bh({ownerDocument:e==null?void 0:e.document})),Qc}function b$(e){const t=xh(),n=e||k$(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:h.useCallback(o=>{r.current.backdrop=o},[])})}const wS=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:v,runBackdropTransition:g,autoFocus:S=!0,enforceFocus:k=!0,restoreFocus:m=!0,restoreFocusOptions:p,renderDialog:y,renderBackdrop:E=H=>w.jsx("div",Object.assign({},H)),manager:C,container:x,onShow:b,onHide:O=()=>{},onExit:T,onExited:$,onExiting:A,onEnter:U,onEntering:B,onEntered:K}=e,W=E$(e,x$);const G=xh(),V=bd(x),_=b$(C),I=dh(),F=EO(n),[Y,Z]=h.useState(!n),ve=h.useRef(null);h.useImperativeHandle(t,()=>_,[_]),ku&&!F&&n&&(ve.current=Gc(G==null?void 0:G.document)),n&&Y&&Z(!1);const X=it(()=>{if(_.add(),_n.current=Dn(document,"keydown",qe),_t.current=Dn(document,"focus",()=>setTimeout(ge),!0),b&&b(),S){var H,Ue;const nt=Gc((H=(Ue=_.dialog)==null?void 0:Ue.ownerDocument)!=null?H:G==null?void 0:G.document);_.dialog&&nt&&!_s(_.dialog,nt)&&(ve.current=nt,_.dialog.focus())}}),re=it(()=>{if(_.remove(),_n.current==null||_n.current(),_t.current==null||_t.current(),m){var H;(H=ve.current)==null||H.focus==null||H.focus(p),ve.current=null}});h.useEffect(()=>{!n||!V||X()},[n,V,X]),h.useEffect(()=>{Y&&re()},[Y,re]),Kw(()=>{re()});const ge=it(()=>{if(!k||!I()||!_.isTopModal())return;const H=Gc(G==null?void 0:G.document);_.dialog&&H&&!_s(_.dialog,H)&&_.dialog.focus()}),Me=it(H=>{H.target===H.currentTarget&&(u==null||u(H),a===!0&&O())}),qe=it(H=>{l&&gS(H)&&_.isTopModal()&&(c==null||c(H),H.defaultPrevented||O())}),_t=h.useRef(),_n=h.useRef(),Tn=(...H)=>{Z(!0),$==null||$(...H)};if(!V)return null;const Rn=Object.assign({role:r,ref:_.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},W,{style:i,className:o,tabIndex:-1});let Qe=y?y(Rn):w.jsx("div",Object.assign({},Rn,{children:h.cloneElement(s,{role:"document"})}));Qe=Cd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:A,onExited:Tn,onEnter:U,onEntering:B,onEntered:K,children:Qe});let de=null;return a&&(de=E({ref:_.setBackdropRef,onClick:Me}),de=Cd(v,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),w.jsx(w.Fragment,{children:Ir.createPortal(w.jsxs(w.Fragment,{children:[de,Qe]}),V)})});wS.displayName="Modal";const C$=Object.assign(wS,{Manager:bh});function Od(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function O$(e,t){e.classList?e.classList.add(t):Od(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Zy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function $$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Zy(e.className,t):e.setAttribute("class",Zy(e.className&&e.className.baseVal||"",t))}const ao={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class SS extends bh{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,Fn(n,{[t]:`${parseFloat(Fn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Fn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(O$(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),so(n,ao.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();$$(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.restore(r,i)),so(n,ao.STICKY_CONTENT).forEach(i=>this.restore(o,i)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let Yc;function _$(e){return Yc||(Yc=new SS(e)),Yc}const xS=h.createContext({onHide(){}}),T$=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...i},s)=>{const a=h.useContext(xS),l=it(()=>{a==null||a.onHide(),r==null||r()});return w.jsxs("div",{ref:s,...i,children:[o,n&&w.jsx(Cu,{"aria-label":e,variant:t,onClick:l})]})}),ES=h.forwardRef(({bsPrefix:e,className:t,as:n,...r},o)=>{e=z(e,"navbar-brand");const i=n||(r.href?"a":"span");return w.jsx(i,{...r,ref:o,className:M(t,e)})});ES.displayName="NavbarBrand";const kS=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=z(t,"navbar-collapse");const o=h.useContext(ci);return w.jsx(bu,{in:!!(o&&o.expanded),...n,children:w.jsx("div",{ref:r,className:t,children:e})})});kS.displayName="NavbarCollapse";const bS=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:i,...s},a)=>{e=z(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(ci)||{},c=it(d=>{i&&i(d),l&&l()});return o==="button"&&(s.type="button"),w.jsx(o,{...s,ref:a,onClick:c,"aria-label":r,className:M(t,e,!u&&"collapsed"),children:n||w.jsx("span",{className:`${e}-icon`})})});bS.displayName="NavbarToggle";const $d=new WeakMap,ev=(e,t)=>{if(!e||!t)return;const n=$d.get(t)||new Map;$d.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function R$(e,t=typeof window>"u"?void 0:window){const n=ev(e,t),[r,o]=h.useState(()=>n?n.matches:!1);return Il(()=>{let i=ev(e,t);if(!i)return o(!1);let s=$d.get(t);const a=()=>{o(i.matches)};return i.refCount++,i.addListener(a),a(),()=>{i.removeListener(a),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),r}function N$(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function o(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function s(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((f,[v,g])=>((g==="up"||g===!0)&&(f=n(f,i(v))),(g==="down"||g===!0)&&(f=n(f,o(v))),f),""),[JSON.stringify(c)]);return R$(d,u)}return s}const A$=N$({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),CS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"offcanvas-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));CS.displayName="OffcanvasBody";const P$={[Pt]:"show",[In]:"show"},OS=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:o=!1,unmountOnExit:i=!1,appear:s=!1,...a},l)=>(e=z(e,"offcanvas"),w.jsx(ch,{ref:l,addEndListener:uh,in:r,mountOnEnter:o,unmountOnExit:i,appear:s,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:M(t,n.props.className,(u===Pt||u===Yo)&&`${e}-toggling`,P$[u])})})));OS.displayName="OffcanvasToggling";const $S=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=z(e,"offcanvas-header"),w.jsx(T$,{ref:i,...o,className:M(t,e),closeLabel:n,closeButton:r})));$S.displayName="OffcanvasHeader";const j$=fh("h5"),_S=h.forwardRef(({className:e,bsPrefix:t,as:n=j$,...r},o)=>(t=z(t,"offcanvas-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));_S.displayName="OffcanvasTitle";function L$(e){return w.jsx(OS,{...e})}function I$(e){return w.jsx(Cs,{...e})}const TS=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:o="start",responsive:i,show:s=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:v,autoFocus:g=!0,enforceFocus:S=!0,restoreFocus:k=!0,restoreFocusOptions:m,onEntered:p,onExit:y,onExiting:E,onEnter:C,onEntering:x,onExited:b,backdropClassName:O,manager:T,renderStaticNode:$=!1,...A},U)=>{const B=h.useRef();e=z(e,"offcanvas");const{onToggle:K}=h.useContext(ci)||{},[W,G]=h.useState(!1),V=A$(i||"xs","up");h.useEffect(()=>{G(i?s&&!V:s)},[s,i,V]);const _=it(()=>{K==null||K(),f==null||f()}),I=h.useMemo(()=>({onHide:_}),[_]);function F(){return T||(u?(B.current||(B.current=new SS({handleContainerOverflow:!1})),B.current):_$())}const Y=(re,...ge)=>{re&&(re.style.visibility="visible"),C==null||C(re,...ge)},Z=(re,...ge)=>{re&&(re.style.visibility=""),b==null||b(...ge)},ve=h.useCallback(re=>w.jsx("div",{...re,className:M(`${e}-backdrop`,O)}),[O,e]),X=re=>w.jsx("div",{...re,...A,className:M(t,i?`${e}-${i}`:e,`${e}-${o}`),"aria-labelledby":r,children:n});return w.jsxs(w.Fragment,{children:[!W&&(i||$)&&X({}),w.jsx(xS.Provider,{value:I,children:w.jsx(C$,{show:W,ref:U,backdrop:a,container:v,keyboard:l,autoFocus:g,enforceFocus:S&&!u,restoreFocus:k,restoreFocusOptions:m,onEscapeKeyDown:c,onShow:d,onHide:_,onEnter:Y,onEntering:x,onEntered:p,onExit:y,onExiting:E,onExited:Z,manager:F(),transition:L$,backdropTransition:I$,renderBackdrop:ve,renderDialog:X})})]})});TS.displayName="Offcanvas";const Fi=Object.assign(TS,{Body:CS,Header:$S,Title:_S}),RS=h.forwardRef((e,t)=>{const n=h.useContext(ci);return w.jsx(Fi,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});RS.displayName="NavbarOffcanvas";const NS=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"navbar-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));NS.displayName="NavbarText";const AS=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:s,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:v=!1,...g}=Hk(e,{expanded:"onToggle"}),S=z(n,"navbar"),k=h.useCallback((...y)=>{f==null||f(...y),v&&c&&(d==null||d(!1))},[f,v,c,d]);g.role===void 0&&u!=="nav"&&(g.role="navigation");let m=`${S}-expand`;typeof r=="string"&&(m=`${m}-${r}`);const p=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return w.jsx(ci.Provider,{value:p,children:w.jsx(t$.Provider,{value:k,children:w.jsx(u,{ref:t,...g,className:M(l,S,r&&m,o&&`${S}-${o}`,i&&`bg-${i}`,a&&`sticky-${a}`,s&&`fixed-${s}`)})})})});AS.displayName="Navbar";const Xc=Object.assign(AS,{Brand:ES,Collapse:kS,Offcanvas:RS,Text:NS,Toggle:bS}),M$=()=>{};function B$(e,t,{disabled:n,clickTrigger:r}={}){const o=t||M$;X2(e,o,{disabled:n,clickTrigger:r});const i=it(s=>{gS(s)&&o(s)});h.useEffect(()=>{if(n||e==null)return;const s=Is(Ha(e));let a=(s.defaultView||window).event;const l=Dn(s,"keyup",u=>{if(u===a){a=void 0;return}i(u)});return()=>{l()}},[e,n,i])}const PS=h.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:i,popperConfig:s={},transition:a,runTransition:l}=e,[u,c]=By(),[d,f]=By(),v=Yr(c,t),g=bd(e.container),S=bd(e.target),[k,m]=h.useState(!e.show),p=V2(S,u,e$({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:s}));e.show&&k&&m(!1);const y=(...A)=>{m(!0),e.onExited&&e.onExited(...A)},E=e.show||!k;if(B$(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:C,onExiting:x,onEnter:b,onEntering:O,onEntered:T}=e;let $=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:v}),{popper:p,placement:o,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return $=Cd(a,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:$,onExit:C,onExiting:x,onExited:y,onEnter:b,onEntering:O,onEntered:T}),g?Ir.createPortal($,g):null});PS.displayName="Overlay";const jS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-header"),w.jsx(n,{ref:o,className:M(e,t),...r})));jS.displayName="PopoverHeader";const Ch=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));Ch.displayName="PopoverBody";function LS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function IS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const D$=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:s,hasDoneInitialMeasure:a,popper:l,show:u,...c},d)=>{const f=z(e,"popover"),v=O0(),[g]=(t==null?void 0:t.split("-"))||[],S=LS(g,v);let k=r;return u&&!a&&(k={...r,...IS(l==null?void 0:l.strategy)}),w.jsxs("div",{ref:d,role:"tooltip",style:k,"x-placement":g,className:M(n,f,g&&`bs-popover-${S}`),...c,children:[w.jsx("div",{className:"popover-arrow",...s}),i?w.jsx(Ch,{children:o}):o]})}),F$=Object.assign(D$,{Header:jS,Body:Ch,POPPER_OFFSET:[0,8]}),MS=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:s,popper:a,show:l,...u},c)=>{e=z(e,"tooltip");const d=O0(),[f]=(t==null?void 0:t.split("-"))||[],v=LS(f,d);let g=r;return l&&!s&&(g={...r,...IS(a==null?void 0:a.strategy)}),w.jsxs("div",{ref:c,style:g,role:"tooltip","x-placement":f,className:M(n,e,`bs-tooltip-${v}`),...u,children:[w.jsx("div",{className:"tooltip-arrow",...i}),w.jsx("div",{className:`${e}-inner`,children:o})]})});MS.displayName="Tooltip";const BS=Object.assign(MS,{TOOLTIP_OFFSET:[0,6]});function z$(e){const t=h.useRef(null),n=z(void 0,"popover"),r=z(void 0,"tooltip"),o=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Od(t.current,n))return F$.POPPER_OFFSET;if(Od(t.current,r))return BS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function U$(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Ll(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Ll(o)))}const DS=h.forwardRef(({children:e,transition:t=Cs,popperConfig:n={},rootClose:r=!1,placement:o="top",show:i=!1,...s},a)=>{const l=h.useRef({}),[u,c]=h.useState(null),[d,f]=z$(s.offset),v=Yr(a,d),g=t===!0?Cs:t||void 0,S=it(k=>{c(k),n==null||n.onFirstUpdate==null||n.onFirstUpdate(k)});return Il(()=>{u&&s.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,s.target]),h.useEffect(()=>{i||c(null)},[i]),w.jsx(PS,{...s,ref:v,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:g,rootClose:r,placement:o,show:i,children:(k,{arrowProps:m,popper:p,show:y})=>{var E;U$(k,m);const C=p==null?void 0:p.placement,x=Object.assign(l.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:C,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),b=!!u;return typeof e=="function"?e({...k,placement:C,show:y,...!t&&y&&{className:"show"},popper:x,arrowProps:m,hasDoneInitialMeasure:b}):h.cloneElement(e,{...k,placement:C,arrowProps:m,popper:x,hasDoneInitialMeasure:b,className:M(e.props.className,!t&&y&&"show"),style:{...e.props.style,...k.style}})}})});DS.displayName="Overlay";function W$(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function tv(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==o)&&!_s(o,i)&&e(...t)}pe.oneOf(["click","hover","focus"]);const H$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:i=!1,onToggle:s,delay:a,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const d=h.useRef(null),f=Yr(d,n.ref),v=qw(),g=h.useRef(""),[S,k]=k0(o,i,s),m=W$(a),{onFocus:p,onBlur:y,onClick:E}=typeof n!="function"?h.Children.only(n).props:{},C=W=>{f(Ll(W))},x=h.useCallback(()=>{if(v.clear(),g.current="show",!m.show){k(!0);return}v.set(()=>{g.current==="show"&&k(!0)},m.show)},[m.show,k,v]),b=h.useCallback(()=>{if(v.clear(),g.current="hide",!m.hide){k(!1);return}v.set(()=>{g.current==="hide"&&k(!1)},m.hide)},[m.hide,k,v]),O=h.useCallback((...W)=>{x(),p==null||p(...W)},[x,p]),T=h.useCallback((...W)=>{b(),y==null||y(...W)},[b,y]),$=h.useCallback((...W)=>{k(!S),E==null||E(...W)},[E,k,S]),A=h.useCallback((...W)=>{tv(x,W,"fromElement")},[x]),U=h.useCallback((...W)=>{tv(b,W,"toElement")},[b]),B=e==null?[]:[].concat(e),K={ref:C};return B.indexOf("click")!==-1&&(K.onClick=$),B.indexOf("focus")!==-1&&(K.onFocus=O,K.onBlur=T),B.indexOf("hover")!==-1&&(K.onMouseOver=A,K.onMouseOut=U),w.jsxs(w.Fragment,{children:[typeof n=="function"?n(K):h.cloneElement(n,K),w.jsx(DS,{...c,show:S,onHide:b,flip:u,placement:l,popperConfig:r,target:d.current,children:t})]})},Fl=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"row"),s=b0(),a=C0(),l=`${i}-cols`,u=[];return s.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const v=c!==a?`-${c}`:"";f!=null&&u.push(`${l}${v}-${f}`)}),w.jsx(n,{ref:o,...r,className:M(t,i,...u)})});Fl.displayName="Row";const FS=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{e=z(e,"spinner");const l=`${e}-${n}`;return w.jsx(o,{ref:a,...s,className:M(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})});FS.displayName="Spinner";const V$={[Pt]:"showing",[Yo]:"showing show"},zS=h.forwardRef((e,t)=>w.jsx(Cs,{...e,ref:t,transitionClasses:V$}));zS.displayName="ToastFade";const US=h.createContext({onClose(){}}),WS=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:o,children:i,...s},a)=>{e=z(e,"toast-header");const l=h.useContext(US),u=it(c=>{l==null||l.onClose==null||l.onClose(c)});return w.jsxs("div",{ref:a,...s,className:M(e,o),children:[i,r&&w.jsx(Cu,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});WS.displayName="ToastHeader";const HS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"toast-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));HS.displayName="ToastBody";const VS=h.forwardRef(({bsPrefix:e,className:t,transition:n=zS,show:r=!0,animation:o=!0,delay:i=5e3,autohide:s=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:v,bg:g,...S},k)=>{e=z(e,"toast");const m=h.useRef(i),p=h.useRef(a);h.useEffect(()=>{m.current=i,p.current=a},[i,a]);const y=qw(),E=!!(s&&r),C=h.useCallback(()=>{E&&(p.current==null||p.current())},[E]);h.useEffect(()=>{y.set(C,m.current)},[y,C]);const x=h.useMemo(()=>({onClose:a}),[a]),b=!!(n&&o),O=w.jsx("div",{...S,ref:k,className:M(e,t,g&&`bg-${g}`,!b&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return w.jsx(US.Provider,{value:x,children:b&&n?w.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:l,onExit:u,onExiting:c,onExited:v,unmountOnExit:!0,children:O}):O})});VS.displayName="Toast";const ns=Object.assign(VS,{Body:HS,Header:WS}),K$={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},Oh=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:o="div",...i},s)=>(e=z(e,"toast-container"),w.jsx(o,{ref:s,...i,className:M(e,t&&K$[t],n&&`position-${n}`,r)})));Oh.displayName="ToastContainer";const G$=()=>{},$h=h.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:o,onChange:i,value:s,disabled:a,id:l,inputRef:u,...c},d)=>(e=z(e,"btn-check"),w.jsxs(w.Fragment,{children:[w.jsx("input",{className:e,name:t,type:o,value:s,ref:u,autoComplete:"off",checked:!!r,disabled:!!a,onChange:i||G$,id:l}),w.jsx(zs,{...c,ref:d,className:M(n,a&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:l})]})));$h.displayName="ToggleButton";const bn=Object.create(null);bn.open="0";bn.close="1";bn.ping="2";bn.pong="3";bn.message="4";bn.upgrade="5";bn.noop="6";const Va=Object.create(null);Object.keys(bn).forEach(e=>{Va[bn[e]]=e});const _d={type:"error",data:"parser error"},KS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",GS=typeof ArrayBuffer=="function",qS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,_h=({type:e,data:t},n,r)=>KS&&t instanceof Blob?n?r(t):nv(t,r):GS&&(t instanceof ArrayBuffer||qS(t))?n?r(t):nv(new Blob([t]),r):r(bn[e]+(t||"")),nv=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function rv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jc;function q$(e,t){if(KS&&e.data instanceof Blob)return e.data.arrayBuffer().then(rv).then(t);if(GS&&(e.data instanceof ArrayBuffer||qS(e.data)))return t(rv(e.data));_h(e,!1,n=>{Jc||(Jc=new TextEncoder),t(Jc.encode(n))})}const ov="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},Y$=typeof ArrayBuffer=="function",Th=(e,t)=>{if(typeof e!="string")return{type:"message",data:QS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:X$(e.substring(1),t)}:Va[n]?e.length>1?{type:Va[n],data:e.substring(1)}:{type:Va[n]}:_d},X$=(e,t)=>{if(Y$){const n=Q$(e);return QS(n,t)}else return{base64:!0,data:e}},QS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},YS="",J$=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{_h(i,!1,a=>{r[s]=a,++o===n&&t(r.join(YS))})})},Z$=(e,t)=>{const n=e.split(YS),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Zc;function va(e){return e.reduce((t,n)=>t+n.length,0)}function ga(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(_d);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(va(n)e){a.enqueue(_d);break}}}})}const XS=4;function je(e){if(e)return n_(e)}function n_(e){for(var t in je.prototype)e[t]=je.prototype[t];return e}je.prototype.on=je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};je.prototype.off=je.prototype.removeListener=je.prototype.removeAllListeners=je.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const r_=jt.setTimeout,o_=jt.clearTimeout;function Tu(e,t){t.useNativeTimers?(e.setTimeoutFn=r_.bind(jt),e.clearTimeoutFn=o_.bind(jt)):(e.setTimeoutFn=jt.setTimeout.bind(jt),e.clearTimeoutFn=jt.clearTimeout.bind(jt))}const i_=1.33;function s_(e){return typeof e=="string"?a_(e):Math.ceil((e.byteLength||e.size)*i_)}function a_(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function l_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function u_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function ex(){const e=av(+new Date);return e!==sv?(iv=0,sv=e):e+"."+av(iv++)}for(;wa{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Z$(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,J$(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=ex()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new xn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class xn extends je{constructor(t,n){super(),Tu(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=JS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new nx(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=xn.requestsCount++,xn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=p_,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete xn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}xn.requestsCount=0;xn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",lv);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,lv,!1)}}function lv(){for(let e in xn.requests)xn.requests.hasOwnProperty(e)&&xn.requests[e].abort()}const Nh=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Sa=jt.WebSocket||jt.MozWebSocket,uv=!0,y_="arraybuffer",cv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class v_ extends Rh{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=cv?{}:JS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=uv&&!cv?n?new Sa(t,n):new Sa(t):new Sa(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{uv&&this.ws.send(i)}catch{}o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=ex()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Sa}}class g_ extends Rh{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=t_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=e_();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const w_={websocket:v_,webtransport:g_,polling:m_},S_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,x_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rd(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=S_.exec(e||""),i={},s=14;for(;s--;)i[x_[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=E_(i,i.path),i.queryKey=k_(i,i.query),i}function E_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function k_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let rx=class vo extends je{constructor(t,n={}){super(),this.binaryType=y_,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Rd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Rd(n.host).host),Tu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=u_(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=XS,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new w_[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;vo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",vo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ox=Object.prototype.toString,$_=typeof Blob=="function"||typeof Blob<"u"&&ox.call(Blob)==="[object BlobConstructor]",__=typeof File=="function"||typeof File<"u"&&ox.call(File)==="[object FileConstructor]";function Ah(e){return C_&&(e instanceof ArrayBuffer||O_(e))||$_&&e instanceof Blob||__&&e instanceof File}function Ka(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:J.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}fi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};fi.prototype.reset=function(){this.attempts=0};fi.prototype.setMin=function(e){this.ms=e};fi.prototype.setMax=function(e){this.max=e};fi.prototype.setJitter=function(e){this.jitter=e};class Pd extends je{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Tu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new fi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||L_;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new rx(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Zt(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Zt(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Zt(t,"ping",this.onping.bind(this)),Zt(t,"data",this.ondata.bind(this)),Zt(t,"error",this.onerror.bind(this)),Zt(t,"close",this.onclose.bind(this)),Zt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Nh(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new ix(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ti={};function Ga(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=b_(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ti[o]&&i in Ti[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Pd(r,t):(Ti[o]||(Ti[o]=new Pd(r,t)),l=Ti[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ga,{Manager:Pd,Socket:ix,io:Ga,connect:Ga});const sx=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},M_=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&sx(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},B_=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const a=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=sx(s,a)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},Ui=window.location.hostname,Wi=window.location.port,D_=`ws://${Ui}:${Wi}/`,Ln=Ga(D_,{path:"/ws/socket.io",transports:["websocket"]}),F_=(e,t)=>{t?Ln.emit("update_value",{access_path:e.full_access_path,value:e},t):Ln.emit("update_value",{access_path:e.full_access_path,value:e})},ax=(e,t=[],n={},r)=>{const o=M_(t),i=B_(n);Ln.emit("trigger_method",{access_path:e,args:o,kwargs:i})},lx=ne.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return w.jsx(Oh,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?w.jsxs(ns,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[w.jsxs(ns.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[w.jsx("strong",{className:"me-auto",children:o.levelname}),w.jsx("small",{children:o.timeStamp})]}),w.jsx(ns.Body,{children:o.message})]},o.id):null)})});lx.displayName="Notifications";const jd=ne.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:a}=o();return w.jsx(Oh,{position:"bottom-center",className:"toastContainer",children:w.jsx(ns,{show:t,onClose:r,delay:a,autohide:a!==void 0,bg:s,children:w.jsxs(ns.Body,{className:"d-flex justify-content-between",children:[i,w.jsx(zs,{variant:"close",size:"sm",onClick:r})]})})})});jd.displayName="ConnectionToast";function ux(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function z_(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function U_(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(pv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=pv(),e[t];throw new Error(`Key not found: ${t}`)}}function dv(e,t,n=!1){const r=z_(t);try{return U_(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function W_(e,t,n){const r=ux(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let l=0;l{const{docString:t}=e;if(!t)return null;const n=w.jsx(BS,{id:"tooltip",children:t});return w.jsx(H$,{placement:"bottom",overlay:n,children:w.jsx(Lw,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});ln.displayName="DocStringComponent";function Cn(){const e=h.useRef(0);return h.useEffect(()=>{e.current+=1}),e.current}const cx=ne.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn(),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{s({type:"bool",value:c,full_access_path:n,readonly:r,doc:o})};return w.jsxs("div",{className:"component buttonComponent",id:l,children:[!1,w.jsxs($h,{id:`toggle-check-${l}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:a,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[a,w.jsx(ln,{docString:o})]})]})});cx.displayName="ButtonComponent";const H_=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let a=0;s?a=Math.pow(10,o+1-n):a=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?a:-a)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},K_=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{if(e==="."&&t.includes("."))return{value:t,selectionStart:n};let o=t;return r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1}},zl=ne.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:a,addNotification:l,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,v]=h.useState(null),[g,S]=h.useState(n.toString());Cn();const k=p=>{const{key:y,target:E}=p,C=E;if(y==="F1"||y==="F5"||y==="F12"||y==="Tab"||y==="ArrowRight"||y==="ArrowLeft")return;p.preventDefault();const{value:x}=C,b=C.selectionEnd??0;let O=C.selectionStart??0,T=x;if(p.ctrlKey&&y==="a"){C.setSelectionRange(0,x.length);return}else if(y==="-")if(O===0&&!x.startsWith("-"))T="-"+x,O++;else if(x.startsWith("-")&&O===1)T=x.substring(1),O--;else return;else if(y>="0"&&y<="9")({value:T,selectionStart:O}=hv(y,x,O,b));else if(y==="."&&(o==="float"||o==="Quantity"))({value:T,selectionStart:O}=hv(y,x,O,b));else if(y==="ArrowUp"||y==="ArrowDown")({value:T,selectionStart:O}=H_(y,x,O));else if(y==="Backspace")({value:T,selectionStart:O}=V_(x,O,b));else if(y==="Delete")({value:T,selectionStart:O}=K_(x,O,b));else if(y==="Enter"&&!s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($);return}else return;if(s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($)}S(T),v(O)},m=()=>{if(!s){let p;o==="Quantity"?p={type:"Quantity",value:{magnitude:Number(g),unit:a},full_access_path:t,readonly:r,doc:i}:p={type:o,value:Number(g),full_access_path:t,readonly:r,doc:i},u(p)}};return h.useEffect(()=>{const p=o==="int"?parseInt(g):parseFloat(g);n!==p&&S(n.toString());let y=`${t} changed to ${e.value}`;a===void 0?y+=".":y+=` ${a}.`,l(y)},[n]),h.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),w.jsxs("div",{className:"component numberComponent",id:d,children:[!1,w.jsxs(Un,{children:[c&&w.jsxs(Un.Text,{children:[c,w.jsx(ln,{docString:i})]}),w.jsx(ot.Control,{type:"text",value:g,disabled:r,onChange:()=>{},name:d,onKeyDown:k,onBlur:m,className:s&&!r?"instantUpdate":""}),a&&w.jsx(Un.Text,{children:a})]})]})});zl.displayName="NumberComponent";const Ts={black:"#000",white:"#fff"},lo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},uo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},co={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},fo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},po={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ri={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},G_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Rs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ve(di,--yt):0,ti--,Ae===10&&(ti=1,Nu--),Ae}function Et(){return Ae=yt2||As(Ae)>3?"":" "}function fT(e,t){for(;--t&&Et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Vs(e,qa()+(t<6&&En()==32&&Et()==32))}function Id(e){for(;Et();)switch(Ae){case e:return yt;case 34:case 39:e!==34&&e!==39&&Id(Ae);break;case 40:e===41&&Id(e);break;case 92:Et();break}return yt}function dT(e,t){for(;Et()&&e+Ae!==57;)if(e+Ae===84&&En()===47)break;return"/*"+Vs(t,yt-1)+"*"+Ru(e===47?e:Et())}function pT(e){for(;!As(En());)Et();return Vs(e,yt)}function hT(e){return vx(Ya("",null,null,null,[""],e=yx(e),0,[0],e))}function Ya(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,v=0,g=0,S=1,k=1,m=1,p=0,y="",E=o,C=i,x=r,b=y;k;)switch(g=p,p=Et()){case 40:if(g!=108&&Ve(b,d-1)==58){Ld(b+=ae(Qa(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:b+=Qa(p);break;case 9:case 10:case 13:case 32:b+=cT(g);break;case 92:b+=fT(qa()-1,7);continue;case 47:switch(En()){case 42:case 47:xa(mT(dT(Et(),qa()),t,n),l);break;default:b+="/"}break;case 123*S:a[u++]=pn(b)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:m==-1&&(b=ae(b,/\f/g,"")),v>0&&pn(b)-d&&xa(v>32?yv(b+";",r,n,d-1):yv(ae(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(xa(x=mv(b,t,n,u,c,o,a,y,E=[],C=[],d),i),p===123)if(c===0)Ya(b,t,x,x,E,i,d,a,C);else switch(f===99&&Ve(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ya(e,x,x,r&&xa(mv(e,x,x,0,0,o,a,y,o,E=[],d),C),o,C,d,a,r?E:C);break;default:Ya(b,x,x,x,[""],C,0,a,C)}}u=c=v=0,S=m=1,y=b="",d=s;break;case 58:d=1+pn(b),v=g;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&uT()==125)continue}switch(b+=Ru(p),p*S){case 38:m=c>0?1:(b+="\f",-1);break;case 44:a[u++]=(pn(b)-1)*m,m=1;break;case 64:En()===45&&(b+=Qa(Et())),f=En(),c=d=pn(y=b+=pT(qa())),p++;break;case 45:g===45&&pn(b)==2&&(S=0)}}return i}function mv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],v=Mh(f),g=0,S=0,k=0;g0?f[m]+" "+p:ae(p,/&\f/g,f[m])))&&(l[k++]=y);return Au(e,t,n,o===0?Lh:a,l,u,c)}function mT(e,t,n){return Au(e,t,n,dx,Ru(lT()),Ns(e,2,-2),0)}function yv(e,t,n,r){return Au(e,t,n,Ih,Ns(e,0,r),Ns(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Mh(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Ul+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?gx(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,pn(e)-3-(~Ld(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ve(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var bT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ih:t.return=gx(t.value,t.length);break;case px:return Fo([Ni(t,{value:ae(t.value,"@","@"+se)})],o);case Lh:if(t.length)return aT(t.props,function(i){switch(sT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Ni(t,{props:[ae(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Fo([Ni(t,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},CT=[bT],wx=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||CT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},DT=/[A-Z]|^ms/g,FT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ox=function(t){return t.charCodeAt(1)===45},Sv=function(t){return t!=null&&typeof t!="boolean"},ef=fx(function(e){return Ox(e)?e:e.replace(DT,"-$&").toLowerCase()}),xv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(FT,function(r,o,i){return yn={name:o,styles:i,next:yn},o})}return BT[t]!==1&&!Ox(t)&&typeof n=="number"&&n!==0?n+"px":n};function js(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return yn={name:n.name,styles:n.styles,next:yn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)yn={name:r.name,styles:r.styles,next:yn},r=r.next;var o=n.styles+";";return o}return zT(e,t,n)}case"function":{if(e!==void 0){var i=yn,s=n(e);return yn=i,js(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function zT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?GT:qT},Ov=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},QT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return bx(n,r,o),WT(function(){return Cx(n,r,o)}),null},YT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Ov(t,n,r),l=a||Cv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,g=1;gt(ZT(o)?n:o):t;return v.jsx(VT,{styles:r})}function tR(e,t){return Md(e,t)}const nR=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},rR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:eR,StyledEngineProvider:JT,ThemeContext:Hh,css:Nx,default:tR,internal_processStyles:nR,keyframes:KT},Symbol.toStringTag,{value:"Module"}));function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ax(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ax(e[n])}),t}function Cn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=Cn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?Ax(t[o]):t[o]:r[o]=t[o]}),r}const oR=Object.freeze(Object.defineProperty({__proto__:null,default:Cn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),iR=["values","unit","step"],sR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Px(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=un(e,iR),i=sR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,g){const w=s.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(w!==-1&&typeof t[s[w]]=="number"?t[s[w]]:g)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Vh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||$v;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||$v;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Vh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function lR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function uR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function nn(e){if(typeof e!="string")throw new Error(Ns(7));return e.charAt(0).toUpperCase()+e.slice(1)}const cR=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"}));function Wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Wl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Wu(l,r)||{};return Qn(s,a,d=>{let f=Wl(u,o,d);return d===f&&typeof d=="string"&&(f=Wl(u,o,`${t}${d==="default"?"":nn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function fR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const dR={m:"margin",p:"padding"},pR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_v={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hR=fR(e=>{if(e.length>2)if(_v[e])e=_v[e];else return[e];const[t,n]=e.split(""),r=dR[t],o=pR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Kh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Kh,...Gh];function Ks(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function jx(e){return Ks(e,"spacing",8)}function Gs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function mR(e,t){return n=>e.reduce((r,o)=>(r[o]=Gs(t,n),r),{})}function yR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=hR(n),i=mR(o,r),s=e[n];return Qn(e,s,i)}function Lx(e,t){const n=jx(e.theme);return Object.keys(e).map(r=>yR(e,t,r,n)).reduce(os,{})}function Ce(e){return Lx(e,Kh)}Ce.propTypes={};Ce.filterProps=Kh;function Oe(e){return Lx(e,Gh)}Oe.propTypes={};Oe.filterProps=Gh;function vR(e=8){if(e.mui)return e;const t=jx({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Hu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?os(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Vt(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const gR=Vt("border",Lt),wR=Vt("borderTop",Lt),SR=Vt("borderRight",Lt),xR=Vt("borderBottom",Lt),ER=Vt("borderLeft",Lt),kR=Vt("borderColor"),bR=Vt("borderTopColor"),CR=Vt("borderRightColor"),OR=Vt("borderBottomColor"),$R=Vt("borderLeftColor"),_R=Vt("outline",Lt),TR=Vt("outlineColor"),Vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ks(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gs(t,r)});return Qn(e,e.borderRadius,n)}return null};Vu.propTypes={};Vu.filterProps=["borderRadius"];Hu(gR,wR,SR,xR,ER,kR,bR,CR,OR,$R,Vu,_R,TR);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({gap:Gs(t,r)});return Qn(e,e.gap,n)}return null};Ku.propTypes={};Ku.filterProps=["gap"];const Gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({columnGap:Gs(t,r)});return Qn(e,e.columnGap,n)}return null};Gu.propTypes={};Gu.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({rowGap:Gs(t,r)});return Qn(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const RR=Te({prop:"gridColumn"}),NR=Te({prop:"gridRow"}),AR=Te({prop:"gridAutoFlow"}),PR=Te({prop:"gridAutoColumns"}),jR=Te({prop:"gridAutoRows"}),LR=Te({prop:"gridTemplateColumns"}),IR=Te({prop:"gridTemplateRows"}),MR=Te({prop:"gridTemplateAreas"}),BR=Te({prop:"gridArea"});Hu(Ku,Gu,qu,RR,NR,AR,PR,jR,LR,IR,MR,BR);function zo(e,t){return t==="grey"?t:e}const DR=Te({prop:"color",themeKey:"palette",transform:zo}),FR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),zR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Hu(DR,FR,zR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const UR=Te({prop:"width",transform:wt}),qh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Vh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:wt(n)}};return Qn(e,e.maxWidth,t)}return null};qh.filterProps=["maxWidth"];const WR=Te({prop:"minWidth",transform:wt}),HR=Te({prop:"height",transform:wt}),VR=Te({prop:"maxHeight",transform:wt}),KR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const GR=Te({prop:"boxSizing"});Hu(UR,qh,WR,HR,VR,KR,GR);const qR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ku},rowGap:{style:qu},columnGap:{style:Gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:qh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},qs=qR;function QR(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function YR(e,t){return typeof e=="function"?e(t):e}function Ix(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wu(o,u)||{};return d?d(s):Qn(s,r,w=>{let S=Wl(f,c,w);return w===S&&typeof w=="string"&&(S=Wl(f,c,`${n}${w==="default"?"":nn(w)}`,w)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:qs;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=lR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(g=>{const w=YR(u[g],i);if(w!=null)if(typeof w=="object")if(s[g])f=os(f,e(g,w,i,s));else{const S=Qn({theme:i},w,k=>({[g]:k}));QR(S,w)?f[g]=t({sx:w,theme:i}):f=os(f,S)}else f=os(f,e(g,w,i,s))}),uR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Mx=Ix();Mx.filterProps=["sx"];const Qh=Mx;function Bx(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const XR=["breakpoints","palette","spacing","shape"];function Dx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=un(e,XR),a=Px(n),l=vR(o);let u=Cn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},aR,i)},s);return u.applyStyles=Bx,u=t.reduce((c,d)=>Cn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Qh({sx:d,theme:this})},u}const JR=Object.freeze(Object.defineProperty({__proto__:null,default:Dx,private_createBreakpoints:Px,unstable_applyStyles:Bx},Symbol.toStringTag,{value:"Module"})),ZR=["sx"],eN=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:qs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function tN(e){const{sx:t}=e,n=un(e,ZR),{systemProps:r,otherProps:o}=eN(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const nN=Object.freeze(Object.defineProperty({__proto__:null,default:Qh,extendSxProp:tN,unstable_createStyleFunctionSx:Ix,unstable_defaultSxConfig:qs},Symbol.toStringTag,{value:"Module"})),Tv=e=>e,rN=()=>{let e=Tv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Tv}}},oN=rN();function Fx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=zx(e,o,n)}),r}var Ux={exports:{}},fe={};/** + */var ze=typeof Symbol=="function"&&Symbol.for,Bh=ze?Symbol.for("react.element"):60103,Dh=ze?Symbol.for("react.portal"):60106,Pu=ze?Symbol.for("react.fragment"):60107,ju=ze?Symbol.for("react.strict_mode"):60108,Lu=ze?Symbol.for("react.profiler"):60114,Iu=ze?Symbol.for("react.provider"):60109,Mu=ze?Symbol.for("react.context"):60110,Fh=ze?Symbol.for("react.async_mode"):60111,Bu=ze?Symbol.for("react.concurrent_mode"):60111,Du=ze?Symbol.for("react.forward_ref"):60112,Fu=ze?Symbol.for("react.suspense"):60113,OT=ze?Symbol.for("react.suspense_list"):60120,zu=ze?Symbol.for("react.memo"):60115,Uu=ze?Symbol.for("react.lazy"):60116,$T=ze?Symbol.for("react.block"):60121,_T=ze?Symbol.for("react.fundamental"):60117,TT=ze?Symbol.for("react.responder"):60118,RT=ze?Symbol.for("react.scope"):60119;function $t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Bh:switch(e=e.type,e){case Fh:case Bu:case Pu:case Lu:case ju:case Fu:return e;default:switch(e=e&&e.$$typeof,e){case Mu:case Du:case Uu:case zu:case Iu:return e;default:return t}}case Dh:return t}}}function xx(e){return $t(e)===Bu}ce.AsyncMode=Fh;ce.ConcurrentMode=Bu;ce.ContextConsumer=Mu;ce.ContextProvider=Iu;ce.Element=Bh;ce.ForwardRef=Du;ce.Fragment=Pu;ce.Lazy=Uu;ce.Memo=zu;ce.Portal=Dh;ce.Profiler=Lu;ce.StrictMode=ju;ce.Suspense=Fu;ce.isAsyncMode=function(e){return xx(e)||$t(e)===Fh};ce.isConcurrentMode=xx;ce.isContextConsumer=function(e){return $t(e)===Mu};ce.isContextProvider=function(e){return $t(e)===Iu};ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bh};ce.isForwardRef=function(e){return $t(e)===Du};ce.isFragment=function(e){return $t(e)===Pu};ce.isLazy=function(e){return $t(e)===Uu};ce.isMemo=function(e){return $t(e)===zu};ce.isPortal=function(e){return $t(e)===Dh};ce.isProfiler=function(e){return $t(e)===Lu};ce.isStrictMode=function(e){return $t(e)===ju};ce.isSuspense=function(e){return $t(e)===Fu};ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pu||e===Bu||e===Lu||e===ju||e===Fu||e===OT||typeof e=="object"&&e!==null&&(e.$$typeof===Uu||e.$$typeof===zu||e.$$typeof===Iu||e.$$typeof===Mu||e.$$typeof===Du||e.$$typeof===_T||e.$$typeof===TT||e.$$typeof===RT||e.$$typeof===$T)};ce.typeOf=$t;Sx.exports=ce;var NT=Sx.exports,Ex=NT,AT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},PT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kx={};kx[Ex.ForwardRef]=AT;kx[Ex.Memo]=PT;var jT=!0;function LT(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var bx=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||jT===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Cx=function(t,n,r){bx(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function IT(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var MT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BT=/[A-Z]|^ms/g,DT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ox=function(t){return t.charCodeAt(1)===45},gv=function(t){return t!=null&&typeof t!="boolean"},ef=fx(function(e){return Ox(e)?e:e.replace(BT,"-$&").toLowerCase()}),wv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(DT,function(r,o,i){return hn={name:o,styles:i,next:hn},o})}return MT[t]!==1&&!Ox(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ps(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hn={name:n.name,styles:n.styles,next:hn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hn={name:r.name,styles:r.styles,next:hn},r=r.next;var o=n.styles+";";return o}return FT(e,t,n)}case"function":{if(e!==void 0){var i=hn,s=n(e);return hn=i,Ps(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function FT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?KT:GT},bv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},qT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return bx(n,r,o),UT(function(){return Cx(n,r,o)}),null},QT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=bv(t,n,r),l=a||kv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,v=1;vt(JT(o)?n:o):t;return w.jsx(HT,{styles:r})}function eR(e,t){return Md(e,t)}const tR=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},nR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ZT,StyledEngineProvider:XT,ThemeContext:Uh,css:Nx,default:eR,internal_processStyles:tR,keyframes:VT},Symbol.toStringTag,{value:"Module"}));function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ax(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ax(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?Ax(t[o]):t[o]:r[o]=t[o]}),r}const rR=Object.freeze(Object.defineProperty({__proto__:null,default:kn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),oR=["values","unit","step"],iR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Px(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=an(e,oR),i=iR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Wh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Cv;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Cv;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Wh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function aR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function lR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tn(e){if(typeof e!="string")throw new Error(Rs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const uR=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));function Wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Wl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Wu(l,r)||{};return Qn(s,a,d=>{let f=Wl(u,o,d);return d===f&&typeof d=="string"&&(f=Wl(u,o,`${t}${d==="default"?"":tn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function cR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const fR={m:"margin",p:"padding"},dR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ov={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pR=cR(e=>{if(e.length>2)if(Ov[e])e=Ov[e];else return[e];const[t,n]=e.split(""),r=fR[t],o=dR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Hh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Hh,...Vh];function Ks(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function jx(e){return Ks(e,"spacing",8)}function Gs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function hR(e,t){return n=>e.reduce((r,o)=>(r[o]=Gs(t,n),r),{})}function mR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=pR(n),i=hR(o,r),s=e[n];return Qn(e,s,i)}function Lx(e,t){const n=jx(e.theme);return Object.keys(e).map(r=>mR(e,t,r,n)).reduce(rs,{})}function Ce(e){return Lx(e,Hh)}Ce.propTypes={};Ce.filterProps=Hh;function Oe(e){return Lx(e,Vh)}Oe.propTypes={};Oe.filterProps=Vh;function yR(e=8){if(e.mui)return e;const t=jx({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Hu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?rs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const vR=Ht("border",Lt),gR=Ht("borderTop",Lt),wR=Ht("borderRight",Lt),SR=Ht("borderBottom",Lt),xR=Ht("borderLeft",Lt),ER=Ht("borderColor"),kR=Ht("borderTopColor"),bR=Ht("borderRightColor"),CR=Ht("borderBottomColor"),OR=Ht("borderLeftColor"),$R=Ht("outline",Lt),_R=Ht("outlineColor"),Vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ks(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gs(t,r)});return Qn(e,e.borderRadius,n)}return null};Vu.propTypes={};Vu.filterProps=["borderRadius"];Hu(vR,gR,wR,SR,xR,ER,kR,bR,CR,OR,Vu,$R,_R);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({gap:Gs(t,r)});return Qn(e,e.gap,n)}return null};Ku.propTypes={};Ku.filterProps=["gap"];const Gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({columnGap:Gs(t,r)});return Qn(e,e.columnGap,n)}return null};Gu.propTypes={};Gu.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({rowGap:Gs(t,r)});return Qn(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const TR=Te({prop:"gridColumn"}),RR=Te({prop:"gridRow"}),NR=Te({prop:"gridAutoFlow"}),AR=Te({prop:"gridAutoColumns"}),PR=Te({prop:"gridAutoRows"}),jR=Te({prop:"gridTemplateColumns"}),LR=Te({prop:"gridTemplateRows"}),IR=Te({prop:"gridTemplateAreas"}),MR=Te({prop:"gridArea"});Hu(Ku,Gu,qu,TR,RR,NR,AR,PR,jR,LR,IR,MR);function zo(e,t){return t==="grey"?t:e}const BR=Te({prop:"color",themeKey:"palette",transform:zo}),DR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),FR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Hu(BR,DR,FR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const zR=Te({prop:"width",transform:wt}),Kh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Wh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:wt(n)}};return Qn(e,e.maxWidth,t)}return null};Kh.filterProps=["maxWidth"];const UR=Te({prop:"minWidth",transform:wt}),WR=Te({prop:"height",transform:wt}),HR=Te({prop:"maxHeight",transform:wt}),VR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const KR=Te({prop:"boxSizing"});Hu(zR,Kh,UR,WR,HR,VR,KR);const GR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ku},rowGap:{style:qu},columnGap:{style:Gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:Kh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},qs=GR;function qR(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function QR(e,t){return typeof e=="function"?e(t):e}function Ix(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wu(o,u)||{};return d?d(s):Qn(s,r,g=>{let S=Wl(f,c,g);return g===S&&typeof g=="string"&&(S=Wl(f,c,`${n}${g==="default"?"":tn(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:qs;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=aR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(v=>{const g=QR(u[v],i);if(g!=null)if(typeof g=="object")if(s[v])f=rs(f,e(v,g,i,s));else{const S=Qn({theme:i},g,k=>({[v]:k}));qR(S,g)?f[v]=t({sx:g,theme:i}):f=rs(f,S)}else f=rs(f,e(v,g,i,s))}),lR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Mx=Ix();Mx.filterProps=["sx"];const Gh=Mx;function Bx(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const YR=["breakpoints","palette","spacing","shape"];function Dx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=an(e,YR),a=Px(n),l=yR(o);let u=kn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},sR,i)},s);return u.applyStyles=Bx,u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Gh({sx:d,theme:this})},u}const XR=Object.freeze(Object.defineProperty({__proto__:null,default:Dx,private_createBreakpoints:Px,unstable_applyStyles:Bx},Symbol.toStringTag,{value:"Module"})),JR=["sx"],ZR=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:qs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function eN(e){const{sx:t}=e,n=an(e,JR),{systemProps:r,otherProps:o}=ZR(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const tN=Object.freeze(Object.defineProperty({__proto__:null,default:Gh,extendSxProp:eN,unstable_createStyleFunctionSx:Ix,unstable_defaultSxConfig:qs},Symbol.toStringTag,{value:"Module"})),$v=e=>e,nN=()=>{let e=$v;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$v}}},rN=nN();function Fx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=zx(e,o,n)}),r}var Ux={exports:{}},fe={};/** * @license React * react-is.production.min.js * @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Yh=Symbol.for("react.element"),Xh=Symbol.for("react.portal"),Qu=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),aN=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),nc=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),lN=Symbol.for("react.offscreen"),Wx;Wx=Symbol.for("react.module.reference");function Kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yh:switch(e=e.type,e){case Qu:case Xu:case Yu:case tc:case nc:return e;default:switch(e=e&&e.$$typeof,e){case aN:case Zu:case ec:case oc:case rc:case Ju:return e;default:return t}}case Xh:return t}}}fe.ContextConsumer=Zu;fe.ContextProvider=Ju;fe.Element=Yh;fe.ForwardRef=ec;fe.Fragment=Qu;fe.Lazy=oc;fe.Memo=rc;fe.Portal=Xh;fe.Profiler=Xu;fe.StrictMode=Yu;fe.Suspense=tc;fe.SuspenseList=nc;fe.isAsyncMode=function(){return!1};fe.isConcurrentMode=function(){return!1};fe.isContextConsumer=function(e){return Kt(e)===Zu};fe.isContextProvider=function(e){return Kt(e)===Ju};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yh};fe.isForwardRef=function(e){return Kt(e)===ec};fe.isFragment=function(e){return Kt(e)===Qu};fe.isLazy=function(e){return Kt(e)===oc};fe.isMemo=function(e){return Kt(e)===rc};fe.isPortal=function(e){return Kt(e)===Xh};fe.isProfiler=function(e){return Kt(e)===Xu};fe.isStrictMode=function(e){return Kt(e)===Yu};fe.isSuspense=function(e){return Kt(e)===tc};fe.isSuspenseList=function(e){return Kt(e)===nc};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===Xu||e===Yu||e===tc||e===nc||e===lN||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===Wx||e.getModuleId!==void 0)};fe.typeOf=Kt;Ux.exports=fe;var Rv=Ux.exports;const uN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hx(e){const t=`${e}`.match(uN);return t&&t[1]||""}function Vx(e,t=""){return e.displayName||e.name||Hx(e)||t}function Nv(e,t,n){const r=Vx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function cN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Rv.ForwardRef:return Nv(e,e.render,"ForwardRef");case Rv.Memo:return Nv(e,e.type,"memo");default:return}}}const fN=Object.freeze(Object.defineProperty({__proto__:null,default:cN,getFunctionName:Hx},Symbol.toStringTag,{value:"Module"}));function Dd(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Dd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Kx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const dN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Xa(e){return e&&e.ownerDocument||document}function pN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function hN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function nf(e){const t=h.useRef(e);return Kx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Fd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{pN(n,t)})},e)}class Jh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Jh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let ic=!0,zd=!1;const mN=new Jh,yN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function vN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&yN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gN(e){e.metaKey||e.altKey||e.ctrlKey||(ic=!0)}function rf(){ic=!1}function wN(){this.visibilityState==="hidden"&&zd&&(ic=!0)}function SN(e){e.addEventListener("keydown",gN,!0),e.addEventListener("mousedown",rf,!0),e.addEventListener("pointerdown",rf,!0),e.addEventListener("touchstart",rf,!0),e.addEventListener("visibilitychange",wN,!0)}function xN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ic||vN(t)}function EN(){const e=h.useCallback(o=>{o!=null&&SN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(zd=!0,mN.start(100,()=>{zd=!1}),t.current=!1,!0):!1}function r(o){return xN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const kN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function bN(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const CN=h.createContext(),ON=()=>{const e=h.useContext(CN);return e??!1},$N=h.createContext(void 0);function _N(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function TN({props:e,name:t}){const n=h.useContext($N);return _N({props:e,name:t,theme:{components:n}})}function RN(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Gx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Gx);var qx=Gx.exports;const NN=Yn(Q_),AN=Yn(dN);var Qx=qx;Object.defineProperty(Re,"__esModule",{value:!0});var Av=Re.alpha=Zx;Re.blend=WN;Re.colorChannel=void 0;var Ud=Re.darken=em;Re.decomposeColor=Wt;Re.emphasize=eE;var PN=Re.getContrastRatio=BN;Re.getLuminance=Hl;Re.hexToRgb=Yx;Re.hslToRgb=Jx;var Wd=Re.lighten=tm;Re.private_safeAlpha=DN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=FN;Re.private_safeEmphasize=UN;Re.private_safeLighten=zN;Re.recomposeColor=hi;Re.rgbToHex=MN;var Pv=Qx(NN),jN=Qx(AN);function Zh(e,t=0,n=1){return(0,jN.default)(e,t,n)}function Yx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function LN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Yx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Pv.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Pv.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Xx=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=Xx;const IN=(e,t)=>{try{return Xx(e)}catch{return e}};Re.private_safeColorChannel=IN;function hi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function MN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>LN(r===3?Math.round(255*n):n)).join("")}`}function Jx(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),hi({type:a,values:l})}function Hl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(Jx(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function BN(e,t){const n=Hl(e),r=Hl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Zx(e,t){return e=Wt(e),t=Zh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hi(e)}function DN(e,t,n){try{return Zx(e,t)}catch{return e}}function em(e,t){if(e=Wt(e),t=Zh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return hi(e)}function FN(e,t,n){try{return em(e,t)}catch{return e}}function tm(e,t){if(e=Wt(e),t=Zh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return hi(e)}function zN(e,t,n){try{return tm(e,t)}catch{return e}}function eE(e,t=.15){return Hl(e)>.5?em(e,t):tm(e,t)}function UN(e,t,n){try{return eE(e,t)}catch{return e}}function WN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return hi({type:"rgb",values:a})}const HN=["mode","contrastThreshold","tonalOffset"],jv={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Rs.white,default:Rs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},of={text:{primary:Rs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Rs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Lv(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wd(e.main,o):t==="dark"&&(e.dark=Ud(e.main,i)))}function VN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function KN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function GN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function qN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function QN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function YN(e="light"){return e==="dark"?{main:Ni[400],light:Ni[300],dark:Ni[700]}:{main:"#ed6c02",light:Ni[500],dark:Ni[900]}}function XN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=un(e,HN),i=e.primary||VN(t),s=e.secondary||KN(t),a=e.error||GN(t),l=e.info||qN(t),u=e.success||QN(t),c=e.warning||YN(t);function d(S){return PN(S,of.text.primary)>=n?of.text.primary:jv.text.primary}const f=({color:S,name:k,mainShade:m=500,lightShade:p=300,darkShade:y=700})=>{if(S=j({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(Ns(11,k?` (${k})`:"",m));if(typeof S.main!="string")throw new Error(Ns(12,k?` (${k})`:"",JSON.stringify(S.main)));return Lv(S,"light",p,r),Lv(S,"dark",y,r),S.contrastText||(S.contrastText=d(S.main)),S},g={dark:of,light:jv};return Cn(j({common:j({},Rs),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:q_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},g[t]),o)}const JN=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function ZN(e){return Math.round(e*1e5)/1e5}const Iv={textTransform:"uppercase"},Mv='"Roboto", "Helvetica", "Arial", sans-serif';function eA(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Mv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=un(n,JN),g=o/14,w=d||(m=>`${m/u*g}rem`),S=(m,p,y,E,C)=>j({fontFamily:r,fontWeight:m,fontSize:w(p),lineHeight:y},r===Mv?{letterSpacing:`${ZN(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,Iv),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,Iv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Cn(j({htmlFontSize:u,pxToRem:w,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const tA=.2,nA=.14,rA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${tA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${nA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${rA})`].join(",")}const oA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],iA=["duration","easing","delay"],sA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},aA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bv(e){return`${Math.round(e)}ms`}function lA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function uA(e){const t=j({},sA,e.easing),n=j({},aA,e.duration);return j({getAutoHeightDuration:lA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return un(i,iA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Bv(s)} ${a} ${typeof l=="string"?l:Bv(l)}`).join(",")}},e,{easing:t,duration:n})}const cA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},fA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=un(e,fA);if(e.vars)throw new Error(Ns(18));const a=XN(r),l=Dx(e);let u=Cn(l,{mixins:RN(l.breakpoints,n),palette:a,shadows:oA.slice(),typography:eA(a,i),transitions:uA(o),zIndex:j({},cA)});return u=Cn(u,s),u=t.reduce((c,d)=>Cn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Qh({sx:d,theme:this})},u}const pA=dA();var Qs={},sf={exports:{}},Dv;function hA(){return Dv||(Dv=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sf)),sf.exports}const mA=Yn(rR),yA=Yn(oR),vA=Yn(cR),gA=Yn(fN),wA=Yn(JR),SA=Yn(nN);var mi=qx;Object.defineProperty(Qs,"__esModule",{value:!0});var xA=Qs.default=jA;Qs.shouldForwardProp=Ja;Qs.systemDefaultTheme=void 0;var Rt=mi(Rx()),Hd=mi(hA()),Fv=_A(mA),EA=yA;mi(vA);mi(gA);var kA=mi(wA),bA=mi(SA);const CA=["ownerState"],OA=["variants"],$A=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(tE=function(r){return r?n:t})(e)}function _A(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=tE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function TA(e){return Object.keys(e).length===0}function RA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const NA=Qs.systemDefaultTheme=(0,kA.default)(),AA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ea({defaultTheme:e,theme:t,themeId:n}){return TA(t)?e:t[n]||t}function PA(e){return e?(t,n)=>n[e]:null}function Za(e,t){let{ownerState:n}=t,r=(0,Hd.default)(t,CA);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Za(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Hd.default)(o,OA);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function jA(e={}){const{themeId:t,defaultTheme:n=NA,rootShouldForwardProp:r=Ja,slotShouldForwardProp:o=Ja}=e,i=s=>(0,bA.default)((0,Rt.default)({},s,{theme:Ea((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Fv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=PA(AA(u))}=a,g=(0,Hd.default)(a,$A),w=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,m=Ja;u==="Root"||u==="root"?m=r:u?m=o:RA(s)&&(m=void 0);const p=(0,Fv.default)(s,(0,Rt.default)({shouldForwardProp:m,label:k},g)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,EA.isPlainObject)(C)?x=>Za(C,(0,Rt.default)({},x,{theme:Ea({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=y(C);const O=x?x.map(y):[];l&&f&&O.push(A=>{const U=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Za(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!w&&O.push(A=>{var U;const B=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Za({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function nm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const LA=e=>nm(e)&&e!=="classes",Xr=xA({themeId:Y_,defaultTheme:pA,rootShouldForwardProp:LA});function IA(e){return TN(e)}function is(e){return typeof e=="string"}function MA(e,t,n){return e===void 0||is(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function BA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function el(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function DA(e,t,n){return typeof e=="function"?e(t,n):e}function zv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function FA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),w=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return g.length>0&&(S.className=g),Object.keys(w).length>0&&(S.style=w),{props:S,internalRef:void 0}}const s=el(j({},o,r)),a=zv(r),l=zv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const zA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=un(e,zA),a=i?{}:DA(r,o),{props:l,internalRef:u}=FA(j({},s,{externalSlotProps:a})),c=Fd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return MA(n,j({},l,{ref:c}),o)}const UA=2;function nE(e,t){return e-t}function Uv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},GA=e=>e;let Oa;function Hv(){return Oa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Oa=CSS.supports("touch-action","none"):Oa=!0),Oa}function qA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:g,scale:w=GA,step:S=1,shiftStep:k=10,tabIndex:m,value:p}=e,y=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=hN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(nE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=EN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Fd(Y,X),ge=Fd(g,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const Qt=V[V.length-1];ee>Qt?ee=Qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};Kx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Rn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Nn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:Qt}=D.getBoundingClientRect();let fn;Qe.indexOf("vertical")===0?fn=(ee-N.y)/ie:fn=(N.x-Qt)/oe,Qe.indexOf("-reverse")!==-1&&(fn=1-fn);let le;if(le=WA(fn,l,a),S)le=VA(le,S,l);else{const ro=Uv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Nn.current:Tt=Uv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=Wv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Nn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=nf(N=>{const P=ka(N,y);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ba({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>UA&&T(!0),B&&!Ca(D,A)&&B(N,D,oe)}),Ue=nf(N=>{const P=ka(N,y);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),y.current=void 0,vt()}),rt=nf(N=>{if(r)return;Hv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(y.current=P.identifier);const D=ka(N,y);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ba({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!Ca(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Xa(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Xa(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",rt,{passive:Hv()}),()=>{N.removeEventListener("touchstart",rt),vt()}},[vt,rt]),h.useEffect(()=>{r&&vt()},[r,vt]);const gi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=ka(P,y);if(oe!==!1){const{newValue:ee,activeIndex:Qt}=de({finger:oe});ba({sliderRef:X,activeIndex:Qt,setActive:C}),U(ee),B&&!Ca(ee,A)&&B(P,ee,Qt)}$.current=0;const ie=Xa(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Vl(K?W[0]:l,l,a),qt=Vl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=el(N),D={onMouseDown:gi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:KA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=el(N),oe={onChange:Rn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:Tn(D||{})},ie=j({},D,oe);return j({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":w(a),"aria-valuemin":w(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},kN,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=el(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:qt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const QA=e=>!e||!is(e);function YA(e){return zx("MuiSlider",e)}const Mt=sN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),XA=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function JA(e){const{children:t,className:n,value:r}=e,o=XA(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},v.jsxs(h.Fragment,{children:[t.props.children,v.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:v.jsx("span",{className:o.circle,children:v.jsx("span",{className:o.label,children:r})})})]})):null}const ZA=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Vv(e){return e}const eP=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nn(n.color)}`],n.size!=="medium"&&t[`size${nn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),tP=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),nP=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Wd(e.palette[n].main,.62),borderColor:Wd(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Ud(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Ud(e.palette[n].main,.5)})))}))]}}),rP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${nn(n.color)}`],n.size!=="medium"&&t[`thumbSize${nn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Av(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Av(e.palette[n].main,.16)}`})}}))]}}),oP=Xr(JA,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),iP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>nm(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),sP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>nm(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),aP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${nn(a)}`,l&&`size${nn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${nn(l)}`,a&&`thumbColor${nn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return bN(u,YA,s)},lP=({children:e})=>e,uP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,g,w,S,k,m,p,y,E,C,x,b,O,T,$;const A=IA({props:t,name:"MuiSlider"}),U=ON(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:Tn=10,size:Rn="medium",step:Nn=1,scale:Qe=Vv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:rt="off",valueLabelFormat:vt=Vv}=A,gi=un(A,ZA),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Rn,step:Nn,shiftStep:Tn,scale:Qe,track:Ue,valueLabelDisplay:rt,valueLabelFormat:vt}),{axisProps:qt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:wi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:Qt,getThumbStyle:fn}=qA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=aP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:eP,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:tP,km=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:nP,bm=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:rP,Cm=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:oP,cc=(g=(w=H==null?void 0:H.mark)!=null?w:V.Mark)!=null?g:iP,fc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:sP,Om=(m=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?m:"input",dc=(y=de==null?void 0:de.root)!=null?y:_.root,fk=(E=de==null?void 0:de.rail)!=null?E:_.rail,pc=(C=de==null?void 0:de.track)!=null?C:_.track,hc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,mc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,dk=(O=de==null?void 0:de.mark)!=null?O:_.mark,pk=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,hk=($=de==null?void 0:de.input)!=null?$:_.input,mk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:dc,externalForwardedProps:gi,additionalProps:j({},QA(Tt)&&{as:G}),ownerState:j({},we,dc==null?void 0:dc.ownerState),className:[le.root,Y]}),yk=tr({elementType:ro,externalSlotProps:fk,ownerState:we,className:le.rail}),vk=tr({elementType:km,externalSlotProps:pc,additionalProps:{style:j({},qt[Zn].offset(ee),qt[Zn].leap(Qt))},ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.track}),yc=tr({elementType:bm,getSlotProps:Rr,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.thumb}),gk=tr({elementType:Cm,externalSlotProps:mc,ownerState:j({},we,mc==null?void 0:mc.ownerState),className:le.valueLabel}),vc=tr({elementType:cc,externalSlotProps:dk,ownerState:we,className:le.mark}),gc=tr({elementType:fc,externalSlotProps:pk,ownerState:we,className:le.markLabel}),wk=tr({elementType:Om,getSlotProps:to,externalSlotProps:hk,ownerState:we});return v.jsxs(Tt,j({},mk,{children:[v.jsx(ro,j({},yk)),v.jsx(km,j({},vk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const wc=Vl(Ne.value,qe,Me),Xs=qt[Zn].offset(wc);let An;return Ue===!1?An=ie.indexOf(Ne.value)!==-1:An=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),v.jsxs(h.Fragment,{children:[v.jsx(cc,j({"data-index":We},vc,!is(cc)&&{markActive:An},{style:j({},Xs,vc.style),className:Sr(vc.className,An&&le.markActive)})),Ne.label!=null?v.jsx(fc,j({"aria-hidden":!0,"data-index":We},gc,!is(fc)&&{markLabelActive:An},{style:j({},Xs,gc.style),className:Sr(le.markLabel,gc.className,An&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const wc=Vl(Ne,qe,Me),Xs=qt[Zn].offset(wc),An=rt==="off"?lP:Cm;return v.jsx(An,j({},!is(An)&&{valueLabelFormat:vt,valueLabelDisplay:rt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:wi===We||no===We||rt==="on",disabled:ve},gk,{children:v.jsx(bm,j({"data-index":We},yc,{className:Sr(le.thumb,yc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Xs,fn(We),yc.style),children:v.jsx(Om,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},wk))}))}),We)})]}))});var Kv=Object.prototype.toString,rE=function(t){var n=Kv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kv.call(t.callee)==="[object Function]"),r},af,Gv;function cP(){if(Gv)return af;Gv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=rE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var g=f.constructor;return g&&g.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(g){var w=g!==null&&typeof g=="object",S=n.call(g)==="[object Function]",k=r(g),m=w&&n.call(g)==="[object String]",p=[];if(!w&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var y=s&&S;if(m&&g.length>0&&!t.call(g,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":AP,"%eval%":eval,"%EvalError%":PP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":sE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":jP,"%ReferenceError%":LP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":MP,"%TypedArray%":DP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":IP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var FP=Be(Be(e));zr["%Error.prototype%"]=FP}var zP=function e(t){var n;if(t==="%AsyncFunction%")n=uf("async function () {}");else if(t==="%GeneratorFunction%")n=uf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=uf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},Jv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ys=im,Kl=iE,UP=Ys.call(Function.call,Array.prototype.concat),WP=Ys.call(Function.apply,Array.prototype.splice),Zv=Ys.call(Function.call,String.prototype.replace),Gl=Ys.call(Function.call,String.prototype.slice),HP=Ys.call(Function.call,RegExp.prototype.exec),VP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,KP=/\\(\\)?/g,GP=function(t){var n=Gl(t,0,1),r=Gl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return Zv(t,VP,function(i,s,a,l){o[o.length]=a?Zv(l,KP,"$1"):s||i}),o},qP=function(t,n){var r=t,o;if(Kl(Jv,r)&&(o=Jv[r],r="%"+o[0]+"%"),Kl(zr,r)){var i=zr[r];if(i===wo&&(i=zP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},$n=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(HP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=GP(t),o=r.length>0?r[0]:"",i=qP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],WP(r,UP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Kl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},QP=$n,nl=QP("%Object.defineProperty%",!0)||!1;if(nl)try{nl({},"a",{value:1})}catch{nl=!1}var sm=nl,YP=$n,rl=YP("%Object.getOwnPropertyDescriptor%",!0);if(rl)try{rl([],"length")}catch{rl=null}var am=rl,eg=sm,XP=oE,mo=_r,tg=am,lm=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!tg&&tg(t,n);if(eg)eg(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new XP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vd=sm,aE=function(){return!!Vd};aE.hasArrayLengthDefineBug=function(){if(!Vd)return null;try{return Vd([],"length",{value:1}).length!==1}catch{return!0}};var um=aE,JP=rm,ZP=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ej=Object.prototype.toString,tj=Array.prototype.concat,ng=lm,nj=function(e){return typeof e=="function"&&ej.call(e)==="[object Function]"},lE=um(),rj=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!nj(r)||!r())return}lE?ng(e,t,n,!0):ng(e,t,n)},uE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=JP(t);ZP&&(r=tj.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||sj(n)!==n)throw new ig("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&og){var s=og(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(ij?rg(t,"length",n,!0,!0):rg(t,"length",n)),t};(function(e){var t=im,n=$n,r=aj,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=sm,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var g=a(t,s,arguments);return r(g,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(cE);var yi=cE.exports,fE=$n,dE=yi,lj=dE(fE("String.prototype.indexOf")),Gt=function(t,n){var r=fE(t,!!n);return typeof r=="function"&&lj(t,".prototype.")>-1?dE(r):r},uj=rm,pE=sc(),hE=Gt,sg=Object,cj=hE("Array.prototype.push"),ag=hE("Object.prototype.propertyIsEnumerable"),fj=pE?Object.getOwnPropertySymbols:null,mE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=sg(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||Oj)&&(Cj?lg(t,"name",n,!0,!0):lg(t,"name",n)),t},Tj=_j,Rj=_r,Nj=Object,wE=Tj(function(){if(this==null||this!==Nj(this))throw new Rj("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),Aj=wE,Pj=Jr.supportsDescriptors,jj=Object.getOwnPropertyDescriptor,SE=function(){if(Pj&&/a/mig.flags==="gim"){var t=jj(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return Aj},Lj=Jr.supportsDescriptors,Ij=SE,Mj=Object.getOwnPropertyDescriptor,Bj=Object.defineProperty,Dj=TypeError,ug=Object.getPrototypeOf,Fj=/a/,zj=function(){if(!Lj||!ug)throw new Dj("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=Ij(),n=ug(Fj),r=Mj(n,"flags");return(!r||r.get!==t)&&Bj(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},Uj=Jr,Wj=yi,Hj=wE,xE=SE,Vj=zj,EE=Wj(xE());Uj(EE,{getPolyfill:xE,implementation:Hj,shim:Vj});var Kj=EE,ol={exports:{}},Gj=sc,Zr=function(){return Gj()&&!!Symbol.toStringTag},qj=Zr(),Qj=Gt,Kd=Qj("Object.prototype.toString"),ac=function(t){return qj&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Kd(t)==="[object Arguments]"},kE=function(t){return ac(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kd(t)!=="[object Array]"&&Kd(t.callee)==="[object Function]"},Yj=function(){return ac(arguments)}();ac.isLegacyArguments=kE;var bE=Yj?ac:kE;const Xj={},Jj=Object.freeze(Object.defineProperty({__proto__:null,default:Xj},Symbol.toStringTag,{value:"Module"})),Zj=Yn(Jj);var cm=typeof Map=="function"&&Map.prototype,df=Object.getOwnPropertyDescriptor&&cm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=cm&&df&&typeof df.get=="function"?df.get:null,cg=cm&&Map.prototype.forEach,fm=typeof Set=="function"&&Set.prototype,pf=Object.getOwnPropertyDescriptor&&fm?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=fm&&pf&&typeof pf.get=="function"?pf.get:null,fg=fm&&Set.prototype.forEach,e3=typeof WeakMap=="function"&&WeakMap.prototype,as=e3?WeakMap.prototype.has:null,t3=typeof WeakSet=="function"&&WeakSet.prototype,ls=t3?WeakSet.prototype.has:null,n3=typeof WeakRef=="function"&&WeakRef.prototype,dg=n3?WeakRef.prototype.deref:null,r3=Boolean.prototype.valueOf,o3=Object.prototype.toString,i3=Function.prototype.toString,s3=String.prototype.match,dm=String.prototype.slice,fr=String.prototype.replace,a3=String.prototype.toUpperCase,pg=String.prototype.toLowerCase,CE=RegExp.prototype.test,hg=Array.prototype.concat,vn=Array.prototype.join,l3=Array.prototype.slice,mg=Math.floor,Gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hf=Object.getOwnPropertySymbols,qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",nt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,OE=Object.prototype.propertyIsEnumerable,yg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function vg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||CE.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-mg(-e):mg(e);if(r!==e){var o=String(r),i=dm.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var Qd=Zj,gg=Qd.custom,wg=_E(gg)?gg:null,u3=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return RE(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?vg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?vg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yd(t)?"[Array]":"[Object]";var d=$3(i,r);if(typeof o>"u")o=[];else if(TE(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=l3.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!Sg(t)){var g=g3(t),w=$a(t,f);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(w.length>0?" { "+vn.call(w,", ")+" }":"")}if(_E(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qd.call(t);return typeof t=="object"&&!ri?Pi(S):S}if(b3(t)){for(var k="<"+pg.call(String(t.nodeName)),m=t.attributes||[],p=0;p",k}if(Yd(t)){if(t.length===0)return"[]";var y=$a(t,f);return d&&!O3(y)?"["+Xd(y,d)+"]":"[ "+vn.call(y,", ")+" ]"}if(d3(t)){var E=$a(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!OE.call(t,"cause")?"{ ["+String(t)+"] "+vn.call(hg.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+vn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(wg&&typeof t[wg]=="function"&&Qd)return Qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(w3(t)){var C=[];return cg&&cg.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),xg("Map",ql.call(t),C,d)}if(E3(t)){var x=[];return fg&&fg.call(t,function(B){x.push(f(B,t))}),xg("Set",Ql.call(t),x,d)}if(S3(t))return mf("WeakMap");if(k3(t))return mf("WeakSet");if(x3(t))return mf("WeakRef");if(h3(t))return Pi(f(Number(t)));if(y3(t))return Pi(f(Gd.call(t)));if(m3(t))return Pi(r3.call(t));if(p3(t))return Pi(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof cl<"u"&&t===cl)return"{ [object globalThis] }";if(!f3(t)&&!Sg(t)){var b=$a(t,f),O=yg?yg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&nt&&Object(t)===t&&nt in t?dm.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+vn.call(hg.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Xd(b,d)+"}":U+"{ "+vn.call(b,", ")+" }"}return String(t)};function $E(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function c3(e){return fr.call(String(e),/"/g,""")}function Yd(e){return Tr(e)==="[object Array]"&&(!nt||!(typeof e=="object"&&nt in e))}function f3(e){return Tr(e)==="[object Date]"&&(!nt||!(typeof e=="object"&&nt in e))}function Sg(e){return Tr(e)==="[object RegExp]"&&(!nt||!(typeof e=="object"&&nt in e))}function d3(e){return Tr(e)==="[object Error]"&&(!nt||!(typeof e=="object"&&nt in e))}function p3(e){return Tr(e)==="[object String]"&&(!nt||!(typeof e=="object"&&nt in e))}function h3(e){return Tr(e)==="[object Number]"&&(!nt||!(typeof e=="object"&&nt in e))}function m3(e){return Tr(e)==="[object Boolean]"&&(!nt||!(typeof e=="object"&&nt in e))}function _E(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qd)return!1;try{return qd.call(e),!0}catch{}return!1}function y3(e){if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}var v3=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return v3.call(e,t)}function Tr(e){return o3.call(e)}function g3(e){if(e.name)return e.name;var t=s3.call(i3.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function TE(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return RE(dm.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,C3);return $E(o,"single",t)}function C3(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+a3.call(t.toString(16))}function Pi(e){return"Object("+e+")"}function mf(e){return e+" { ? }"}function xg(e,t,n,r){var o=r?Xd(n,r):vn.call(n,", ");return e+" ("+t+") {"+o+"}"}function O3(e){for(var t=0;t=0)return!1;return!0}function $3(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=vn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:vn.call(Array(t+1),n)}}function Xd(e,t){if(e.length===0)return"";var n=` -`+t.prev+t.base;return n+vn.call(e,","+n)+` -`+t.prev}function $a(e,t){var n=Yd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=Tg(t,n);if(o<55296||o>56319)return n+1;var i=Tg(t,n+1);return i<56320||i>57343?n+1:n+2},vf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},Rg=function(t,n){if(X3(t)||Cg(t))return vf(t);if(J3(t)){var r=0;return{next:function(){var i=n4(t,r),s=t4(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Z3&&!e4)ol.exports=function(t){if(t!=null)return Rg(t,!0)};else{var r4=IE,o4=BE,Ng=Xt("Map.prototype.forEach",!0),Ag=Xt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Pg=Xt("Map.prototype.iterator",!0),jg=Xt("Set.prototype.iterator",!0);var Lg=Xt("Map.prototype.@@iterator",!0)||Xt("Map.prototype._es6-shim iterator_",!0),Ig=Xt("Set.prototype.@@iterator",!0)||Xt("Set.prototype._es6-shim iterator_",!0),i4=function(t){if(r4(t)){if(Pg)return Og(Pg(t));if(Lg)return Lg(t);if(Ng){var n=[];return Ng(t,function(o,i){_g(n,[i,o])}),vf(n)}}if(o4(t)){if(jg)return Og(jg(t));if(Ig)return Ig(t);if(Ag){var r=[];return Ag(t,function(o){_g(r,o)}),vf(r)}}};ol.exports=function(t){return i4(t)||Rg(t)}}}var s4=ol.exports,Mg=function(e){return e!==e},DE=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||Mg(t)&&Mg(n))},a4=DE,FE=function(){return typeof Object.is=="function"?Object.is:a4},l4=FE,u4=Jr,c4=function(){var t=l4();return u4(Object,{is:t},{is:function(){return Object.is!==t}}),t},f4=Jr,d4=yi,p4=DE,zE=FE,h4=c4,UE=d4(zE(),Object);f4(UE,{getPolyfill:zE,implementation:p4,shim:h4});var m4=UE,y4=yi,WE=Gt,v4=$n,Jd=v4("%ArrayBuffer%",!0),il=WE("ArrayBuffer.prototype.byteLength",!0),g4=WE("Object.prototype.toString"),Bg=!!Jd&&!il&&new Jd(0).slice,Dg=!!Bg&&y4(Bg),HE=il||Dg?function(t){if(!t||typeof t!="object")return!1;try{return il?il(t):Dg(t,0),!0}catch{return!1}}:Jd?function(t){return g4(t)==="[object ArrayBuffer]"}:function(t){return!1},w4=Date.prototype.getDay,S4=function(t){try{return w4.call(t),!0}catch{return!1}},x4=Object.prototype.toString,E4="[object Date]",k4=Zr(),b4=function(t){return typeof t!="object"||t===null?!1:k4?S4(t):x4.call(t)===E4},Zd=Gt,VE=Zr(),KE,GE,ep,tp;if(VE){KE=Zd("Object.prototype.hasOwnProperty"),GE=Zd("RegExp.prototype.exec"),ep={};var gf=function(){throw ep};tp={toString:gf,valueOf:gf},typeof Symbol.toPrimitive=="symbol"&&(tp[Symbol.toPrimitive]=gf)}var C4=Zd("Object.prototype.toString"),O4=Object.getOwnPropertyDescriptor,$4="[object RegExp]",_4=VE?function(t){if(!t||typeof t!="object")return!1;var n=O4(t,"lastIndex"),r=n&&KE(n,"value");if(!r)return!1;try{GE(t,tp)}catch(o){return o===ep}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:C4(t)===$4},T4=Gt,Fg=T4("SharedArrayBuffer.prototype.byteLength",!0),R4=Fg?function(t){if(!t||typeof t!="object")return!1;try{return Fg(t),!0}catch{return!1}}:function(t){return!1},N4=Number.prototype.toString,A4=function(t){try{return N4.call(t),!0}catch{return!1}},P4=Object.prototype.toString,j4="[object Number]",L4=Zr(),I4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:L4?A4(t):P4.call(t)===j4},qE=Gt,M4=qE("Boolean.prototype.toString"),B4=qE("Object.prototype.toString"),D4=function(t){try{return M4(t),!0}catch{return!1}},F4="[object Boolean]",z4=Zr(),U4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:z4&&Symbol.toStringTag in t?D4(t):B4(t)===F4},np={exports:{}},W4=Object.prototype.toString,H4=om();if(H4){var V4=Symbol.prototype.toString,K4=/^Symbol\(.*\)$/,G4=function(t){return typeof t.valueOf()!="symbol"?!1:K4.test(V4.call(t))};np.exports=function(t){if(typeof t=="symbol")return!0;if(W4.call(t)!=="[object Symbol]")return!1;try{return G4(t)}catch{return!1}}}else np.exports=function(t){return!1};var q4=np.exports,rp={exports:{}},zg=typeof BigInt<"u"&&BigInt,Q4=function(){return typeof zg=="function"&&typeof BigInt=="function"&&typeof zg(42)=="bigint"&&typeof BigInt(42)=="bigint"},Y4=Q4();if(Y4){var X4=BigInt.prototype.valueOf,J4=function(t){try{return X4.call(t),!0}catch{}return!1};rp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:J4(t)}}else rp.exports=function(t){return!1};var Z4=rp.exports,e5=jE,t5=I4,n5=U4,r5=q4,o5=Z4,i5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(e5(t))return"String";if(t5(t))return"Number";if(n5(t))return"Boolean";if(r5(t))return"Symbol";if(o5(t))return"BigInt"},Jl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Ug=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zl;Jl||(Zl=function(t){return!1});var op=Jl?Jl.prototype.has:null,wf=Ug?Ug.prototype.has:null;!Zl&&!op&&(Zl=function(t){return!1});var s5=Zl||function(t){if(!t||typeof t!="object")return!1;try{if(op.call(t,op),wf)try{wf.call(t,wf)}catch{return!0}return t instanceof Jl}catch{}return!1},ip={exports:{}},a5=$n,QE=Gt,l5=a5("%WeakSet%",!0),Sf=QE("WeakSet.prototype.has",!0);if(Sf){var xf=QE("WeakMap.prototype.has",!0);ip.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Sf(t,Sf),xf)try{xf(t,xf)}catch{return!0}return t instanceof l5}catch{}return!1}}else ip.exports=function(t){return!1};var u5=ip.exports,c5=IE,f5=BE,d5=s5,p5=u5,h5=function(t){if(t&&typeof t=="object"){if(c5(t))return"Map";if(f5(t))return"Set";if(d5(t))return"WeakMap";if(p5(t))return"WeakSet"}return!1},YE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,sp,sl;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{sp=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ao(function(){throw 42},null,sp)}catch(e){e!==sl&&(Ao=null)}else Ao=null;var m5=/^\s*class\b/,ap=function(t){try{var n=YE.call(t);return m5.test(n)}catch{return!1}},Ef=function(t){try{return ap(t)?!1:(YE.call(t),!0)}catch{return!1}},al=Object.prototype.toString,y5="[object Object]",v5="[object Function]",g5="[object GeneratorFunction]",w5="[object HTMLAllCollection]",S5="[object HTML document.all class]",x5="[object HTMLCollection]",E5=typeof Symbol=="function"&&!!Symbol.toStringTag,k5=!(0 in[,]),lp=function(){return!1};if(typeof document=="object"){var b5=document.all;al.call(b5)===al.call(document.all)&&(lp=function(t){if((k5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=al.call(t);return(n===w5||n===S5||n===x5||n===y5)&&t("")==null}catch{}return!1})}var C5=Ao?function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,sp)}catch(n){if(n!==sl)return!1}return!ap(t)&&Ef(t)}:function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(E5)return Ef(t);if(ap(t))return!1;var n=al.call(t);return n!==v5&&n!==g5&&!/^\[object HTML/.test(n)?!1:Ef(t)},O5=C5,$5=Object.prototype.toString,XE=Object.prototype.hasOwnProperty,_5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),$5.call(t)==="[object Array]"?_5(t,n,o):typeof t=="string"?T5(t,n,o):R5(t,n,o)},A5=N5,P5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],kf=P5,j5=typeof globalThis>"u"?cl:globalThis,L5=function(){for(var t=[],n=0;n"u"?cl:globalThis,up=I5(),gm=vm("String.prototype.slice"),bf=Object.getPrototypeOf,B5=vm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:F5(t)}return ll?D5(t):null},U5=Gt,Vg=U5("ArrayBuffer.prototype.byteLength",!0),W5=HE,H5=function(t){return W5(t)?Vg?Vg(t):t.byteLength:NaN},ZE=Ej,_n=Gt,Kg=Kj,V5=$n,oi=s4,K5=AE,Gg=m4,qg=bE,Qg=PE,Yg=HE,Xg=b4,Jg=_4,Zg=R4,e0=rm,t0=i5,n0=h5,r0=z5,o0=H5,i0=_n("SharedArrayBuffer.prototype.byteLength",!0),s0=_n("Date.prototype.getTime"),Cf=Object.getPrototypeOf,a0=_n("Object.prototype.toString"),nu=V5("%Set%",!0),cp=_n("Map.prototype.has",!0),ru=_n("Map.prototype.get",!0),l0=_n("Map.prototype.size",!0),ou=_n("Set.prototype.add",!0),ek=_n("Set.prototype.delete",!0),iu=_n("Set.prototype.has",!0),ul=_n("Set.prototype.size",!0);function u0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(an(t,i.value,n,r))return ek(e,i.value),!0;return!1}function tk(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function G5(e,t,n,r,o,i){var s=tk(n);if(s!=null)return s;var a=ru(t,s),l=ZE({},o,{strict:!1});return typeof a>"u"&&!cp(t,s)||!an(r,a,l,i)?!1:!cp(e,s)&&an(r,a,l,i)}function q5(e,t,n){var r=tk(n);return r??(iu(t,r)&&!iu(e,r))}function c0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,an(n,l,o,i)&&an(r,ru(t,l),o,i))return ek(e,l),!0;return!1}function an(e,t,n,r){var o=n||{};if(o.strict?Gg(e,t):e===t)return!0;var i=t0(e),s=t0(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Gg(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),X5(e,t,o,r)}function f0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function Q5(e,t,n,r){if(ul(e)!==ul(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new nu),ou(l,s.value);else if(!iu(t,s.value)){if(n.strict||!q5(e,t,s.value))return!1;l||(l=new nu),ou(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!u0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!iu(e,a.value)&&!u0(l,a.value,n.strict,r))return!1;return ul(l)===0}return!0}function Y5(e,t,n,r){if(l0(e)!==l0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new nu),ou(l,u);else if(d=ru(t,u),typeof d>"u"&&!cp(t,u)||!an(c,d,n,r)){if(n.strict||!G5(e,t,u,c,n,r))return!1;l||(l=new nu),ou(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!c0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!an(ru(e,u),d,n,r))&&!c0(l,e,u,d,ZE({},n,{strict:!1}),r))return!1;return ul(l)===0}return!0}function X5(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||a0(e)!==a0(t)||qg(e)!==qg(t))return!1;var s=Qg(e),a=Qg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=Jg(e),d=Jg(t);if(c!==d||(c||d)&&(e.source!==t.source||Kg(e)!==Kg(t)))return!1;var f=Xg(e),g=Xg(t);if(f!==g||(f||g)&&s0(e)!==s0(t)||n.strict&&Cf&&Cf(e)!==Cf(t))return!1;var w=r0(e),S=r0(t);if(w!==S)return!1;if(w||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!an(e[i],t[i],n,r))return!1;var O=n0(e),T=n0(t);return O!==T?!1:O==="Set"||T==="Set"?Q5(e,t,n,r):O==="Map"?Y5(e,t,n,r):!0}var J5=function(t,n,r){return an(t,n,r,K5())};const Z5=si(J5),wm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!Z5(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ra=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},nk=te.memo(e=>{cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:g}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const w=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,m,p]=Ra(o),[y,E]=Ra(i),[C,x]=Ra(s),[b,O]=Ra(a);return v.jsxs("div",{className:"component sliderComponent",id:g,children:[!1,v.jsxs(Fl,{children:[v.jsx(hn,{xs:"auto",xl:"auto",children:v.jsxs(sn.Text,{children:[f,v.jsx(Ht,{docString:l})]})}),v.jsx(hn,{xs:"5",xl:!0,children:v.jsx(uP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:k,onChange:(T,$)=>w(T,$),min:y,max:C,step:b,marks:[{value:y,label:`${y}`},{value:C,label:`${C}`}]})}),v.jsx(hn,{xs:"3",xl:!0,children:v.jsx(zl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:m,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:g+"-value"})}),v.jsx(hn,{xs:"auto",children:v.jsx(_h,{id:`button-${g}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[v.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),v.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),v.jsx(bu,{in:t,children:v.jsx(Ze.Group,{children:v.jsxs(Fl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[v.jsxs(hn,{xs:"auto",children:[v.jsx(Ze.Label,{children:"Min Value"}),v.jsx(Ze.Control,{type:"number",value:y,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),v.jsxs(hn,{xs:"auto",children:[v.jsx(Ze.Label,{children:"Max Value"}),v.jsx(Ze.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),v.jsxs(hn,{xs:"auto",children:[v.jsx(Ze.Label,{children:"Step Size"}),v.jsx(Ze.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},wm);nk.displayName="SliderComponent";const rk=te.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),v.jsxs("div",{className:"component enumComponent",id:r,children:[!1,v.jsx(Fl,{children:v.jsxs(hn,{className:"d-flex align-items-center",children:[v.jsxs(sn.Text,{children:[n,v.jsx(Ht,{docString:a})]}),l?v.jsx(Ze.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):v.jsx(Ze.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>v.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},wm);rk.displayName="EnumComponent";const Sm=te.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),Lh(t),a()};return v.jsxs("div",{className:"component methodComponent",id:i,children:[!1,v.jsx(Ze,{onSubmit:l,ref:s,children:v.jsxs(ci,{className:"component",variant:"primary",type:"submit",children:[`${o} `,v.jsx(Ht,{docString:n})]})})]})},wm);Sm.displayName="MethodComponent";const ok=te.memo(e=>{const{fullAccessPath:t,docString:n,value:r,addNotification:o,displayName:i,id:s}=e;if(!e.render)return null;cn();const a=h.useRef(null),[l,u]=h.useState(!1),c=t.split(".").at(-1),d=t.slice(0,-(c.length+1));h.useEffect(()=>{let g;r===null?g=`${t} task was stopped.`:g=`${t} was started.`,o(g),u(!1)},[e.value]);const f=async g=>{g.preventDefault();let w;r!=null?w=`stop_${c}`:w=`start_${c}`;const S=[d,w].filter(k=>k).join(".");u(!0),Lh(S)};return v.jsxs("div",{className:"component asyncMethodComponent",id:s,children:[!1,v.jsx(Ze,{onSubmit:f,ref:a,children:v.jsxs(sn,{children:[v.jsxs(sn.Text,{children:[i,v.jsx(Ht,{docString:n})]}),v.jsx(ci,{id:`button-${s}`,type:"submit",children:l?v.jsx(Oh,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});ok.displayName="AsyncMethodComponent";const ik=te.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=w=>{c(w.target.value),o&&s({type:"str",value:w.target.value,full_access_path:t,readonly:n,doc:r})},f=w=>{w.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),w.preventDefault())},g=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return v.jsxs("div",{className:"component stringComponent",id:l,children:[!1,v.jsxs(sn,{children:[v.jsxs(sn.Text,{children:[a,v.jsx(Ht,{docString:r})]}),v.jsx(Ze.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:g,className:o&&!n?"instantUpdate":""})]})]})});ik.displayName="StringComponent";function xm(e){const t=h.useContext(Ih),n=o=>{var i;return((i=t[o])==null?void 0:i.displayOrder)??Number.MAX_SAFE_INTEGER};let r;return Array.isArray(e)?r=[...e].sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)):r=Object.values(e).sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)),r}const sk=te.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=xm(e.value);return cn(),v.jsxs("div",{className:"listComponent",id:o,children:[!1,v.jsx(Ht,{docString:t}),i.map(s=>v.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});sk.displayName="ListComponent";var eL=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=tL(e,eL);return te.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?te.createElement("title",null,o):null,te.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var rL=["color","size","title","className"];function dp(){return dp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var uc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=oL(e,rL);return te.createElement("svg",dp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?te.createElement("title",null,o):null,te.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});uc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};uc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};function pp(e,t){const[n,r]=h.useState(()=>{const o=localStorage.getItem(e);return o?JSON.parse(o):t});return h.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const Em=te.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=pp(`dataServiceComponent-${o}-open`,!0),a=xm(e);return r!==""?v.jsx("div",{className:"component dataServiceComponent",id:o,children:v.jsxs(Do,{children:[v.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?v.jsx(lc,{}):v.jsx(uc,{})]}),v.jsx(bu,{in:i,children:v.jsx(Do.Body,{children:a.map(l=>v.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})})]})}):v.jsx("div",{className:"component dataServiceComponent",id:o,children:a.map(l=>v.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})});Em.displayName="DataServiceComponent";const ak=te.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return v.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&v.jsxs("div",{className:"overlayContent",children:[v.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),v.jsx(Sm,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),v.jsx(Em,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});ak.displayName="DeviceConnectionComponent";const lk=te.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),v.jsx("div",{className:"component imageComponent",id:a,children:v.jsxs(Do,{children:[v.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,v.jsx(Ht,{docString:r}),l?v.jsx(lc,{}):v.jsx(uc,{})]}),v.jsx(bu,{in:l,children:v.jsxs(Do.Body,{children:[!1,o===""&&n===""?v.jsx("p",{children:"No image set in the backend."}):v.jsx(uS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});lk.displayName="ImageComponent";function sL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const uk=te.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=xm(e.value);return cn(),v.jsxs("div",{className:"listComponent",id:o,children:[!1,v.jsx(Ht,{docString:t}),i.map(s=>v.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});uk.displayName="DictComponent";const ck=te.memo(e=>{const{fullAccessPath:t,docString:n,status:r,addNotification:o,displayName:i,id:s}=e;cn();const a=h.useRef(null),[l,u]=h.useState(!1);h.useEffect(()=>{let d;r==="RUNNING"?d=`${t} was started.`:d=`${t} was stopped.`,o(d),u(!1)},[r]);const c=async d=>{d.preventDefault();const f=r=="RUNNING"?"stop":"start",g=[t,f].filter(w=>w).join(".");u(!0),Lh(g)};return v.jsxs("div",{className:"component taskComponent",id:s,children:[!1,v.jsx(Ze,{onSubmit:c,ref:a,children:v.jsxs(sn,{children:[v.jsxs(sn.Text,{children:[i,v.jsx(Ht,{docString:n})]}),v.jsx(ci,{id:`button-${s}`,type:"submit",children:l?v.jsx(Oh,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});ck.displayName="TaskComponent";const aL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},lL=e=>{const t=[],n=ux(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return aL(t)};function yo(e,t=()=>{}){z_(e,t)}const ii=te.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=sL(r),i=h.useContext(Ih);let s=lL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?v.jsx(cx,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?v.jsx(zl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?v.jsx(zl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?v.jsx(nk,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?v.jsx(rk,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?e.async?v.jsx(ok,{fullAccessPath:r,docString:e.doc,value:e.value,addNotification:n,displayName:s,id:o,render:e.frontend_render}):v.jsx(Sm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?v.jsx(ik,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type=="Task"?v.jsx(ck,{fullAccessPath:r,docString:e.doc,status:e.value.status.value,addNotification:n,displayName:s,id:o}):e.type==="DataService"?v.jsx(Em,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?v.jsx(ak,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?v.jsx(sk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?v.jsx(uk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?v.jsx(lk,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):v.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const uL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:H_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},cL=()=>{const[e,t]=h.useReducer(uL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=pp("isInstantUpdate",!1),[l,u]=h.useState(!1),[c,d]=pp("showNotification",!1),[f,g]=h.useState([]),[w,S]=h.useState("connecting");h.useEffect(()=>(fetch(`http://${Wi}:${Hi}/custom.css`).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`http://${Wi}:${Hi}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),In.on("connect",()=>{fetch(`http://${Wi}:${Hi}/service-properties`).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`http://${Wi}:${Hi}/web-settings`).then(x=>x.json()).then(x=>i(x)),S("connected")}),In.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),In.on("notify",E),In.on("log",C),()=>{In.off("notify",E),In.off("log",C)}),[]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();g($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),m=x=>{g(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),y=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?v.jsxs(v.Fragment,{children:[v.jsx(Xc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:v.jsxs(Xw,{fluid:!0,children:[v.jsx(Xc.Brand,{children:n}),v.jsx(Xc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),v.jsx(lx,{showNotification:c,notifications:f,removeNotificationById:m}),v.jsxs(zi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[v.jsx(zi.Header,{closeButton:!0,children:v.jsx(zi.Title,{children:"Settings"})}),v.jsxs(zi.Body,{children:[v.jsx(Ze.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),v.jsx(Ze.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),v.jsx("div",{className:"App navbarOffset",children:v.jsx(Ih.Provider,{value:o,children:v.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),v.jsx(jd,{connectionStatus:w})]}):v.jsx(jd,{connectionStatus:w})};var hp={},d0=Pw;hp.createRoot=d0.createRoot,hp.hydrateRoot=d0.hydrateRoot;hp.createRoot(document.getElementById("root")).render(v.jsx(te.StrictMode,{children:v.jsx(cL,{})})); + */var qh=Symbol.for("react.element"),Qh=Symbol.for("react.portal"),Qu=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),sN=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),nc=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),aN=Symbol.for("react.offscreen"),Wx;Wx=Symbol.for("react.module.reference");function Vt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qh:switch(e=e.type,e){case Qu:case Xu:case Yu:case tc:case nc:return e;default:switch(e=e&&e.$$typeof,e){case sN:case Zu:case ec:case oc:case rc:case Ju:return e;default:return t}}case Qh:return t}}}fe.ContextConsumer=Zu;fe.ContextProvider=Ju;fe.Element=qh;fe.ForwardRef=ec;fe.Fragment=Qu;fe.Lazy=oc;fe.Memo=rc;fe.Portal=Qh;fe.Profiler=Xu;fe.StrictMode=Yu;fe.Suspense=tc;fe.SuspenseList=nc;fe.isAsyncMode=function(){return!1};fe.isConcurrentMode=function(){return!1};fe.isContextConsumer=function(e){return Vt(e)===Zu};fe.isContextProvider=function(e){return Vt(e)===Ju};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qh};fe.isForwardRef=function(e){return Vt(e)===ec};fe.isFragment=function(e){return Vt(e)===Qu};fe.isLazy=function(e){return Vt(e)===oc};fe.isMemo=function(e){return Vt(e)===rc};fe.isPortal=function(e){return Vt(e)===Qh};fe.isProfiler=function(e){return Vt(e)===Xu};fe.isStrictMode=function(e){return Vt(e)===Yu};fe.isSuspense=function(e){return Vt(e)===tc};fe.isSuspenseList=function(e){return Vt(e)===nc};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===Xu||e===Yu||e===tc||e===nc||e===aN||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===Wx||e.getModuleId!==void 0)};fe.typeOf=Vt;Ux.exports=fe;var _v=Ux.exports;const lN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hx(e){const t=`${e}`.match(lN);return t&&t[1]||""}function Vx(e,t=""){return e.displayName||e.name||Hx(e)||t}function Tv(e,t,n){const r=Vx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function uN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case _v.ForwardRef:return Tv(e,e.render,"ForwardRef");case _v.Memo:return Tv(e,e.type,"memo");default:return}}}const cN=Object.freeze(Object.defineProperty({__proto__:null,default:uN,getFunctionName:Hx},Symbol.toStringTag,{value:"Module"}));function Dd(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Dd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Kx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const fN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Xa(e){return e&&e.ownerDocument||document}function dN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function pN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function nf(e){const t=h.useRef(e);return Kx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Fd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{dN(n,t)})},e)}class Yh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Yh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let ic=!0,zd=!1;const hN=new Yh,mN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function yN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&mN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function vN(e){e.metaKey||e.altKey||e.ctrlKey||(ic=!0)}function rf(){ic=!1}function gN(){this.visibilityState==="hidden"&&zd&&(ic=!0)}function wN(e){e.addEventListener("keydown",vN,!0),e.addEventListener("mousedown",rf,!0),e.addEventListener("pointerdown",rf,!0),e.addEventListener("touchstart",rf,!0),e.addEventListener("visibilitychange",gN,!0)}function SN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ic||yN(t)}function xN(){const e=h.useCallback(o=>{o!=null&&wN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(zd=!0,hN.start(100,()=>{zd=!1}),t.current=!1,!0):!1}function r(o){return SN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const EN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function kN(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const bN=h.createContext(),CN=()=>{const e=h.useContext(bN);return e??!1},ON=h.createContext(void 0);function $N(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function _N({props:e,name:t}){const n=h.useContext(ON);return $N({props:e,name:t,theme:{components:n}})}function TN(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Gx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Gx);var qx=Gx.exports;const RN=Yn(q_),NN=Yn(fN);var Qx=qx;Object.defineProperty(Re,"__esModule",{value:!0});var Rv=Re.alpha=Zx;Re.blend=UN;Re.colorChannel=void 0;var Ud=Re.darken=Jh;Re.decomposeColor=Wt;Re.emphasize=eE;var AN=Re.getContrastRatio=MN;Re.getLuminance=Hl;Re.hexToRgb=Yx;Re.hslToRgb=Jx;var Wd=Re.lighten=Zh;Re.private_safeAlpha=BN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=DN;Re.private_safeEmphasize=zN;Re.private_safeLighten=FN;Re.recomposeColor=pi;Re.rgbToHex=IN;var Nv=Qx(RN),PN=Qx(NN);function Xh(e,t=0,n=1){return(0,PN.default)(e,t,n)}function Yx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function jN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Yx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Nv.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Nv.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Xx=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=Xx;const LN=(e,t)=>{try{return Xx(e)}catch{return e}};Re.private_safeColorChannel=LN;function pi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function IN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>jN(r===3?Math.round(255*n):n)).join("")}`}function Jx(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),pi({type:a,values:l})}function Hl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(Jx(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function MN(e,t){const n=Hl(e),r=Hl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Zx(e,t){return e=Wt(e),t=Xh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function BN(e,t,n){try{return Zx(e,t)}catch{return e}}function Jh(e,t){if(e=Wt(e),t=Xh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pi(e)}function DN(e,t,n){try{return Jh(e,t)}catch{return e}}function Zh(e,t){if(e=Wt(e),t=Xh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pi(e)}function FN(e,t,n){try{return Zh(e,t)}catch{return e}}function eE(e,t=.15){return Hl(e)>.5?Jh(e,t):Zh(e,t)}function zN(e,t,n){try{return eE(e,t)}catch{return e}}function UN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return pi({type:"rgb",values:a})}const WN=["mode","contrastThreshold","tonalOffset"],Av={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ts.white,default:Ts.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},of={text:{primary:Ts.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ts.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Pv(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wd(e.main,o):t==="dark"&&(e.dark=Ud(e.main,i)))}function HN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function VN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function KN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function GN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function qN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function QN(e="light"){return e==="dark"?{main:Ri[400],light:Ri[300],dark:Ri[700]}:{main:"#ed6c02",light:Ri[500],dark:Ri[900]}}function YN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=an(e,WN),i=e.primary||HN(t),s=e.secondary||VN(t),a=e.error||KN(t),l=e.info||GN(t),u=e.success||qN(t),c=e.warning||QN(t);function d(S){return AN(S,of.text.primary)>=n?of.text.primary:Av.text.primary}const f=({color:S,name:k,mainShade:m=500,lightShade:p=300,darkShade:y=700})=>{if(S=j({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(Rs(11,k?` (${k})`:"",m));if(typeof S.main!="string")throw new Error(Rs(12,k?` (${k})`:"",JSON.stringify(S.main)));return Pv(S,"light",p,r),Pv(S,"dark",y,r),S.contrastText||(S.contrastText=d(S.main)),S},v={dark:of,light:Av};return kn(j({common:j({},Ts),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:G_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),o)}const XN=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function JN(e){return Math.round(e*1e5)/1e5}const jv={textTransform:"uppercase"},Lv='"Roboto", "Helvetica", "Arial", sans-serif';function ZN(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Lv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=an(n,XN),v=o/14,g=d||(m=>`${m/u*v}rem`),S=(m,p,y,E,C)=>j({fontFamily:r,fontWeight:m,fontSize:g(p),lineHeight:y},r===Lv?{letterSpacing:`${JN(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,jv),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,jv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn(j({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const eA=.2,tA=.14,nA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${eA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${nA})`].join(",")}const rA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],oA=["duration","easing","delay"],iA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},sA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Iv(e){return`${Math.round(e)}ms`}function aA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function lA(e){const t=j({},iA,e.easing),n=j({},sA,e.duration);return j({getAutoHeightDuration:aA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return an(i,oA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Iv(s)} ${a} ${typeof l=="string"?l:Iv(l)}`).join(",")}},e,{easing:t,duration:n})}const uA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},cA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function fA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=an(e,cA);if(e.vars)throw new Error(Rs(18));const a=YN(r),l=Dx(e);let u=kn(l,{mixins:TN(l.breakpoints,n),palette:a,shadows:rA.slice(),typography:ZN(a,i),transitions:lA(o),zIndex:j({},uA)});return u=kn(u,s),u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Gh({sx:d,theme:this})},u}const dA=fA();var Qs={},sf={exports:{}},Mv;function pA(){return Mv||(Mv=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sf)),sf.exports}const hA=Yn(nR),mA=Yn(rR),yA=Yn(uR),vA=Yn(cN),gA=Yn(XR),wA=Yn(tN);var hi=qx;Object.defineProperty(Qs,"__esModule",{value:!0});var SA=Qs.default=PA;Qs.shouldForwardProp=Ja;Qs.systemDefaultTheme=void 0;var Rt=hi(Rx()),Hd=hi(pA()),Bv=$A(hA),xA=mA;hi(yA);hi(vA);var EA=hi(gA),kA=hi(wA);const bA=["ownerState"],CA=["variants"],OA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(tE=function(r){return r?n:t})(e)}function $A(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=tE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function _A(e){return Object.keys(e).length===0}function TA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const RA=Qs.systemDefaultTheme=(0,EA.default)(),NA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ea({defaultTheme:e,theme:t,themeId:n}){return _A(t)?e:t[n]||t}function AA(e){return e?(t,n)=>n[e]:null}function Za(e,t){let{ownerState:n}=t,r=(0,Hd.default)(t,bA);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Za(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Hd.default)(o,CA);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function PA(e={}){const{themeId:t,defaultTheme:n=RA,rootShouldForwardProp:r=Ja,slotShouldForwardProp:o=Ja}=e,i=s=>(0,kA.default)((0,Rt.default)({},s,{theme:Ea((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Bv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=AA(NA(u))}=a,v=(0,Hd.default)(a,OA),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,m=Ja;u==="Root"||u==="root"?m=r:u?m=o:TA(s)&&(m=void 0);const p=(0,Bv.default)(s,(0,Rt.default)({shouldForwardProp:m,label:k},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,xA.isPlainObject)(C)?x=>Za(C,(0,Rt.default)({},x,{theme:Ea({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=y(C);const O=x?x.map(y):[];l&&f&&O.push(A=>{const U=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Za(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!g&&O.push(A=>{var U;const B=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Za({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function em(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jA=e=>em(e)&&e!=="classes",Xr=SA({themeId:Q_,defaultTheme:dA,rootShouldForwardProp:jA});function LA(e){return _N(e)}function os(e){return typeof e=="string"}function IA(e,t,n){return e===void 0||os(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function MA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function el(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function BA(e,t,n){return typeof e=="function"?e(t,n):e}function Dv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function DA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return v.length>0&&(S.className=v),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const s=el(j({},o,r)),a=Dv(r),l=Dv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const FA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=an(e,FA),a=i?{}:BA(r,o),{props:l,internalRef:u}=DA(j({},s,{externalSlotProps:a})),c=Fd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return IA(n,j({},l,{ref:c}),o)}const zA=2;function nE(e,t){return e-t}function Fv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},KA=e=>e;let Oa;function Uv(){return Oa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Oa=CSS.supports("touch-action","none"):Oa=!0),Oa}function GA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:g=KA,step:S=1,shiftStep:k=10,tabIndex:m,value:p}=e,y=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=pN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(nE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=xN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Fd(Y,X),ge=Fd(v,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const qt=V[V.length-1];ee>qt?ee=qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};Kx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Tn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Rn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:qt}=D.getBoundingClientRect();let un;Qe.indexOf("vertical")===0?un=(ee-N.y)/ie:un=(N.x-qt)/oe,Qe.indexOf("-reverse")!==-1&&(un=1-un);let le;if(le=UA(un,l,a),S)le=HA(le,S,l);else{const ro=Fv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Rn.current:Tt=Fv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=zv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Rn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=nf(N=>{const P=ka(N,y);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ba({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>zA&&T(!0),B&&!Ca(D,A)&&B(N,D,oe)}),Ue=nf(N=>{const P=ka(N,y);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),y.current=void 0,vt()}),nt=nf(N=>{if(r)return;Uv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(y.current=P.identifier);const D=ka(N,y);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ba({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!Ca(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Xa(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Xa(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",nt,{passive:Uv()}),()=>{N.removeEventListener("touchstart",nt),vt()}},[vt,nt]),h.useEffect(()=>{r&&vt()},[r,vt]);const vi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=ka(P,y);if(oe!==!1){const{newValue:ee,activeIndex:qt}=de({finger:oe});ba({sliderRef:X,activeIndex:qt,setActive:C}),U(ee),B&&!Ca(ee,A)&&B(P,ee,qt)}$.current=0;const ie=Xa(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Vl(K?W[0]:l,l,a),Gt=Vl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=el(N),D={onMouseDown:vi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:VA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=el(N),oe={onChange:Tn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:_n(D||{})},ie=j({},D,oe);return j({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(a),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},EN,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=el(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:Gt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const qA=e=>!e||!os(e);function QA(e){return zx("MuiSlider",e)}const Mt=iN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),YA=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function XA(e){const{children:t,className:n,value:r}=e,o=YA(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},w.jsxs(h.Fragment,{children:[t.props.children,w.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:r})})})]})):null}const JA=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Wv(e){return e}const ZA=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tn(n.color)}`],n.size!=="medium"&&t[`size${tn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),eP=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),tP=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Wd(e.palette[n].main,.62),borderColor:Wd(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Ud(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Ud(e.palette[n].main,.5)})))}))]}}),nP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tn(n.color)}`],n.size!=="medium"&&t[`thumbSize${tn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Rv(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Rv(e.palette[n].main,.16)}`})}}))]}}),rP=Xr(XA,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),oP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>em(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),iP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>em(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),sP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${tn(a)}`,l&&`size${tn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${tn(l)}`,a&&`thumbColor${tn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return kN(u,QA,s)},aP=({children:e})=>e,lP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,v,g,S,k,m,p,y,E,C,x,b,O,T,$;const A=LA({props:t,name:"MuiSlider"}),U=CN(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:_n=10,size:Tn="medium",step:Rn=1,scale:Qe=Wv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:nt="off",valueLabelFormat:vt=Wv}=A,vi=an(A,JA),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Tn,step:Rn,shiftStep:_n,scale:Qe,track:Ue,valueLabelDisplay:nt,valueLabelFormat:vt}),{axisProps:Gt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:gi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:qt,getThumbStyle:un}=GA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=sP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:ZA,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:eP,xm=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:tP,Em=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:nP,km=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:rP,cc=(v=(g=H==null?void 0:H.mark)!=null?g:V.Mark)!=null?v:oP,fc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:iP,bm=(m=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?m:"input",dc=(y=de==null?void 0:de.root)!=null?y:_.root,ck=(E=de==null?void 0:de.rail)!=null?E:_.rail,pc=(C=de==null?void 0:de.track)!=null?C:_.track,hc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,mc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,fk=(O=de==null?void 0:de.mark)!=null?O:_.mark,dk=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,pk=($=de==null?void 0:de.input)!=null?$:_.input,hk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:dc,externalForwardedProps:vi,additionalProps:j({},qA(Tt)&&{as:G}),ownerState:j({},we,dc==null?void 0:dc.ownerState),className:[le.root,Y]}),mk=tr({elementType:ro,externalSlotProps:ck,ownerState:we,className:le.rail}),yk=tr({elementType:xm,externalSlotProps:pc,additionalProps:{style:j({},Gt[Zn].offset(ee),Gt[Zn].leap(qt))},ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.track}),yc=tr({elementType:Em,getSlotProps:Rr,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.thumb}),vk=tr({elementType:km,externalSlotProps:mc,ownerState:j({},we,mc==null?void 0:mc.ownerState),className:le.valueLabel}),vc=tr({elementType:cc,externalSlotProps:fk,ownerState:we,className:le.mark}),gc=tr({elementType:fc,externalSlotProps:dk,ownerState:we,className:le.markLabel}),gk=tr({elementType:bm,getSlotProps:to,externalSlotProps:pk,ownerState:we});return w.jsxs(Tt,j({},hk,{children:[w.jsx(ro,j({},mk)),w.jsx(xm,j({},yk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const wc=Vl(Ne.value,qe,Me),Xs=Gt[Zn].offset(wc);let Nn;return Ue===!1?Nn=ie.indexOf(Ne.value)!==-1:Nn=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),w.jsxs(h.Fragment,{children:[w.jsx(cc,j({"data-index":We},vc,!os(cc)&&{markActive:Nn},{style:j({},Xs,vc.style),className:Sr(vc.className,Nn&&le.markActive)})),Ne.label!=null?w.jsx(fc,j({"aria-hidden":!0,"data-index":We},gc,!os(fc)&&{markLabelActive:Nn},{style:j({},Xs,gc.style),className:Sr(le.markLabel,gc.className,Nn&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const wc=Vl(Ne,qe,Me),Xs=Gt[Zn].offset(wc),Nn=nt==="off"?aP:km;return w.jsx(Nn,j({},!os(Nn)&&{valueLabelFormat:vt,valueLabelDisplay:nt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:gi===We||no===We||nt==="on",disabled:ve},vk,{children:w.jsx(Em,j({"data-index":We},yc,{className:Sr(le.thumb,yc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Xs,un(We),yc.style),children:w.jsx(bm,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},gk))}))}),We)})]}))});var Hv=Object.prototype.toString,rE=function(t){var n=Hv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Hv.call(t.callee)==="[object Function]"),r},af,Vv;function uP(){if(Vv)return af;Vv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=rE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var v=f.constructor;return v&&v.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",S=n.call(v)==="[object Function]",k=r(v),m=g&&n.call(v)==="[object String]",p=[];if(!g&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var y=s&&S;if(m&&v.length>0&&!t.call(v,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":NP,"%eval%":eval,"%EvalError%":AP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":sE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":PP,"%ReferenceError%":jP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":IP,"%TypedArray%":BP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":LP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var DP=Be(Be(e));zr["%Error.prototype%"]=DP}var FP=function e(t){var n;if(t==="%AsyncFunction%")n=uf("async function () {}");else if(t==="%GeneratorFunction%")n=uf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=uf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},Yv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ys=rm,Kl=iE,zP=Ys.call(Function.call,Array.prototype.concat),UP=Ys.call(Function.apply,Array.prototype.splice),Xv=Ys.call(Function.call,String.prototype.replace),Gl=Ys.call(Function.call,String.prototype.slice),WP=Ys.call(Function.call,RegExp.prototype.exec),HP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,VP=/\\(\\)?/g,KP=function(t){var n=Gl(t,0,1),r=Gl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return Xv(t,HP,function(i,s,a,l){o[o.length]=a?Xv(l,VP,"$1"):s||i}),o},GP=function(t,n){var r=t,o;if(Kl(Yv,r)&&(o=Yv[r],r="%"+o[0]+"%"),Kl(zr,r)){var i=zr[r];if(i===wo&&(i=FP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},On=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(WP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=KP(t),o=r.length>0?r[0]:"",i=GP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],UP(r,zP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Kl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},qP=On,nl=qP("%Object.defineProperty%",!0)||!1;if(nl)try{nl({},"a",{value:1})}catch{nl=!1}var om=nl,QP=On,rl=QP("%Object.getOwnPropertyDescriptor%",!0);if(rl)try{rl([],"length")}catch{rl=null}var im=rl,Jv=om,YP=oE,mo=_r,Zv=im,sm=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Zv&&Zv(t,n);if(Jv)Jv(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new YP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vd=om,aE=function(){return!!Vd};aE.hasArrayLengthDefineBug=function(){if(!Vd)return null;try{return Vd([],"length",{value:1}).length!==1}catch{return!0}};var am=aE,XP=tm,JP=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ZP=Object.prototype.toString,e3=Array.prototype.concat,eg=sm,t3=function(e){return typeof e=="function"&&ZP.call(e)==="[object Function]"},lE=am(),n3=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!t3(r)||!r())return}lE?eg(e,t,n,!0):eg(e,t,n)},uE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=XP(t);JP&&(r=e3.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||i3(n)!==n)throw new rg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&ng){var s=ng(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(o3?tg(t,"length",n,!0,!0):tg(t,"length",n)),t};(function(e){var t=rm,n=On,r=s3,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=om,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var v=a(t,s,arguments);return r(v,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(cE);var mi=cE.exports,fE=On,dE=mi,a3=dE(fE("String.prototype.indexOf")),Kt=function(t,n){var r=fE(t,!!n);return typeof r=="function"&&a3(t,".prototype.")>-1?dE(r):r},l3=tm,pE=sc(),hE=Kt,og=Object,u3=hE("Array.prototype.push"),ig=hE("Object.prototype.propertyIsEnumerable"),c3=pE?Object.getOwnPropertySymbols:null,mE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=og(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||C3)&&(b3?sg(t,"name",n,!0,!0):sg(t,"name",n)),t},_3=$3,T3=_r,R3=Object,wE=_3(function(){if(this==null||this!==R3(this))throw new T3("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),N3=wE,A3=Jr.supportsDescriptors,P3=Object.getOwnPropertyDescriptor,SE=function(){if(A3&&/a/mig.flags==="gim"){var t=P3(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return N3},j3=Jr.supportsDescriptors,L3=SE,I3=Object.getOwnPropertyDescriptor,M3=Object.defineProperty,B3=TypeError,ag=Object.getPrototypeOf,D3=/a/,F3=function(){if(!j3||!ag)throw new B3("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=L3(),n=ag(D3),r=I3(n,"flags");return(!r||r.get!==t)&&M3(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},z3=Jr,U3=mi,W3=wE,xE=SE,H3=F3,EE=U3(xE());z3(EE,{getPolyfill:xE,implementation:W3,shim:H3});var V3=EE,ol={exports:{}},K3=sc,Zr=function(){return K3()&&!!Symbol.toStringTag},G3=Zr(),q3=Kt,Kd=q3("Object.prototype.toString"),ac=function(t){return G3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Kd(t)==="[object Arguments]"},kE=function(t){return ac(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kd(t)!=="[object Array]"&&Kd(t.callee)==="[object Function]"},Q3=function(){return ac(arguments)}();ac.isLegacyArguments=kE;var bE=Q3?ac:kE;const Y3={},X3=Object.freeze(Object.defineProperty({__proto__:null,default:Y3},Symbol.toStringTag,{value:"Module"})),J3=Yn(X3);var lm=typeof Map=="function"&&Map.prototype,df=Object.getOwnPropertyDescriptor&&lm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=lm&&df&&typeof df.get=="function"?df.get:null,lg=lm&&Map.prototype.forEach,um=typeof Set=="function"&&Set.prototype,pf=Object.getOwnPropertyDescriptor&&um?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=um&&pf&&typeof pf.get=="function"?pf.get:null,ug=um&&Set.prototype.forEach,Z3=typeof WeakMap=="function"&&WeakMap.prototype,ss=Z3?WeakMap.prototype.has:null,ej=typeof WeakSet=="function"&&WeakSet.prototype,as=ej?WeakSet.prototype.has:null,tj=typeof WeakRef=="function"&&WeakRef.prototype,cg=tj?WeakRef.prototype.deref:null,nj=Boolean.prototype.valueOf,rj=Object.prototype.toString,oj=Function.prototype.toString,ij=String.prototype.match,cm=String.prototype.slice,fr=String.prototype.replace,sj=String.prototype.toUpperCase,fg=String.prototype.toLowerCase,CE=RegExp.prototype.test,dg=Array.prototype.concat,mn=Array.prototype.join,aj=Array.prototype.slice,pg=Math.floor,Gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hf=Object.getOwnPropertySymbols,qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,OE=Object.prototype.propertyIsEnumerable,hg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||CE.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-pg(-e):pg(e);if(r!==e){var o=String(r),i=cm.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var Qd=J3,yg=Qd.custom,vg=_E(yg)?yg:null,lj=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return RE(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?mg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?mg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yd(t)?"[Array]":"[Object]";var d=Oj(i,r);if(typeof o>"u")o=[];else if(TE(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=aj.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!gg(t)){var v=vj(t),g=$a(t,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+mn.call(g,", ")+" }":"")}if(_E(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qd.call(t);return typeof t=="object"&&!ri?Ai(S):S}if(kj(t)){for(var k="<"+fg.call(String(t.nodeName)),m=t.attributes||[],p=0;p",k}if(Yd(t)){if(t.length===0)return"[]";var y=$a(t,f);return d&&!Cj(y)?"["+Xd(y,d)+"]":"[ "+mn.call(y,", ")+" ]"}if(fj(t)){var E=$a(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!OE.call(t,"cause")?"{ ["+String(t)+"] "+mn.call(dg.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(vg&&typeof t[vg]=="function"&&Qd)return Qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(gj(t)){var C=[];return lg&&lg.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),wg("Map",ql.call(t),C,d)}if(xj(t)){var x=[];return ug&&ug.call(t,function(B){x.push(f(B,t))}),wg("Set",Ql.call(t),x,d)}if(wj(t))return mf("WeakMap");if(Ej(t))return mf("WeakSet");if(Sj(t))return mf("WeakRef");if(pj(t))return Ai(f(Number(t)));if(mj(t))return Ai(f(Gd.call(t)));if(hj(t))return Ai(nj.call(t));if(dj(t))return Ai(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof cl<"u"&&t===cl)return"{ [object globalThis] }";if(!cj(t)&&!gg(t)){var b=$a(t,f),O=hg?hg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&tt&&Object(t)===t&&tt in t?cm.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+mn.call(dg.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Xd(b,d)+"}":U+"{ "+mn.call(b,", ")+" }"}return String(t)};function $E(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function uj(e){return fr.call(String(e),/"/g,""")}function Yd(e){return Tr(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function cj(e){return Tr(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function gg(e){return Tr(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function fj(e){return Tr(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function dj(e){return Tr(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function pj(e){return Tr(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function hj(e){return Tr(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function _E(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qd)return!1;try{return qd.call(e),!0}catch{}return!1}function mj(e){if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}var yj=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return yj.call(e,t)}function Tr(e){return rj.call(e)}function vj(e){if(e.name)return e.name;var t=ij.call(oj.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function TE(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return RE(cm.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,bj);return $E(o,"single",t)}function bj(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+sj.call(t.toString(16))}function Ai(e){return"Object("+e+")"}function mf(e){return e+" { ? }"}function wg(e,t,n,r){var o=r?Xd(n,r):mn.call(n,", ");return e+" ("+t+") {"+o+"}"}function Cj(e){for(var t=0;t=0)return!1;return!0}function Oj(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=mn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:mn.call(Array(t+1),n)}}function Xd(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+mn.call(e,","+n)+` +`+t.prev}function $a(e,t){var n=Yd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=$g(t,n);if(o<55296||o>56319)return n+1;var i=$g(t,n+1);return i<56320||i>57343?n+1:n+2},vf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},_g=function(t,n){if(Yj(t)||kg(t))return vf(t);if(Xj(t)){var r=0;return{next:function(){var i=t4(t,r),s=e4(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Jj&&!Zj)ol.exports=function(t){if(t!=null)return _g(t,!0)};else{var n4=IE,r4=BE,Tg=Yt("Map.prototype.forEach",!0),Rg=Yt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Ng=Yt("Map.prototype.iterator",!0),Ag=Yt("Set.prototype.iterator",!0);var Pg=Yt("Map.prototype.@@iterator",!0)||Yt("Map.prototype._es6-shim iterator_",!0),jg=Yt("Set.prototype.@@iterator",!0)||Yt("Set.prototype._es6-shim iterator_",!0),o4=function(t){if(n4(t)){if(Ng)return bg(Ng(t));if(Pg)return Pg(t);if(Tg){var n=[];return Tg(t,function(o,i){Og(n,[i,o])}),vf(n)}}if(r4(t)){if(Ag)return bg(Ag(t));if(jg)return jg(t);if(Rg){var r=[];return Rg(t,function(o){Og(r,o)}),vf(r)}}};ol.exports=function(t){return o4(t)||_g(t)}}}var i4=ol.exports,Lg=function(e){return e!==e},DE=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||Lg(t)&&Lg(n))},s4=DE,FE=function(){return typeof Object.is=="function"?Object.is:s4},a4=FE,l4=Jr,u4=function(){var t=a4();return l4(Object,{is:t},{is:function(){return Object.is!==t}}),t},c4=Jr,f4=mi,d4=DE,zE=FE,p4=u4,UE=f4(zE(),Object);c4(UE,{getPolyfill:zE,implementation:d4,shim:p4});var h4=UE,m4=mi,WE=Kt,y4=On,Jd=y4("%ArrayBuffer%",!0),il=WE("ArrayBuffer.prototype.byteLength",!0),v4=WE("Object.prototype.toString"),Ig=!!Jd&&!il&&new Jd(0).slice,Mg=!!Ig&&m4(Ig),HE=il||Mg?function(t){if(!t||typeof t!="object")return!1;try{return il?il(t):Mg(t,0),!0}catch{return!1}}:Jd?function(t){return v4(t)==="[object ArrayBuffer]"}:function(t){return!1},g4=Date.prototype.getDay,w4=function(t){try{return g4.call(t),!0}catch{return!1}},S4=Object.prototype.toString,x4="[object Date]",E4=Zr(),k4=function(t){return typeof t!="object"||t===null?!1:E4?w4(t):S4.call(t)===x4},Zd=Kt,VE=Zr(),KE,GE,ep,tp;if(VE){KE=Zd("Object.prototype.hasOwnProperty"),GE=Zd("RegExp.prototype.exec"),ep={};var gf=function(){throw ep};tp={toString:gf,valueOf:gf},typeof Symbol.toPrimitive=="symbol"&&(tp[Symbol.toPrimitive]=gf)}var b4=Zd("Object.prototype.toString"),C4=Object.getOwnPropertyDescriptor,O4="[object RegExp]",$4=VE?function(t){if(!t||typeof t!="object")return!1;var n=C4(t,"lastIndex"),r=n&&KE(n,"value");if(!r)return!1;try{GE(t,tp)}catch(o){return o===ep}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:b4(t)===O4},_4=Kt,Bg=_4("SharedArrayBuffer.prototype.byteLength",!0),T4=Bg?function(t){if(!t||typeof t!="object")return!1;try{return Bg(t),!0}catch{return!1}}:function(t){return!1},R4=Number.prototype.toString,N4=function(t){try{return R4.call(t),!0}catch{return!1}},A4=Object.prototype.toString,P4="[object Number]",j4=Zr(),L4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:j4?N4(t):A4.call(t)===P4},qE=Kt,I4=qE("Boolean.prototype.toString"),M4=qE("Object.prototype.toString"),B4=function(t){try{return I4(t),!0}catch{return!1}},D4="[object Boolean]",F4=Zr(),z4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:F4&&Symbol.toStringTag in t?B4(t):M4(t)===D4},np={exports:{}},U4=Object.prototype.toString,W4=nm();if(W4){var H4=Symbol.prototype.toString,V4=/^Symbol\(.*\)$/,K4=function(t){return typeof t.valueOf()!="symbol"?!1:V4.test(H4.call(t))};np.exports=function(t){if(typeof t=="symbol")return!0;if(U4.call(t)!=="[object Symbol]")return!1;try{return K4(t)}catch{return!1}}}else np.exports=function(t){return!1};var G4=np.exports,rp={exports:{}},Dg=typeof BigInt<"u"&&BigInt,q4=function(){return typeof Dg=="function"&&typeof BigInt=="function"&&typeof Dg(42)=="bigint"&&typeof BigInt(42)=="bigint"},Q4=q4();if(Q4){var Y4=BigInt.prototype.valueOf,X4=function(t){try{return Y4.call(t),!0}catch{}return!1};rp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:X4(t)}}else rp.exports=function(t){return!1};var J4=rp.exports,Z4=jE,e5=L4,t5=z4,n5=G4,r5=J4,o5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(Z4(t))return"String";if(e5(t))return"Number";if(t5(t))return"Boolean";if(n5(t))return"Symbol";if(r5(t))return"BigInt"},Jl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Fg=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zl;Jl||(Zl=function(t){return!1});var op=Jl?Jl.prototype.has:null,wf=Fg?Fg.prototype.has:null;!Zl&&!op&&(Zl=function(t){return!1});var i5=Zl||function(t){if(!t||typeof t!="object")return!1;try{if(op.call(t,op),wf)try{wf.call(t,wf)}catch{return!0}return t instanceof Jl}catch{}return!1},ip={exports:{}},s5=On,QE=Kt,a5=s5("%WeakSet%",!0),Sf=QE("WeakSet.prototype.has",!0);if(Sf){var xf=QE("WeakMap.prototype.has",!0);ip.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Sf(t,Sf),xf)try{xf(t,xf)}catch{return!0}return t instanceof a5}catch{}return!1}}else ip.exports=function(t){return!1};var l5=ip.exports,u5=IE,c5=BE,f5=i5,d5=l5,p5=function(t){if(t&&typeof t=="object"){if(u5(t))return"Map";if(c5(t))return"Set";if(f5(t))return"WeakMap";if(d5(t))return"WeakSet"}return!1},YE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,sp,sl;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{sp=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ao(function(){throw 42},null,sp)}catch(e){e!==sl&&(Ao=null)}else Ao=null;var h5=/^\s*class\b/,ap=function(t){try{var n=YE.call(t);return h5.test(n)}catch{return!1}},Ef=function(t){try{return ap(t)?!1:(YE.call(t),!0)}catch{return!1}},al=Object.prototype.toString,m5="[object Object]",y5="[object Function]",v5="[object GeneratorFunction]",g5="[object HTMLAllCollection]",w5="[object HTML document.all class]",S5="[object HTMLCollection]",x5=typeof Symbol=="function"&&!!Symbol.toStringTag,E5=!(0 in[,]),lp=function(){return!1};if(typeof document=="object"){var k5=document.all;al.call(k5)===al.call(document.all)&&(lp=function(t){if((E5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=al.call(t);return(n===g5||n===w5||n===S5||n===m5)&&t("")==null}catch{}return!1})}var b5=Ao?function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,sp)}catch(n){if(n!==sl)return!1}return!ap(t)&&Ef(t)}:function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(x5)return Ef(t);if(ap(t))return!1;var n=al.call(t);return n!==y5&&n!==v5&&!/^\[object HTML/.test(n)?!1:Ef(t)},C5=b5,O5=Object.prototype.toString,XE=Object.prototype.hasOwnProperty,$5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),O5.call(t)==="[object Array]"?$5(t,n,o):typeof t=="string"?_5(t,n,o):T5(t,n,o)},N5=R5,A5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],kf=A5,P5=typeof globalThis>"u"?cl:globalThis,j5=function(){for(var t=[],n=0;n"u"?cl:globalThis,up=L5(),ym=mm("String.prototype.slice"),bf=Object.getPrototypeOf,M5=mm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:D5(t)}return ll?B5(t):null},z5=Kt,Wg=z5("ArrayBuffer.prototype.byteLength",!0),U5=HE,W5=function(t){return U5(t)?Wg?Wg(t):t.byteLength:NaN},ZE=x3,$n=Kt,Hg=V3,H5=On,oi=i4,V5=AE,Vg=h4,Kg=bE,Gg=PE,qg=HE,Qg=k4,Yg=$4,Xg=T4,Jg=tm,Zg=o5,e0=p5,t0=F5,n0=W5,r0=$n("SharedArrayBuffer.prototype.byteLength",!0),o0=$n("Date.prototype.getTime"),Cf=Object.getPrototypeOf,i0=$n("Object.prototype.toString"),nu=H5("%Set%",!0),cp=$n("Map.prototype.has",!0),ru=$n("Map.prototype.get",!0),s0=$n("Map.prototype.size",!0),ou=$n("Set.prototype.add",!0),ek=$n("Set.prototype.delete",!0),iu=$n("Set.prototype.has",!0),ul=$n("Set.prototype.size",!0);function a0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(on(t,i.value,n,r))return ek(e,i.value),!0;return!1}function tk(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function K5(e,t,n,r,o,i){var s=tk(n);if(s!=null)return s;var a=ru(t,s),l=ZE({},o,{strict:!1});return typeof a>"u"&&!cp(t,s)||!on(r,a,l,i)?!1:!cp(e,s)&&on(r,a,l,i)}function G5(e,t,n){var r=tk(n);return r??(iu(t,r)&&!iu(e,r))}function l0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,on(n,l,o,i)&&on(r,ru(t,l),o,i))return ek(e,l),!0;return!1}function on(e,t,n,r){var o=n||{};if(o.strict?Vg(e,t):e===t)return!0;var i=Zg(e),s=Zg(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Vg(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),Y5(e,t,o,r)}function u0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function q5(e,t,n,r){if(ul(e)!==ul(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new nu),ou(l,s.value);else if(!iu(t,s.value)){if(n.strict||!G5(e,t,s.value))return!1;l||(l=new nu),ou(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!a0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!iu(e,a.value)&&!a0(l,a.value,n.strict,r))return!1;return ul(l)===0}return!0}function Q5(e,t,n,r){if(s0(e)!==s0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new nu),ou(l,u);else if(d=ru(t,u),typeof d>"u"&&!cp(t,u)||!on(c,d,n,r)){if(n.strict||!K5(e,t,u,c,n,r))return!1;l||(l=new nu),ou(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!l0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!on(ru(e,u),d,n,r))&&!l0(l,e,u,d,ZE({},n,{strict:!1}),r))return!1;return ul(l)===0}return!0}function Y5(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||i0(e)!==i0(t)||Kg(e)!==Kg(t))return!1;var s=Gg(e),a=Gg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=Yg(e),d=Yg(t);if(c!==d||(c||d)&&(e.source!==t.source||Hg(e)!==Hg(t)))return!1;var f=Qg(e),v=Qg(t);if(f!==v||(f||v)&&o0(e)!==o0(t)||n.strict&&Cf&&Cf(e)!==Cf(t))return!1;var g=t0(e),S=t0(t);if(g!==S)return!1;if(g||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!on(e[i],t[i],n,r))return!1;var O=e0(e),T=e0(t);return O!==T?!1:O==="Set"||T==="Set"?q5(e,t,n,r):O==="Map"?Q5(e,t,n,r):!0}var X5=function(t,n,r){return on(t,n,r,V5())};const J5=si(X5),vm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!J5(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ra=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},nk=ne.memo(e=>{Cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:v}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const g=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,m,p]=Ra(o),[y,E]=Ra(i),[C,x]=Ra(s),[b,O]=Ra(a);return w.jsxs("div",{className:"component sliderComponent",id:v,children:[!1,w.jsxs(Fl,{children:[w.jsx(dn,{xs:"auto",xl:"auto",children:w.jsxs(Un.Text,{children:[f,w.jsx(ln,{docString:l})]})}),w.jsx(dn,{xs:"5",xl:!0,children:w.jsx(lP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:k,onChange:(T,$)=>g(T,$),min:y,max:C,step:b,marks:[{value:y,label:`${y}`},{value:C,label:`${C}`}]})}),w.jsx(dn,{xs:"3",xl:!0,children:w.jsx(zl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:m,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:v+"-value"})}),w.jsx(dn,{xs:"auto",children:w.jsx($h,{id:`button-${v}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[w.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),w.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),w.jsx(bu,{in:t,children:w.jsx(ot.Group,{children:w.jsxs(Fl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Min Value"}),w.jsx(ot.Control,{type:"number",value:y,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Max Value"}),w.jsx(ot.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Step Size"}),w.jsx(ot.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},vm);nk.displayName="SliderComponent";const rk=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return Cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),w.jsxs("div",{className:"component enumComponent",id:r,children:[!1,w.jsx(Fl,{children:w.jsxs(dn,{className:"d-flex align-items-center",children:[w.jsxs(Un.Text,{children:[n,w.jsx(ln,{docString:a})]}),l?w.jsx(ot.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):w.jsx(ot.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>w.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},vm);rk.displayName="EnumComponent";const gm=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;Cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),ax(t),a()};return w.jsxs("div",{className:"component methodComponent",id:i,children:[!1,w.jsx(ot,{onSubmit:l,ref:s,children:w.jsxs(zs,{className:"component",variant:"primary",type:"submit",children:[`${o} `,w.jsx(ln,{docString:n})]})})]})},vm);gm.displayName="MethodComponent";const ok=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=g=>{c(g.target.value),o&&s({type:"str",value:g.target.value,full_access_path:t,readonly:n,doc:r})},f=g=>{g.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),g.preventDefault())},v=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return w.jsxs("div",{className:"component stringComponent",id:l,children:[!1,w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[a,w.jsx(ln,{docString:r})]}),w.jsx(ot.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:v,className:o&&!n?"instantUpdate":""})]})]})});ok.displayName="StringComponent";function wm(e){const t=h.useContext(jh),n=o=>{var i;return((i=t[o])==null?void 0:i.displayOrder)??Number.MAX_SAFE_INTEGER};let r;return Array.isArray(e)?r=[...e].sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)):r=Object.values(e).sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)),r}const ik=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=wm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});ik.displayName="ListComponent";var Z5=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=eL(e,Z5);return ne.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var nL=["color","size","title","className"];function dp(){return dp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var uc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=rL(e,nL);return ne.createElement("svg",dp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});uc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};uc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};function pp(e,t){const[n,r]=h.useState(()=>{const o=localStorage.getItem(e);return o?JSON.parse(o):t});return h.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const Sm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=pp(`dataServiceComponent-${o}-open`,!0),a=wm(e);return r!==""?w.jsx("div",{className:"component dataServiceComponent",id:o,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:i,children:w.jsx(Do.Body,{children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})})]})}):w.jsx("div",{className:"component dataServiceComponent",id:o,children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})});Sm.displayName="DataServiceComponent";const sk=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return w.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&w.jsxs("div",{className:"overlayContent",children:[w.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),w.jsx(gm,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),w.jsx(Sm,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});sk.displayName="DeviceConnectionComponent";const ak=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;Cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),w.jsx("div",{className:"component imageComponent",id:a,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,w.jsx(ln,{docString:r}),l?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:l,children:w.jsxs(Do.Body,{children:[!1,o===""&&n===""?w.jsx("p",{children:"No image set in the backend."}):w.jsx(aS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});ak.displayName="ImageComponent";function iL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const lk=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=wm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});lk.displayName="DictComponent";const uk=ne.memo(e=>{const{fullAccessPath:t,docString:n,status:r,addNotification:o,displayName:i,id:s}=e;Cn();const a=h.useRef(null),[l,u]=h.useState(!1);h.useEffect(()=>{let d;r==="RUNNING"?d=`${t} was started.`:d=`${t} was stopped.`,o(d),u(!1)},[r]);const c=async d=>{d.preventDefault();const f=r=="RUNNING"?"stop":"start",v=[t,f].filter(g=>g).join(".");u(!0),ax(v)};return w.jsxs("div",{className:"component taskComponent",id:s,children:[!1,w.jsx(ot,{onSubmit:c,ref:a,children:w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[i,w.jsx(ln,{docString:n})]}),w.jsx(zs,{id:`button-${s}`,type:"submit",children:l?w.jsx(FS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});uk.displayName="TaskComponent";const sL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},aL=e=>{const t=[],n=ux(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return sL(t)};function yo(e,t=()=>{}){F_(e,t)}const ii=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=iL(r),i=h.useContext(jh);let s=aL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?w.jsx(cx,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?w.jsx(zl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?w.jsx(zl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?w.jsx(nk,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?w.jsx(rk,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?w.jsx(gm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?w.jsx(ok,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type=="Task"?w.jsx(uk,{fullAccessPath:r,docString:e.doc,status:e.value.status.value,addNotification:n,displayName:s,id:o}):e.type==="DataService"?w.jsx(Sm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?w.jsx(sk,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?w.jsx(ik,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?w.jsx(lk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?w.jsx(ak,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):w.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const lL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:W_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},uL=()=>{const[e,t]=h.useReducer(lL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=pp("isInstantUpdate",!1),[l,u]=h.useState(!1),[c,d]=pp("showNotification",!1),[f,v]=h.useState([]),[g,S]=h.useState("connecting");h.useEffect(()=>(fetch(`http://${Ui}:${Wi}/custom.css`).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`http://${Ui}:${Wi}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),Ln.on("connect",()=>{fetch(`http://${Ui}:${Wi}/service-properties`).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`http://${Ui}:${Wi}/web-settings`).then(x=>x.json()).then(x=>i(x)),S("connected")}),Ln.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),Ln.on("notify",E),Ln.on("log",C),()=>{Ln.off("notify",E),Ln.off("log",C)}),[]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();v($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),m=x=>{v(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),y=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?w.jsxs(w.Fragment,{children:[w.jsx(Xc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:w.jsxs(Qw,{fluid:!0,children:[w.jsx(Xc.Brand,{children:n}),w.jsx(Xc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),w.jsx(lx,{showNotification:c,notifications:f,removeNotificationById:m}),w.jsxs(Fi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[w.jsx(Fi.Header,{closeButton:!0,children:w.jsx(Fi.Title,{children:"Settings"})}),w.jsxs(Fi.Body,{children:[w.jsx(ot.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),w.jsx(ot.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),w.jsx("div",{className:"App navbarOffset",children:w.jsx(jh.Provider,{value:o,children:w.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),w.jsx(jd,{connectionStatus:g})]}):w.jsx(jd,{connectionStatus:g})};var hp={},c0=Nw;hp.createRoot=c0.createRoot,hp.hydrateRoot=c0.hydrateRoot;hp.createRoot(document.getElementById("root")).render(w.jsx(ne.StrictMode,{children:w.jsx(uL,{})})); diff --git a/src/pydase/frontend/index.html b/src/pydase/frontend/index.html index 858355d..cb29891 100644 --- a/src/pydase/frontend/index.html +++ b/src/pydase/frontend/index.html @@ -6,7 +6,7 @@ - + From ece68b4b99e53d3dc63232f0753c7461a4ba1c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 16 Sep 2024 14:36:01 +0200 Subject: [PATCH 41/41] docs: updates Task documentation - updates Tasks.md - updates docstrings - adds api section --- docs/dev-guide/api.md | 6 +++ docs/user-guide/Tasks.md | 13 +++---- src/pydase/task/autostart.py | 3 +- src/pydase/task/decorator.py | 48 +++++++++++++++++++++++ src/pydase/task/task.py | 70 +++++++++++++++++++++++++++++----- src/pydase/task/task_status.py | 2 + 6 files changed, 125 insertions(+), 17 deletions(-) diff --git a/docs/dev-guide/api.md b/docs/dev-guide/api.md index 83ed19f..d6b4ef3 100644 --- a/docs/dev-guide/api.md +++ b/docs/dev-guide/api.md @@ -13,6 +13,12 @@ ::: pydase.components handler: python +::: pydase.task + handler: python + options: + inherited_members: false + show_submodules: true + ::: pydase.utils.serialization.serializer handler: python diff --git a/docs/user-guide/Tasks.md b/docs/user-guide/Tasks.md index 3f62ed9..dbacdd1 100644 --- a/docs/user-guide/Tasks.md +++ b/docs/user-guide/Tasks.md @@ -1,20 +1,18 @@ # Understanding Tasks -In `pydase`, a task is defined as an asynchronous function without arguments contained in a class that inherits from `pydase.DataService`. These tasks usually contain a while loop and are designed to carry out periodic functions. +In `pydase`, a task is defined as an asynchronous function without arguments that is decorated with the `@task` decorator and contained in a class that inherits from `pydase.DataService`. These tasks usually contain a while loop and are designed to carry out periodic functions. For example, a task might be used to periodically read sensor data, update a database, or perform any other recurring job. -For example, a task might be used to periodically read sensor data, update a database, or perform any other recurring job. One core feature of `pydase` is its ability to automatically generate start and stop functions for these tasks. This allows you to control task execution via both the frontend and python clients, giving you flexible and powerful control over your service's operation. - -Another powerful feature of `pydase` is its ability to automatically start tasks upon initialization of the service. By specifying the tasks and their arguments in the `_autostart_tasks` dictionary in your service class's `__init__` method, `pydase` will automatically start these tasks when the server is started. Here's an example: +`pydase` allows you to control task execution via both the frontend and Python clients and can automatically start tasks upon initialization of the service. By using the `@task` decorator with the `autostart=True` argument in your service class, `pydase` will automatically start these tasks when the server is started. Here's an example: ```python import pydase +from pydase.task.decorator import task class SensorService(pydase.DataService): def __init__(self): super().__init__() self.readout_frequency = 1.0 - self._autostart_tasks["read_sensor_data"] = () def _process_data(self, data: ...) -> None: ... @@ -22,6 +20,7 @@ class SensorService(pydase.DataService): def _read_from_sensor(self) -> Any: ... + @task(autostart=True) async def read_sensor_data(self): while True: data = self._read_from_sensor() @@ -34,6 +33,6 @@ if __name__ == "__main__": pydase.Server(service=service).run() ``` -In this example, `read_sensor_data` is a task that continuously reads data from a sensor. By adding it to the `_autostart_tasks` dictionary, it will automatically start running when `pydase.Server(service).run()` is executed. -As with all tasks, `pydase` will generate `start_read_sensor_data` and `stop_read_sensor_data` methods, which can be called to manually start and stop the data reading task. The readout frequency can be updated using the `readout_frequency` attribute. +In this example, `read_sensor_data` is a task that continuously reads data from a sensor. By decorating it with `@task(autostart=True)`, it will automatically start running when `pydase.Server(service).run()` is executed. +The `@task` decorator replaces the function with a task object that has `start()` and `stop()` methods. This means you can control the task execution directly using these methods. For instance, you can manually start or stop the task by calling `service.read_sensor_data.start()` and `service.read_sensor_data.stop()`, respectively. diff --git a/src/pydase/task/autostart.py b/src/pydase/task/autostart.py index b29a92b..234b2a9 100644 --- a/src/pydase/task/autostart.py +++ b/src/pydase/task/autostart.py @@ -12,7 +12,8 @@ def autostart_service_tasks( """Starts the service tasks defined with the `autostart` keyword argument. This method goes through the attributes of the passed service and its nested - `pydase.DataService` instances and calls the start method on autostart-tasks. + [`DataService`][pydase.DataService] instances and calls the start method on + autostart-tasks. """ for attr in dir(service): diff --git a/src/pydase/task/decorator.py b/src/pydase/task/decorator.py index cce84c9..8e3aa15 100644 --- a/src/pydase/task/decorator.py +++ b/src/pydase/task/decorator.py @@ -18,6 +18,54 @@ def task( ], Task[R], ]: + """ + A decorator to define a function as a task within a + [`DataService`][pydase.DataService] class. + + This decorator transforms an asynchronous function into a + [`Task`][pydase.task.task.Task] object. The `Task` object provides methods like + `start()` and `stop()` to control the execution of the task. + + Tasks are typically used to perform periodic or recurring jobs, such as reading + sensor data, updating databases, or other operations that need to be repeated over + time. + + Args: + autostart: + If set to True, the task will automatically start when the service is + initialized. Defaults to False. + + Returns: + A decorator that converts an asynchronous function into a + [`Task`][pydase.task.task.Task] object. + + Example: + ```python + import asyncio + + import pydase + from pydase.task.decorator import task + + + class MyService(pydase.DataService): + @task(autostart=True) + async def my_task(self) -> None: + while True: + # Perform some periodic work + await asyncio.sleep(1) + + + if __name__ == "__main__": + service = MyService() + pydase.Server(service=service).run() + ``` + + In this example, `my_task` is defined as a task using the `@task` decorator, and + it will start automatically when the service is initialized because + `autostart=True` is set. You can manually start or stop the task using + `service.my_task.start()` and `service.my_task.stop()`, respectively. + """ + def decorator( func: Callable[[Any], Coroutine[None, None, R]] | Callable[[], Coroutine[None, None, R]], diff --git a/src/pydase/task/task.py b/src/pydase/task/task.py index 21c863d..3765a75 100644 --- a/src/pydase/task/task.py +++ b/src/pydase/task/task.py @@ -36,6 +36,53 @@ def is_bound_method( class Task(pydase.data_service.data_service.DataService, Generic[R]): + """ + A class representing a task within the `pydase` framework. + + The `Task` class wraps an asynchronous function and provides methods to manage its + lifecycle, such as `start()` and `stop()`. It is typically used to perform periodic + or recurring jobs in a [`DataService`][pydase.DataService], like reading + sensor data, updating databases, or executing other background tasks. + + When a function is decorated with the [`@task`][pydase.task.decorator.task] + decorator, it is replaced by a `Task` instance that controls the execution of the + original function. + + Args: + func: + The asynchronous function that this task wraps. It must be a coroutine + without arguments. + autostart: + If set to True, the task will automatically start when the service is + initialized. Defaults to False. + + Example: + ```python + import asyncio + + import pydase + from pydase.task.decorator import task + + + class MyService(pydase.DataService): + @task(autostart=True) + async def my_task(self) -> None: + while True: + # Perform some periodic work + await asyncio.sleep(1) + + + if __name__ == "__main__": + service = MyService() + pydase.Server(service=service).run() + ``` + + In this example, `my_task` is defined as a task using the `@task` decorator, and + it will start automatically when the service is initialized because + `autostart=True` is set. You can manually start or stop the task using + `service.my_task.start()` and `service.my_task.stop()`, respectively. + """ + def __init__( self, func: Callable[[Any], Coroutine[None, None, R | None]] @@ -59,23 +106,26 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): @property def autostart(self) -> bool: - """Defines if the task should be started automatically when the `pydase.Server` - starts.""" + """Defines if the task should be started automatically when the + [`Server`][pydase.Server] starts.""" return self._autostart @property def status(self) -> TaskStatus: + """Returns the current status of the task.""" return self._status def start(self) -> None: + """Starts the asynchronous task if it is not already running.""" if self._task: return def task_done_callback(task: asyncio.Task[R | None]) -> None: """Handles tasks that have finished. - Update task status, calls the defined callbacks, and logs and re-raises - exceptions.""" + Updates the task status, calls the defined callbacks, and logs and re-raises + exceptions. + """ self._task = None self._status = TaskStatus.NOT_RUNNING @@ -113,18 +163,20 @@ class Task(pydase.data_service.data_service.DataService, Generic[R]): self._task.add_done_callback(task_done_callback) def stop(self) -> None: + """Stops the running asynchronous task by cancelling it.""" + if self._task: self._task.cancel() def __get__(self, instance: Any, owner: Any) -> Self: - """Descriptor method used to correctly setup the task. + """Descriptor method used to correctly set up the task. This descriptor method is called by the class instance containing the task. - We need to use this descriptor to bind the task function to that class instance. + It binds the task function to that class instance. - As the __init__ function is called when a function is decorated with - @pydase.task.task, we should delay some of the setup until this descriptor - function is called. + Since the `__init__` function is called when a function is decorated with + [`@task`][pydase.task.decorator.task], some setup is delayed until this + descriptor function is called. """ if instance and not self._set_up: diff --git a/src/pydase/task/task_status.py b/src/pydase/task/task_status.py index 9ddd3d2..976f22c 100644 --- a/src/pydase/task/task_status.py +++ b/src/pydase/task/task_status.py @@ -2,5 +2,7 @@ import enum class TaskStatus(enum.Enum): + """Possible statuses of a [`Task`][pydase.task.task.Task].""" + RUNNING = "running" NOT_RUNNING = "not_running"